Closed shivakumaarmgs closed 9 years ago
thanks for the report @shivakumaarmgs. I am having a look. Can you check if it works with the previous version?
Switched to 0.0.8
but getting the same error.
/home/shivakumaarmgs/.rvm/gems/ruby-2.1.1/gems/gcm-0.0.8/lib/gcm.rb:5:in `<top (required)>': GCM is not a class (TypeError)
from /home/shivakumaarmgs/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler/runtime.rb:76:in `require'
from /home/shivakumaarmgs/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /home/shivakumaarmgs/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler/runtime.rb:72:in `each'
from /home/shivakumaarmgs/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler/runtime.rb:72:in `block in require'
from /home/shivakumaarmgs/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler/runtime.rb:61:in `each'
from /home/shivakumaarmgs/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler/runtime.rb:61:in `require'
from /home/shivakumaarmgs/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.7.3/lib/bundler.rb:133:in `require'
from /home/shivakumaarmgs/Rails/PCA/config/application.rb:15:in `<top (required)>'
from /home/shivakumaarmgs/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:146:in `require'
from /home/shivakumaarmgs/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:146:in `require_application_and_environment!'
from /home/shivakumaarmgs/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:68:in `console'
from /home/shivakumaarmgs/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /home/shivakumaarmgs/.rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
ok @shivakumaarmgs so what is in line 15 of your config/application.rb
?
In the line 15 of application.rb
, I have the following
Bundler.require(*Rails.groups)
and you just added gcm
to the Gemfile and did a bundle install
and then bundle exec rails c
? I tried this on an empty rails project and all is fine...
Yeah, Is its just me getting this error? I tried adding require 'gcm'
at the top of application.rb
, doesn't help though.
@shivakumaarmgs / @kashif I can't help but notice /home/shivakumaarmgs/.rvm/gems/ruby-2.1.1/gems/gcm-0.0.9/lib/gcm.rb
, I'd expect this to be read out of the vendors folder of your project instead of on the system (in this case through rvm)
faced this today .. workaround for me in your gemfile do this gem 'gcm', :require => false
include this line where you want to use it require 'gcm'
@rohandey I had assumed that they'd want to test GCM from console. Odds are you have some kind of incorrect GEM_PATH set for this.
@kaneda you are right .. something wrong .. not working now. Any solutions?
@rohandey @kaneda I am trying to replicate this locally without any luck...
@kashif are you installing this in rvm setup or without it?
@rohandey I use rbenv
...
@kashif / @rohandey are you using bundler? Odds are it's not using the vendor folder local to your project. To verify this set GEM_PATH=/path/to/your/project/vendor/...;$GEM_PATH
@shivakumaarmgs Facing exactly the same issue.
false alert. Conflict with pushmeup gem.
:relieved:
Even I was using Pushme up for APNS, I guess GCM would have had conflict with that. just now realized. closing this one.
@mckenn :+1: