truemail 1.4.0 → 1.4.1

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: 7178be3e727f222d2858c31cdeaa2ddbaeb68aafd149153397f8de1605c1f59a
4
- data.tar.gz: ac8ef85621ef89d43e486d2c1fda46902fde10332cfd2d4b2eb363da08900ad4
3
+ metadata.gz: e8fca3d51081c1759a615e13773099152c3a2e082fcd63f889a300abb0111447
4
+ data.tar.gz: 1e77f8c4f31401db1d542bd31a35ec44f048fba9f5d4f815ec8b2e97811bc9e8
5
5
  SHA512:
6
- metadata.gz: 846814d9d1d62df1c7298bfb4c4e930029fc1c33fe270313c2020f82d19888b7d9aeabd60999406b015209d0058e9988934164e6a617563e0601a11b52730d09
7
- data.tar.gz: 88aba85102b59a4c8313d6d8816a66c6dea9a1bf73ae9d1437676337f316b77d109a478ea7703ed281bb6f92ae887bbac1d8eb817d86411bc034252b68fe6bb7
6
+ metadata.gz: 05bc4c5bef296a9e62f865f560a784db8355d399af7ba46ed3e4d5d2ada451fb229a4fbacacacaf92402251a74f9ebc20291763a28fe5b6fc7b98c42d1c5f608
7
+ data.tar.gz: 3454d8b0786580aff002f62772f090c951af1b0ff46cbc4d27700a9517e662b5a6a625e1cf2da29456c0d9d60c82ce861f2daefc139886a2be178a8ec8c257d9
@@ -9,9 +9,12 @@ PreCommit:
9
9
  BundleAudit:
10
10
  enabled: true
11
11
 
12
- Brakeman:
12
+ Fasterer:
13
+ enabled: true
14
+ include: '**/*.rb'
15
+
16
+ TrailingWhitespace:
13
17
  enabled: true
14
- flags: ['--exit-on-warn', '--quiet', '--summary']
15
18
 
16
19
  RuboCop:
17
20
  enabled: true
data/.reek.yml CHANGED
@@ -59,10 +59,11 @@ detectors:
59
59
  exclude:
60
60
  - Truemail::Validator#result_not_changed?
61
61
  - Truemail::Configuration#logger=
62
+ - Truemail::Validator#run
62
63
 
63
64
  BooleanParameter:
64
65
  exclude:
65
66
  - Truemail::Configuration#logger=
66
67
 
67
68
  exclude_paths:
68
- - spec/support/helpers/validator_helper.rb
69
+ - spec/support/helpers
@@ -1,3 +1,7 @@
1
+ require:
2
+ - rubocop-rspec
3
+ - rubocop-performance
4
+
1
5
  AllCops:
2
6
  DisplayCopNames: true
3
7
  DisplayStyleGuide: true
@@ -19,16 +23,39 @@ Metrics/CyclomaticComplexity:
19
23
  Metrics/PerceivedComplexity:
20
24
  Enabled: false
21
25
 
22
- Documentation:
26
+ Style/Documentation:
23
27
  Enabled: false
24
28
 
25
29
  Style/DoubleNegation:
26
30
  Enabled: false
27
31
 
32
+ Style/EmptyCaseCondition:
33
+ Enabled: false
34
+
28
35
  Style/RescueStandardError:
29
36
  Enabled: false
30
37
 
31
- require: rubocop-rspec
38
+ Layout/ClassStructure:
39
+ Enabled: true
40
+ Categories:
41
+ module_inclusion:
42
+ - include
43
+ - prepend
44
+ - extend
45
+ associations:
46
+ - has_one
47
+ - has_many
48
+ - belongs_to
49
+ - has_and_belongs_to_many
50
+ ExpectedOrder:
51
+ - module_inclusion
52
+ - constants
53
+ - associations
54
+ - public_class_methods
55
+ - initializer
56
+ - public_methods
57
+ - protected_methods
58
+ - private_methods
32
59
 
33
60
  RSpec/ExampleLength:
34
61
  Enabled: false
@@ -50,3 +77,6 @@ RSpec/AnyInstance:
50
77
 
