martile 0.6.17 → 0.6.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -2
- data.tar.gz.sig +0 -0
- data/lib/martile.rb +11 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c2d4641b4d5ce9666eb10463896695a47aaf38b
|
4
|
+
data.tar.gz: 179d7c0b054ca734f3d9f50fac593192c9f2ca65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57d5e875a4dd15d5c596492583c15cef87612ea4fa119cf7004d229faff89d99a4d2f58b57a1df662fb74f069a3cbaf4795fb099b5827e577153f7b8dbb26a77
|
7
|
+
data.tar.gz: 2827d09982501090a6006f4c595d36885cc71bff8d4dc1610a666332cfbbd7ff4b79dd0587bfbdd48f729808c711a56ec3b244e0fd3fc5339114073ebd5d2cf6
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
$�z�G,Z1"���^���eb-E���:Z��ޭ�K���4�gW���F�,C
|
1
|
+
�G���OO�{H�#/��2�˜��p$3/"&��IT�w����qc7sv���6��<�
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/martile.rb
CHANGED
@@ -9,6 +9,8 @@ require 'rdiscount'
|
|
9
9
|
require 'kvx'
|
10
10
|
|
11
11
|
|
12
|
+
# bug fix: 03-Dec-2015 A smartlink which ends with a closing parenthesis is
|
13
|
+
# now output to a regular anchor tag
|
12
14
|
# bug fix: 22-Oct-2015 The method apply_filter() is now used
|
13
15
|
# with the section() method
|
14
16
|
# feature: 10-Oct-2015 A hyperlink can now be create from a
|
@@ -482,7 +484,14 @@ class Martile
|
|
482
484
|
s.split(/(?= \?)/).inject('') do |r, substring|
|
483
485
|
|
484
486
|
r << substring.gsub(/\B\?([^\n]+) +(https?:\/\/.[^\?]+\?)(?=\B)/) do |x|
|
485
|
-
|
487
|
+
|
488
|
+
content, link = $1, ($2).chop
|
489
|
+
|
490
|
+
if (link)[/\)$/] then
|
491
|
+
"<a href='%s'>%s</a>" % [link, content]
|
492
|
+
else
|
493
|
+
"[%s](%s)" % [content, link]
|
494
|
+
end
|
486
495
|
end
|
487
496
|
|
488
497
|
end
|
@@ -561,4 +570,4 @@ class Martile
|
|
561
570
|
s.gsub(/\B*( +)([^\n]+)\s+(https?:\/\/.*)/,'\1[\2](\3)')
|
562
571
|
|
563
572
|
end
|
564
|
-
end
|
573
|
+
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.6.
|
4
|
+
version: 0.6.18
|
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-
|
34
|
+
date: 2015-12-03 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rdiscount
|
metadata.gz.sig
CHANGED
Binary file
|