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で作業できるかどうか知っていますか?
ありがとうございました!
Stripe GithubページでRuby 2.0以上が必要です。私は彼らがただ楽しいためにそこに入れているとは思わない。あなたのRuby環境をアップグレードする時間のように聞こえます。 – Casper
RubyGemsのページ(https://rubygems.org/gems/stripe)によれば、それは> = 1.9.3だが... – ardavis
本当に2 + https://github.com/が必要な人はおそらくこれを更新すべきだストライプ/ストライプルビー/ blob/master/stripe.gemspec#L8 – ardavis