Skip to content

Instantly share code, notes, and snippets.

@DimaSamodurov
Created March 16, 2012 10:42
Show Gist options
  • Save DimaSamodurov/2049522 to your computer and use it in GitHub Desktop.
Save DimaSamodurov/2049522 to your computer and use it in GitHub Desktop.
Check psych compatibility
# encoding: utf-8
require 'erb'
require 'psych'
require 'yaml'
puts YAML # => 'psych'
Dir.glob('**/*.yml').map do |file|
puts file
Psych.load(IO.read file) unless file =~ /cucumber/
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment