Re: Issue 47 in activemessaging: Don't support any other rails or dependencie version

0 views
Skip to first unread message

codesite...@google.com

unread,
Mar 29, 2010, 6:35:27 PM3/29/10
to activemessagin...@googlegroups.com
Updates:
Status: Accepted

Comment #2 on issue 47 by kookster: Don't support any other rails or
dependencie version
http://code.google.com/p/activemessaging/issues/detail?id=47

Not enough info for me to reproduce this (stack trace?)
I am working on a new version of the gem now, will retest.
I have lots of versions of rails locally, so if I get this or similar
error, I will fix.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Jul 15, 2010, 5:43:58 PM7/15/10
to activemessagin...@googlegroups.com

Comment #3 on issue 47 by sandrods: Don't support any other rails or
dependencie version
http://code.google.com/p/activemessaging/issues/detail?id=47

Similar problem here, activemessaging gem, 0.7.1, SnowLeopard.

My app uses Rails 2.3.2, but I have others versions installed.

DEPRECATION WARNING: require "activesupport" is deprecated and will be
removed in Rails 3. Use require "active_support" instead.. (called from
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/activesupport.rb:2)
...
poller: process with pid 74960 started.
Missing the Rails 2.3.2 gem. Please `gem install -v=2.3.2 rails`, update
your RAILS_GEM_VERSION setting in config/environment.rb for the Rails
version you do have installed, or comment out RAILS_GEM_VERSION to use the
latest version installed.

codesite...@google.com

unread,
Jul 15, 2010, 5:48:05 PM7/15/10
to activemessagin...@googlegroups.com

Comment #4 on issue 47 by kookster: Don't support any other rails or
dependencie version
http://code.google.com/p/activemessaging/issues/detail?id=47

sandrods - this looks like a problem withe your path - the poller calls
your config/environment.rb, it has no dependency of its own on a particular
rails version. You may need to specify a different instance of ruby.

codesite...@google.com

unread,
Jul 15, 2010, 6:05:33 PM7/15/10
to activemessagin...@googlegroups.com

Comment #5 on issue 47 by sandrods: Don't support any other rails or
dependencie version
http://code.google.com/p/activemessaging/issues/detail?id=47

I think the problem lies in the script/poller file:

----------

ENV['APP_ROOT'] ||=
File.expand_path(File.join(File.dirname(__FILE__), '..'))
APP_ROOT = ENV['APP_ROOT']
script_file = File.join(APP_ROOT, 'lib', 'poller.rb')
tmp_dir = File.join(APP_ROOT, 'tmp')

require 'rubygems'
require 'daemons'

require 'activesupport'
require 'activemessaging'

options = {
:app_name => "poller",
:dir_mode => :normal,
:dir => tmp_dir,
:multiple => true,
:ontop => false,
:mode => :load,
:backtrace => true,
:monitor => true,
:log_output => true
}

Daemons.run(script_file,options)

----------


-> require 'activesupport'
At this point, my environment hasn't been loaded yet...

I've changed it to:

gem 'activesupport', '2.3.2'
require 'activesupport'

And it worked fine

Reply all
Reply to author
Forward
0 new messages