martile 0.5.16 → 0.5.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 +2 -3
- data.tar.gz.sig +0 -0
- data/lib/martile.rb +4 -5
- metadata +1 -1
- metadata.gz.sig +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62dfa7787cc8b0fa3fdb706865645674ba308878
|
|
4
|
+
data.tar.gz: d66fb5c4c5adb243b5f9c6f6a9d58739523e4cca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 296a038d038cef14c820f5a523f1262e13861e9795b6d9d0f1cd4f5d325eee605d5d4f2fec933150af22bf58c8d58d63aabaacc6783e1f2942bd52f2cc9d36bd
|
|
7
|
+
data.tar.gz: ef4186cfaaf78628242dab955198f311a6736a0d009fa9615ecd58c729ccff80504855382f5a35b0f01dc7e9673c9619d7db5e71aa95ecf63121e3b64d7473a5
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
GIS��c#�pgd�gMk�*�.�
|
|
1
|
+
+�Nk�K
|
|
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/,' ☐ ').gsub(/\s\[x\]\s/,' ☑ ')
|
|
270
|
-
|
|
270
|
+
|
|
271
271
|
# create domain labels for hyperlinks
|
|
272
272
|
#
|
|
273
|
-
s3 =
|
|
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(
|
|
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
metadata.gz.sig
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
����+
|
|
2
|
+
+��k���|��ߛ{N^��s'$�*�y˪��K���9ǻ㢱�79�I
|