martile 0.5.16 → 0.5.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: 51d9bfd0397446cc3b5fe981c4e2f05e17861d48
4
- data.tar.gz: 813cb293ff7b1c4916f36ff0fc5b4ddbbef3680b
3
+ metadata.gz: 62dfa7787cc8b0fa3fdb706865645674ba308878
4
+ data.tar.gz: d66fb5c4c5adb243b5f9c6f6a9d58739523e4cca
5
5
  SHA512:
6
- metadata.gz: 14ca09d1d556a79e5789e9bbc02b71fe7e90b92589d193c19fa8460d7d418ecef77da66c02aa66864452fe845d4ffae3415567d6d6c4fccad6cfc952e1b7e47b
7
- data.tar.gz: 0ce31a6309eacb74a08fc72bec1842a7c0e0638ce984f230745efc21fa2a5ea446a9991e6f86e48c342e76ebc4573327b7f1845257674fc2b549f1d16a55198a
6
+ metadata.gz: 296a038d038cef14c820f5a523f1262e13861e9795b6d9d0f1cd4f5d325eee605d5d4f2fec933150af22bf58c8d58d63aabaacc6783e1f2942bd52f2cc9d36bd
7
+ data.tar.gz: ef4186cfaaf78628242dab955198f311a6736a0d009fa9615ecd58c729ccff80504855382f5a35b0f01dc7e9673c9619d7db5e71aa95ecf63121e3b64d7473a5
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- S�&���s�< ���]#O�NM�Qk� �̶���ǫ��`
2
- �|�e8PF8��k�H�!k�N�J���{j��_T<� �{T�/�[�$���k����5�qj��WU��F'WF�1 �")�&��_>�/�2��ˍ��n�>�xu�nP}9Й<�R
3
- GIS��c#�pgd�gMk�*�.�
1
+ +�NkK
2
+ fT{U�N��P>����.�dž�(y�����P��$�;�����.1�Q��8
data.tar.gz.sig CHANGED
Binary file
data/lib/martile.rb CHANGED
@@ -267,13 +267,13 @@ class Martile
267
267
  # replaces a [] with a unicode checkbox,
268
268
  # and [x] with a unicode checked checkbox
269
269
  s2 = s.gsub(/\s\[\s*\]\s/,' &#9744; ').gsub(/\s\[x\]\s/,' &#9745; ')
270
-
270
+
271
271
  # create domain labels for hyperlinks
272
272
  #
273
- s3 = s2.gsub(/(?:^\[|\s\[)[^\]]+\]\((https?:\/\/[^\s]+)/) do |x|
273
+ s3 = s2.gsub(/(?:^\[|\s\[)[^\]]+\]\((https?:\/\/[^\s]+)/) do |x|
274
274
 
275
275
  next x if @ignore_domainlabel and x[/#{@ignore_domainlabel}/]
276
-
276
+
277
277
  a = x[/https?:\/\/([^\/]+)/,1].split(/\./)
278
278
  r = a.length >= 3 ? a[1..-1] : a
279
279
  "%s<span class='domain'>[%s]</span>" % [x, r.join('.')]
@@ -357,8 +357,7 @@ class Martile
357
357
  list = r.pop
358
358
  r << ["%s%s</section>" %
359
359
  [list[0], \
360
- RDiscount.new(Martile.new(list[1..-1].join, \
361
- ignore_domainlabel: true).to_html).to_html
360
+ RDiscount.new(list[1..-1].join).to_html
362
361
  ]
363
362
  ]
364
363
  r << []
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.5.16
4
+ version: 0.5.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- M�n]~�]�ɜg(-A4[������
2
- ��hx4�y��w�8]���RY4G�ʬ�����5����T�[�f���m�s�p�l�R������\
1
+ ����+
2
+ +��k���|��ߛ{N^��s'$�*�y˪��K���9ǻ㢱�79I