martile 0.6.23 → 0.6.25
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 +0 -0
- data.tar.gz.sig +2 -2
- data/lib/martile.rb +12 -7
- metadata +17 -17
- 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: 9ccfd6563fb3e866213f1a0147a80c8595e8131e
|
4
|
+
data.tar.gz: 3da8356912859496d06fbb06fcb7e3c59d562588
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed3ac27da9937b03614b6af77ab21f06b606864cf8ed9e13751e13095e54c1a85315b654ec8af431cd98638938552fb1fd0f04bee77dd09350090c613f955f13
|
7
|
+
data.tar.gz: 126f63de42461314a3215e7322300b2c0c6d6650e0cd3b4eee5f7c85d20e5c0a2eda91855d2bfb5d05e3d58464372a6baf0185c995f693a476cb206e4d304c0a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
���p�nZx�ʫ��/�-!d�����]�}�������-�t�����⥖.�E#K�,�^3�(.1��� ��d��.����I�X��,/����i�Ӡ�!��� ��?����y��ҁ� $��7s5����� b��&{�����x�H�6�X��I1_�L�)<�r��Z�|}W���*��؏��ݓ��B��B����
|
2
|
+
;��cd؞m�T��OctCq�)���KNɚ��=Y�;�k֤�
|
data/lib/martile.rb
CHANGED
@@ -9,6 +9,8 @@ require 'rdiscount'
|
|
9
9
|
require 'kvx'
|
10
10
|
|
11
11
|
|
12
|
+
# bug fix: 29-Feb-2016 Arbitrary URLs will no longer automatically
|
13
|
+
# be hyperlinked
|
12
14
|
# bug fix: 05-Dec-2015 PRE tags are now correctly filtered out using the
|
13
15
|
# apply_filter() method.
|
14
16
|
# the ignore_domainlabel keword is now supplied to the
|
@@ -141,9 +143,11 @@ class Martile
|
|
141
143
|
s8 = apply_filter(s7) {|x| underline x }
|
142
144
|
#puts 's8: ' + s8.inspect
|
143
145
|
s9 = apply_filter(s8) {|x| section x }
|
146
|
+
#puts 's9: ' + s9.inspect
|
147
|
+
|
144
148
|
s10 = apply_filter(s9) {|x| smartlink x }
|
145
149
|
|
146
|
-
#puts '
|
150
|
+
#puts 's10: ' + s10.inspect
|
147
151
|
|
148
152
|
#s11 = section s9
|
149
153
|
#puts 's11 : ' + s11.inspect
|
@@ -156,11 +160,12 @@ class Martile
|
|
156
160
|
s15 = apply_filter(s14){|x| kvx_to_dl x}
|
157
161
|
#puts 's15 : ' + s15.inspect
|
158
162
|
s16 = apply_filter(s15){|x| list_item_to_hyperlink x}
|
159
|
-
|
163
|
+
#puts 's16 : ' + s16.inspect
|
164
|
+
s17 = apply_filter(s16) {|x| mtlite_utils x }
|
160
165
|
|
161
|
-
#puts '
|
166
|
+
#puts 's17 : ' + s17.inspect
|
162
167
|
|
163
|
-
@to_s =
|
168
|
+
@to_s = s17
|
164
169
|
end
|
165
170
|
|
166
171
|
def to_html()
|
@@ -386,7 +391,7 @@ class Martile
|
|
386
391
|
|
387
392
|
a = x[/https?:\/\/([^\/]+)/,1].split(/\./)
|
388
393
|
r = a.length >= 3 ? a[1..-1] : a
|
389
|
-
"%s<span class='domain'>[%s]</span>" % [x, r.join('.')]
|
394
|
+
"%s <span class='domain'>[%s]</span>" % [x, r.join('.')]
|
390
395
|
end
|
391
396
|
|
392
397
|
# add strikethru to completed items
|
@@ -589,7 +594,7 @@ class Martile
|
|
589
594
|
|
590
595
|
def list_item_to_hyperlink(s)
|
591
596
|
|
592
|
-
s.gsub(/\B
|
597
|
+
s.gsub(/\B(\* +)([^\n]+)\s+(https?:\/\/.*)/,'\1[\2](\3)')
|
593
598
|
|
594
599
|
end
|
595
|
-
end
|
600
|
+
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.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE2MDIyOTIxMjQwNloXDTE3MDIyODIxMjQwNlowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
ggEBANbSoj4rFvdNUWWuKV2nb0qLTcAC0V+xHCwCFsRvFB//6Z0plXag5hzVdOO2
|
19
|
+
yzHyX/5M6hD0QNKBArEJOpLhnN6fssREfkDvrzTKLT021wO+5RKJMxyFl2guPdCz
|
20
|
+
IFl3TExYqRiAtnAyVGWivm1nVqxtDJK2qsXlgmrSxx7Jvwq4tjDY+6rHQB9e9P+j
|
21
|
+
ACC6TBYIqDP+KkIjUKqAP6Vep6pSTVOQYFktKTZIzx3vdyHBppv2LncUyDelLBl2
|
22
|
+
4NrbPQjEl91pGDYLS7rLGSrPaSqCC/k6FQaQaR/LT03lmSFKWKEA5z+wHYQgMMV5
|
23
|
+
yG6wQgK/iOx9hk8icybtmypvzZcCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQUl16Zm2cOJ7yFR1GkDmG/pI71uzgwJgYDVR0RBB8w
|
25
25
|
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAIFb/9wQl
|
27
|
+
6WkEVIYHGER5nPC5xEMA1SqwMo//PuA91vT7vpgUXkcgrKMcb1ncaXLSSqAzY95c
|
28
|
+
8A0dLf/WcBgEcDWDFpqwsZnajcR5ViQ/Ra5QKNsSjr2xJmxO7cwhdfpFjG78dDMK
|
29
|
+
TQWyjMw38DMDKV4KhW8vAPLecgEEBi5DloYDGxvf80DSkzrT2iyeIYOz4dTwJj4B
|
30
|
+
oUVtmTdPivRcjY9WAuDPjaJyU9GjiOItaA5Ze45y5dwwVzU9Vpy/Rqq8gF4rIhvt
|
31
|
+
fHJRwdYS8tvLYH9UFytJxDKjlovBuFUsfKP0FJlZGQGJM5JiIj5LWelTGJtJD8hI
|
32
|
+
2jPlwrOtiqZt2A==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2016-02-29 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rdiscount
|
metadata.gz.sig
CHANGED
Binary file
|