kookster/activemessaging

Rails 3 compatibility

slillibri opened this issue · 1 comments

When I add this gem to my Gemfile, run bundle update, then run rails console I get the following error

Mio:~/source/pictur:$ rails console
DEPRECATION WARNING: RAILS_DEFAULT_LOGGER is deprecated. Please use ::Rails.logger. (called from /Users/scott/source/pictur/config/application.rb:7)
/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/deprecation.rb:33:in method_missing': undefined methoddebug' for nil:Rails::DeprecatedConstant (NoMethodError)
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activemessaging-0.7.1/lib/activemessaging/support.rb:2
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activemessaging-0.7.1/lib/activemessaging.rb:31:in require' from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activemessaging-0.7.1/lib/activemessaging.rb:31:inload_extensions'
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activemessaging-0.7.1/lib/activemessaging.rb:88:in load_activemessaging' from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activemessaging-0.7.1/lib/activemessaging.rb:117 from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:64:inrequire'
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:64:in require' from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:62:ineach'
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:62:in require' from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:51:ineach'
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:51:in require' from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler.rb:112:inrequire'
from /Users/scott/source/pictur/config/application.rb:7
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/commands.rb:21:in require' from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/commands.rb:21 from script/rails:6:inrequire'
from script/rails:6

The (as-yet-unreleased) version of activemessaging works with Rails 3. I don't know if it fixes the exact issue you're seeing above, but we couldn't start Rails when we installed activemessaging-0.8.2. We used the Rails 3 generators from @sgulics's fork and then made our own gem based on the unreleased code here.

@kookster, is there any chance of getting a Rails 3-compatible release out? Is there anything I can do to help?