martile 0.9.1 → 0.9.2
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 +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/martile.rb +11 -5
- metadata +7 -7
- metadata.gz.sig +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0e642ce20416ff1e218003cfc4b642f162c52ae9634d4161792a4a44b80c7f02
|
4
|
+
data.tar.gz: 1442b9406b38a68d5fa1028380fab5ac632d2e640b919c888e0e519b163055df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a74bb198ffb47ca3845fc255432eeb9037084e3fc22d5ba3b1a6edce6ebee348d7b3898b7a357d0739b7d0c97895533601602de657ff0af4f9ff09e9d285880
|
7
|
+
data.tar.gz: b72e7ecfec613f4f9db7cb41d3927334b2c3f33620e2545b27cae3b1965a7ea0d2a593544f440c8a2eb479d88641c95172f6f17d965c7934617048fc51193941
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/martile.rb
CHANGED
@@ -12,6 +12,8 @@ require 'mindmapdoc'
|
|
12
12
|
require 'flowchartviz'
|
13
13
|
|
14
14
|
|
15
|
+
# bug fix: 23-Sep-2018 mindmap tag is now properly
|
16
|
+
# transformed before parse__data__
|
15
17
|
# feature: 23-Jul-2018 An HTML form can now be generated
|
16
18
|
# feature: 12-Feb-2018 Transforms <mindmap> tags into a
|
17
19
|
# mindmap + related headings
|
@@ -57,7 +59,9 @@ class Martile
|
|
57
59
|
attr_reader :to_s, :data_source
|
58
60
|
|
59
61
|
def initialize(raw_s='', ignore_domainlabel: nil, debug: false, log: nil)
|
60
|
-
|
62
|
+
|
63
|
+
|
64
|
+
@debug = debug
|
61
65
|
@data_source = {}
|
62
66
|
|
63
67
|
@ignore_domainlabel, @log = ignore_domainlabel, log
|
@@ -65,11 +69,11 @@ class Martile
|
|
65
69
|
raw_s.gsub!("\r",'')
|
66
70
|
|
67
71
|
|
68
|
-
s10 =
|
72
|
+
s10 = MindmapDoc.new(debug: debug).transform(raw_s)
|
69
73
|
puts 's10: ' + s10.inspect if debug
|
70
74
|
|
71
|
-
s20 =
|
72
|
-
puts 's20: ' + s20.inspect if debug
|
75
|
+
s20 = s10 =~ /^__DATA__$/ ? parse__data__(s10) : s10
|
76
|
+
puts 's20: ' + s20.inspect if debug
|
73
77
|
|
74
78
|
s30 = apply_filter(s20) {|x| slashpre x }
|
75
79
|
#puts 's1 : ' + s1.inspect
|
@@ -538,6 +542,8 @@ class Martile
|
|
538
542
|
|
539
543
|
def parse__data__(s)
|
540
544
|
|
545
|
+
puts 'inside parse__data__' if @debug
|
546
|
+
|
541
547
|
a = s.split(/^__DATA__$/,2)
|
542
548
|
|
543
549
|
data = a[-1]
|
@@ -557,7 +563,7 @@ class Martile
|
|
557
563
|
dx
|
558
564
|
|
559
565
|
when /^<\?mindmap(?:viz)? /
|
560
|
-
|
566
|
+
puts 's2: ' + s2.inspect if @debug
|
561
567
|
Mindmapviz.new s2
|
562
568
|
|
563
569
|
when /^<\?flowchart(?:viz)? /
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: martile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
h9crBM07TwSkUs7Sqw12Wh0aEldB8f+8+8mRzbWrJxdYt0EC7ZeByVSu26XqSA9a
|
31
31
|
QUQ=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2018-
|
33
|
+
date: 2018-09-24 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rqrcode
|
@@ -58,20 +58,20 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
61
|
+
version: '0.3'
|
62
62
|
- - ">="
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: 0.
|
64
|
+
version: 0.3.0
|
65
65
|
type: :runtime
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
69
|
- - "~>"
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version: '0.
|
71
|
+
version: '0.3'
|
72
72
|
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0.
|
74
|
+
version: 0.3.0
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: flowchartviz
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.6
|
122
|
+
rubygems_version: 2.7.6
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Martile is a Markdown pre formatter which is designed to format custom Markdown
|
metadata.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
�
|
1
|
+
.c��h�"�Y�������3�l��2�G�G�p^3��^��YU
|