rack-address_munging 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: 17a66ed69a9d27df061e997e87817ea15ead641e36969330830a897e52370ef9
4
- data.tar.gz: f727b8fcac38b027d677d4bbd698e87dcf8ae88aeddb7836c4e208715e3625ef
3
+ metadata.gz: a5cb16c6591d7822acefa2c9d81be6674c25f7405e072f76cc6e4eeff747ef4b
4
+ data.tar.gz: b32091ec4f99b028f72470b0313eb0da6a134478fe79a938fe6ed0829e14a785
5
5
  SHA512:
6
- metadata.gz: 4c0620b21dbffbd5f00aa419450ad2a88015972600d411b86bb0ca8e74c00986a5d6001244f60ef46d0a3c66b146c7f562bba0bb2689fe9f874f39bef6198e0d
7
- data.tar.gz: 12add062a7e2fd96e12c45e7621d5023c65c0d5b50a76a9eae94ab4038fa886048ee48f8fffb8a6e9f07003d3c32f894477e3d2433175bfd3e02068903a94f08
6
+ metadata.gz: fc77bb466957021a52c69f04f6a1a796c909ebfffd7b36b499f7e2949036d5fbbdaddb47181e98c8be11da03cff4dd275104973f85229dd1373727b353f30e81
7
+ data.tar.gz: 6700de733388a439bb43485d49c5a0e97ade800aac7ba596ca7fe3ad36daef2d49b3c46c026d2be075ad10c8188156e953413b414b7b1c5392541799502973cd
data/.travis.yml CHANGED
@@ -3,9 +3,9 @@ sudo: false
3
3
  script: "bundle exec rake clean spec"
4
4
 
5
5
  rvm:
6
- - 2.2
7
- - 2.3
8
- - 2.4
6
+ - 2.6
7
+ - 2.7
8
+ - 3.0
9
9
 
10
10
  gemfile:
11
11
  - Gemfile
data/Gemfile.lock CHANGED
@@ -1,52 +1,57 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-address_munging (0.1.2)
4
+ rack-address_munging (0.1.3)
5
5
  mail (> 2.5.0)
6
6
  rack (>= 2.1.4)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- ast (2.4.1)
11
+ ast (2.4.2)
12
12
  diff-lcs (1.4.4)
13
13
  mail (2.7.1)
14
14
  mini_mime (>= 0.1.1)
15
- mini_mime (1.0.2)
16
- parallel (1.19.2)
17
- parser (2.7.2.0)
15
+ mini_mime (1.1.0)
16
+ parallel (1.20.1)
17
+ parser (3.0.1.1)
18
18
  ast (~> 2.4.1)
19
19
  rack (2.2.3)
20
20
  rainbow (3.0.0)
21
- rake (13.0.1)
22
- regexp_parser (1.8.2)
23
- rexml (3.2.4)
21
+ rake (13.0.3)
22
+ regexp_parser (2.1.1)
23
+ rexml (3.2.5)
24
24
  rspec (3.10.0)
25
25
  rspec-core (~> 3.10.0)
26
26
  rspec-expectations (~> 3.10.0)
27
27
  rspec-mocks (~> 3.10.0)
28
- rspec-core (3.10.0)
28
+ rspec-core (3.10.1)
29
29
  rspec-support (~> 3.10.0)
30
- rspec-expectations (3.10.0)
30
+ rspec-expectations (3.10.1)
31
31
  diff-lcs (>= 1.2.0, < 2.0)
32
32
  rspec-support (~> 3.10.0)
33
- rspec-mocks (3.10.0)
33
+ rspec-mocks (3.10.2)
34
34
  diff-lcs (>= 1.2.0, < 2.0)
35
35
  rspec-support (~> 3.10.0)
36
- rspec-support (3.10.0)
37
- rubocop (1.1.0)
36
+ rspec-support (3.10.2)
37
+ rubocop (1.13.0)
38
38
  parallel (~> 1.10)
39
- parser (>= 2.7.1.5)
39
+ parser (>= 3.0.0.0)
40
40
  rainbow (>= 2.2.2, < 4.0)
41
- regexp_parser (>= 1.8)
41
+ regexp_parser (>= 1.8, < 3.0)
42
42
  rexml
43
- rubocop-ast (>= 1.0.1)
43
+ rubocop-ast (>= 1.2.0, < 2.0)
44
44
  ruby-progressbar (~> 1.7)
