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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01b23235b15c7468a6779f02872a2375723e3077
4
- data.tar.gz: c36630de67c9cfcb0f87eab6eb2f9ac1cf5d6078
3
+ metadata.gz: f1924d22b3ad3c26f1f690f74ec604ed3cce7327
4
+ data.tar.gz: 8f60a1e736ed705019c0e5b39cd5ee3cc6754f87
5
5
  SHA512:
6
- metadata.gz: 11acfe222c8af3d9b6642b0f4255a50c8cea1c7e0b1db94b35080320143292aa99007beb3854006c86020d1bc277c3e99bafb4c955eda4230e93f69ff2930ed9
7
- data.tar.gz: 0c6000b5d84337991d49e0e17f8c8d21e80dc688b1f5182b34a301e03efe3e87abbe27f44fea3d52d814faadf066aee3a1c27b9e9e4370b3682d72e9513bfbf8
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.2
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-14 00:00:00.000000000 Z
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.2.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