summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Davis <ryand@zenspider.com>2009-06-23 14:30:35 -0800
committerRyan Davis <ryand@zenspider.com>2009-06-23 14:30:35 -0800
commit5d53f50ee929afcaf3b35bcd77639e1e2d282da4 (patch)
treea3097f89e82563015404bd53190ccf2405c5ba3d
parent1813cdcedbfbcac3dae62a4c9a5a588fa8948831 (diff)
downloadhoe-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.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/hoe.rb b/lib/hoe.rb
index 69689d4..1b29afd 100644
--- a/lib/hoe.rb
+++ b/lib/hoe.rb
@@ -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