James,

I updated from http://svn.rails-engines.org/engines/trunk/ but that didn't
seem to help.

Got a

mac-san:~/dev/russell_store wiseleyb$ rake db:migrate --trace
> (in /Users/wiseleyb/Dev/russell_store)
> ** Invoke db:migrate (first_time)
> ** Invoke environment (first_time)
> ** Execute environment
> rake aborted!
> uninitialized constant Rails::Plugin
> /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:263:in
> `load_missing_constant'
> /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:452:in
> `const_missing'
> *
> /Users/wiseleyb/Dev/russell_store/vendor/plugins/engines/lib/engines/plugin.rb:15
> *
> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require'
> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'


I grabbed this http://svn.rails-engines.org/plugins/engines/ and renamed
engines/tasks/engines.rake to engines.rake.old and migrations ran.

Thanks for trying though!  Let me know if you want me to try anything
locally to help debug this.

-ben


On Dec 22, 2007 2:30 PM, James Adam <[EMAIL PROTECTED]> wrote:

> I've committed a fix to trunk - let us know how that fares.
>
> James
>
> On Dec 22, 2007 5:50 PM, ben wiseley <[EMAIL PROTECTED]> wrote:
> > I'm running/developing some sites on Rails 2.0.2 and some on 1.2.6.  I
> > updated to 2.0.2 last night and, while the 1.2.6 sites (using engines)
> still
> > seem to run perfectly (after replacing 'require_gem' with 'gem' - which
> > seems wrong), I'm getting this:
> >
> > > mac-san:~/dev/russell_store wiseleyb$ rake db:migrate --trace
> > > (in /Users/wiseleyb/Dev/russell_store)
> > > rake aborted!
> > > undefined method `last' for {}:Hash
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1654:in
> > `resolve_args'
> > >
> >
> /Users/wiseleyb/Dev/russell_store/config/../vendor/plugins/engines/tasks/engines.rake:9:in
> > `redefine_task'
> > >
> >
> /Users/wiseleyb/Dev/russell_store/config/../vendor/plugins/engines/tasks/engines.rake:24:in
> > `redefine_task'
> > >
> >
> /Users/wiseleyb/Dev/russell_store/config/../vendor/plugins/engines/tasks/engines.rake:63
> > > /opt/local/lib/ruby/gems/1.8/gems/rake- 0.8.0/lib/rake.rb:1184:in
> `each'
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1184:in
> `send'
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1184:in
> `each'
> > >
> >
> /Users/wiseleyb/Dev/russell_store/config/../vendor/plugins/engines/tasks/engines.rake:61
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1738:in
> > `in_namespace'
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:822:in
> > `namespace'
> > >
> >
> /Users/wiseleyb/Dev/russell_store/config/../vendor/plugins/engines/tasks/engines.rake:58
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1738:in
> > `in_namespace'
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:822:in
> > `namespace'
> > >
> >
> /Users/wiseleyb/Dev/russell_store/config/../vendor/plugins/engines/tasks/engines.rake:54
> > > /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/tasks/rails.rb:8:in
> > `load'
> > > /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/tasks/rails.rb:8
> > > /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/tasks/rails.rb:8:in
> > `each'
> > > /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/tasks/rails.rb:8
> > > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> > `gem_original_require'
> > > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> > `require'
> > > /Users/wiseleyb/Dev/russell_store/rakefile:10
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:2150:in
> `load'
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:2150:in
> > `raw_load_rakefile'
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1898:in
> > `load_rakefile'
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1949:in
> > `standard_exception_handling'
> > > /opt/local/lib/ruby/gems/1.8/gems/rake- 0.8.0/lib/rake.rb:1897:in
> > `load_rakefile'
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1881:in `run'
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1949:in
> > `standard_exception_handling'
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1879:in `run'
> > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.0/bin/rake:31
> > > /opt/local/bin/rake:19:in `load'
> > > /opt/local/bin/rake:19
> >
> >
> > I did a script/generate plugin_migration - and that worked fine.  But I
> get
> > the error above when I do rake db:migrate.  rake db:migrate works fine
> on
> > the 2.0.2 sites (that aren't using engines yet).
> >
> > Any ideas what would be causing this?  I grabbed the latest engines
> version
> > from
> > > script/plugin install http://svn. rails-engines.org/plugins/ engines
> >
> > I'm running this project on  RAILS_GEM_VERSION = '1.2.6'
> >
> > Here is the relevant gem list:
> > > rails (2.0.2, 1.2.6, 1.2.5.7919, 1.2.3, 1.2.1, 1.1.6)
> > > rake (0.8.0, 0.7.3, 0.7.1)
> > > rubygems-update (1.0.1)
> > > actionmailer (2.0.2, 1.3.6, 1.3.5.7919, 1.3.3, 1.3.1, 1.2.5)
> > > actionpack (2.0.2, 1.13.6, 1.13.5.7919, 1.13.5 , 1.13.3, 1.13.1,
> 1.12.5)
> > > actionwebservice (1.2.6, 1.2.5, 1.2.3, 1.2.1, 1.1.6)
> > > activerecord (2.0.2, 1.15.6, 1.15.5.7919, 1.15.5, 1.15.3, 1.15.1,
> 1.14.4)
> > > activeresource (2.0.2, 0.9.0.7919)
> > > activesupport (2.0.2, 1.4.4.7919, 1.4.4, 1.4.2, 1.4.0, 1.3.1)
> > >
> >
> >  On clue might be that when I first did a "script/server" on this
> project
> > after updating it failed on "require_gem" - which is deprecated in Rails
> > 2.0.2 but, given RAILS_GEM_VERSION = '1.2.6' - shouldn't that still be
> > kosher?  It seems like some things are running on Rails 2.0.2 instead of
> the
> > version specified.
> >
> > Sorry for the long email - I've kind of hit a wall on this and it seems
> > engines related.
> >
> > -ben
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Engine-Developers mailing list
> > [email protected]
> >
> http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org
> >
> >
>
>
>
> --
> * J *
>  ~
> _______________________________________________
> Engine-Developers mailing list
> [email protected]
>
> http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org
>
_______________________________________________
Engine-Developers mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org

Reply via email to