Registry / serialization / safe-yaml

safe-yaml

JSON →
library1.0.5rbrubygemsunverified

Parse YAML safely with SafeYAML, a library that prevents unsafe object deserialization.

gem install safe_yaml
INSTALL
IMPORT
SIG · SAFE-YAML
S
safe-yaml
serializationrubyv1.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SafeYAML
require 'safe_yaml'

Load a YAML string safely without enabling dangerous object types.

require 'safe_yaml' data = SafeYAML.load("key: value") puts data['key']
Debug
Known issues
gotchaSafeYAML may not be compatible with newer Ruby versions; consider using Psych with safe_load.
fix
Use YAML.safe_load from Psych instead of SafeYAML for better compatibility.
affects: >= 1.0.0
Upgrade
Version history
1.0.5latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Resources
safe-yaml — gem install safe-yaml · libregistry