martile 0.9.3 → 0.9.4
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.tar.gz.sig +0 -0
- data/lib/martile.rb +12 -1
- metadata +2 -2
- 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: e7ddb330c258a6150ed1ea937b013d77fbb0347cff997c1bd3fdd47e6a48cdba
|
4
|
+
data.tar.gz: 0eb8a20705c70326d3220d40043bd5b5d7b720473924d47db7e1a89eaf55256e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c592a069ca334eb4f646c13bc0d0967e77810eaec13af4c4d843073c3906ea046e7d421a468909aabe185f75fd21ebda5100e6e05f6afd4e0aeeca94f8de87f
|
7
|
+
data.tar.gz: 64a1a5f1d2adb9591ddc42f31bb10688dc97642a6c71ff7f6a897e57776eae320a88cbf3af5e26fdabf9d0bb07bd6d3b37ea5ea9b85cdd38cb2307bda23e14d3
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/martile.rb
CHANGED
@@ -12,6 +12,7 @@ require 'mindmapdoc'
|
|
12
12
|
require 'flowchartviz'
|
13
13
|
|
14
14
|
|
15
|
+
# feature: 3-Oct-2018 An embed tag can now be used to dynamically load content
|
15
16
|
# bug fix: 26-Sep-2018 An extra new line is added after a code block to
|
16
17
|
# ensure the line directly below it is transformed to
|
17
18
|
# HTML correctly.
|
@@ -125,11 +126,12 @@ class Martile
|
|
125
126
|
s200 = apply_filter(s190) {|x| details x }
|
126
127
|
s210 = apply_filter(s200) {|x| qrcodetag x }
|
127
128
|
s220 = apply_filter(s210) {|x| svgtag x }
|
129
|
+
s230 = apply_filter(s220) {|x| embedtag x }
|
128
130
|
|
129
131
|
|
130
132
|
#puts 's17 : ' + s17.inspect
|
131
133
|
|
132
|
-
@to_s =
|
134
|
+
@to_s = s230
|
133
135
|
end
|
134
136
|
|
135
137
|
def create_form(s)
|
@@ -269,6 +271,15 @@ class Martile
|
|
269
271
|
|
270
272
|
end
|
271
273
|
|
274
|
+
def embedtag(s)
|
275
|
+
|
276
|
+
s.gsub(/\B!\(((?:https?|rse|dfs):\/\/[^\)]+)\)/) do
|
277
|
+
RXFHelper.read(source=($1) ).first
|
278
|
+
end
|
279
|
+
|
280
|
+
end
|
281
|
+
|
282
|
+
|
272
283
|
def escape(s)
|
273
284
|
s.gsub('<','<').gsub('>','>')
|
274
285
|
end
|
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.4
|
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-10-03 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rqrcode
|
metadata.gz.sig
CHANGED
Binary file
|