hmcgowan/roo — Issue #12: google.rb:7:in `<top (required)>': Google is not a class (TypeError)
Author: SuryaTripathi
Created: 2012-02-05 10:34:38+00:00
State: open

Here is the log -

$HOME/.rvm/gems/ruby-1.9.2-p290/gems/roo-1.10.1/lib/roo/google.rb:7:in `': Google is not a class (TypeError)
from $HOME/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:239:in `require'
from $HOME/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:239:in `block in require'
from $HOME/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from $HOME/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:596:in `new_constants_in'
from $HOME/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:225:in `load_dependency'
from $HOME/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:239:in `require'
from $HOME/.rvm/gems/ruby-1.9.2-p290/gems/roo-1.10.1/lib/roo.rb:74:in `'
from $HOME/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
from $HOME/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from $HOME/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each'
from $HOME/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `block in require'
from $HOME/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each'
from $HOME/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require'
from $HOME/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler.rb:122:in `require'
from $HOME/Desktop/apps/solar-flair/config/application.rb:7:in `'
from $HOME/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.4/lib/rails/commands.rb:21:in `require'
from $HOME/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.4/lib/rails/commands.rb:21:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'

I think this issue has something to do with google_calendar gem, for more information see my Gemfile-
source 'http://rubygems.org'
gem 'rails', '3.0.4'
gem 'mysql2', '< 0.3'
gem 'RubyInline'
gem 'barby'
gem 'png'
gem 'rmagick'
gem 'paperclip'
gem 'devise', '1.3.4'
gem 'aws-s3'
gem 'google_calendar'
gem 'roo'
When I comment `#gem 'google_calendar'` line, it works fine. Since I need this gem in my project, another way I fix this issue by changing line 7 of `/.rvm/gems/ruby-1.9.2-p290/gems/roo-1.10.1/lib/roo/google.rb` file to `class GoogleSheet < GenericSpreadsheet` I know it's not a good way to manipulate gems, but the idea works. Any other clean way to fix it??