簡體   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