martile 0.1.17 → 0.1.18

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: 5a0dd4c5ddeba3c248c3d6ba296153b2e26a39ab
4
- data.tar.gz: a7b86a55464a246e8f85c9fc48809a24fffb0f2b
3
+ metadata.gz: 339380ee009e8a63eae2a98a26cf9839e11fcc97
4
+ data.tar.gz: 34e6c37ce50f8a1c56dae1fb35c2defe3bd0f353
5
5
  SHA512:
6
- metadata.gz: 33e29722349e4e28231a2a58da76c85f918d2e0f29f9bebf39c66c89cfbab8beae2fd23dce843ee357db7b18b936560f3b9452c550b79ccb26208131a7084878
7
- data.tar.gz: 5fdfceb4823eac7a234e789fa05e9afe99459d3a8b279235b78b38bbf3b2c56b7132dfa17ce74c9739cbdb13df3d0d1fdf72d71d29b757ef26271c3bd27cb314
6
+ metadata.gz: 15e947424e98f3af28445b57c6d1f6c4bc45b7adcc238ee238bad75aafafda1807d5cc1e411d471576a6ac4fe7564751ed2a08ebabd61b1eace8f5e82d565c9d
7
+ data.tar.gz: f95bfdda9cbe9e7b0529e4b204ab3f8308c26bfd2f480938d9b05e211d28bfaea0b302340b90035763f81b104ecfcb7aa1092abb02adf79fe734ce6d4a9cc332
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/martile.rb CHANGED
@@ -111,10 +111,13 @@ class Martile
111
111
 
112
112
  s.gsub(/<(\w+)>.*<\/\1>[^<]*|.+/m) do |x|
113
113
 
114
- html = x[/<(\w+)>.*<\/\1>/]
114
+ html = x[/<(\w+)>.*<\/\1>/m]
115
115
  plain_text = html ? ($') : x
116
+ text1 = ($`).to_s
117
+ s1 = text1.length > 0 ? self.method(name).call(text1) : ''
118
+ #puts 'plain_text : ' + plain_text.inspect
116
119
  s2 = plain_text.length > 0 ? self.method(name).call(plain_text.to_s) : ''
117
- ($`).to_s + html.to_s + s2
120
+ s1 + html.to_s + s2
118
121
  end
119
122
  end
120
123
 
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.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -29,7 +29,7 @@ cert_chain:
29
29
  dxxPRWzHhWwDxwQSM9uhSReVj7QoO/gFoKZHmN7+/EhAwKMqI6IK1QwiXHhjaAJG
30
30
  NC9ItVKLmT+Y6rbeYcoXRv6i5t7GjD4m
31
31
  -----END CERTIFICATE-----
32
- date: 2013-10-03 00:00:00.000000000 Z
32
+ date: 2013-10-04 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rexle-builder
metadata.gz.sig CHANGED
Binary file