martile 0.6.14 → 0.6.15
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/lib/martile.rb +13 -4
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c0240c6d78c2de38c2787012f11ebed038da439
|
4
|
+
data.tar.gz: 89c3eab52a29d3049fe019f092a43eebe071ff1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6131fb6ee9c2b87e9cf03c74c24b9c0a5f556bc12ec5a023afe06757ed77fa28f18469e5e3167151b9dad6a87c4f094cf431cd75811b0e28a26a21b6d6ced5fb
|
7
|
+
data.tar.gz: 5b6c1e93f74dcd6d88a46826fa5593b91390b00116cb9c88c3a07d74a5a7df3ebe55793788c09b0db24efa409d7e267b5710324a946893663bb6327d1ef7becb
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/martile.rb
CHANGED
@@ -9,6 +9,8 @@ require 'rdiscount'
|
|
9
9
|
require 'kvx'
|
10
10
|
|
11
11
|
|
12
|
+
# bug fix: 22-Oct-2015 The method apply_filter() is now used
|
13
|
+
# with the section() method
|
12
14
|
# feature: 10-Oct-2015 A hyperlink can now be create from a
|
13
15
|
# list item containing a URL
|
14
16
|
# bug fix: 06-Oct-2015 Can now handle multiple smart links on the same line
|
@@ -125,14 +127,21 @@ class Martile
|
|
125
127
|
#puts 's7 : ' + s7.inspect
|
126
128
|
|
127
129
|
s8 = apply_filter(s7) {|x| underline x }
|
130
|
+
#puts 's8: ' + s8.inspect
|
128
131
|
s9 = apply_filter(s8) {|x| smartlink x }
|
129
|
-
|
132
|
+
s11 = apply_filter(s9) {|x| section x }
|
133
|
+
#puts 's9: ' + s9.inspect
|
130
134
|
|
131
|
-
s11 = section s9
|
132
|
-
|
135
|
+
#s11 = section s9
|
136
|
+
puts 's11 : ' + s11.inspect
|
137
|
+
s12 = apply_filter(s11){|x| puts 'audio:'; audiotag x}
|
138
|
+
puts 's12 : ' + s12.inspect
|
133
139
|
s13 = apply_filter(s12){|x| videotag x}
|
140
|
+
puts 's13 : ' + s13.inspect
|
134
141
|
s14 = apply_filter(s13){|x| iframetag x}
|
142
|
+
puts 's14 : ' + s14.inspect
|
135
143
|
s15 = apply_filter(s14){|x| kvx_to_dl x}
|
144
|
+
puts 's15 : ' + s15.inspect
|
136
145
|
s16 = apply_filter(s15){|x| list_item_to_hyperlink x}
|
137
146
|
s10 = apply_filter(s16) {|x| mtlite_utils x }
|
138
147
|
|
@@ -552,4 +561,4 @@ class Martile
|
|
552
561
|
s.gsub(/\B*( +)([^\n]+)\s+(https?:\/\/.*)/,'\1[\2](\3)')
|
553
562
|
|
554
563
|
end
|
555
|
-
end
|
564
|
+
end
|
data.tar.gz.sig
CHANGED
Binary file
|
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.6.
|
4
|
+
version: 0.6.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
fnr5l+RI/6f8lfxBNgDrktGB/RwPkOyWtyKk1tu9CWgHmptxL0JglikCXg5MzuZI
|
32
32
|
tZzXOvXUoUf1VQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-10-
|
34
|
+
date: 2015-10-22 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rdiscount
|
metadata.gz.sig
CHANGED
Binary file
|