graphvizml 0.4.3 → 0.4.4
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 +0 -0
- data/lib/graphvizml.rb +9 -2
- data.tar.gz.sig +0 -0
- 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: f9d31015fad42aeef414d4c6e30d4f8d18b04934
|
4
|
+
data.tar.gz: bb55f4ff29fe9e7cf882819105a2322a81ae0eef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f518b6903f82962840863423dde2be42ebc8c02704966f5ac1fa0e1c3552a8a09eb28c7462fd5099d47a0dae05af5017f01e42c0ecc474bc407dbd472913e089
|
7
|
+
data.tar.gz: 1a84244ef9cb8d81e2e2bfd2477ea65547abacc36f1ac523ef21aef6b99241bf432d99b87a7ce57a89cf590740832a3a448b410ba02751e668e1e90303166316
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/graphvizml.rb
CHANGED
@@ -30,8 +30,15 @@ class GraphVizML
|
|
30
30
|
|
31
31
|
h[:type] = @type.to_s
|
32
32
|
h[:rankdir] = h.has_key?(:direction) ? h[:direction].to_s.upcase : 'LR'
|
33
|
-
%i(recordx_type format_mask schema direction).each {|x| h.delete x}
|
34
33
|
|
34
|
+
%i(recordx_type format_mask schema direction).each do |x|
|
35
|
+
h.delete x; h.delete x.to_s
|
36
|
+
end
|
37
|
+
|
38
|
+
# remove any entries with an empty value
|
39
|
+
h.each {|key, value| h.delete key if value.empty?}
|
40
|
+
|
41
|
+
puts 'h: ' + h.inspect
|
35
42
|
@g = Graphviz::Graph.new h
|
36
43
|
|
37
44
|
build()
|
@@ -117,7 +124,7 @@ class GraphVizML
|
|
117
124
|
end
|
118
125
|
|
119
126
|
node_style = a.detect {|x| x.assoc 'node'}
|
120
|
-
|
127
|
+
|
121
128
|
nodes.each do |id, x|
|
122
129
|
|
123
130
|
_, attributes, obj = x
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|