Dne 10.8.2011 15:03, Chris Lalancette napsal(a):
On 08/10/11 - 10:02:41AM, Lukas Zapletal wrote:
> On 08/08/2011 04:37 PM, Ohad Levy wrote:
>> 3) Unstitch bundler from the rails3 app
> According to the Rails 3 Way book the only thing is to remove Gemfile*
> files and that's it.
>
> Unfortunately Rails 3 then starts screaming about unknown constants
> (unrequired files). It can take some time to fix it and can be difficult
> for developers to keep requires up-to-date (since they are using Bundler).
I'll admit I haven't really looked in any detail, but my thought about how
this would look is something like:
if use_bundler
Bundler.require(:default, Rails.env)
else
require 'foo'
require 'bar'
require 'baz'
...
end
But maybe that is too simplistic.
What about something like "fake-bundler" which would implement the
Bundler DSL to allow execution of the Gemfile, but it would just require
the gems? I mean the "fake-bundler" does not exist, but it should not be
that hard to write it IMO :)
Vit