mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-04-02 10:15:53 +00:00
Trying to preload psych only on Ruby 1.9.2.
This commit is contained in:
parent
631608f82d
commit
4845b0de94
1 changed files with 1 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue