Sha256: 62fb80d1a3166225e66bd188429747fe598fbdcc41bccf48df028dd3b7099f1a

Contents?: true

Size: 426 Bytes

Versions: 53

Compression:

Stored size: 426 Bytes

Contents

require_relative '../graph.rb'
require 'organic_hash'

@oh = OrganicHash.new

def h(s)
  @oh.hash(s)
end


def debug
  g = Graph.new
  File.readlines('debug-output.log').map do |l| 
    type, left, right = l.split(/\W+/)
    if type=="node"
      g.add_node(h(left))
    elsif type=="edge"
      g.add_edge(h(left), h(right), {})
    end
  end
  g.output(:svg => 'test.svg', :use => 'sfdp')
end

if __FILE__ == $0
  debug
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
aws_security_viz-0.1.7.pre.alpha.pre.145 lib/debug/parse_log.rb
aws_security_viz-0.1.7.pre.alpha.pre.138 lib/debug/parse_log.rb
aws_security_viz-0.1.7.pre.alpha.pre.136 lib/debug/parse_log.rb
aws_security_viz-0.1.6.pre.alpha.pre.134 lib/debug/parse_log.rb
aws_security_viz-0.1.6 lib/debug/parse_log.rb
aws_security_viz-0.1.5.pre.alpha.pre.133 lib/debug/parse_log.rb
aws_security_viz-0.1.5.pre.alpha.pre.131 lib/debug/parse_log.rb
aws_security_viz-0.1.5.pre.alpha.pre.130 lib/debug/parse_log.rb
aws_security_viz-0.1.5.pre.alpha.pre.112 lib/debug/parse_log.rb
aws_security_viz-0.1.5.pre.alpha.pre.111 lib/debug/parse_log.rb
aws_security_viz-0.1.5.pre.alpha.pre.110 lib/debug/parse_log.rb
aws_security_viz-0.1.5.pre.alpha.pre.109 lib/debug/parse_log.rb
aws_security_viz-0.1.5.pre.alpha.pre.108 lib/debug/parse_log.rb
aws_security_viz-0.1.5.pre.alpha.pre.107 lib/debug/parse_log.rb
aws_security_viz-0.1.5.pre.alpha.pre.106 lib/debug/parse_log.rb
aws_security_viz-0.1.5.pre.alpha.pre.103 lib/debug/parse_log.rb
aws_security_viz-0.1.5.pre.alpha.pre.102 lib/debug/parse_log.rb
aws_security_viz-0.1.5.pre.alpha.pre.101 lib/debug/parse_log.rb
aws_security_viz-0.1.5.pre.alpha.pre.100 lib/debug/parse_log.rb
aws_security_viz-0.1.5.pre.alpha.pre.99 lib/debug/parse_log.rb