pxgraphviz 0.1.1 → 0.2.0

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: cf27878fabf68e6ae26efefacf1f2815413cc952
4
- data.tar.gz: c5d47853c7293edb325a00d8eb567d823985c04b
3
+ metadata.gz: e988483e29d912ad503df58c5fcc58dfe072ab01
4
+ data.tar.gz: 871a8bc39cdef9821bffd2dd9ff3cd4d5319befe
5
5
  SHA512:
6
- metadata.gz: 2cb94120a61e0ba38848d09e80f06d8523de61b8435bb4ad1bf54f41fe0512d5d9da2f8e505d4cef5df9817bb17a33bdf212c81cb9d284193eed4d3f11b04c65
7
- data.tar.gz: 661f1d94bcc76282f0fe22def550970555f8b03c1e9d606347fbb5c8ea74eba1febb3e0b6be76ec2ad963f2b36235a082d38ae9481681501ba5c37d21383c591
6
+ metadata.gz: d06f7a40cadf52e9eff060810207fbafe0150ba7069b79c489808b8b3cce51b08ed0b5c0af0e39e4823a5cedb3d2e33a3aa434048c820e8c4945cb160c883e76
7
+ data.tar.gz: dd6a3ff9bbfd2eafa35764c2fc04d420b49b3bc5d58aef3ac59ce2b179fbfe377938ba846c33cc6999989dbb3c5a95391a86ef8edc4c0230ff0536d9fce5c3ef
checksums.yaml.gz.sig CHANGED
@@ -1,4 +1 @@
1
- }��$��.q�
2
- ��F������)co�*�r��.F�~��+���E�Wϼ˥�'{x́�q���s�
3
- v[�7�߻|Dy�)��6Jj�5���������JQ�������S�j�Ru�Se[��*mIS�I��U���VEw��#�Ei!�w���Y�
4
- �}�M�g�p�g9�O�'t�> ������t�$��o���Bv�e��Y!��[=�T�4��cl�l�m�H$ �懽��#��
1
+ ��9S��֗*��\�nX�2���%Ӽ���/�����<�3^��OG^PG?��rm1�i�g��i�����T��~:_�.�2R)��M��"�%��
data.tar.gz.sig CHANGED
Binary file
data/lib/pxgraphviz.rb CHANGED
@@ -69,46 +69,40 @@ class PxGraphViz
69
69
 
70
70
  end
71
71
 
72
- h_doc = {
73
-
74
- options: {
75
- summary: '',
76
- records:
77
- [['option', {}, '',
78
- ['summary',{},'', ['type',{}, 'node']],
79
- ['records',{}, '',
80
- ['attribute', {}, '', ['name', {}, 'color'], ['value', {}, '#ddaa66']],
81
- ['attribute', {}, '', ['name', {}, 'style'], ['value', {}, 'filled']],
82
- ['attribute', {}, '', ['name', {}, 'shape'], ['value', {}, 'box']],
83
- ['attribute', {}, '', ['name', {}, 'penwidth'], ['value', {}, '1']],
84
- ['attribute', {}, '', ['name', {}, 'fontname'], ['value', {}, 'Trebuchet MS']],
85
- ['attribute', {}, '', ['name', {}, 'fontsize'], ['value', {}, '8']],
86
- ['attribute', {}, '', ['name', {}, 'fillcolor'], ['value', {}, '#775500']],
87
- ['attribute', {}, '', ['name', {}, 'fontcolor'], ['value', {}, '#ffeecc']],
88
- ['attribute', {}, '', ['name', {}, 'margin'], ['value', {}, '0.0']]
89
- ]
90
- ],
91
- ['option', {}, '',
92
- ['summary', {}, '', ['type', {}, 'edge']],
93
- ['records', {}, '',
94
- ['attribute', {}, '', ['name', {}, 'color'], ['value', {}, '#999999']],
95
- ['attribute', {}, '', ['name', {}, 'weight'], ['value', {}, '1']],
96
- ['attribute', {}, '', ['name', {}, 'fontsize'], ['value', {}, '8']],
97
- ['attribute', {}, '', ['name', {}, 'fontcolor'], ['value', {}, '#444444']],
98
- ['attribute', {}, '', ['name', {}, 'fontname'], ['value', {}, 'Verdana']],
99
- ['attribute', {}, '', ['name', {}, 'dir'], ['value', {}, 'forward']],
100
- ['attribute', {}, '', ['name', {}, 'arrowsize'], ['value', {}, '0.5']]
101
- ]
102
- ]]
103
- },
72
+
73
+ style = '
74
+ node {
75
+ color: #ddaa66;
76
+ fillcolor: #775500;
77
+ fontcolor: #ffeecc;
78
+ fontname: Trebuchet MS;
79
+ fontsize: 8;
80
+ margin: 0.0;
81
+ penwidth: 1;
82
+ shape: box;
83
+ style: filled;
84
+ }
85
+
86
+ edge {
87
+ arrowsize: 0.5;
88
+ color: #999999;
89
+ fontcolor: #444444;
90
+ fontname: Verdana;
91
+ fontsize: 8;
92
+ dir: forward;
93
+ weight: 1;
94
+ }
95
+ '
96
+ h = {
97
+ style: style,
104
98
  nodes: {summary: '', records: node_records[3..-1]},
105
99
  edges: {summary: '', records: edge_records[3..-1]}
106
100
  }
107
101
 
108
- a = RexleBuilder.new(h_doc).to_a
102
+ a = RexleBuilder.new(h).to_a
109
103
  a[0] = 'gvml'
110
104
  Rexle.new(a)
111
105
 
112
106
  end
113
107
 
114
- end
108
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pxgraphviz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  AJ2kmROiYBLscpVrfyHxtEJluJwbid/KyR/BybHL7uezZ2/EbCxCYanOIbNyctTp
32
32
  CNgZvs+F41zO7g==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-01-06 00:00:00.000000000 Z
34
+ date: 2017-01-07 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: polyrex
metadata.gz.sig CHANGED
Binary file