lib/rundock/runner.rb in rundock-0.4.1 vs lib/rundock/runner.rb in rundock-0.4.2

- 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(1).gsub(/-/, '/')}" + libdir = "#{Gem::Specification.find_by_name(g).full_gem_path}/lib/#{Regexp.last_match(1).tr('-', '/')}" Dir.glob("#{libdir}/*.rb").each do |f| require f.gsub(/.rb$/, '') end end end