flowchartviz 0.1.5 → 0.1.6
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 +4 -4
- checksums.yaml.gz.sig +2 -2
- data.tar.gz.sig +1 -1
- data/lib/flowchartviz.rb +5 -28
- metadata +8 -8
- metadata.gz.sig +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3fd4cd2600c5dee404855343ebd4960decf61f3d
|
|
4
|
+
data.tar.gz: 5e0566160c44f9e5d3df73460d5720e74b8879e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9fc54faa42ab35cc73cc037e2d76e8e114f399d38c13bcb796a7dd121b512413f017f07d2c9a59117429ba5f745a52eb7eabc0bf0c64e647e55688aca9ed7644
|
|
7
|
+
data.tar.gz: 3a4e11b4be6fb39c7225d75a2e5d8569367024636a244d5ebeb9a20810619ce5f7bea3b6fa2acd1762fb43870ac09b59bffbaf4aa49826dc0620b915a757c630
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
����C�0v�?Gv)���ߍ�k��|�e��>��#�A�r{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
|
-
|
|
1
|
+
���%�E�n�#$��E�]J��y��l�"�������^+�ن6u�/VS�Gl���Y�hd!uɖ�$��.>�0��,�s~�Il��-��˾r�?����\��(�#RAk��� K�6�'��ƪϻm�_�Ys-��Րt�"�Rgd���n�h�WI7�H2�;� �u��FWc�8O�{6�wa������Ï���3B���ߑ�ݲ�~��3���q�NŅ@�ߞ�̃����+�9�x�aF'��D�v-�eyKl��
|
data/lib/flowchartviz.rb
CHANGED
|
@@ -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
|
-
|
|
42
|
+
raw_doc=<<EOF
|
|
44
43
|
<?polyrex schema='#{schema}' delimiter='#{delimiter}'?>
|
|
45
44
|
direction: TB
|
|
46
45
|
#{plaintext}
|
|
47
46
|
EOF
|
|
48
47
|
|
|
49
|
-
|
|
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] =~ /#/
|
|
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.
|
|
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-
|
|
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.
|
|
62
|
+
version: '0.4'
|
|
63
63
|
- - ">="
|
|
64
64
|
- !ruby/object:Gem::Version
|
|
65
|
-
version: 0.3
|
|
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.
|
|
72
|
+
version: '0.4'
|
|
73
73
|
- - ">="
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 0.3
|
|
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
|
|
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
|
-
|
|
1
|
+
,iTy*�V�0�g����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?���
|