flowchartviz 0.1.5 → 0.1.6

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: 2353e8d44c2a29a3e14c4eca24161487767ed020
4
- data.tar.gz: 0d043aff373c8f3bfd2ba3d97dcfc1b51cd41ccc
3
+ metadata.gz: 3fd4cd2600c5dee404855343ebd4960decf61f3d
4
+ data.tar.gz: 5e0566160c44f9e5d3df73460d5720e74b8879e8
5
5
  SHA512:
6
- metadata.gz: bf786337451167b5a576b9690d0884bdd4f948c30908cbb47fe44b7954dddc3808d8d4ba2429a0292cdcaee7d7e5c2d228798bb3fa51acfc77fcae39d512bd20
7
- data.tar.gz: 0af17fb2d849546a256463f04d71c37ca7d1e943bf0f44d840eb544cfa269a24cb4139a5b661d020aef356d114d34d4ab94a96f08d88cf78470f98660c1a82d2
6
+ metadata.gz: 9fc54faa42ab35cc73cc037e2d76e8e114f399d38c13bcb796a7dd121b512413f017f07d2c9a59117429ba5f745a52eb7eabc0bf0c64e647e55688aca9ed7644
7
+ data.tar.gz: 3a4e11b4be6fb39c7225d75a2e5d8569367024636a244d5ebeb9a20810619ce5f7bea3b6fa2acd1762fb43870ac09b59bffbaf4aa49826dc0620b915a757c630
@@ -1,2 +1,2 @@
1
- myi��|� G�(H��4_c)yf��e
2
- ���
1
+ ����C0v�?Gv)���ߍ�k��|�e��>��#�Ar{D�42EY��Zo^P��lG=D�� ��j�q.��ߺ�ʄ��}Sh��f��wd�����^b���2z�r��B�@���yMa!j�Y�>~�]8.n�(��$Q9������� �֥T�Kn���j��6�
2
+ I���RRW��ogY}qbԦ*�9Ġi�c�T�1�l"�_X�p*�e�R툯�!=��mF�
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- b�^�DW�0�|^���o�<,̺�%���c��~��nԀ#�?gH����ZGE�����݊��.��V���Eo^W�a���&��l��HA;Ykfc Q plA|@pe��,���#*�L �.� [T��\~�!#"p��:8 �\�i���q?�a�q�-+հ�Z���zn���ۍ�8oN��(���_")����h ~�/�e�H��Ae �l2��2����Is�Hi�_s�
1
+ ���%�E�n�#$��E�]J��y��l�"�������^+�ن׶6u�/VSGl���Yhd!uɖ�$��.>�0��,� s~�Il��-��˾r�?����\��(�#RAk��� K6'��ƪϻm_�Ys-��Րt�"�Rgd���nhWI7H2�;� �u��FWc�8O�{6�wa������Ï���3B���ߑ�ݲ�~�3���qNŅ@�ߞ�̃����+�9x�aF'��Dv-� eyKl��
@@ -6,9 +6,8 @@ require 'line-tree'
6
6
  require 'pxgraphviz'
7
7
 
8
8
 
9
- class Flowchartviz
9
+ class Flowchartviz < PxGraphViz
10
10
 
11
- attr_reader :raw_doc, :pxg
12
11
 
13
12
  def initialize(s,truthlabels: %i(yes no), style: default_stylesheet(),
14
13
  delimiter: ' # ')
@@ -40,37 +39,15 @@ class Flowchartviz
40
39
 
41
40
  schema = 'items[direction]/item[label, url, connection, shape]'
42
41
 
43
- @raw_doc=<<EOF
42
+ raw_doc=<<EOF
44
43
  <?polyrex schema='#{schema}' delimiter='#{delimiter}'?>
45
44
  direction: TB
46
45
  #{plaintext}
47
46
  EOF
48
47
 
49
- @pxg = PxGraphViz.new(@raw_doc, style: style)
48
+ super(raw_doc, style: style)
50
49
 
51
50
  end
52
-
53
- def export(file='gvml.xml')
54
- File.write file, @pxg.to_doc.xml(pretty: true)
55
- end
56
-
57
- alias export_as export
58
-
59
- def import(s)
60
- @pxg = PxGraphViz.new(RXFHelper.read(s).first)
61
- end
62
-
63
- def to_png()
64
- @pxg.to_png
65
- end
66
-
67
- def to_svg()
68
- @pxg.to_svg
69
- end
70
-
71
- def write(filename)
72
- @pxg.write filename
73
- end
74
51
 
75
52
 
76
53
  private
@@ -101,8 +78,8 @@ EOF
101
78
  b = nil
102
79
  end
103
80
 
104
- if x[0] then
105
- x[0] << ' # ' unless x[0] =~ /#/ or end_fields.empty?
81
+ if x[0] and end_fields.length > 0 then
82
+ x[0] << ' # ' unless x[0] =~ /#/
106
83
  x[0] << end_fields
107
84
  end
108
85
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowchartviz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  wBUpSB7cxnDj6hDWvWlX0qE+oJx9HIakTQlCefvxztlVFiWw0rX1bMMem9SXi5V2
32
32
  x2zAnr43tx3chA==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-09-16 00:00:00.000000000 Z
34
+ date: 2017-09-17 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: line-tree
@@ -59,20 +59,20 @@ dependencies:
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '0.3'
62
+ version: '0.4'
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: 0.3.6
65
+ version: 0.4.3
66
66
  type: :runtime
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
69
69
  requirements:
70
70
  - - "~>"
71
71
  - !ruby/object:Gem::Version
72
- version: '0.3'
72
+ version: '0.4'
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 0.3.6
75
+ version: 0.4.3
76
76
  description:
77
77
  email: james@jamesrobertson.eu
78
78
  executables: []
@@ -103,6 +103,6 @@ rubyforge_project:
103
103
  rubygems_version: 2.6.8
104
104
  signing_key:
105
105
  specification_version: 4
106
- summary: Creates a Polyrex Graphviz XML file from pseudocode of 1 or more nested if
107
- statements
106
+ summary: Creates a flowchart (using Graphviz) from pseudocode of 1 or more nested
107
+ if statements
108
108
  test_files: []
metadata.gz.sig CHANGED
@@ -1 +1,3 @@
1
- Q?xBL4��#M̨G$��� o�{<YK�ên=��r\U�z/;A2J��qUÖw "N5Pp9�{��L`���Q�Q��6���"�o�c�Fg���^!�ps\d^���"�p��̾crE���[F%�R�T�T�66j�<Ne��
1
+ ,iTy*�V0g����E���[m[PC�����ޯ-���0ސ�N���Ѡ�G'!�zI5�����Nљ�I��=�e���%���!)%�B
2
+ ������ ���ԣ��6�̑E�����J�Z}��ͷ�~c�zZC��d��C
3
+ sf!\��^4���6�=��N��A�u�k#p?���