martile 0.2.0 → 0.2.1
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 +2 -1
- data/lib/martile.rb +6 -1
- metadata +3 -3
- metadata.gz.sig +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6f61e888b276cffc15b0d5b5358e1b15e79ca32f
|
|
4
|
+
data.tar.gz: 3b3299602c611b604b7a9e48413bb37a7f757efd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6483da0aa276c644c15aeb9afdf3a8051e0b33dafa365a0e01c2cd9360edb9c7933d19673cc0a768f7895d73d9c3c9c1851fcb10a414c83797a8569a2909cb76
|
|
7
|
+
data.tar.gz: 02e652a69fbba2e5f2746eed3a20ca9c61fe7af370cbd995bcaba57cb4ea634540293ddf30108d83f051985f174cf0575b750b570eb8eafd15c1a23946489d61
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
��&��ۼ�n��$59�K*_�kA��gp5�=�Zo��'�t�K7]��
|
|
2
|
+
ck�І�xX��G?uq�}y�L�~��:�&?n��X�t��<�JHR�JG-.��x��NX9�@�'��j���}e|3+mDo+�-������N]gS��(�V���r�r�w��$V�?bc�J�m��%�6���r��-�h�[�;���Vr�)�
|
data/lib/martile.rb
CHANGED
|
@@ -8,6 +8,8 @@ require 'dynarex'
|
|
|
8
8
|
require 'rdiscount'
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
# bug fix: 16-Apr-2014: Words containing an underscore should no longer be
|
|
12
|
+
# transformed to an underline tag
|
|
11
13
|
# bug fix: 03-Apr-2014: XML or HTML elements should now be filtered out
|
|
12
14
|
# of any transformations.
|
|
13
15
|
# feature: 31-Mar-2014: Added an _underline_ feature.
|
|
@@ -184,7 +186,10 @@ class Martile
|
|
|
184
186
|
end
|
|
185
187
|
|
|
186
188
|
def underline(s)
|
|
187
|
-
|
|
189
|
+
|
|
190
|
+
s.lines.map do |line|
|
|
191
|
+
line.gsub(/_[^_]+_/){|x| "<span class='underline'>%s</span>" % x[1..-2]}
|
|
192
|
+
end.join
|
|
188
193
|
end
|
|
189
194
|
|
|
190
195
|
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.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
YF3JmVOebtMx3b9sXkLX1YyX0fsg59FXvg9CVfAoaG6qjG2Y/okBwMSqqMLQiiao
|
|
32
32
|
aRfEuwOkM9Z+zA==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2014-04-
|
|
34
|
+
date: 2014-04-16 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: rexle-builder
|
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
116
116
|
version: '0'
|
|
117
117
|
requirements: []
|
|
118
118
|
rubyforge_project:
|
|
119
|
-
rubygems_version: 2.
|
|
119
|
+
rubygems_version: 2.1.11
|
|
120
120
|
signing_key:
|
|
121
121
|
specification_version: 4
|
|
122
122
|
summary: Converts a martile string to html
|
metadata.gz.sig
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
��_
|
|
2
|
-
|
|
1
|
+
w��:�X�k�D��O�n�J�U��(��K:����_�t�x�|��[9���
|
|
2
|
+
����U+=\��\z�mZ�3��֗![,L�%I���q�~��R�H�-ܵm���KQ�vо����Ŗֽ�r5�f���f��.�mOId
|
|
3
|
+
�7�ImՊ��x�(w��$U�j���������f�L���f)�]Q<k�2�U�!Ph�`��� ����^V�x� �D�Ao��q���B��V-@�z
|
|
4
|
+
�VƢ*�ח�OgKh
|