graphvizml 0.5.1 → 0.5.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c651777619a2a1e676faa7364eeb918fc3dba62
4
- data.tar.gz: 0d265817fc9cb78ec24090161d52e31315a66868
3
+ metadata.gz: 43f8bdc114606ba40d1356ead10d1f4845dd9179
4
+ data.tar.gz: 602789ff3a4d05a5b44d45e963bebb36f672356f
5
5
  SHA512:
6
- metadata.gz: 9af305f197c59e3e3a4526ae30ff77f9dc621c5b87d23ee6ddb036cb866face1ab696b80ad284532153427f37f4452c0de52c1a0e3268ab75de4feaefb736b5d
7
- data.tar.gz: 9c438d8387c6a2b0e14109e8c83dfc733dab92f7157348e8f0a254d3bc3deb437ba8573b4b0e6aa023b7d30775783ffd1632a83b1b1b90594c20bcad725d98a0
6
+ metadata.gz: d703e2a20d2b73e40b88d259a513fb1379f3d912e5244e0ace2c68dee7dc95b855ad599f84e910175dbe20f405d8b947ce8b1c427b10bf447054214f23eb28dd
7
+ data.tar.gz: b9ca502e0ee39667b72c02657ae9a4b7ee6bcbbcd5989c5e03519a7808d2b8837ad335cf1553b20c8409fbd0ce10b781e03b9b65d0d8d9f9e3c8885168e49609
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/graphvizml.rb CHANGED
@@ -17,7 +17,7 @@ class GraphVizML
17
17
 
18
18
  Domle.new(File.read @filename=obj)
19
19
 
20
- elsif obj.is_a? Rexle
20
+ elsif obj.is_a? Domle
21
21
 
22
22
  @filename = 'gvml.xml'
23
23
  obj
@@ -72,14 +72,20 @@ class GraphVizML
72
72
 
73
73
  nodes = e_nodes.root.xpath('records/node').inject({}) do |r,node|
74
74
 
75
- h =node.attributes
75
+ h = node.attributes
76
76
  id = h[:gid]
77
77
  label = node.text('label')
78
78
 
79
79
  # shape options: box, ellipse, record, diamond, circle, polygon, point
80
- shape = h.has_key?(:shape) ? h[:shape] : :box
80
+
81
+ style = {}
82
+ style[:shape] = h[:shape] || 'box'
83
+ style[:URL] = h[:url] if h[:url]
84
+
81
85
  #puts "adding node id: %s label: %s" % [id, label]
82
- r.merge(id => [label, node.style.merge({shape: shape}), nil])
86
+
87
+ # the nil is replaced by the Graphviz node object
88
+ r.merge(id => [label, node.style.merge(style), nil])
83
89
 
84
90
  end
85
91
 
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- ����bfśc��5a!󙁴"Q,�ǑQ+M-/��Yj��KANRYa9���;��kX̜dGC%W>��MMf��C�,�!�w�蛓�!m!sT��9(ch�pkf�5̐S�9�5*o�q � S8ߋ��&��qV�"5Q�ꋚe��7�̏~�_��n_J$3�y'����(����b`�I��M����嵾H>�%v����^}b�3!^IS��Y�ژ��M{&�������a䝱���`!@X�uT
1
+ �^��2+ wsQ���@�ö�~aVr���CT]J(�]�@�ۺd��@Pʹ�Yc���H���ٸ&�(a��m��\�t��{F�� ���+t��X7�\�R-_13VV�%�}N���ʛo �nGrm��m
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.5.1
4
+ version: 0.5.2
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-07 00:00:00.000000000 Z
34
+ date: 2017-09-08 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: domle
metadata.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- ��s,H�/�b��;Sa���Ys>��&t�m`��T�l��[���!`?Ác���������j��u"&�s/�/�ƌ����˾�q-,Q+p� '�<jiһh�j�u�>j}���N@�q�
2
- 'Q㖷���m����TY��h���,��Q5���y��]���{wDmF�u��>�IZ-øV�]wC,>Q������j��r��.�/Ŗfz�7g�=6]��?TQ���P��uu�h�6o;R�׳Q�
1
+ H�y�_<tX��@�d PΎ?���k{d����I
2
+ D�Cv������_��xI��dϼr�,hF�� U��E�]Bݽc�%������5k oO�!�����z�ؼ���(6n?���{.Zͣ���^�g�,��J6��TZ}Nujo
3
+ >���7��L�d7�M�� �0M`�&�qW��m��.`�}���`y{tu1L�9���ʃ���ݾN%Tv���N5�Ē���KA�Nxg��Y��~$�V��wa