mtlite 0.3.5 → 0.4.0

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
- SHA1:
3
- metadata.gz: 9e1a70674c3665a7cdf8cf8922d3f1856317efc3
4
- data.tar.gz: a03e654bcf91c58b004b3247716243d158233cb5
2
+ SHA256:
3
+ metadata.gz: 8ad72548b1d62cf4ae3af016f02824293b60dd03562902ffe36219df39197ffb
4
+ data.tar.gz: 5fb92f9b5a325a5638027ae704f3d33b1cf75ee05227268206c9b5f431bd9ad8
5
5
  SHA512:
6
- metadata.gz: fc65f5ea9994c71d76c5889aa9acf14d72b3c26b9eedc58e07c75c2a62f614643a54b14a1293c31ff2d9dc903aa9df0f1547fb8433ab4030c88080e4f8219e46
7
- data.tar.gz: 629aaf3e00a2982e233b6cf5cdf0fdfb3920e07575ae1d8ea3285266874b61772f8a81758256015b745c558ac1198b420753c78a6a1ebad57f4a2bdc60d38af2
6
+ metadata.gz: 4f364bdc994d39b8fb0202830ff74af6ebf5b10e72d66d447e132871158fd9fdb130a3f0441781818550f23f93604bb781aa361d96d26dda8138d6fc34201afb
7
+ data.tar.gz: b4ea6f85c444e48ef708320d67bd84bc896c45e187ffe9dbba0880c0cb05c306baeec0d7e2704f395b9a41b979d3818dbf393e701349951192b88176427ccd53
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/mtlite.rb CHANGED
@@ -85,11 +85,11 @@ class MTLite
85
85
  # generate anchor tags for URLs which don't have anchor tags
86
86
  msg.gsub!(/(?:^(https?:#{regex})|\s(https?:#{regex}))/,' <a href="\2">\2</a>')
87
87
 
88
- msg.gsub!(/(?:^(https?:#{regex})|\s(https?:#{regex}))/) do |x|
89
- url = $2
88
+ msg.gsub!(/(?<=\>)https?:#{regex}/) do |x|
89
+ url = x
90
90
  url2 = url.sub(/^https?:\/\//,'').sub(/^www\./,'')
91
- url3 = url2.length > 33 ? url2[0..33] + '' : url2
92
- " <a href='#{url}'>#{url3}</a>"
91
+ url3 = url2.length > 33 ? url2[0..33] + '...' : url2
92
+ #" <a href='#{url}'>#{url3}</a>"
93
93
  end
94
94
 
95
95
  # add the target attribute to make all hyperlinks open in a new browser tab
@@ -142,4 +142,4 @@ class MTLite
142
142
 
143
143
  end
144
144
 
145
- end
145
+ end
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.3.5
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -10,28 +10,32 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
- YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE3MDcwMTIxMDEzNloXDTE4MDcwMTIxMDEzNlowSDESMBAG
16
- A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
- EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBANpt1X1lfO3FEUiitgJHI1irNFKZ3zCKbH5ZHOKcH4jnsy0VqzWJgwQHkPvv
19
- 1kmuWIrP8PP2GownflOhYzHX0hKUnNy7DBHv7blrZ3/tEXPp2bPCCfF8HUI0BsHk
20
- 8dchLT/82z8PitCtKEoKrb5RcyuYMpw8g0pYxujx/A4pLLDfosRfROk1Ou/8aP2V
21
- JI1GI5jodJVWoNU6qursdRFZGPKzm/Wm+pMRyb+BXNGSLlzvzYLNm76uHJekZwfY
22
- eWaH+wAUnIiIp68rRNPiYK9pechKfGu+Eu9sz7rMw18L/43qJI970lkRmMAA731Z
23
- sX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6kd/u2r7YbzLnvraDnBwiuFAPticmw7JuVpZ
35
+ RpkfFZne43vM6SRQRvmVREEMpk57Mub1ccA9v5eElBuZbfyEO5eMYSc88DkxHCkr
36
+ sfZbXuL/o5TgPyPL7UYvUyoJ
33
37
  -----END CERTIFICATE-----
34
- date: 2017-07-04 00:00:00.000000000 Z
38
+ date: 2021-02-23 00:00:00.000000000 Z
35
39
  dependencies:
36
40
  - !ruby/object:Gem::Dependency
37
41
  name: rdiscount
@@ -57,24 +61,24 @@ dependencies:
57
61
  name: embiggen
58
62
  requirement: !ruby/object:Gem::Requirement
59
63
  requirements:
60
- - - "~>"
61
- - !ruby/object:Gem::Version
62
- version: '0.1'
63
64
  - - ">="
64
65
  - !ruby/object:Gem::Version
65
66
  version: 0.1.0
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.1'
66
70
  type: :runtime
67
71
  prerelease: false
68
72
  version_requirements: !ruby/object:Gem::Requirement
69
73
  requirements:
70
- - - "~>"
71
- - !ruby/object:Gem::Version
72
- version: '0.1'
73
74
  - - ">="
74
75
  - !ruby/object:Gem::Version
75
76
  version: 0.1.0
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: '0.1'
76
80
  description:
77
- email: james@jamesrobertson.eu
81
+ email: digital.robertson@gmail.com
78
82
  executables: []
79
83
  extensions: []
80
84
  extra_rdoc_files: []
@@ -100,8 +104,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
104
  version: '0'
101
105
  requirements: []
102
106
  rubyforge_project:
103
- rubygems_version: 2.6.8
107
+ rubygems_version: 2.7.10
104
108
  signing_key:
105
109
  specification_version: 4
106
- summary: mtlite
110
+ summary: Martile Lite generates HTML ideally from 1 line of a condensed kind of markdown
111
+ language.
107
112
  test_files: []
metadata.gz.sig CHANGED
Binary file