我正在尝试为铁路gem https://github.com/preston/railroady#readme运行一个rake任务。
在下面的错误消息中,我认为它指的是Ruby 1.9.1 for syck,而我使用的是Ruby 1.9.3 (见下文)。这是正常的吗?
这个过程在以下几个方面出现了问题:
/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'来自syck.rb的相关代码如下:
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发布于 2012-10-29 03:02:35
从错误消息中:
syntax error on line 62, col 4: ` require_ssl:false '我怀疑这是Yaml配置文件中的一个错误,而不是Syck本身的错误-也就是说,这是Syck报告的错误,而不是Syck中的错误。
https://stackoverflow.com/questions/13110748
复制相似问题