I'm getting this error message whenever I tried to start Rails server after installing Stripe gem.
rails s /home/alex/.rvm/gems/ruby-1.9.3-p551@rails323/gems/stripe-2.0.1/lib/stripe.rb:23:in `require': /home/alex/.rvm/gems/ruby-1.9.3-p551@rails323/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/ruby-1.9.3-p551@rails323/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/ruby-1.9.3-p551@rails323/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/ruby-1.9.3-p551@rails323/gems/stripe-2.0.1/lib/stripe/errors.rb:20: Can't assign to nil /home/alex/.rvm/gems/ruby-1.9.3-p551@rails323/gems/stripe-2.0.1/lib/stripe/errors.rb:39: class definition in method body /home/alex/.rvm/gems/ruby-1.9.3-p551@rails323/gems/stripe-2.0.1/lib/stripe/errors.rb:45: class definition in method body /home/alex/.rvm/gems/ruby-1.9.3-p551@rails323/gems/stripe-2.0.1/lib/stripe/errors.rb:52: class definition in method body /home/alex/.rvm/gems/ruby-1.9.3-p551@rails323/gems/stripe-2.0.1/lib/stripe/errors.rb:57: class definition in method body /home/alex/.rvm/gems/ruby-1.9.3-p551@rails323/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...
I think that is a problem with my ruby version which is 1.9.3, as far as I know Stripe doesn't support ruby version 1.9, but I haven't find anything concrete about this. Do you guys know if is possible to have Stripe working with ruby 1.9?
Thank you!
Aucun commentaire:
Enregistrer un commentaire