martile 0.2.1 → 0.2.2

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: 6f61e888b276cffc15b0d5b5358e1b15e79ca32f
4
- data.tar.gz: 3b3299602c611b604b7a9e48413bb37a7f757efd
3
+ metadata.gz: dc3aa70713cdb6ddbcaced04f0aae2cceb9d03dc
4
+ data.tar.gz: 3a2500985fe8fbfdb29ff9ed85044fb9c0e2286c
5
5
  SHA512:
6
- metadata.gz: 6483da0aa276c644c15aeb9afdf3a8051e0b33dafa365a0e01c2cd9360edb9c7933d19673cc0a768f7895d73d9c3c9c1851fcb10a414c83797a8569a2909cb76
7
- data.tar.gz: 02e652a69fbba2e5f2746eed3a20ca9c61fe7af370cbd995bcaba57cb4ea634540293ddf30108d83f051985f174cf0575b750b570eb8eafd15c1a23946489d61
6
+ metadata.gz: 633b92c9f66bba8c7dea9c4cb041985a4fc80c357b7f75ad53bf241d51c2260d6d1600dfadc2c6aa50a5197bfd7030aa1916b0e7b3ff08584e4e02ffcb9f6fe0
7
+ data.tar.gz: 5fab9e33fe8c9142d6cb40bb7927980b49295115c013431af547ad9da2069896d1a75e46cce78a2c6ae071d4eacedadb921b9ff350043d705dd3e9429b89ebeb
Binary file
data.tar.gz.sig CHANGED
@@ -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�)�
1
+ N���pf�^j������g���dDF��D|!��b��\��B:5�9 Q�‰&�� ���"z�[��y�'��#�HN;�9!��uމ�4�]��U ��[Wao7� ��+���(9��yV�7��,��y2��crH4Nq�(�ӄ+�/�\�x��D_�L�r4JGڐ���Ǵ�X�7q
@@ -187,9 +187,10 @@ class Martile
187
187
 
188
188
  def underline(s)
189
189
 
190
- s.lines.map do |line|
191
- line.gsub(/_[^_]+_/){|x| "<span class='underline'>%s</span>" % x[1..-2]}
192
- end.join
190
+ s.gsub(/_[^_\(\)\n]+_\b/) do |x|
191
+ "<span class='underline'>%s</span>" % x[1..-2]
192
+ end
193
+
193
194
  end
194
195
 
195
196
  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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file