mtlite 0.2.7 → 0.2.8
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 +0 -0
- data/lib/mtlite.rb +2 -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: 5a51417fb5748b4bdf2a871b403d9e16f5279776
|
4
|
+
data.tar.gz: 83d101c32ac24954f17851eedb4949701209a686
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be3ca6b94a65e310ce8884feb893599e44e3cab193bddcdc9c743b7a4c47ccfa3ba614b686835fe9c81f3bb97a8944a605a3e574bd9326b76d9d5555b6272c13
|
7
|
+
data.tar.gz: ea3f37c01913e2820a10cfcb3e4b8db267d8d17d3fa466a95c3e27deac23e567a09d40c5ddd3b41aee2200dfa3ab78c7952226d67d36101521ef641bbd1002db
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/mtlite.rb
CHANGED
@@ -69,14 +69,14 @@ class MTLite
|
|
69
69
|
|
70
70
|
msg = RDiscount.new(raw_msg).to_html.gsub(/<\/?p[^>]*>/,'')
|
71
71
|
|
72
|
-
regex = %r([\w
|
72
|
+
regex = %r([\w\-/?=.#]+)
|
73
73
|
# generate anchor tags for URLs which don't have anchor tags
|
74
74
|
msg.gsub!(/(?:^(https?:#{regex})|\s(https?:#{regex}))/,' <a href="\2">\2</a>')
|
75
75
|
# add the target attribute to make all hyperlinks open in a new browser tab
|
76
76
|
msg.gsub!(/<a /,'<a target="_blank" ')
|
77
77
|
|
78
78
|
# undecorate h1 headings
|
79
|
-
msg.gsub!(/<h1/,'<h1 style="font-size: 0.
|
79
|
+
msg.gsub!(/<h1/,'<h1 style="font-size: 0.95em; font-weight: 600"')
|
80
80
|
|
81
81
|
@msg = msg
|
82
82
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mtlite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
Lf+iCpePM1lbLkgKUfPhf00XpwAwkQymLKFRwFd+X6o6lapK2kw972nfIo/fboG5
|
32
32
|
N9DGR5kbLxFe6w==
|
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
Binary file
|