pxgraphviz 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +4 -1
- data.tar.gz.sig +0 -0
- data/lib/pxgraphviz.rb +24 -21
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf27878fabf68e6ae26efefacf1f2815413cc952
|
4
|
+
data.tar.gz: c5d47853c7293edb325a00d8eb567d823985c04b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cb94120a61e0ba38848d09e80f06d8523de61b8435bb4ad1bf54f41fe0512d5d9da2f8e505d4cef5df9817bb17a33bdf212c81cb9d284193eed4d3f11b04c65
|
7
|
+
data.tar.gz: 661f1d94bcc76282f0fe22def550970555f8b03c1e9d606347fbb5c8ea74eba1febb3e0b6be76ec2ad963f2b36235a082d38ae9481681501ba5c37d21383c591
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1,4 @@
|
|
1
|
-
|
1
|
+
}��$��.q�
|
2
|
+
��F������)co�*�r��.F�~��+���E�Wϼ˥�'{x́�q���s�
|
3
|
+
v[�7�|Dy�)��6Jj�5���������JQ�������S�j�Ru�Se[��*mIS�I��U���VEw��#�Ei!�w���Y�
|
4
|
+
�}�M�g�p�g9�O�'t�> ������t�$��o���Bv�e��Y!��[=�T�4��cl�l�m�H$ �懽��#��
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/pxgraphviz.rb
CHANGED
@@ -46,7 +46,7 @@ class PxGraphViz
|
|
46
46
|
@px.each_recursive do |x, parent, level|
|
47
47
|
|
48
48
|
next if level <= 0
|
49
|
-
a_edges << [parent.label, x.label]
|
49
|
+
a_edges << [parent.label, x.label, x.connection]
|
50
50
|
|
51
51
|
end
|
52
52
|
|
@@ -56,9 +56,12 @@ class PxGraphViz
|
|
56
56
|
edge_records = RexleBuilder.build do |xml|
|
57
57
|
|
58
58
|
xml.records do
|
59
|
-
a_edges.each do |
|
60
|
-
|
61
|
-
|
59
|
+
a_edges.each.with_index do |x, i|
|
60
|
+
item1, item2, connection = x
|
61
|
+
xml.edge id: 'e' + (i+1).to_s do
|
62
|
+
xml.summary do
|
63
|
+
xml.label connection
|
64
|
+
end
|
62
65
|
xml.records { RexleArray.new([h_nodes[item1], h_nodes[item2]])}
|
63
66
|
end
|
64
67
|
end
|
@@ -74,31 +77,31 @@ class PxGraphViz
|
|
74
77
|
[['option', {}, '',
|
75
78
|
['summary',{},'', ['type',{}, 'node']],
|
76
79
|
['records',{}, '',
|
77
|
-
['attribute', {name
|
78
|
-
['attribute', {name
|
79
|
-
['attribute', {name
|
80
|
-
['attribute', {name
|
81
|
-
['attribute', {name
|
82
|
-
['attribute', {name
|
83
|
-
['attribute', {name
|
84
|
-
['attribute', {name
|
85
|
-
['attribute', {name
|
80
|
+
['attribute', {}, '', ['name', {}, 'color'], ['value', {}, '#ddaa66']],
|
81
|
+
['attribute', {}, '', ['name', {}, 'style'], ['value', {}, 'filled']],
|
82
|
+
['attribute', {}, '', ['name', {}, 'shape'], ['value', {}, 'box']],
|
83
|
+
['attribute', {}, '', ['name', {}, 'penwidth'], ['value', {}, '1']],
|
84
|
+
['attribute', {}, '', ['name', {}, 'fontname'], ['value', {}, 'Trebuchet MS']],
|
85
|
+
['attribute', {}, '', ['name', {}, 'fontsize'], ['value', {}, '8']],
|
86
|
+
['attribute', {}, '', ['name', {}, 'fillcolor'], ['value', {}, '#775500']],
|
87
|
+
['attribute', {}, '', ['name', {}, 'fontcolor'], ['value', {}, '#ffeecc']],
|
88
|
+
['attribute', {}, '', ['name', {}, 'margin'], ['value', {}, '0.0']]
|
86
89
|
]
|
87
90
|
],
|
88
91
|
['option', {}, '',
|
89
92
|
['summary', {}, '', ['type', {}, 'edge']],
|
90
93
|
['records', {}, '',
|
91
|
-
['attribute', {name
|
92
|
-
['attribute', {name
|
93
|
-
['attribute', {name
|
94
|
-
['attribute', {name
|
95
|
-
['attribute', {name
|
96
|
-
['attribute', {name
|
97
|
-
['attribute', {name
|
94
|
+
['attribute', {}, '', ['name', {}, 'color'], ['value', {}, '#999999']],
|
95
|
+
['attribute', {}, '', ['name', {}, 'weight'], ['value', {}, '1']],
|
96
|
+
['attribute', {}, '', ['name', {}, 'fontsize'], ['value', {}, '8']],
|
97
|
+
['attribute', {}, '', ['name', {}, 'fontcolor'], ['value', {}, '#444444']],
|
98
|
+
['attribute', {}, '', ['name', {}, 'fontname'], ['value', {}, 'Verdana']],
|
99
|
+
['attribute', {}, '', ['name', {}, 'dir'], ['value', {}, 'forward']],
|
100
|
+
['attribute', {}, '', ['name', {}, 'arrowsize'], ['value', {}, '0.5']]
|
98
101
|
]
|
99
102
|
]]
|
100
103
|
},
|
101
|
-
nodes: {summary: '', records: node_records},
|
104
|
+
nodes: {summary: '', records: node_records[3..-1]},
|
102
105
|
edges: {summary: '', records: edge_records[3..-1]}
|
103
106
|
}
|
104
107
|
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|