This project is archived and is in readonly mode.
config.gem causes error in some gems
-
Matt Jones
I'd recommend you take a look at ticket #2682, which may be helpful.
Also note that the 3-0-unstable branch isn't under active development (last commit February 2009) - edge is now on master, but given the fairly radical restructuring going on, might not be the best to run on.
-
Felipe Rodrigues
I'm not using 3-0-unstable, I'm using the master branch. Well, I know it is not the most stable phase of edge, but I have some reasons to use that. One of them is contributing to rails, helping to identify points to make it more stable.
Btw, thanks for pointing this ticket out, but I'm not sure it is the same problem, since in my case, there is no missing dependency. If I take config.gem out of my environments files, then rspec runs fine.
Also, I just applied the patch attached to the indicated ticket and nothing changed.
-
Matt Jones
How are rspec and rspec_rails installed? My guess would be they're in vendor/plugins, which means you don't need config.gem. Also, are those gems installed on your system?
Sorry to be pedantic, but the symptoms here don't make a lot of sense.
-
Felipe Rodrigues
Hi Matt,
rspec and rspec_rails are installed. The problem is with Rails 3.0.pre initialization. It try to load the gems before load the gems paths. It will happen to any gem you try to load with config.gem().
I patched it in my local version, but didn't submited because it is under change and because it didn't worked with cucumber.
I tried to contact Yehuda + Carl, since this is their code to show my patch but never got an answer (they must be pretty busy out there).
So my suggestion is to move it to 3.0 Milestone and wait until they finish the initialization part. I'd like to contribute more, but don't know where go to discuss that.
-
Felipe Rodrigues
I should also say that there are no tests covering this issue right now and I could not figure out how to test the hard it. It will probably requires fake gems with and without runtime dependencies. If anyone can help me with this I could contribute on that. =)
-
Michael Koziarski
- Assigned user set to Matt Jones
-
Rizwan Reza
- Tag changed from 3.0, autoload, bug, dependencies, gems to 3.0, autoload, bug, bugmash, dependencies, gems
I don't think this is applicable anymore, since Rails 3 now uses Bundler.
-
Rizwan Reza
- State changed from new to invalid