graphvizml 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/graphvizml.rb +4 -3
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d2ee4042b59729e7f825e135a5aaa68c62595bd7
|
|
4
|
+
data.tar.gz: 6418e4a1a1911768a6e2ba279d4788769a42ac36
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51aeed3ac59449d42ceb69db7f33dd0a759299090e77696e72a2f86ee9b34b856a3d5e20e76d0e5e28b79fb561444257e55fdf35256036e3aa56914ea11ad396
|
|
7
|
+
data.tar.gz: 9fa09220d5e3e0fed477783a4a16730278782582674bf90dbcd8c4e21bb15dab32662071d6cf46306109b198d9a072bac13da2a10fb0424912dc4954655fed27
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/graphvizml.rb
CHANGED
|
@@ -26,10 +26,10 @@ class GraphVizML
|
|
|
26
26
|
|
|
27
27
|
h = @doc.root.attributes
|
|
28
28
|
|
|
29
|
-
type = h.has_key?(:type) ? h[:type].to_sym : :
|
|
29
|
+
@type = h.has_key?(:type) ? h[:type].to_sym : :digraph
|
|
30
30
|
direction = h.has_key?(:direction) ? h[:direction].to_s.upcase : 'LR'
|
|
31
31
|
|
|
32
|
-
@g = GraphViz::new( :G, type: type)
|
|
32
|
+
@g = GraphViz::new( :G, type: @type)
|
|
33
33
|
@g[:rankdir] = direction
|
|
34
34
|
|
|
35
35
|
build()
|
|
@@ -99,6 +99,7 @@ class GraphVizML
|
|
|
99
99
|
e_edges.root.xpath('records/edge').each do |edge|
|
|
100
100
|
|
|
101
101
|
a = edge.xpath('records/node')
|
|
102
|
+
|
|
102
103
|
id1, id2 = a[0].attribute('id').to_s, a[1].attribute('id').to_s
|
|
103
104
|
label = edge.text('summary/label').to_s
|
|
104
105
|
#puts "adding edge id1: %s id2: %s label: %s" % [id1, id2, label]
|
|
@@ -131,7 +132,7 @@ class GraphVizML
|
|
|
131
132
|
fontcolor: #444444;
|
|
132
133
|
fontname: Verdana;
|
|
133
134
|
fontsize: 9;
|
|
134
|
-
dir: forward;
|
|
135
|
+
#{@type == :digraph ? 'dir: forward;' : ''}
|
|
135
136
|
weight: 1;
|
|
136
137
|
}
|
|
137
138
|
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: graphvizml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
0fBBWVqwHyWs77T9gCuDZmQrw2NmfyhNWhBw0iljBXo7WLDNB3x0nP6mYTzk47O8
|
|
32
32
|
sL5FGYJNgQqFlw==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2017-09-
|
|
34
|
+
date: 2017-09-03 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: rexle
|
metadata.gz.sig
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
�
|
|
2
|
-
|
|
1
|
+
]�2O"��5�~Ϟ����#��݊H����D]��j�T6xM|U}q�58��]@
|
|
2
|
+
/�]~���?)7�:F��ɲ�N����+g�2Y�A4�������k$K���<�}��;1r/D*�9��dS�f�F*D�_;j���Q��Z���i�$�[����)�mu�N�p�q�������.��3����jw�0������R#�v7H4k=w`�Sa�
|
|
3
|
+
ޫ����zl�n�x����ٞE��?s+?A3��t��7ȏ�
|