This project is archived and is in readonly mode.
Generators don't load gems from environment.rb
-
Matt Jones
- Tag changed from 2.2-stable, bug, gems, generators to 2-3-stable, 2.2-stable, bug, gems, generators
- Assigned user changed from Matt Jones to Pratik
Attached is a partial solution to this which at least allows generators in frozen gems to be found and used. It adds the VendorGemSourceIndex stuff and searches the specs correctly. The net effect is that generators inside frozen gems will always have priority.
Again, not complete (it still doesn't handle a specification of a different system-repository gem) but at least a start.
No tests, as I couldn't figure out an orderly way to test the interaction between a frozen gem and a system-installed gem. That, and there were exactly 0 tests for the existing "load generators from gems" functionality. Suggestions are welcome.
Patch is against 2-3-stable.
-
José Valim
- Assigned user changed from Pratik to José Valim
Matt, on Rails 3 we are only going to load generators from loaded gems. We hope to offer a more robust solution together with Carlhuda bundler.
