diff options
author | Ryan Davis <ryand@zenspider.com> | 2009-06-23 14:30:35 -0800 |
---|---|---|
committer | Ryan Davis <ryand@zenspider.com> | 2009-06-23 14:30:35 -0800 |
commit | 5d53f50ee929afcaf3b35bcd77639e1e2d282da4 (patch) | |
tree | a3097f89e82563015404bd53190ccf2405c5ba3d | |
parent | 1813cdcedbfbcac3dae62a4c9a5a588fa8948831 (diff) | |
download | hoe-5d53f50ee929afcaf3b35bcd77639e1e2d282da4.tar.gz |
- Fixed developer load order error in load_plugins.
[git-p4: depot-paths = "//src/hoe/dev/": change = 5160]
-rw-r--r-- | lib/hoe.rb | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -220,11 +220,13 @@ class Hoe # It is called at the end of hoe.rb def self.load_plugins - loaded = {} - found = Gem.find_files("hoe/*.rb") + loaded, found = {}, {} - :keep_doing_this while found.map { |plugin| - name = File.basename(plugin, '.rb').intern + Gem.find_files("hoe/*.rb").reverse.each do |path| + found[File.basename(path, ".rb").intern] = path + end + + :keep_doing_this while found.map { |name, plugin| next unless Hoe.plugins.include? name next if loaded[name] begin |