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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3365088327c38a4e2c4056858e53f9501cf00600
4
- data.tar.gz: d6e70ff6e5a12ae2511e35cfd47969a4cf9b3a8a
3
+ metadata.gz: 5a51417fb5748b4bdf2a871b403d9e16f5279776
4
+ data.tar.gz: 83d101c32ac24954f17851eedb4949701209a686
5
5
  SHA512:
6
- metadata.gz: f78c1f7c3614449e788348fddc849bdba41e7bfe3b74938c148656f21fee3c7ae83318bc4bba0b039b97e5c2eb61ad3881f5ebbca27881c999cff00d54aa6ea5
7
- data.tar.gz: aaa6b18d9ddde64369ccee8088d2292eeb31ae1651501eaf086c983f2b8e0343ee7e6697956643bbcdb8903ab5ed5381fc2ce26d5261d07afd5b212ecebbac14
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.8em; font-weight: 600"')
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.7
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-17 00:00:00.000000000 Z
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