Skip to content

Instantly share code, notes, and snippets.

@tisba
Created July 19, 2011 09:15
Show Gist options
  • Select an option

  • Save tisba/1091800 to your computer and use it in GitHub Desktop.

Select an option

Save tisba/1091800 to your computer and use it in GitHub Desktop.
Check YML locales
require "YAML"
Dir["**/*yml"].each do |file|
begin
YAML.load_file(File.join(File.dirname(__FILE__), file))
rescue Exception => e
puts "Error in #{file}:"
p e
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment