mirror of https://github.com/rails/rails
load and prefer psych as the YAML parser when it is available
This commit is contained in:
parent
3d6e223b84
commit
59f3218463
|
@ -1,3 +1,8 @@
|
|||
begin
|
||||
require 'psych'
|
||||
rescue LoadError
|
||||
end
|
||||
|
||||
require 'yaml'
|
||||
require 'set'
|
||||
require 'active_support/benchmarkable'
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
require 'erb'
|
||||
|
||||
begin
|
||||
require 'psych'
|
||||
rescue LoadError
|
||||
end
|
||||
|
||||
require 'yaml'
|
||||
require 'csv'
|
||||
require 'zlib'
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
require 'erb'
|
||||
|
||||
begin
|
||||
require 'psych'
|
||||
rescue LoadError
|
||||
end
|
||||
|
||||
require 'yaml'
|
||||
require 'optparse'
|
||||
require 'rbconfig'
|
||||
|
|
Loading…
Reference in New Issue