graphvizml 0.4.2 → 0.4.3

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: a54210447e6b254a9c196d4888c868c376418ec5
4
- data.tar.gz: f560aeda7694b35e1703c9dcafd082bad0cae038
3
+ metadata.gz: 13461b8aacecb92201b7ec13402408447f9061d7
4
+ data.tar.gz: 83ded35343454369b4f360219dae9e3b973d224b
5
5
  SHA512:
6
- metadata.gz: ccbe1b14ffa27e02a00c839210612a080d2aab168e220abe2a2ecb079d74d06f57b6534ea86ba7c1090bb26b36b96e338ec50a8b16531d2a61240edadf9e839c
7
- data.tar.gz: d7b6ca5fbf840b7afd7b9acd1f0ddc05e494ad3f81b386647379be675315159869d7d35763566887c683d440fa0999c7ce83f6f4a95d84402075568cb7974eec
6
+ metadata.gz: d684831e3281e58b49181c2c40677e1da5dd19011be25dc0954c896c9efe20c3a2468a4356a5470d2cdfa36be13b1f7313be54cf48de77dd84cc3c91b3120722
7
+ data.tar.gz: 48330c8e2e676ed466e21d1886b590b7748514588af7fed866dd9cf75dcd5318ed6aa397dacb5d8111950f787b218a9b75a38db84aa8c85b40668d1d9ff8a368
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1 @@
1
- �h)�H;���C�A��Z��Pذ��$�g���[ƪ9u����n4�>J? D��Cз�* ���&/9Q��t�֯P[D1/0��,&���A�ΘȺ�5���cJ����$Z�f���x1"D�@��B8) 3+��9�:*��2:�Ӥ R1�5<�׬���'5d!aQ.�ZVn�.�9كhYR��Ғ8��p9}o������<*$CX��*К
2
- W�=FB+�*-��`�U�AF&�p�q��J�2
1
+ ��[F���C�-�r���kuPC���ub�@M'm��w�g�*��r0a?`^���v�غ\�m��p:��k��Wa�z*�l�հ�?�&�����w��%� H��5�]��� Ϣ� �"[=����HddDu����������O�"\<ґ���5�s™�Nl��6 ��r���^8�w17-�z`�cnQ�%��%D;�<>������� J�ut��ҼF�h��G�w�tK��P�b��&�
data/lib/graphvizml.rb CHANGED
@@ -26,10 +26,13 @@ class GraphVizML
26
26
 
27
27
  h = @doc.root.attributes
28
28
 
29
- @type = (h.has_key?(:type) ? h[:type].to_sym : :digraph)
30
- direction = h.has_key?(:direction) ? h[:direction].to_s.upcase : 'LR'
29
+ @type = (h.has_key?(:type) ? h[:type].to_sym : :digraph)
30
+
31
+ h[:type] = @type.to_s
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}
31
34
 
32
- @g = Graphviz::Graph.new type: @type.to_s, rankdir: direction
35
+ @g = Graphviz::Graph.new h
33
36
 
34
37
  build()
35
38
 
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.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- �:o ����h )}Dšxڋ,�|𞒬{lfm ɛ�2Z��j��
1
+ Êҿ�Η˷eD�ш�1ͻYB�%�+(HS�� �ťy7'[cd.��7iqEdu
2
+ �XF��b���b�l����Q(Ծ�ѝأ�h��������q��ɎBL(Z�\�o�?��d�qt/��r:1:W��������5i�Dۉ$���9z�[E���^��� J:o�u��ެ7��ܖ�{