martile 1.4.1 → 1.4.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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/martile.rb +11 -2
- metadata +2 -42
- 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: 450c3cddaa71a522b6551384f4fbfd707da1dffaf532da70ca0773f30ff062b8
|
|
4
|
+
data.tar.gz: f5610f7fc911b7b5ae8223155639c8181b593a56f7e2e04d32797b71039e612d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df4792095069d5a9b49c1aadf82ec4e593c85f33dbb96d752d3796341243fd6b7b28d6d02c9f6582dcd0d9b29f8943650c485f281f447f3de7dd8a50d923df62
|
|
7
|
+
data.tar.gz: 2c6389e40f1f74987a79da2c431c41504ff8b951c7cc4c5a59cc748fdda9ca5fa525ad7136820fa5d6cd759be417350e1ff2b2f6715deb579350822ed7e5489c
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/martile.rb
CHANGED
|
@@ -15,6 +15,7 @@ require 'jsmenubuilder'
|
|
|
15
15
|
require 'htmlcom'
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
# feature: 01-Mar-2020 A src attribute can now be used in the sidenav tag
|
|
18
19
|
# feature: 29-Feb-2020 The sidenav tag can now contain a raw hierachical list
|
|
19
20
|
# feature: 22-Jan-2020 An HtmlCom::Accordion component can now be generated
|
|
20
21
|
# using the tag <accordion>
|
|
@@ -786,8 +787,16 @@ class Martile
|
|
|
786
787
|
|
|
787
788
|
s.sub!(content,'')
|
|
788
789
|
doc2 = Rexle.new(content)
|
|
789
|
-
|
|
790
|
-
|
|
790
|
+
|
|
791
|
+
h = doc2.root.attributes
|
|
792
|
+
target = h[:target] || 'pgview'
|
|
793
|
+
|
|
794
|
+
txt = if h[:src] then
|
|
795
|
+
RXFHelper.read(h[:src]).first.sub(/<\?links[^>]+>\n/,'')
|
|
796
|
+
else
|
|
797
|
+
doc2.root.text
|
|
798
|
+
end
|
|
799
|
+
|
|
791
800
|
puts 'txt: ' + txt.inspect if @debug
|
|
792
801
|
|
|
793
802
|
html = HtmlCom::Tree.new(txt).to_webpage
|
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.4.
|
|
4
|
+
version: 1.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
g0+rPDPUCWKVNHo7BG5zGRDcLsJO0QeIILy/AQaSAE3lQiHmC47nhsiBK0qNehWa
|
|
36
36
|
47XiKvz0ZVCGgrz4GEb723WC
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date: 2020-
|
|
38
|
+
date: 2020-03-01 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: yatoc
|
|
@@ -117,46 +117,6 @@ dependencies:
|
|
|
117
117
|
- - ">="
|
|
118
118
|
- !ruby/object:Gem::Version
|
|
119
119
|
version: 0.1.6
|
|
120
|
-
- !ruby/object:Gem::Dependency
|
|
121
|
-
name: jsmenubuilder
|
|
122
|
-
requirement: !ruby/object:Gem::Requirement
|
|
123
|
-
requirements:
|
|
124
|
-
- - "~>"
|
|
125
|
-
- !ruby/object:Gem::Version
|
|
126
|
-
version: '0.2'
|
|
127
|
-
- - ">="
|
|
128
|
-
- !ruby/object:Gem::Version
|
|
129
|
-
version: 0.2.10
|
|
130
|
-
type: :runtime
|
|
131
|
-
prerelease: false
|
|
132
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
133
|
-
requirements:
|
|
134
|
-
- - "~>"
|
|
135
|
-
- !ruby/object:Gem::Version
|
|
136
|
-
version: '0.2'
|
|
137
|
-
- - ">="
|
|
138
|
-
- !ruby/object:Gem::Version
|
|
139
|
-
version: 0.2.10
|
|
140
|
-
- !ruby/object:Gem::Dependency
|
|
141
|
-
name: jstreebuilder
|
|
142
|
-
requirement: !ruby/object:Gem::Requirement
|
|
143
|
-
requirements:
|
|
144
|
-
- - "~>"
|
|
145
|
-
- !ruby/object:Gem::Version
|
|
146
|
-
version: '0.2'
|
|
147
|
-
- - ">="
|
|
148
|
-
- !ruby/object:Gem::Version
|
|
149
|
-
version: 0.2.2
|
|
150
|
-
type: :runtime
|
|
151
|
-
prerelease: false
|
|
152
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
153
|
-
requirements:
|
|
154
|
-
- - "~>"
|
|
155
|
-
- !ruby/object:Gem::Version
|
|
156
|
-
version: '0.2'
|
|
157
|
-
- - ">="
|
|
158
|
-
- !ruby/object:Gem::Version
|
|
159
|
-
version: 0.2.2
|
|
160
120
|
- !ruby/object:Gem::Dependency
|
|
161
121
|
name: htmlcom
|
|
162
122
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
|
Binary file
|