martile 0.5.2 → 0.5.4
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/lib/martile.rb +9 -3
- data.tar.gz.sig +0 -0
- metadata +3 -3
- 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: f1924d22b3ad3c26f1f690f74ec604ed3cce7327
|
4
|
+
data.tar.gz: 8f60a1e736ed705019c0e5b39cd5ee3cc6754f87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24630f8d0c6b3243de2a2fdf48495480cfb086353157ec9309bfc8a00eeb4ae426f4d44cb32479b0bc0ebd529005cfcbc257b210acac3db7dc443f2d01ccc6f6
|
7
|
+
data.tar.gz: 58dd39ffa23da8709aff3682dda184b9c410ef9d4c8d780e20941360d2d998c4f88ea3a4f0cab751d3c5d7edcaea91c753b87b734651672518fc805b4cc66ccb
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/martile.rb
CHANGED
@@ -8,6 +8,8 @@ require 'dynarex'
|
|
8
8
|
require 'rdiscount'
|
9
9
|
|
10
10
|
|
11
|
+
# bug fix: 20-Mar-2015: HTML and XML elements should not be filtered out of
|
12
|
+
# the section() method
|
11
13
|
# bug fix: 14-Mar-2015: A section can now be
|
12
14
|
# written without an error occurring
|
13
15
|
# bug fix: 11-Mar-2015: Escapes angle brackets within a code block *before*
|
@@ -86,7 +88,8 @@ class Martile
|
|
86
88
|
|
87
89
|
s8 = apply_filter(s7) {|x| underline x }
|
88
90
|
s9 = apply_filter(s8) {|x| smartlink x }
|
89
|
-
s10 = apply_filter(s9) {|x| section x }
|
91
|
+
#s10 = apply_filter(s9) {|x| section x }
|
92
|
+
s10 = section s9
|
90
93
|
|
91
94
|
#puts 's8 : ' + s8.inspect
|
92
95
|
|
@@ -276,9 +279,10 @@ class Martile
|
|
276
279
|
|
277
280
|
def section(s)
|
278
281
|
|
279
|
-
a = s.lines
|
282
|
+
a = s.lines
|
283
|
+
|
280
284
|
a2 = a.inject([[]]) do |r,x|
|
281
|
-
|
285
|
+
|
282
286
|
match = x.match(/^=[^=]#?(\w+)?/)
|
283
287
|
|
284
288
|
if match then
|
@@ -297,8 +301,10 @@ class Martile
|
|
297
301
|
end
|
298
302
|
|
299
303
|
else
|
304
|
+
|
300
305
|
r.last << x
|
301
306
|
end
|
307
|
+
|
302
308
|
r
|
303
309
|
end
|
304
310
|
|
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.5.
|
4
|
+
version: 0.5.4
|
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-03-
|
34
|
+
date: 2015-03-20 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rdiscount
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
102
|
rubyforge_project:
|
103
|
-
rubygems_version: 2.
|
103
|
+
rubygems_version: 2.4.6
|
104
104
|
signing_key:
|
105
105
|
specification_version: 4
|
106
106
|
summary: A flavour of Markdown which converts a Martile string to html
|
metadata.gz.sig
CHANGED
Binary file
|