Sha256: 2c0a8e42e010691622b84a6289b7843faeb4b1ea2c85a95236454a4593a25f49
Contents?: true
Size: 530 Bytes
Versions: 1
Compression:
Stored size: 530 Bytes
Contents
class RubygemsAnalyzer < DepAnalyzer def installed require 'rubygems' ENV['GEM_PATH'] = `gem env home` Gem.clear_paths # don't cache so it updates every delete puts "scanning installed rubygems" Gem.source_index.gems.values.map { |gem| gem.name }.sort end def outdated # don't cache so it updates every delete puts "scanning outdated rubygems" Gem.source_index.outdated.sort end def deps port Gem.source_index.find_name(port).first.dependencies.map { |dep| dep.name } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
graph-1.0.0 | lib/rubygems_analyzer.rb |