truemail-rspec 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +12 -0
- data/.rubocop.yml +3 -1
- data/CHANGELOG.md +9 -4
- data/Gemfile.lock +4 -9
- data/README.md +18 -7
- data/lib/truemail/rspec/version.rb +1 -1
- data/truemail-rspec.gemspec +2 -3
- metadata +15 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f954123eb983f0837194f77e3a8e5ecb960a96432cb3bab7d16e5434f3cceb01
|
4
|
+
data.tar.gz: 9fcefc0fb805488a186f7ad6760319be75d9e90522ea52a3119468db55b27194
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad68f3e2bc585b323bbdf920b2ceb417dd7fa4ace412beb32d7f4c80406d0a568163c64f3d8f2fd6d83c3e155963922e20fc68e7904e828d312fd318ed9ba7ef
|
7
|
+
data.tar.gz: 9327d2ccbb367e867f0d00e84636ef2b431ca13a1d2cafc264b02c95c8812dee3c97e7b04da92e1b4d17137135644d136dc79eeda2cb27de73f5fa4c781ed2b8
|
data/.codeclimate.yml
ADDED
data/.rubocop.yml
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require:
|
2
2
|
- rubocop-rspec
|
3
|
-
- rubocop-performance
|
4
3
|
|
5
4
|
AllCops:
|
6
5
|
DisplayCopNames: true
|
@@ -17,6 +16,9 @@ Metrics/ClassLength:
|
|
17
16
|
Metrics/MethodLength:
|
18
17
|
Max: 15
|
19
18
|
|
19
|
+
Metrics/BlockLength:
|
20
|
+
Enabled: false
|
21
|
+
|
20
22
|
Metrics/CyclomaticComplexity:
|
21
23
|
Enabled: false
|
22
24
|
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,14 @@
|
|
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
|
-
## [0.1.
|
4
|
+
## [0.1.1] - 2019-11-22
|
5
|
+
### Changed
|
6
|
+
- gem development dependencies
|
7
|
+
- linters configs
|
8
|
+
- gem documentation
|
5
9
|
|
10
|
+
## [0.1.0] - 2019-11-19
|
6
11
|
### Added
|
7
|
-
-
|
8
|
-
-
|
9
|
-
-
|
12
|
+
- configuration RSpec helper
|
13
|
+
- validator RSpec helper
|
14
|
+
- gem documentation
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
truemail-rspec (0.1.
|
4
|
+
truemail-rspec (0.1.1)
|
5
5
|
rspec (~> 3.0)
|
6
|
-
truemail (~> 1.4)
|
6
|
+
truemail (~> 1.4, >= 1.4.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -13,8 +13,6 @@ GEM
|
|
13
13
|
descendants_tracker (~> 0.0.4)
|
14
14
|
ice_nine (~> 0.11.0)
|
15
15
|
thread_safe (~> 0.3, >= 0.3.1)
|
16
|
-
bundle-audit (0.1.0)
|
17
|
-
bundler-audit
|
18
16
|
bundler-audit (0.6.1)
|
19
17
|
bundler (>= 1.2.0, < 3)
|
20
18
|
thor (~> 0.18)
|
@@ -82,8 +80,6 @@ GEM
|
|
82
80
|
rainbow (>= 2.2.2, < 4.0)
|
83
81
|
ruby-progressbar (~> 1.7)
|
84
82
|
unicode-display_width (>= 1.4.0, < 1.7)
|
85
|
-
rubocop-performance (1.5.1)
|
86
|
-
rubocop (>= 0.71.0)
|
87
83
|
rubocop-rspec (1.36.0)
|
88
84
|
rubocop (>= 0.68.1)
|
89
85
|
ruby-progressbar (1.10.1)
|
@@ -97,7 +93,7 @@ GEM
|
|
97
93
|
simplecov-html (0.10.2)
|
98
94
|
thor (0.20.3)
|
99
95
|
thread_safe (0.3.6)
|
100
|
-
truemail (1.4.
|
96
|
+
truemail (1.4.1)
|
101
97
|
unicode-display_width (1.6.0)
|
102
98
|
virtus (1.0.5)
|
103
99
|
axiom-types (~> 0.1)
|
@@ -109,8 +105,8 @@ PLATFORMS
|
|
109
105
|
ruby
|
110
106
|
|
111
107
|
DEPENDENCIES
|
112
|
-
bundle-audit (~> 0.1.0)
|
113
108
|
bundler (~> 1.16)
|
109
|
+
bundler-audit (~> 0.6.1)
|
114
110
|
fasterer (~> 0.8.0)
|
115
111
|
ffaker (~> 2.13)
|
116
112
|
overcommit (~> 0.51.0)
|
@@ -119,7 +115,6 @@ DEPENDENCIES
|
|
119
115
|
reek (~> 5.5)
|
120
116
|
rspec (~> 3.9)
|
121
117
|
rubocop (~> 0.76.0)
|
122
|
-
rubocop-performance (~> 1.5, >= 1.5.1)
|
123
118
|
rubocop-rspec (~> 1.36)
|
124
119
|
simplecov (~> 0.17.1)
|
125
120
|
truemail-rspec!
|
data/README.md
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
- [Create validator instance](#create-validator-instance)
|
16
16
|
- [create_servers_list](#create_servers_list)
|
17
17
|
- [create_validator DSL](#create_validator-dsl)
|
18
|
+
- [Truemail family](#truemail-family)
|
18
19
|
- [Contributing](#contributing)
|
19
20
|
- [License](#license)
|
20
21
|
- [Code of Conduct](#code-of-conduct)
|
@@ -31,14 +32,16 @@
|
|
31
32
|
Add this line to your application's Gemfile:
|
32
33
|
|
33
34
|
```ruby
|
34
|
-
group :test do
|
35
|
-
gem 'truemail-rspec'
|
35
|
+
group :development, :test do
|
36
|
+
gem 'truemail-rspec', require: false
|
36
37
|
end
|
37
38
|
```
|
38
39
|
|
39
40
|
And add into your `spec_helper.rb` or `rails_helper.rb`:
|
40
41
|
|
41
42
|
```ruby
|
43
|
+
require 'truemail/rspec'
|
44
|
+
|
42
45
|
RSpec.configure do |config|
|
43
46
|
config.include Truemail::RSpec
|
44
47
|
end
|
@@ -90,11 +93,11 @@ create_servers_list # => returns array with random ip addresses
|
|
90
93
|
|
91
94
|
```ruby
|
92
95
|
create_validator(
|
93
|
-
validation_type, # optional, :regex, :mx
|
94
|
-
email, # optional, by default random email
|
95
|
-
mail_servers, # optional, by default array with random ip addresses
|
96
|
-
success: true, # optional, by default true
|
97
|
-
configuration: create_configuration # optional, by default creates random configuration
|
96
|
+
validation_type, # optional, type:Symbol, can be :regex, :mx or :smtp, by default creates :smtp validation
|
97
|
+
email, # optional, type:String, by default random email
|
98
|
+
mail_servers, # optional, type:Array(String), by default array with random ip addresses
|
99
|
+
success: true, # optional, type:Bool, by default true
|
100
|
+
configuration: create_configuration # optional, type:Truemail::Configuration, by default creates random configuration
|
98
101
|
)
|
99
102
|
|
100
103
|
# => returns Truemail::Validator instance follow passed params
|
@@ -102,6 +105,14 @@ create_validator(
|
|
102
105
|
|
103
106
|
---
|
104
107
|
|
108
|
+
## Truemail family
|
109
|
+
|
110
|
+
All Truemail extensions: https://github.com/truemail-rb
|
111
|
+
|
112
|
+
### truemail
|
113
|
+
|
114
|
+
gem `truemail` - Configurable plain Ruby email validator, https://github.com/rubygarage/truemail
|
115
|
+
|
105
116
|
## Contributing
|
106
117
|
|
107
118
|
Bug reports and pull requests are welcome on GitHub at https://github.com/truemail-rb/truemail-rspec. 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/truemail-rb/truemail-rspec/issues). Be shure to follow Contributor Code of Conduct below and our [Contributing Guidelines](CONTRIBUTING.md).
|
data/truemail-rspec.gemspec
CHANGED
@@ -23,8 +23,8 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ['lib']
|
25
25
|
|
26
|
-
spec.add_development_dependency 'bundle-audit', '~> 0.1.0'
|
27
26
|
spec.add_development_dependency 'bundler', '~> 1.16'
|
27
|
+
spec.add_development_dependency 'bundler-audit', '~> 0.6.1'
|
28
28
|
spec.add_development_dependency 'fasterer', '~> 0.8.0'
|
29
29
|
spec.add_development_dependency 'ffaker', '~> 2.13'
|
30
30
|
spec.add_development_dependency 'overcommit', '~> 0.51.0'
|
@@ -33,9 +33,8 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_development_dependency 'reek', '~> 5.5'
|
34
34
|
spec.add_development_dependency 'rspec', '~> 3.9'
|
35
35
|
spec.add_development_dependency 'rubocop', '~> 0.76.0'
|
36
|
-
spec.add_development_dependency 'rubocop-performance', '~> 1.5', '>= 1.5.1'
|
37
36
|
spec.add_development_dependency 'rubocop-rspec', '~> 1.36'
|
38
37
|
spec.add_development_dependency 'simplecov', '~> 0.17.1'
|
39
38
|
spec.add_runtime_dependency 'rspec', '~> 3.0'
|
40
|
-
spec.add_runtime_dependency 'truemail', '~> 1.4'
|
39
|
+
spec.add_runtime_dependency 'truemail', '~> 1.4', '>= 1.4.1'
|
41
40
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: truemail-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.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-11-
|
11
|
+
date: 2019-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '1.16'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '1.16'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
28
|
+
name: bundler-audit
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
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
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.6.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: fasterer
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,26 +156,6 @@ dependencies:
|
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
158
|
version: 0.76.0
|
159
|
-
- !ruby/object:Gem::Dependency
|
160
|
-
name: rubocop-performance
|
161
|
-
requirement: !ruby/object:Gem::Requirement
|
162
|
-
requirements:
|
163
|
-
- - "~>"
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: '1.5'
|
166
|
-
- - ">="
|
167
|
-
- !ruby/object:Gem::Version
|
168
|
-
version: 1.5.1
|
169
|
-
type: :development
|
170
|
-
prerelease: false
|
171
|
-
version_requirements: !ruby/object:Gem::Requirement
|
172
|
-
requirements:
|
173
|
-
- - "~>"
|
174
|
-
- !ruby/object:Gem::Version
|
175
|
-
version: '1.5'
|
176
|
-
- - ">="
|
177
|
-
- !ruby/object:Gem::Version
|
178
|
-
version: 1.5.1
|
179
159
|
- !ruby/object:Gem::Dependency
|
180
160
|
name: rubocop-rspec
|
181
161
|
requirement: !ruby/object:Gem::Requirement
|
@@ -225,6 +205,9 @@ dependencies:
|
|
225
205
|
- - "~>"
|
226
206
|
- !ruby/object:Gem::Version
|
227
207
|
version: '1.4'
|
208
|
+
- - ">="
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: 1.4.1
|
228
211
|
type: :runtime
|
229
212
|
prerelease: false
|
230
213
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -232,6 +215,9 @@ dependencies:
|
|
232
215
|
- - "~>"
|
233
216
|
- !ruby/object:Gem::Version
|
234
217
|
version: '1.4'
|
218
|
+
- - ">="
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: 1.4.1
|
235
221
|
description: Truemail RSpec helpers
|
236
222
|
email:
|
237
223
|
- admin@bestweb.com.ua
|
@@ -240,6 +226,7 @@ extensions: []
|
|
240
226
|
extra_rdoc_files: []
|
241
227
|
files:
|
242
228
|
- ".circleci/config.yml"
|
229
|
+
- ".codeclimate.yml"
|
243
230
|
- ".github/ISSUE_TEMPLATE.md"
|
244
231
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
245
232
|
- ".gitignore"
|