lib/rundock/runner.rb in rundock-0.2.3 vs lib/rundock/runner.rb in rundock-0.2.4

- old
+ new

@@ -68,10 +68,10 @@ gems.each do |g| RUNDOCK_PLUGINS.each do |plugin| next if g !~ /^(rundock-plugin-#{plugin})-/ next if Gem::Specification.find_by_path(g).nil? Logger.debug("Loading rundock plugin: #{g}") - libdir = "#{Gem::Specification.find_by_path(g).full_gem_path}/lib/rundock/plugin/#{Regexp.last_match(0)}" + libdir = "#{Gem::Specification.find_by_path(g).full_gem_path}/lib/rundock/plugin/#{Regexp.last_match(0).gsub(/-/, '/')}" Dir.glob("#{libdir}/*.rb").each do |f| require f.gsub(/.rb$/, '') end end end