简体   繁体   中英

syck : require ssl : different Ruby versions?

I'm trying to run a rake task for the railroady gem https://github.com/preston/railroady#readme

In the error message below I think it is referring to Ruby 1.9.1 for syck while I am using Ruby 1.9.3 (see below). Is this normal?

The process is falling over on the following:

/Users/sean/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/syck.rb:135:in `load': syntax error on line 62, col 4: `    require_ssl:false ' (ArgumentError)
from /Users/sean/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/syck.rb:135:in `load'

The relevant code from syck.rb is:

124     # Load a document from the current _io_ stream.
125     #
126     #   File.open( 'animals.yaml' ) { |yf| YAML::load( yf ) }
127     #      #=> ['badger', 'elephant', 'tiger']
128     #
129     # Can also load from a string.
130     #
131     #   YAML.load( "--- :locked" )
132     #      #=> :locked
133     #
134     def self.load( io )
135         parser.load( io )
136     end

From the error message:

syntax error on line 62, col 4: `    require_ssl:false '

I suspect this is an error in one of your Yaml config files, not in Syck itself – ie it's an error reported by Syck, not an error in Syck.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM