martile 1.1.8 → 1.1.9

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: fff1510ba344e38076a86107f1abd2537d3c3b383873e651eb49bfe51eb19960
4
- data.tar.gz: 925f00979a97abd0030c5aa630d5a1951585f9a0f0a491ec63a8793e63031f0a
3
+ metadata.gz: 445281e12c8f376f78b11e9dd15c64f4100bcef0f43a3b1b5677f6839230e9ca
4
+ data.tar.gz: 14203ff4903cd96d1e5dc8855ab53aff61f433c89186468bc691156f67563b42
5
5
  SHA512:
6
- metadata.gz: 10b62ce992f89f3fa43035c3ae519cd9771ef79597c1d7c2aecd39eefebfd8fee7b2e1d99d888d59d292f7745d11c49fce6b6af099e73780ccecf4beefebd26a
7
- data.tar.gz: 4f9c9360a801ad5ffcfe868a4cbef5837920e6a0140af606f9e52ce115aa23a802b9caa2f1aad6f57e5bb52264a333c65ebfe807ac51fbed20c012d85f7f7b5d
6
+ metadata.gz: 6dbed2b98a733948b790a5559e9a3d6fb75a24a59078b7c6f4d6576aa91a5f6e65a1a580acd826e5eb28bab5c00d4114125160fd330c0e9d4368b9d906285e49
7
+ data.tar.gz: 5bd64f861d26f65037c4e1f67a6108f901d616fceddd00546bfeb9df3b90ee57755657a511de0f57891155507bb3e447dbefe445f8e0f0acc189a40001a0c7af
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -13,6 +13,7 @@ require 'mindmapdoc'
13
13
  require 'flowchartviz'
14
14
 
15
15
 
16
+ # feature: 05-May-2019 Dimensions can now be supplied for an iframe
16
17
  # improvment: 06-Mar-2019 Checks for mindmap tags outside of other tags
17
18
  # feature: 03-Mar-2019 A high level mindmap with associated doc can now be
18
19
  # easily created using the -mm---identifier
@@ -335,12 +336,18 @@ class Martile
335
336
 
336
337
  def iframetag(s)
337
338
 
338
- s.gsub(/\B!i\[\]\((https?:\/\/[^\)]+)\)\B/) do |x|
339
+ s.gsub(/\B!i\[\]\((https?:\/\/[^\)]+)\)(\{[^\}]+\})?/) do |x|
339
340
 
340
341
  url = ($1)
342
+ attr = ($2)
343
+
344
+ h = attr ? attr.scan(/(\w+):\s+['"]?(\w+)?/).to_h : {}
345
+ attributes = h.any? ? (' ' +
346
+ h.map {|k,v| "%s='%s'" % [k,v]}.join(' ')) : ''
347
+
348
+ "<iframe src='%s'%s></iframe>" % [url, attributes]
349
+ end
341
350
 
342
- "<iframe src='%s'></iframe>" % [url]
343
- end
344
351
 
345
352
  end
346
353
 
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: 1.1.8
4
+ version: 1.1.9
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: 2019-03-06 00:00:00.000000000 Z
33
+ date: 2019-05-05 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: yatoc
@@ -81,7 +81,7 @@ dependencies:
81
81
  version: '0.3'
82
82
  - - ">="
83
83
  - !ruby/object:Gem::Version
84
- version: 0.3.3
84
+ version: 0.3.4
85
85
  type: :runtime
86
86
  prerelease: false
87
87
  version_requirements: !ruby/object:Gem::Requirement
@@ -91,7 +91,7 @@ dependencies:
91
91
  version: '0.3'
92
92
  - - ">="
93
93
  - !ruby/object:Gem::Version
94
- version: 0.3.3
94
+ version: 0.3.4
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: flowchartviz
97
97
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file