[英]syck : require ssl : different Ruby versions?
我正在嘗試為鐵路寶石https://github.com/preston/railroady#readme運行rake任務
在下面的錯誤消息中,當我使用Ruby 1.9.3時,我認為它是針對syck的Ruby 1.9.1(請參見下文)。 這正常嗎?
該過程取決於以下方面:
/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
從錯誤消息:
syntax error on line 62, col 4: ` require_ssl:false '
我懷疑這是在你的YAML配置文件中的一個錯誤,而不是在SYCK本身-即它是由 SYCK報告了一個錯誤,而不是在 SYCK錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.