mindmapviz 0.2.4 → 0.3.0
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 +0 -0
- data/lib/mindmapviz.rb +13 -4
- data.tar.gz.sig +0 -0
- metadata +10 -10
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ce232a0a5c747e24cfe5017210e87aff9a67956e79d2f9ef410085bb98ea9d1
|
4
|
+
data.tar.gz: e72fcd780f604983e486bb26da740796f56a7a6dd7cf9877c0b6f2a394fa4f00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8913a473bfebf34fc5f8a1b0d9b2c59c6e302dfee3782818594bcbd26bef280ff863a5eaa8f6f4eda4b3e15805372cb9991098451949298a482702f458b0ba91
|
7
|
+
data.tar.gz: 042dc1a694fc05c9d051cafccbea2b4f4f34917a4b48671b014d5b765fab818caf556eaa5d5057eb827869f29cbefea22632cb196821f4f188f5acc9c04aa4ec
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/mindmapviz.rb
CHANGED
@@ -14,9 +14,9 @@ class Mindmapviz < PxGraphViz
|
|
14
14
|
|
15
15
|
|
16
16
|
def initialize(s, fields: %w(label shape), delimiter: ' # ',
|
17
|
-
style:
|
17
|
+
style: nil, debug: false, fill: '#ccffcc',
|
18
|
+
stroke: '#999999', text_color: '#330055'))
|
18
19
|
|
19
|
-
@debug = debug
|
20
20
|
|
21
21
|
if s =~ /<?mindmapviz / then
|
22
22
|
|
@@ -53,9 +53,18 @@ layout: neato
|
|
53
53
|
#{s}
|
54
54
|
EOF
|
55
55
|
|
56
|
-
puts ('s: ' + s.inspect).debug if
|
56
|
+
puts ('mindmapviz s: ' + s.inspect).debug if debug
|
57
57
|
|
58
|
-
|
58
|
+
style ||= default_stylesheet()
|
59
|
+
|
60
|
+
super(raw_doc, style: style: debug: debug, fill: fill,
|
61
|
+
stroke: stroke, text_color: text_color)
|
62
|
+
@css = "
|
63
|
+
.node ellipse {stroke: #{stroke}; fill: #{fill}}
|
64
|
+
.node text {fill: #{text_color}}
|
65
|
+
.edge path {stroke: #{stroke}}
|
66
|
+
.edge polygon {stroke: #{stroke}; fill: #{stroke}}
|
67
|
+
"
|
59
68
|
|
60
69
|
end
|
61
70
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mindmapviz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,28 +35,28 @@ cert_chain:
|
|
35
35
|
bg1+pkwjxlxBGWuLD3zXIXFqTFj6kMfU7BRL1TflSIKN1dBOgnCfXsPod5J6ULlk
|
36
36
|
Ld6l19Xt6SoZSX+Kclou5gev
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2019-
|
38
|
+
date: 2019-06-09 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: pxgraphviz
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '0.4'
|
47
44
|
- - ">="
|
48
45
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.
|
46
|
+
version: 0.5.0
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0.5'
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- - "~>"
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: '0.4'
|
57
54
|
- - ">="
|
58
55
|
- !ruby/object:Gem::Version
|
59
|
-
version: 0.
|
56
|
+
version: 0.5.0
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0.5'
|
60
60
|
description:
|
61
61
|
email: james@jamesrobertson.eu
|
62
62
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|