public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Search Repo:
rick (author)
Mon May 05 23:55:10 -0700 2008
commit  9c2657aa96d3a8f19602ded748e558b0531c1132
tree    09c4f9eb8cae7d8e1dd1971e81672b9f88d28b51
parent  37599d16f2374179ebf001aeb79ff121e3d67519 parent  e792d4ab70448f79142fdf492390682ff5ea6398
...
78
79
80
81
 
 
82
83
84
...
78
79
80
 
81
82
83
84
85
0
@@ -78,7 +78,8 @@ module Rails
0
     # a <tt>rails/init.rb</tt> file.
0
     class GemLocator < Locator
0
       def plugins
0
- specs = Gem.loaded_specs.values.select do |spec|
1
+ specs = initializer.configuration.gems.map(&:specification)
0
+ specs + Gem.loaded_specs.values.select do |spec|
0
           spec.loaded_from && # prune stubs
0
             File.exist?(File.join(spec.full_gem_path, "rails", "init.rb"))
0
         end

Comments

  • drnic Mon May 12 03:04:39 -0700 2008 at railties/lib/rails/plugin/locator.rb L82

    I think this commit is causing the following error – http://pastie.caboo.se/pastes/195002 (pastied by mattly, but it matches what I was seeing in production)

  • mattly Mon May 12 10:28:03 -0700 2008

    and i had worked around that error by installing gems in my system repo instead of vendor/gems

  • chuyeow Mon May 12 11:07:57 -0700 2008

    Yup I can verify that this is happening for me too (see http://rails.lighthouseapp.com/projects/8994/tickets/122). Can a Rails committer re-open that ticket and possibly consider reverting this commit please? Thanks!

  • chuyeow Mon May 12 11:09:07 -0700 2008

    Oh yeah and my workaround was to stop using config.gem – I simply reverted to the bit of code I had to load gems in the vendor/gems directory that I was using prior to switching to config.gem.

  • mattly Tue May 13 00:57:54 -0700 2008

    to be fair—it actually is using my gems in vendor/gems, BUT it requires that they’re also installed in the system repo. I know this because i have a unpack of a gem that breaks on edge rails unpacked into vendor/gems and it actually uses that. but it complains if i don’t have it installed normally too.