martile 0.6.25 → 0.6.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/martile.rb +8 -6
- 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: e1fc866dc1787640892b6290a820baeee0032ad7
|
4
|
+
data.tar.gz: 85e2c547c024d0d05da4509db044093dad7a89e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 992ea2f9876d3eaa1070bde429f5a9afcdd814e39fe1ad81c3f1c6a3bbff590938bf7afc09f02cf7c6f7e16fd1867060a7113adbbb85c61401d36e810dab0ed4
|
7
|
+
data.tar.gz: b48a7b08cc9b9357912dae4406fc30b040b9579b3f7f2dc2c230791fc3e9c739f490168bed1c37fcc58f4475effb0b7c02823da15a1ff56e5177f4b94bbc2e7e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.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
|
+
# improvement: 9-Mar-2016 Method dynarex_to_markdown now uses the !d[]()
|
13
|
+
# syntax instead of -[]
|
12
14
|
# bug fix: 29-Feb-2016 Arbitrary URLs will no longer automatically
|
13
15
|
# be hyperlinked
|
14
16
|
# bug fix: 05-Dec-2015 PRE tags are now correctly filtered out using the
|
@@ -143,11 +145,11 @@ class Martile
|
|
143
145
|
s8 = apply_filter(s7) {|x| underline x }
|
144
146
|
#puts 's8: ' + s8.inspect
|
145
147
|
s9 = apply_filter(s8) {|x| section x }
|
146
|
-
|
148
|
+
puts 's9: ' + s9.inspect
|
147
149
|
|
148
150
|
s10 = apply_filter(s9) {|x| smartlink x }
|
149
151
|
|
150
|
-
|
152
|
+
puts 's10: ' + s10.inspect
|
151
153
|
|
152
154
|
#s11 = section s9
|
153
155
|
#puts 's11 : ' + s11.inspect
|
@@ -160,10 +162,10 @@ class Martile
|
|
160
162
|
s15 = apply_filter(s14){|x| kvx_to_dl x}
|
161
163
|
#puts 's15 : ' + s15.inspect
|
162
164
|
s16 = apply_filter(s15){|x| list_item_to_hyperlink x}
|
163
|
-
|
165
|
+
puts 's16 : ' + s16.inspect
|
164
166
|
s17 = apply_filter(s16) {|x| mtlite_utils x }
|
165
167
|
|
166
|
-
|
168
|
+
puts 's17 : ' + s17.inspect
|
167
169
|
|
168
170
|
@to_s = s17
|
169
171
|
end
|
@@ -244,7 +246,7 @@ class Martile
|
|
244
246
|
|
245
247
|
def dynarex_to_markdown(s)
|
246
248
|
|
247
|
-
s.gsub(
|
249
|
+
s.gsub(/!d\[\]\(((https?:\/\/)?[\w\/\.\-]+)\)(\{[^\}]+\})?/) do |match|
|
248
250
|
|
249
251
|
source = ($1)
|
250
252
|
raw_select = ($3)
|
@@ -597,4 +599,4 @@ class Martile
|
|
597
599
|
s.gsub(/\B(\* +)([^\n]+)\s+(https?:\/\/.*)/,'\1[\2](\3)')
|
598
600
|
|
599
601
|
end
|
600
|
-
end
|
602
|
+
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.6.
|
4
|
+
version: 0.6.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
fHJRwdYS8tvLYH9UFytJxDKjlovBuFUsfKP0FJlZGQGJM5JiIj5LWelTGJtJD8hI
|
32
32
|
2jPlwrOtiqZt2A==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2016-
|
34
|
+
date: 2016-03-09 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rdiscount
|
metadata.gz.sig
CHANGED
Binary file
|