martile 0.5.8 → 0.5.9
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 +1 -4
- data.tar.gz.sig +0 -0
- data/lib/martile.rb +5 -2
- metadata +2 -2
- 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: e6993a5008608ef83318ef029bc266cf569510e8
|
|
4
|
+
data.tar.gz: bf36bb0378cb415afeac3eb0764a4865ad5b96b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 948a4ccc6aef9d4bdf43888bf0b661030655d2e0d28c62cd38ade8d3bccd7d4950aedea87b5c2bdc7e96c197282ddf4fe5bd8bb68fd89f8e6c5ab759eb7aba0b
|
|
7
|
+
data.tar.gz: 38c592d09c88a25ca8e5b057bd4af134cc78d2c8af7fb97f7b9523ca92392718bcfec59d12759a4b293898b4e47dcbd1db9a67e35c39e2d26543a6759683cdbb
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
��sJp�
|
|
3
|
-
���c��υ�����3L�����(
|
|
4
|
-
ST���lA���ż�«��'�d�g�3��k��[���=�(*#���4����[�!Z~}w E��᳞�5*��e�+���B4���p\��!l_�)[����n�A�TǪ�k=
|
|
1
|
+
^�.5]A<"���)��M������%����B��&5����є�v���Nc|������ߡjؔ�;M<9c�v)_�,'��R�f�[_T�������ϒ��w��K��U�A���p8x�2hVc͞j�?�{&��D��zA��t'�j�V�+J��s
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/martile.rb
CHANGED
|
@@ -8,6 +8,9 @@ require 'dynarex'
|
|
|
8
8
|
require 'rdiscount'
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
# bug fix: 28-Mar-2015: Fixes a bug introduced on the 20-Mar-2015 relating to
|
|
12
|
+
# Markdown lists not neing converted to HTML
|
|
13
|
+
# see http://www.jamesrobertson.eu/bugtracker/2015/mar/28/markdown-lists-are-not-converted-to-html.html
|
|
11
14
|
# feature: 21-Mar-2015: URLS are now given labels e.g.
|
|
12
15
|
# [news](http://news.bbc.co.uk)<span class='domain'>[bbc.co.uk]</span>
|
|
13
16
|
# bug fix: 20-Mar-2015: HTML and XML elements should not be filtered out of
|
|
@@ -235,7 +238,7 @@ class Martile
|
|
|
235
238
|
# convert square brackets to unicode check boxes
|
|
236
239
|
# replaces a [] with a unicode checkbox,
|
|
237
240
|
# and [x] with a unicode checked checkbox
|
|
238
|
-
s2 = s.gsub(/\[\s*\]/,'☐').gsub(/\[x\]/,'☑')
|
|
241
|
+
s2 = s.gsub(/\s\[\s*\]\s/,' ☐').gsub(/\s\[x\]\s/,' ☑')
|
|
239
242
|
|
|
240
243
|
s2.gsub(/(?:^\[|\s\[)[^\]]+\]\((https?:\/\/[^\s]+)/) do |x|
|
|
241
244
|
|
|
@@ -243,7 +246,7 @@ class Martile
|
|
|
243
246
|
|
|
244
247
|
s2 = x[/https?:\/\/([^\/]+)/,1].split(/\./)
|
|
245
248
|
r = s2.length >= 3 ? s2[1..-1] : s2
|
|
246
|
-
"%s
|
|
249
|
+
"%s<span class='domain'>[%s]</span>" % [x, r.join('.')]
|
|
247
250
|
end
|
|
248
251
|
|
|
249
252
|
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.5.
|
|
4
|
+
version: 0.5.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
fnr5l+RI/6f8lfxBNgDrktGB/RwPkOyWtyKk1tu9CWgHmptxL0JglikCXg5MzuZI
|
|
32
32
|
tZzXOvXUoUf1VQ==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2015-03-
|
|
34
|
+
date: 2015-03-28 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: rdiscount
|
metadata.gz.sig
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
)��̂���W������6v�����pҤh�
|
|
2
|
+
�
|