graphvizml 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c6dd2ff2f4171929681dfe7161e078dde3c4247
4
- data.tar.gz: 128d1565a6ffc2fa91b86f5ae7e1d7e68d474435
3
+ metadata.gz: d2ee4042b59729e7f825e135a5aaa68c62595bd7
4
+ data.tar.gz: 6418e4a1a1911768a6e2ba279d4788769a42ac36
5
5
  SHA512:
6
- metadata.gz: 7befe85a030d760212e2c8a5880481165b0d04098b25fe9620fe39038f1d137a04991ab4e21fb7811451f439393c676a8b355b9ec9aadb5170ec3ea37461f24d
7
- data.tar.gz: 837900c1655eacb3676cd069a85684134d88e093fd5b134e7384d5b7d0852c15001c546e0dad46c5b489b06bca1e2d3048cb32dc62da1170f8963646e5ffb7d2
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 : :graph
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.0
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-02 00:00:00.000000000 Z
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
- y[��"��ӧ�j:��hĠ[����gF���cHX4�u�*GB�ϊ��(�lw�����sPSf�7�ϕm�c�O����x�+B����c_���z ��Ʉ���F�
2
- ��}mڰ����k�[���GJ��} ;�ڡ6�,���i��a{� �� ���k�;�>q�f�z'��A��WJ���F��b}{�=����~��*��.�a����Kf%�V�3�x��E\�}����!�J1�JZ+�5
1
+ ]2O"��5�~Ϟ����#��݊H����D]��j�T6xM|U}q58��]@
2
+ /�]~���?)7�:F��ɲ�N����+g2Y�A4�������k$K�಺��<�}��;1r/D*�9��dSfF*D_;j���Q��Z���i�$�[����)muN�pq�������.��3����jw0������R#�v7H4k=w`�Sa
3
+ ޫ����zl�n�x����ٞE��?s+?A3��t��7ȏ