繁体   English   中英

带有wash_out的Rails服务器中的语法错误

[英]Syntax error in Rails server with wash_out

我正在尝试使用Ruby on Rails 3构建SOAP服务。经过大量研究后,我发现了Wash_out

现在,当我将gem添加到我的gemfile时,如下所示:

gem 'wash_out'

我的rails应用程序不再启动了,我的意思是,当我输入'rails s'时,它给了我一个flush_out错误。

/usr/lib/ruby/gems/1.8/gems/wash_out-0.6.1/lib/wash_out.rb:3:in `require':     /usr/lib/ruby/gems/1.8/gems/wash_out-0.6.1/lib/wash_out/dispatcher.rb:19: syntax error, unexpected '\n' (SyntaxError)
from /usr/lib/ruby/gems/1.8/gems/wash_out-0.6.1/lib/wash_out.rb:3
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:in `require'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:in `require'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.4/lib/bundler/runtime.rb:70:in `each'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.4/lib/bundler/runtime.rb:70:in `require'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.4/lib/bundler/runtime.rb:59:in `each'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.4/lib/bundler/runtime.rb:59:in `require'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.3.4/lib/bundler.rb:132:in `require'
from /home/TheBcd/Escritorio/ws/config/application.rb:7
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/commands.rb:53:in `require'
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/commands.rb:53
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.13/lib/rails/commands.rb:50
from script/rails:6:in `require'
from script/rails:6

我非常感谢你的帮助,非常感谢。

wash_out 需要Ruby 1.9 你的回溯显示了Ruby 1.8。

从您的跟踪日志中我假设您正在使用ruby 1.8并且对gem的github的简短读数显示:

Rails>仅限3.0。 MRI 1.9,2.0,JRuby( - 1.9)。

从0.5.3开始,Ruby 1.8不受官方支持。 我们将接受进一步的兼容性请求,但不会对即将发布的版本进行测试。

所以,如果你想使用1.8支持的gem,那么将版本锁定在0.5.3任何东西都是明智的。 尝试将你的Gemfile中的宝石版本设置为该版本下的某些东西,它可能会起作用,但就像他们说的那样,它不能保证。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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