[Rails-core] Re: Make rake gems:build respect Rails.env

2009-01-26 Thread Mislav Marohnić
+1 for this; I was very excited when rake gems came, but now I find myself never using it because of these problems. For instance, when I download an app I want to set it up -- can't do rake db:schema:load because of missing dependency and I can't do rake gems:install because of missing database s

[Rails-core] Re: Make rake gems:build respect Rails.env

2009-01-26 Thread Rob Sanheim
On Sun, Jan 25, 2009 at 5:39 PM, Chad Woolley wrote: > > On Sun, Jan 25, 2009 at 9:08 AM, Josh Susser wrote: >> >> This is a good improvement, but I dislike that building gems loads the >> environment at all. If something in your environment file uses a >> class defined in a gem, you get a circ

[Rails-core] Re: Make rake gems:build respect Rails.env

2009-01-25 Thread Chad Woolley
On Sun, Jan 25, 2009 at 9:08 AM, Josh Susser wrote: > > This is a good improvement, but I dislike that building gems loads the > environment at all. If something in your environment file uses a > class defined in a gem, you get a circular dependency where you need > the gem you're trying to buil

[Rails-core] Re: Make rake gems:build respect Rails.env

2009-01-25 Thread Ken Collins
I recently encountered this circular dependency but I'm not a fan of by passing the environment and more importantly the preinitializer which my app makes heavy use of. The only problem I ran into was the Rails::Initializer#prepare_dispatcher method that caused my ApplicationController an

[Rails-core] Re: Make rake gems:build respect Rails.env

2009-01-25 Thread Josh Susser
This is a good improvement, but I dislike that building gems loads the environment at all. If something in your environment file uses a class defined in a gem, you get a circular dependency where you need the gem you're trying to build in order to build gems at all. Seems like the only w

[Rails-core] Re: Make rake gems:build respect Rails.env

2009-01-23 Thread Carlos Henrique Palhares
+1 On Fri, Jan 23, 2009 at 7:17 PM, Mark Van Holstyn wrote: > > If gems are configured in config/environments/test.rb and "rake > gems:build" is run in the production environment, the gems configured > for the test environment are built. This forces the production machine > to have the necessary