45
- unicode-display_width (>= 1.4.0, < 2.0)
46
- rubocop-ast (1.1.0)
47
- parser (>= 2.7.1.5)
48
- ruby-progressbar (1.10.1)
49
- unicode-display_width (1.7.0)
45
+ unicode-display_width (>= 1.4.0, < 3.0)
46
+ rubocop-ast (1.5.0)
47
+ parser (>= 3.0.1.1)
48
+ rubocop-rake (0.5.1)
49
+ rubocop
50
+ rubocop-rspec (2.3.0)
51
+ rubocop (~> 1.0)
52
+ rubocop-ast (>= 1.1.0)
53
+ ruby-progressbar (1.11.0)
54
+ unicode-display_width (2.0.0)
50
55
 
51
56
  PLATFORMS
52
57
  ruby
@@ -57,6 +62,8 @@ DEPENDENCIES
57
62
  rake (~> 13.0)
58
63
  rspec (~> 3.10.0)
59
64
  rubocop
65
+ rubocop-rake
66
+ rubocop-rspec
60
67
 
61
68
  BUNDLED WITH
62
- 2.1.4
69
+ 2.2.3
@@ -8,9 +8,9 @@ module Rack
8
8
  # This module contains email address detection and validation methods.
9
9
  # It is meant to be included in any munging strategy.
10
10
  module Detection
11
- REGEXP_EMAIL = /[a-z0-9][^@\s'":<>]+@[^@\s'":<>]+[a-z0-9]/i.freeze
12
- REGEXP_MAILTO = /mailto:#{REGEXP_EMAIL}/i.freeze
13
- REGEXP_LINK = %r{<a[^>]+?href="#{REGEXP_MAILTO}"[^>]*?>.+?</a>}i.freeze
11
+ REGEXP_EMAIL = /[a-z0-9][^@\s'":<>]+@[^@\s'":<>]+[a-z0-9]/i
12
+ REGEXP_MAILTO = /mailto:#{REGEXP_EMAIL}/i
13
+ REGEXP_LINK = %r{<a[^>]+?href="#{REGEXP_MAILTO}"[^>]*?>.+?</a>}i
14
14
 
15
15
  def email?(string)
16
16
  m = ::Mail::Address.new(string)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rack
4
4
  class AddressMunging
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
@@ -15,6 +15,8 @@ Gem::Specification.new do |spec|
15
15
  spec.description = 'A Rack middleware for automatic e-mail addresses munging.'
16
16
  spec.homepage = 'https://github.com/notus-sh/rack-address_munging'
17
17
 
18
+ raise 'RubyGems 2.0 or newer is required.' unless spec.respond_to?(:metadata)
19
+
18
20
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
19
21
 
20
22
  spec.require_paths = ['lib']
@@ -22,7 +24,7 @@ Gem::Specification.new do |spec|
22
24
  f.match(%r{^(test|spec|features)/})
23
25
  end
24
26
 
25
- spec.required_ruby_version = '>= 2.5'
27
+ spec.required_ruby_version = '>= 2.6'
26
28
 
27
29
  spec.add_dependency 'mail', '> 2.5.0'
28
30
  spec.add_dependency 'rack', '>= 2.1.4'
@@ -31,4 +33,6 @@ Gem::Specification.new do |spec|
31
33
  spec.add_development_dependency 'rake', '~> 13.0'
32
34
  spec.add_development_dependency 'rspec', '~> 3.10.0'
33
35
  spec.add_development_dependency 'rubocop'
36
+ spec.add_development_dependency 'rubocop-rake'
37
+ spec.add_development_dependency 'rubocop-rspec'
34
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-address_munging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaël-Ian Havard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-02 00:00:00.000000000 Z
11
+ date: 2021-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail
@@ -94,6 +94,34 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
97
125
  description: A Rack middleware for automatic e-mail addresses munging.
98
126
  email:
99
127
  - gael-ian@notus.sh
@@ -130,14 +158,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
130
158
  requirements:
131
159
  - - ">="
132
160
  - !ruby/object:Gem::Version
133
- version: '2.5'
161
+ version: '2.6'
134
162
  required_rubygems_version: !ruby/object:Gem::Requirement
135
163
  requirements:
136
164
  - - ">="
137
165
  - !ruby/object:Gem::Version
138
166
  version: '0'
139
167
  requirements: []
140
- rubygems_version: 3.1.2
168
+ rubygems_version: 3.2.3
141
169
  signing_key:
142
170
  specification_version: 4
143
171
  summary: Rack middleware for automatic address munging.