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 +4 -4
- data/.travis.yml +3 -3
- data/Gemfile.lock +29 -22
- data/lib/rack/address_munging/detection.rb +3 -3
- data/lib/rack/address_munging/version.rb +1 -1
- data/rack-address_munging.gemspec +5 -1
- metadata +32 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5cb16c6591d7822acefa2c9d81be6674c25f7405e072f76cc6e4eeff747ef4b
|
4
|
+
data.tar.gz: b32091ec4f99b028f72470b0313eb0da6a134478fe79a938fe6ed0829e14a785
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc77bb466957021a52c69f04f6a1a796c909ebfffd7b36b499f7e2949036d5fbbdaddb47181e98c8be11da03cff4dd275104973f85229dd1373727b353f30e81
|
7
|
+
data.tar.gz: 6700de733388a439bb43485d49c5a0e97ade800aac7ba596ca7fe3ad36daef2d49b3c46c026d2be075ad10c8188156e953413b414b7b1c5392541799502973cd
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,52 +1,57 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rack-address_munging (0.1.
|
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.
|
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
|
16
|
-
parallel (1.
|
17
|
-
parser (
|
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.
|
22
|
-
regexp_parser (1.
|
23
|
-
rexml (3.2.
|
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.
|
28
|
+
rspec-core (3.10.1)
|
29
29
|
rspec-support (~> 3.10.0)
|
30
|
-
rspec-expectations (3.10.
|
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.
|
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.
|
37
|
-
rubocop (1.
|
36
|
+
rspec-support (3.10.2)
|
37
|
+
rubocop (1.13.0)
|
38
38
|
parallel (~> 1.10)
|
39
|
-
parser (>=
|
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.
|
43
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
44
44
|
ruby-progressbar (~> 1.7)
|
45
|
-
unicode-display_width (>= 1.4.0, <
|
46
|
-
rubocop-ast (1.
|
47
|
-
parser (>=
|
48
|
-
|
49
|
-
|
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.
|
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
|
12
|
-
REGEXP_MAILTO = /mailto:#{REGEXP_EMAIL}/i
|
13
|
-
REGEXP_LINK = %r{<a[^>]+?href="#{REGEXP_MAILTO}"[^>]*?>.+?</a>}i
|
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)
|
@@ -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.
|
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.
|
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:
|
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.
|
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.
|
168
|
+
rubygems_version: 3.2.3
|
141
169
|
signing_key:
|
142
170
|
specification_version: 4
|
143
171
|
summary: Rack middleware for automatic address munging.
|