martile 0.9.3 → 0.9.4

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
  SHA256:
3
- metadata.gz: e39d85d8339e873437e9df2c96c8fd151be729b7f95fdfeea4cb1c1213fd5415
4
- data.tar.gz: 675f765e801cba9ae1f61fbeccd8016ae7cf61effc820cf6aa89a13820258f61
3
+ metadata.gz: e7ddb330c258a6150ed1ea937b013d77fbb0347cff997c1bd3fdd47e6a48cdba
4
+ data.tar.gz: 0eb8a20705c70326d3220d40043bd5b5d7b720473924d47db7e1a89eaf55256e
5
5
  SHA512:
6
- metadata.gz: a42a4f4bb9f067e94ea824c911792a00cf9f83df149e144b9a51703a8feb0e3732eb2d91be46456b3b118bdc75ce34dc86d2f2b9ddfdad73a87f541e5f799c47
7
- data.tar.gz: dcfd0cbad7b3e91652a51e74655ce1430ce6354f3f7fb3748fec4351cc1ada7a8f248df9610e84f0a75d79c0afb164ac78cff9f688c946b311cd41f38623c48b
6
+ metadata.gz: 2c592a069ca334eb4f646c13bc0d0967e77810eaec13af4c4d843073c3906ea046e7d421a468909aabe185f75fd21ebda5100e6e05f6afd4e0aeeca94f8de87f
7
+ data.tar.gz: 64a1a5f1d2adb9591ddc42f31bb10688dc97642a6c71ff7f6a897e57776eae320a88cbf3af5e26fdabf9d0bb07bd6d3b37ea5ea9b85cdd38cb2307bda23e14d3
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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 = s220
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('<','&lt;').gsub('>','&gt;')
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.3
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-09-26 00:00:00.000000000 Z
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