martile 1.1.8 → 1.1.9
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 +10 -3
- metadata +4 -4
- 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: 445281e12c8f376f78b11e9dd15c64f4100bcef0f43a3b1b5677f6839230e9ca
|
|
4
|
+
data.tar.gz: 14203ff4903cd96d1e5dc8855ab53aff61f433c89186468bc691156f67563b42
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6dbed2b98a733948b790a5559e9a3d6fb75a24a59078b7c6f4d6576aa91a5f6e65a1a580acd826e5eb28bab5c00d4114125160fd330c0e9d4368b9d906285e49
|
|
7
|
+
data.tar.gz: 5bd64f861d26f65037c4e1f67a6108f901d616fceddd00546bfeb9df3b90ee57755657a511de0f57891155507bb3e447dbefe445f8e0f0acc189a40001a0c7af
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/martile.rb
CHANGED
|
@@ -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?:\/\/[^\)]+)\)\
|
|
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.
|
|
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-
|
|
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.
|
|
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.
|
|
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
|