Question

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
Was it helpful?

Solution

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 – i.e. it’s an error reported by Syck, not an error in Syck.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top