load and prefer psych as the YAML parser when it is available

This commit is contained in:
Aaron Patterson 2011-01-21 17:53:28 -08:00
parent 3d6e223b84
commit 59f3218463
3 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
begin
require 'psych'
rescue LoadError
end
require 'yaml'
require 'set'
require 'active_support/benchmarkable'

View File

@ -1,4 +1,10 @@
require 'erb'
begin
require 'psych'
rescue LoadError
end
require 'yaml'
require 'csv'
require 'zlib'

View File

@ -1,4 +1,10 @@
require 'erb'
begin
require 'psych'
rescue LoadError
end
require 'yaml'
require 'optparse'
require 'rbconfig'