This project is archived and is in readonly mode.
Vendor'd rails gems can't be "depended"
-
Steven Parkes
Well, the principle may be right, but the patch is a little light. For other functions (e.g., rake spec), gem is now going to want spec.loaded_from to be something other than nil for the stub specs
Setting it to "", i.e.,
stubs.each do |stub| Gem.loaded_specs[stub] = Gem::Specification.new do |s| s.name = stub s.version = Rails::VERSION::STRING s.loaded_from = "" end Gem.source_index.add_spec(Gem.loaded_specs[stub]) endis certainly not right, but I'm not sure what is. Gem wants the gem to be in a repository and vendor/rails doesn't have gem repository layout.
In any case, its enough to get gem to be able to continue.
-
Mislav
I believe this is fixed with latest gem dependencies updates, can you check?
-
Mislav
Yes, #1128 Fix config.gem bugs and add more tests definitely fixes this issue for us.
-
Steven Parkes
Yup; the latest #1128 Fix config.gem bugs and add more tests patch works for me.
-
Pratik
- State changed from new to duplicate