lib/rundock/runner.rb in rundock-0.3.0 vs lib/rundock/runner.rb in rundock-0.4.0

- old
+ new

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