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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1bd0764fcf645b03a35dcb6d27b423c2fbd2ef5c
4
- data.tar.gz: 47583be9f06a798ea9ba1ff2e224a319efa76648
3
+ metadata.gz: 6f61e888b276cffc15b0d5b5358e1b15e79ca32f
4
+ data.tar.gz: 3b3299602c611b604b7a9e48413bb37a7f757efd
5
5
  SHA512:
6
- metadata.gz: 1e7a4c0b49e109ac5357a305f3b40706523984a42b3524dc7126488c1223d2822f9c02efcf12f625fb5011b181abca7052cc606b63192229ed87a76f813b393a
7
- data.tar.gz: d42f83523621072e67a4a7df8de6efb74822d23f5c6612749383fca7fdc215c68e9b284a41c8ddc9950d9125b09e4f5b069b66f99f06bcb1b5f72b08d2dc515f
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
- ,��8M����I���5�� eEP�O��s���:��(rj���G��V>��RYN�Iһ~�ׁ�,��6�����_��~��h���&�vKz��O�!�b��۔Kτ�t&�� "��av_���=�.��v�����`㛉�X)�?LZz�،;�H�y꣋����Yk:mG�옐Y�oS�Ǐ�i�����8�Q �>Z' g���a���MrL�I�C?�)*�+� �����!/g�+��|o[��Q�� I��K<
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
- s.gsub(/_[^_]+_/){|x| "<span class='underline'>%s</span>" % x[1..-2]}
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.0
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-03 00:00:00.000000000 Z
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.0.14
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
- ��_��~#wA Ć��b�ϋy
2
- 67P5��?K� �o��E�qB"Āu��!�+w€v�yyxRN�qѲ}JI0;�̿�B� q�8�����~��B2�dCm�l'�,{)i�P�^�=�6qw2D�T����z��¤ihi<YfG5�|9M�*����1%�$Gs���� �UV\�~1�q]M��XumL+nR�>1 E>��7vzt�蜨��Ij� ����=���H��>�K��AL�-�Q���'
1
+ w��:�X�k�D��O�n�J�U��( ��K:����_� t�x�|��[9���
2
+ ����U +=\� �\z mZ3��֗![,L�%I ���q�~��RH�-ܵm���KQvо����Ŗֽ�r5f���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