Sha256: 4c8fa7a06376e6d14a2cc22554b22df3fd6e1a5a9cda2a9c30631d38c42e4bc3
Contents?: true
Size: 511 Bytes
Versions: 6
Compression:
Stored size: 511 Bytes
Contents
#!/usr/bin/env ruby -ws $o ||= false $d ||= false type = ARGV.shift unless type then require "rubygems" hits = Gem.find_files("*_analyzer.rb").map { |s| File.basename s, "_analyzer.rb" } - %w(dep) abort "#{File.basename $0}: Need a type: #{hits.join(", ")}" end require "#{type}_analyzer" name = "#{type.capitalize}Analyzer" klass = Object.const_get name analyzer = klass.new graph = analyzer.run graph.save name, $d ? nil : "png" system "open #{name}.#{$d ? "dot" : "png"}" if $o
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
graph-2.4.1 | bin/graph |
graph-2.4.0 | bin/graph |
graph-2.3.1 | bin/graph |
graph-2.3.0 | bin/graph |
graph-2.2.0 | bin/graph |
graph-2.1.0 | bin/graph |