2017-02-27 7 views
0

Stripe gemのインストール後にRailsサーバーを起動しようとすると、このエラーメッセージが表示されます。Stripe Gemの問題

$ rails s 
/home/alex/.rvm/gems/[email protected]/gems/stripe-2.0.1/lib/stripe.rb:23:in `require': /home/alex/.rvm/gems/[email protected]/gems/stripe-2.0.1/lib/stripe/errors.rb:20: syntax error, unexpected tLABEL (SyntaxError) 
...alize(message=nil, http_status: nil, http_body: nil, json_bo... 
...        ^
/home/alex/.rvm/gems/[email protected]/gems/stripe-2.0.1/lib/stripe/errors.rb:20: Can't assign to nil 
...(message=nil, http_status: nil, http_body: nil, json_body: n... 
...        ^
/home/alex/.rvm/gems/[email protected]/gems/stripe-2.0.1/lib/stripe/errors.rb:20: Can't assign to nil 
...tp_status: nil, http_body: nil, json_body: nil, 
...        ^
/home/alex/.rvm/gems/[email protected]/gems/stripe-2.0.1/lib/stripe/errors.rb:20: Can't assign to nil 
/home/alex/.rvm/gems/[email protected]/gems/stripe-2.0.1/lib/stripe/errors.rb:39: class definition in method body 
/home/alex/.rvm/gems/[email protected]/gems/stripe-2.0.1/lib/stripe/errors.rb:45: class definition in method body 
/home/alex/.rvm/gems/[email protected]/gems/stripe-2.0.1/lib/stripe/errors.rb:52: class definition in method body 
/home/alex/.rvm/gems/[email protected]/gems/stripe-2.0.1/lib/stripe/errors.rb:57: class definition in method body 
/home/alex/.rvm/gems/[email protected]/gems/stripe-2.0.1/lib/stripe/errors.rb:60: syntax error, unexpected tLABEL 
...sage, param, code, http_status: nil, http_body: nil, json_bo... 

私はそれは私の知る限りストライプはRubyのバージョン1.9をサポートしていませんが、私はこのことについて、具体的な何かを見つけることがあります知っているように、1.9.3である私のルビーバージョンに問題があると思います。 Stripeがruby 1.9で作業できるかどうか知っていますか?

ありがとうございました!

+6

Stripe GithubページでRuby 2.0以上が必要です。私は彼らがただ楽しいためにそこに入れているとは思わない。あなたのRuby環境をアップグレードする時間のように聞こえます。 – Casper

+0

RubyGemsのページ(https://rubygems.org/gems/stripe)によれば、それは> = 1.9.3だが... – ardavis

+0

本当に2 + https://github.com/が必要な人はおそらくこれを更新すべきだストライプ/ストライプルビー/ blob/master/stripe.gemspec#L8 – ardavis

答えて

1

サーバーは、ストライプバージョン< = 1.58.0で起動する必要があります。いくつかの機能が不足しているかもしれませんが、そのバージョンとRuby 1.9.3で動作するサーバーを手に入れることができました。

関連する問題