51
78
  RSpec/MessageSpies:
52
79
  Enabled: false
80
+
81
+ RSpec/MultipleDescribes:
82
+ Enabled: false
@@ -1,6 +1,15 @@
1
1
  # Changelog
2
2
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
3
3
 
4
+ ## [1.4.1] - 2019-11-20
5
+ ### Changed
6
+ - gem development dependencies
7
+ - linters configs
8
+ - gem documentation
9
+
10
+ ### Removed
11
+ - truemail rspec helpers (moved to independent gem [`truemail-rspec`](https://github.com/truemail-rb/truemail-rspec))
12
+
4
13
  ## [1.4.0] - 2019-10-28
5
14
  ### Added
6
15
  - Event logger (ability to output validation logs to stdout/file)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- truemail (1.4.0)
4
+ truemail (1.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -14,37 +14,38 @@ GEM
14
14
  bundler-audit (0.6.1)
15
15
  bundler (>= 1.2.0, < 3)
16
16
  thor (~> 0.18)
17
- byebug (11.0.0)
18
- childprocess (0.9.0)
19
- ffi (~> 1.0, >= 1.0.11)
17
+ byebug (11.0.1)
18
+ childprocess (3.0.0)
20
19
  codeclimate-engine-rb (0.4.1)
21
20
  virtus (~> 1.0)
22
21
  coderay (1.1.2)
23
22
  coercible (1.0.0)
24
23
  descendants_tracker (~> 0.0.1)
24
+ colorize (0.8.1)
25
25
  descendants_tracker (0.0.4)
26
26
  thread_safe (~> 0.3, >= 0.3.1)
27
27
  diff-lcs (1.3)
28
- docile (1.3.1)
28
+ docile (1.3.2)
29
29
  equalizer (0.0.11)
30
- ffaker (2.10.0)
31
- ffi (1.10.0)
30
+ fasterer (0.8.0)
31
+ colorize (~> 0.7)
32
+ ruby_parser (>= 3.14.1)
33
+ ffaker (2.13.0)
32
34
  ice_nine (0.11.2)
33
35
  iniparse (1.4.4)
34
- jaro_winkler (1.5.2)
36
+ jaro_winkler (1.5.4)
35
37
  json (2.2.0)
36
38
  json_matchers (0.11.1)
37
39
  json_schema
38
40
  json_schema (0.20.8)
39
41
  kwalify (0.7.2)
40
42
  method_source (0.9.2)
41
- overcommit (0.46.0)
42
- childprocess (~> 0.6, >= 0.6.3)
43
+ overcommit (0.51.0)
44
+ childprocess (>= 0.6.3, < 4)
43
45
  iniparse (~> 1.4)
44
- parallel (1.14.0)
45
- parser (2.6.0.0)
46
+ parallel (1.19.0)
47
+ parser (2.6.5.0)
46
48
  ast (~> 2.4.0)
47
- powerpack (0.1.2)
48
49
  pry (0.12.2)
49
50
  coderay (~> 1.1.0)
50
51
  method_source (~> 0.9.0)
@@ -53,8 +54,8 @@ GEM
53
54
  pry (~> 0.10)
54
55
  psych (3.1.0)
55
56
  rainbow (3.0.0)
56
- rake (12.3.2)
57
- reek (5.3.1)
57
+ rake (13.0.1)
58
+ reek (5.5.0)
58
59
  codeclimate-engine-rb (~> 0.4.0)
59
60
  kwalify (~> 0.7.0)
60
61
  parser (>= 2.5.0.0, < 2.7, != 2.5.1.1)
@@ -73,26 +74,32 @@ GEM
73
74
  diff-lcs (>= 1.2.0, < 2.0)
74
75
  rspec-support (~> 3.9.0)
75
76
  rspec-support (3.9.0)
76
- rubocop (0.65.0)
77
+ rubocop (0.76.0)
77
78
  jaro_winkler (~> 1.5.1)
78
79
  parallel (~> 1.10)
79
- parser (>= 2.5, != 2.5.1.1)
80
- powerpack (~> 0.1)
81
- psych (>= 3.1.0)
80
+ parser (>= 2.6)
82
81
  rainbow (>= 2.2.2, < 4.0)
83
82
  ruby-progressbar (~> 1.7)
84
- unicode-display_width (~> 1.4.0)
85
- rubocop-rspec (1.32.0)
86
- rubocop (>= 0.60.0)
87
- ruby-progressbar (1.10.0)
88
- simplecov (0.16.1)
83
+ unicode-display_width (>= 1.4.0, < 1.7)
84
+ rubocop-performance (1.5.1)
85
+ rubocop (>= 0.71.0)
86
+ rubocop-rspec (1.36.0)
87
+ rubocop (>= 0.68.1)
88
+ ruby-progressbar (1.10.1)
89
+ ruby_parser (3.14.1)
90
+ sexp_processor (~> 4.9)
91
+ sexp_processor (4.13.0)
92
+ simplecov (0.17.1)
89
93
  docile (~> 1.1)
90
94
  json (>= 1.8, < 3)
91
95
  simplecov-html (~> 0.10.0)
92
96
  simplecov-html (0.10.2)
93
97
  thor (0.20.3)
94
98
  thread_safe (0.3.6)
95
- unicode-display_width (1.4.1)
99
+ truemail-rspec (0.1.0)
100
+ rspec (~> 3.0)
101
+ truemail (~> 1.4)
102
+ unicode-display_width (1.6.0)
96
103
  virtus (1.0.5)
97
104
  axiom-types (~> 0.1)
98
105
  coercible (~> 1.0)
@@ -104,18 +111,21 @@ PLATFORMS
104
111
 
105
112
  DEPENDENCIES
106
113
  bundler (~> 1.16)
107
- bundler-audit
108
- ffaker
109
- json_matchers
110
- overcommit
111
- pry-byebug
112
- rake
113
- reek
114
- rspec
115
- rubocop
116
- rubocop-rspec
117
- simplecov
114
+ bundler-audit (~> 0.6.1)
115
+ fasterer (~> 0.8.0)
116
+ ffaker (~> 2.13)
117
+ json_matchers (~> 0.11.1)
118
+ overcommit (~> 0.51.0)
119
+ pry-byebug (~> 3.7)
120
+ rake (~> 13.0, >= 13.0.1)
121
+ reek (~> 5.5)
122
+ rspec (~> 3.9)
123
+ rubocop (~> 0.76.0)
124
+ rubocop-performance (~> 1.5, >= 1.5.1)
125
+ rubocop-rspec (~> 1.36)
126
+ simplecov (~> 0.17.1)
118
127
  truemail!
128
+ truemail-rspec (~> 0.1.0)
119
129
 
120
130
  BUNDLED WITH
121
- 1.17.3
131
+ 1.16.6
data/README.md CHANGED
@@ -37,6 +37,7 @@ The Truemail gem helps you validate emails via regex pattern, presence of DNS re
37
37
  - [Truemail helpers](#truemail-helpers)
38
38
  - [.valid?](#valid)
39
39
  - [Test environment](#test-environment)
40
+ - [Truemail family](#truemail-family)
40
41
  - [Contributing](#contributing)
41
42
  - [License](#license)
42
43
  - [Code of Conduct](#code-of-conduct)
@@ -948,6 +949,14 @@ end
948
949
  ```
949
950
 
950
951
  ---
952
+ ## Truemail family
953
+
954
+ All Truemail extensions: https://github.com/truemail-rb
955
+
956
+ ### truemail-rspec
957
+
958
+ gem `truemail-rspec` - Truemail configuration and validator RSpec helpers, https://github.com/truemail-rb/truemail-rspec
959
+
951
960
  ## Contributing
952
961
 
953
962
  Bug reports and pull requests are welcome on GitHub at https://github.com/rubygarage/truemail. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct. Please check the [open tikets](https://github.com/rubygarage/truemail/issues). Be shure to follow Contributor Code of Conduct below and our [Contributing Guidelines](CONTRIBUTING.md).
@@ -24,7 +24,7 @@ module Truemail
24
24
  def run
25
25
  Truemail::Validate::DomainListMatch.check(result)
26
26
  result_not_changed? ? Truemail::Validate.const_get(validation_type.capitalize).check(result) : update_validation_type
27
- logger.push(self) if logger
27
+ logger&.push(self)
28
28
  self
29
29
  end
30
30
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Truemail
4
- VERSION = '1.4.0'
4
+ VERSION = '1.4.1'
5
5
  end
@@ -24,15 +24,18 @@ Gem::Specification.new do |spec|
24
24
  spec.require_paths = ['lib']
25
25
 
26
26
  spec.add_development_dependency 'bundler', '~> 1.16'
27
- spec.add_development_dependency 'bundler-audit'
28
- spec.add_development_dependency 'ffaker'
29
- spec.add_development_dependency 'json_matchers'
30
- spec.add_development_dependency 'overcommit'
31
- spec.add_development_dependency 'pry-byebug'
32
- spec.add_development_dependency 'rake'
33
- spec.add_development_dependency 'reek'
34
- spec.add_development_dependency 'rspec'
35
- spec.add_development_dependency 'rubocop'
36
- spec.add_development_dependency 'rubocop-rspec'
37
- spec.add_development_dependency 'simplecov'
27
+ spec.add_development_dependency 'bundler-audit', '~> 0.6.1'
28
+ spec.add_development_dependency 'fasterer', '~> 0.8.0'
29
+ spec.add_development_dependency 'ffaker', '~> 2.13'
30
+ spec.add_development_dependency 'json_matchers', '~> 0.11.1'
31
+ spec.add_development_dependency 'overcommit', '~> 0.51.0'
32
+ spec.add_development_dependency 'pry-byebug', '~> 3.7'
33
+ spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.1'
34
+ spec.add_development_dependency 'reek', '~> 5.5'
35
+ spec.add_development_dependency 'rspec', '~> 3.9'
36
+ spec.add_development_dependency 'rubocop', '~> 0.76.0'
37
+ spec.add_development_dependency 'rubocop-performance', '~> 1.5', '>= 1.5.1'
38
+ spec.add_development_dependency 'rubocop-rspec', '~> 1.36'
39
+ spec.add_development_dependency 'simplecov', '~> 0.17.1'
40
+ spec.add_development_dependency 'truemail-rspec', '~> 0.1.0'
38
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: truemail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladislav Trotsenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-28 00:00:00.000000000 Z
11
+ date: 2019-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,156 +28,210 @@ dependencies:
28
28
  name: bundler-audit
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.6.1
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.6.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: fasterer
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.8.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: '0'
54
+ version: 0.8.0
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: ffaker
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - ">="
59
+ - - "~>"
46
60
  - !ruby/object:Gem::Version
47
- version: '0'
61
+ version: '2.13'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - ">="
66
+ - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: '0'
68
+ version: '2.13'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: json_matchers
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - ">="
73
+ - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: '0'
75
+ version: 0.11.1
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - ">="
80
+ - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: '0'
82
+ version: 0.11.1
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: overcommit
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - ">="
87
+ - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: '0'
89
+ version: 0.51.0
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - ">="
94
+ - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: '0'
96
+ version: 0.51.0
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: pry-byebug
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - ">="
101
+ - - "~>"
88
102
  - !ruby/object:Gem::Version
89
- version: '0'
103
+ version: '3.7'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - ">="
108
+ - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: '0'
110
+ version: '3.7'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rake
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '13.0'
101
118
  - - ">="
102
119
  - !ruby/object:Gem::Version
103
- version: '0'
120
+ version: 13.0.1
104
121
  type: :development
105
122
  prerelease: false
106
123
  version_requirements: !ruby/object:Gem::Requirement
107
124
  requirements:
125
+ - - "~>"
126
+ - !ruby/object:Gem::Version
127
+ version: '13.0'
108
128
  - - ">="
109
129
  - !ruby/object:Gem::Version
110
- version: '0'
130
+ version: 13.0.1
111
131
  - !ruby/object:Gem::Dependency
112
132
  name: reek
113
133
  requirement: !ruby/object:Gem::Requirement
114
134
  requirements:
115
- - - ">="
135
+ - - "~>"
116
136
  - !ruby/object:Gem::Version
117
- version: '0'
137
+ version: '5.5'
118
138
  type: :development
119
139
  prerelease: false
120
140
  version_requirements: !ruby/object:Gem::Requirement
121
141
  requirements:
122
- - - ">="
142
+ - - "~>"
123
143
  - !ruby/object:Gem::Version
124
- version: '0'
144
+ version: '5.5'
125
145
  - !ruby/object:Gem::Dependency
126
146
  name: rspec
127
147
  requirement: !ruby/object:Gem::Requirement
128
148
  requirements:
129
- - - ">="
149
+ - - "~>"
130
150
  - !ruby/object:Gem::Version
131
- version: '0'
151
+ version: '3.9'
132
152
  type: :development
133
153
  prerelease: false
134
154
  version_requirements: !ruby/object:Gem::Requirement
135
155
  requirements:
136
- - - ">="
156
+ - - "~>"
137
157
  - !ruby/object:Gem::Version
138
- version: '0'
158
+ version: '3.9'
139
159
  - !ruby/object:Gem::Dependency
140
160
  name: rubocop
141
161
  requirement: !ruby/object:Gem::Requirement
142
162
  requirements:
163
+ - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: 0.76.0
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: 0.76.0
173
+ - !ruby/object:Gem::Dependency
174
+ name: rubocop-performance
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - "~>"
178
+ - !ruby/object:Gem::Version
179
+ version: '1.5'
143
180
  - - ">="
144
181
  - !ruby/object:Gem::Version
145
- version: '0'
182
+ version: 1.5.1
146
183
  type: :development
147
184
  prerelease: false
148
185
  version_requirements: !ruby/object:Gem::Requirement
149
186
  requirements:
187
+ - - "~>"
188
+ - !ruby/object:Gem::Version
189
+ version: '1.5'
150
190
  - - ">="
151
191
  - !ruby/object:Gem::Version
152
- version: '0'
192
+ version: 1.5.1
153
193
  - !ruby/object:Gem::Dependency
154
194
  name: rubocop-rspec
155
195
  requirement: !ruby/object:Gem::Requirement
156
196
  requirements:
157
- - - ">="
197
+ - - "~>"
158
198
  - !ruby/object:Gem::Version
159
- version: '0'
199
+ version: '1.36'
160
200
  type: :development
161
201
  prerelease: false
162
202
  version_requirements: !ruby/object:Gem::Requirement
163
203
  requirements:
164
- - - ">="
204
+ - - "~>"
165
205
  - !ruby/object:Gem::Version
166
- version: '0'
206
+ version: '1.36'
167
207
  - !ruby/object:Gem::Dependency
168
208
  name: simplecov
169
209
  requirement: !ruby/object:Gem::Requirement
170
210
  requirements:
171
- - - ">="
211
+ - - "~>"
172
212
  - !ruby/object:Gem::Version
173
- version: '0'
213
+ version: 0.17.1
174
214
  type: :development
175
215
  prerelease: false
176
216
  version_requirements: !ruby/object:Gem::Requirement
177
217
  requirements:
178
- - - ">="
218
+ - - "~>"
219
+ - !ruby/object:Gem::Version
220
+ version: 0.17.1
221
+ - !ruby/object:Gem::Dependency
222
+ name: truemail-rspec
223
+ requirement: !ruby/object:Gem::Requirement
224
+ requirements:
225
+ - - "~>"
226
+ - !ruby/object:Gem::Version
227
+ version: 0.1.0
228
+ type: :development
229
+ prerelease: false
230
+ version_requirements: !ruby/object:Gem::Requirement
231
+ requirements:
232
+ - - "~>"
179
233
  - !ruby/object:Gem::Version
180
- version: '0'
234
+ version: 0.1.0
181
235
  description: Configurable plain Ruby email validator. Verify email via Regex, DNS
182
236
  and SMTP. Be sure that email address exists.
183
237
  email: