martile 0.1.17 → 0.1.18
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.tar.gz.sig +0 -0
- data/lib/martile.rb +5 -2
- 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: 339380ee009e8a63eae2a98a26cf9839e11fcc97
|
|
4
|
+
data.tar.gz: 34e6c37ce50f8a1c56dae1fb35c2defe3bd0f353
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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.
|
|
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-
|
|
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
|