Trying to preload psych only on Ruby 1.9.2.

This commit is contained in:
Akinori MUSHA 2013-03-15 12:29:54 +09:00
parent 631608f82d
commit 4845b0de94

View file

@ -1,8 +1,5 @@
require 'http/cookie_jar'
begin
require 'psych'
rescue LoadError
end
require 'psych' if !defined(YAML) && RUBY_VERSION == "1.9.2"
require 'yaml'
# YAMLSaver saves and loads cookies in the YAML format.