lib/onering/plugins/reporter.rb in onering-client-0.0.33 vs lib/onering/plugins/reporter.rb in onering-client-0.0.34

- old
+ new

@@ -33,10 +33,10 @@ @path += DEFAULT_PLUGIN_PATH # add gem paths to the @path ([*@options[:plugin_gems]]+DEFAULT_PLUGIN_GEMNAMES).compact.each do |g| begin - p = File.join(Gem::Specification.find_by_name(g).gem_dir, 'lib') + p = File.join(Util.gem_path(g), 'lib') @path << File.join(p, 'reporter') @facter_path << File.join(p, 'facter') rescue Gem::LoadError next end \ No newline at end of file