truemail-rspec 0.6.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +23 -14
- data/.circleci/gemspec_compatible +42 -0
- data/.circleci/gemspec_latest +51 -0
- data/.codeclimate.yml +1 -1
- data/.github/DEVELOPMENT_ENVIRONMENT_GUIDE.md +26 -0
- data/.gitignore +1 -0
- data/.reek.yml +4 -0
- data/.rubocop.yml +87 -0
- data/CHANGELOG.md +34 -0
- data/CONTRIBUTING.md +4 -2
- data/LICENSE.txt +1 -1
- data/README.md +3 -3
- data/lib/truemail/rspec/auditor_helper.rb +1 -1
- data/lib/truemail/rspec/configuration_helper.rb +1 -1
- data/lib/truemail/rspec/validator_helper.rb +2 -2
- data/lib/truemail/rspec/version.rb +1 -1
- data/lib/truemail/rspec.rb +1 -1
- data/truemail-rspec.gemspec +10 -18
- metadata +28 -178
- data/Gemfile.lock +0 -125
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b68145a74875be431a5f7e366dd3b4ed8968dded925e5c05e437020b0c6b3d23
|
4
|
+
data.tar.gz: 56f12f82acb53ea75c5ab619073cf9e003c6694d06622074c94a4214b31762a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc6467e4217e81a6a4e7a839ec158185351bd06df073825556cb005f880a28806863be833842c15d49796d09f33ee63c70d8ebe7833cf6bde35f4c684b2b8d55
|
7
|
+
data.tar.gz: a14eeb327a6f7ab5d67614fa623ea7e1411f972172fd433ad83aa8649fe6ce4b4200e25f60ab6dce7bab6c25fae2ec998ad780cdf73ee640333180f6e93e1aad
|
data/.circleci/config.yml
CHANGED
@@ -4,18 +4,11 @@ defaults: &defaults
|
|
4
4
|
working_directory: ~/truemail-rspec
|
5
5
|
docker:
|
6
6
|
- image: cimg/ruby:<< parameters.ruby-version >>
|
7
|
-
environment:
|
8
|
-
CC_TEST_REPORTER_ID: 889fa37782e4f5d0f81705f0d869a9c907f04151faae8260dde55d3f74e65606
|
9
7
|
|
10
8
|
orbs:
|
11
|
-
ruby: circleci/ruby@1.
|
9
|
+
ruby: circleci/ruby@1.4.0
|
12
10
|
|
13
11
|
references:
|
14
|
-
install_bundler: &install_bundler
|
15
|
-
run:
|
16
|
-
name: Installing Bundler
|
17
|
-
command: gem i bundler -v $(tail -1 Gemfile.lock | tr -d ' ')
|
18
|
-
|
19
12
|
restore_bundle_cache: &restore_bundle_cache
|
20
13
|
restore_cache:
|
21
14
|
keys:
|
@@ -24,7 +17,9 @@ references:
|
|
24
17
|
bundle_install: &bundle_install
|
25
18
|
run:
|
26
19
|
name: Installing gems
|
27
|
-
command:
|
20
|
+
command: |
|
21
|
+
bundle config set --local path 'vendor/bundle'
|
22
|
+
bundle install
|
28
23
|
|
29
24
|
save_bundle_cache: &save_bundle_cache
|
30
25
|
save_cache:
|
@@ -39,6 +34,18 @@ references:
|
|
39
34
|
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
40
35
|
chmod +x ./cc-test-reporter
|
41
36
|
|
37
|
+
use_latest_gemspec: &use_latest_gemspec
|
38
|
+
run:
|
39
|
+
name: Using latest gemspec
|
40
|
+
command: |
|
41
|
+
cp .circleci/gemspec_latest truemail-rspec.gemspec
|
42
|
+
|
43
|
+
use_compatible_gemspec: &use_compatible_gemspec
|
44
|
+
run:
|
45
|
+
name: Use compatible gemspec
|
46
|
+
command: |
|
47
|
+
cp .circleci/gemspec_compatible truemail-rspec.gemspec
|
48
|
+
|
42
49
|
jobs:
|
43
50
|
linters-ruby:
|
44
51
|
parameters:
|
@@ -50,7 +57,7 @@ jobs:
|
|
50
57
|
steps:
|
51
58
|
- checkout
|
52
59
|
|
53
|
-
- <<: *
|
60
|
+
- <<: *use_latest_gemspec
|
54
61
|
- <<: *restore_bundle_cache
|
55
62
|
- <<: *bundle_install
|
56
63
|
- <<: *save_bundle_cache
|
@@ -71,7 +78,7 @@ jobs:
|
|
71
78
|
steps:
|
72
79
|
- checkout
|
73
80
|
|
74
|
-
- <<: *
|
81
|
+
- <<: *use_latest_gemspec
|
75
82
|
- <<: *restore_bundle_cache
|
76
83
|
- <<: *bundle_install
|
77
84
|
- <<: *save_bundle_cache
|
@@ -106,7 +113,9 @@ jobs:
|
|
106
113
|
- image: cimg/ruby:<< parameters.ruby-version >>
|
107
114
|
steps:
|
108
115
|
- checkout
|
116
|
+
- <<: *use_compatible_gemspec
|
109
117
|
- ruby/install-deps:
|
118
|
+
bundler-version: "2.3.7"
|
110
119
|
with-cache: false
|
111
120
|
path: './vendor/custom_bundle'
|
112
121
|
- run:
|
@@ -119,12 +128,12 @@ workflows:
|
|
119
128
|
- linters-ruby:
|
120
129
|
matrix:
|
121
130
|
parameters:
|
122
|
-
ruby-version: ["
|
131
|
+
ruby-version: ["3.1"]
|
123
132
|
- tests-ruby:
|
124
133
|
matrix:
|
125
134
|
parameters:
|
126
|
-
ruby-version: ["
|
135
|
+
ruby-version: ["3.1"]
|
127
136
|
- compatibility-ruby:
|
128
137
|
matrix:
|
129
138
|
parameters:
|
130
|
-
ruby-version: ["2.6", "2.7", "3.0"]
|
139
|
+
ruby-version: ["2.5", "2.6", "2.7", "3.0"]
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = ::File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'truemail/rspec/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'truemail-rspec'
|
9
|
+
spec.version = Truemail::RSpec::VERSION
|
10
|
+
spec.authors = ['Vladislav Trotsenko']
|
11
|
+
spec.email = ['admin@bestweb.com.ua']
|
12
|
+
|
13
|
+
spec.summary = %(truemail-rspec)
|
14
|
+
spec.description = %(Truemail RSpec helpers)
|
15
|
+
|
16
|
+
spec.homepage = 'https://github.com/truemail-rb/truemail-rspec'
|
17
|
+
spec.license = 'MIT'
|
18
|
+
|
19
|
+
spec.metadata = {
|
20
|
+
'homepage_uri' => 'https://truemail-rb.org',
|
21
|
+
'changelog_uri' => 'https://github.com/truemail-rb/truemail-rspec/blob/master/CHANGELOG.md',
|
22
|
+
'source_code_uri' => 'https://github.com/truemail-rb/truemail-rspec',
|
23
|
+
'documentation_uri' => 'https://truemail-rb.org/truemail-rspec',
|
24
|
+
'bug_tracker_uri' => 'https://github.com/truemail-rb/truemail-rspec/issues'
|
25
|
+
}
|
26
|
+
|
27
|
+
spec.required_ruby_version = '>= 2.5.0'
|
28
|
+
|
29
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
30
|
+
spec.bindir = 'exe'
|
31
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| ::File.basename(f) }
|
32
|
+
spec.require_paths = ['lib']
|
33
|
+
|
34
|
+
spec.add_runtime_dependency 'ffaker', '~> 2.20'
|
35
|
+
spec.add_runtime_dependency 'rspec', '~> 3.10'
|
36
|
+
spec.add_runtime_dependency 'truemail', '~> 2.6', '>= 2.6.2'
|
37
|
+
|
38
|
+
spec.add_development_dependency 'ffaker', '~> 2.20'
|
39
|
+
spec.add_development_dependency 'pry-byebug', '~> 3.9'
|
40
|
+
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
|
41
|
+
spec.add_development_dependency 'rspec', '~> 3.10'
|
42
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = ::File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'truemail/rspec/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'truemail-rspec'
|
9
|
+
spec.version = Truemail::RSpec::VERSION
|
10
|
+
spec.authors = ['Vladislav Trotsenko']
|
11
|
+
spec.email = ['admin@bestweb.com.ua']
|
12
|
+
|
13
|
+
spec.summary = %(truemail-rspec)
|
14
|
+
spec.description = %(Truemail RSpec helpers)
|
15
|
+
|
16
|
+
spec.homepage = 'https://github.com/truemail-rb/truemail-rspec'
|
17
|
+
spec.license = 'MIT'
|
18
|
+
|
19
|
+
spec.metadata = {
|
20
|
+
'homepage_uri' => 'https://truemail-rb.org',
|
21
|
+
'changelog_uri' => 'https://github.com/truemail-rb/truemail-rspec/blob/master/CHANGELOG.md',
|
22
|
+
'source_code_uri' => 'https://github.com/truemail-rb/truemail-rspec',
|
23
|
+
'documentation_uri' => 'https://truemail-rb.org/truemail-rspec',
|
24
|
+
'bug_tracker_uri' => 'https://github.com/truemail-rb/truemail-rspec/issues'
|
25
|
+
}
|
26
|
+
|
27
|
+
spec.required_ruby_version = '>= 2.5.0'
|
28
|
+
|
29
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
30
|
+
spec.bindir = 'exe'
|
31
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| ::File.basename(f) }
|
32
|
+
spec.require_paths = ['lib']
|
33
|
+
|
34
|
+
spec.add_runtime_dependency 'ffaker', '~> 2.20'
|
35
|
+
spec.add_runtime_dependency 'net-smtp', '~> 0.3.1'
|
36
|
+
spec.add_runtime_dependency 'rspec', '~> 3.11'
|
37
|
+
spec.add_runtime_dependency 'truemail', '~> 2.6', '>= 2.6.2'
|
38
|
+
|
39
|
+
spec.add_development_dependency 'bundler-audit', '~> 0.9.0.1'
|
40
|
+
spec.add_development_dependency 'fasterer', '~> 0.9.0'
|
41
|
+
spec.add_development_dependency 'ffaker', '~> 2.20'
|
42
|
+
spec.add_development_dependency 'overcommit', '~> 0.58.0'
|
43
|
+
spec.add_development_dependency 'pry-byebug', '~> 3.9'
|
44
|
+
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
|
45
|
+
spec.add_development_dependency 'reek', '~> 6.1'
|
46
|
+
spec.add_development_dependency 'rspec', '~> 3.11'
|
47
|
+
spec.add_development_dependency 'rubocop', '~> 1.25', '>= 1.25.1'
|
48
|
+
spec.add_development_dependency 'rubocop-performance', '~> 1.13', '>= 1.13.2'
|
49
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 2.8'
|
50
|
+
spec.add_development_dependency 'simplecov', '~> 0.21.2'
|
51
|
+
end
|
data/.codeclimate.yml
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
# Development environment guide
|
2
|
+
|
3
|
+
## Preparing
|
4
|
+
|
5
|
+
Clone `truemail-rspec` repository:
|
6
|
+
|
7
|
+
```bash
|
8
|
+
git clone https://github.com/truemail-rb/truemail-rspec.git
|
9
|
+
cd truemail-rspec
|
10
|
+
```
|
11
|
+
|
12
|
+
Configure latest Ruby environment:
|
13
|
+
|
14
|
+
```bash
|
15
|
+
echo 'ruby-3.1.1' > .ruby-version
|
16
|
+
cp .circleci/gemspec_latest truemail.gemspec
|
17
|
+
```
|
18
|
+
|
19
|
+
## Commiting
|
20
|
+
|
21
|
+
Commit your changes excluding `.ruby-version`, `truemail.gemspec`
|
22
|
+
|
23
|
+
```bash
|
24
|
+
git add . ':!.ruby-version' ':!truemail.gemspec'
|
25
|
+
git commit -m 'Your new awesome truemail feature'
|
26
|
+
```
|
data/.gitignore
CHANGED
data/.reek.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -28,6 +28,12 @@ Naming/VariableNumber:
|
|
28
28
|
Naming/RescuedExceptionsVariableName:
|
29
29
|
Enabled: false
|
30
30
|
|
31
|
+
Naming/InclusiveLanguage:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
Naming/BlockForwarding:
|
35
|
+
Enabled: true
|
36
|
+
|
31
37
|
Style/Documentation:
|
32
38
|
Enabled: false
|
33
39
|
|
@@ -139,6 +145,39 @@ Style/IfWithBooleanLiteralBranches:
|
|
139
145
|
Style/StringChars:
|
140
146
|
Enabled: true
|
141
147
|
|
148
|
+
Style/InPatternThen:
|
149
|
+
Enabled: true
|
150
|
+
|
151
|
+
Style/MultilineInPatternThen:
|
152
|
+
Enabled: true
|
153
|
+
|
154
|
+
Style/QuotedSymbols:
|
155
|
+
Enabled: true
|
156
|
+
|
157
|
+
Style/FileRead:
|
158
|
+
Enabled: true
|
159
|
+
|
160
|
+
Style/FileWrite:
|
161
|
+
Enabled: true
|
162
|
+
|
163
|
+
Style/MapToHash:
|
164
|
+
Enabled: true
|
165
|
+
|
166
|
+
Style/NumberedParameters:
|
167
|
+
Enabled: true
|
168
|
+
|
169
|
+
Style/NumberedParametersLimit:
|
170
|
+
Enabled: true
|
171
|
+
|
172
|
+
Style/OpenStructUse:
|
173
|
+
Enabled: true
|
174
|
+
|
175
|
+
Style/RedundantSelfAssignmentBranch:
|
176
|
+
Enabled: true
|
177
|
+
|
178
|
+
Style/SelectByRegexp:
|
179
|
+
Enabled: true
|
180
|
+
|
142
181
|
Layout/EmptyLinesAroundAttributeAccessor:
|
143
182
|
Enabled: true
|
144
183
|
|
@@ -170,6 +209,9 @@ Layout/EmptyLineAfterGuardClause:
|
|
170
209
|
Layout/SpaceBeforeBrackets:
|
171
210
|
Enabled: true
|
172
211
|
|
212
|
+
Layout/LineEndStringConcatenationIndentation:
|
213
|
+
Enabled: true
|
214
|
+
|
173
215
|
Lint/NonDeterministicRequireOrder:
|
174
216
|
Enabled: false
|
175
217
|
|
@@ -263,9 +305,33 @@ Lint/SymbolConversion:
|
|
263
305
|
Lint/TripleQuotes:
|
264
306
|
Enabled: true
|
265
307
|
|
308
|
+
Lint/EmptyInPattern:
|
309
|
+
Enabled: true
|
310
|
+
|
311
|
+
Lint/AmbiguousOperatorPrecedence:
|
312
|
+
Enabled: true
|
313
|
+
|
314
|
+
Lint/AmbiguousRange:
|
315
|
+
Enabled: true
|
316
|
+
|
317
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
318
|
+
Enabled: true
|
319
|
+
|
320
|
+
Lint/RequireRelativeSelfPath:
|
321
|
+
Enabled: true
|
322
|
+
|
323
|
+
Lint/UselessRuby2Keywords:
|
324
|
+
Enabled: true
|
325
|
+
|
266
326
|
Gemspec/DateAssignment:
|
267
327
|
Enabled: true
|
268
328
|
|
329
|
+
Gemspec/RequireMFA:
|
330
|
+
Enabled: false
|
331
|
+
|
332
|
+
Security/IoMethods:
|
333
|
+
Enabled: true
|
334
|
+
|
269
335
|
Performance/AncestorsInclude:
|
270
336
|
Enabled: true
|
271
337
|
|
@@ -314,6 +380,12 @@ Performance/RedundantEqualityComparisonBlock:
|
|
314
380
|
Performance/RedundantSplitRegexpArgument:
|
315
381
|
Enabled: true
|
316
382
|
|
383
|
+
Performance/ConcurrentMonotonicTime:
|
384
|
+
Enabled: true
|
385
|
+
|
386
|
+
Performance/StringIdentifierArgument:
|
387
|
+
Enabled: true
|
388
|
+
|
317
389
|
RSpec/ExampleLength:
|
318
390
|
Enabled: false
|
319
391
|
|
@@ -340,3 +412,18 @@ RSpec/MultipleDescribes:
|
|
340
412
|
|
341
413
|
RSpec/MultipleMemoizedHelpers:
|
342
414
|
Enabled: false
|
415
|
+
|
416
|
+
RSpec/IdenticalEqualityAssertion:
|
417
|
+
Enabled: true
|
418
|
+
|
419
|
+
RSpec/Rails/AvoidSetupHook:
|
420
|
+
Enabled: true
|
421
|
+
|
422
|
+
RSpec/ExcessiveDocstringSpacing:
|
423
|
+
Enabled: true
|
424
|
+
|
425
|
+
RSpec/SubjectDeclaration:
|
426
|
+
Enabled: true
|
427
|
+
|
428
|
+
RSpec/FactoryBot/SyntaxMethods:
|
429
|
+
Enabled: true
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,40 @@
|
|
2
2
|
|
3
3
|
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).
|
4
4
|
|
5
|
+
## [0.9.0] - 2022-02-23
|
6
|
+
|
7
|
+
### Added
|
8
|
+
|
9
|
+
- Added development environment guide docs
|
10
|
+
|
11
|
+
### Updated
|
12
|
+
|
13
|
+
- Updated gem runtime dependencies
|
14
|
+
- Updated gem development dependencies
|
15
|
+
- Updated minimal Ruby version for RubyGems environment
|
16
|
+
- Updated CircleCI configs
|
17
|
+
- Updated contributing guide
|
18
|
+
|
19
|
+
## [0.8.0] - 2022-01-25
|
20
|
+
|
21
|
+
### Updated
|
22
|
+
|
23
|
+
- Updated gem runtime dependencies
|
24
|
+
- Updated gem development dependencies
|
25
|
+
- Updated default Ruby version for test environment
|
26
|
+
- Updated rubocop/codeclimate configs
|
27
|
+
|
28
|
+
## [0.7.0] - 2021-08-11
|
29
|
+
|
30
|
+
### Updated
|
31
|
+
|
32
|
+
- gem runtime dependencies
|
33
|
+
- gem development dependencies
|
34
|
+
|
35
|
+
### Changed
|
36
|
+
|
37
|
+
- `faker` to `ffaker` dependency
|
38
|
+
|
5
39
|
## [0.6.0] - 2021-05-13
|
6
40
|
|
7
41
|
### Added
|
data/CONTRIBUTING.md
CHANGED
@@ -42,5 +42,7 @@ Guidelines for pull requests:
|
|
42
42
|
2. Fork the repo, checkout to `develop` branch
|
43
43
|
3. Run the tests. This is to make sure your starting point works
|
44
44
|
4. Read our [branch naming convention](.github/BRANCH_NAMING_CONVENTION.md)
|
45
|
-
5. Create a new branch
|
46
|
-
6.
|
45
|
+
5. Create a new branch
|
46
|
+
6. Read our [setup development environment guide](.github/DEVELOPMENT_ENVIRONMENT_GUIDE.md)
|
47
|
+
7. Make your changes. Please note that your PR should include tests for the new codebase!
|
48
|
+
9. Push to your fork and submit a pull request to `develop` branch
|
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2020 Vladislav Trotsenko
|
3
|
+
Copyright (c) 2020-2022 Vladislav Trotsenko
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
- [Configuration instance with default random params](#configuration-instance-with-default-random-params)
|
24
24
|
- [Configuration instance with predefined params](#configuration-instance-with-predefined-params)
|
25
25
|
- [Create auditor instance](#create-auditor-instance)
|
26
|
-
- [create_auditor](#
|
26
|
+
- [create_auditor](#create_auditor)
|
27
27
|
- [Create validator instance](#create-validator-instance)
|
28
28
|
- [create_servers_list](#create_servers_list)
|
29
29
|
- [create_validator](#create_validator)
|
@@ -90,7 +90,7 @@ create_configuration
|
|
90
90
|
|
91
91
|
#### Configuration instance with predefined params
|
92
92
|
|
93
|
-
All `Truemail::Configuration` [available params](https://github.com/truemail-rb/truemail
|
93
|
+
All `Truemail::Configuration` [available params](https://github.com/truemail-rb/truemail#setting-global-configuration)
|
94
94
|
|
95
95
|
```ruby
|
96
96
|
create_configuration(verifier_email: 'email@domain.com', verifier_domain: 'other-domain.com')
|
@@ -157,7 +157,7 @@ All Truemail solutions: https://truemail-rb.org
|
|
157
157
|
|
158
158
|
## Contributing
|
159
159
|
|
160
|
-
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
|
160
|
+
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 tickets](https://github.com/truemail-rb/truemail-rspec/issues). Be sure to follow Contributor Code of Conduct below and our [Contributing Guidelines](CONTRIBUTING.md).
|
161
161
|
|
162
162
|
## License
|
163
163
|
|
@@ -5,7 +5,7 @@ module Truemail
|
|
5
5
|
module AuditorHelper
|
6
6
|
def create_auditor(
|
7
7
|
success: true,
|
8
|
-
current_host_ip: ::
|
8
|
+
current_host_ip: ::FFaker::Internet.ip_v4_address,
|
9
9
|
warnings: { ip: Truemail::Audit::Ip::IPIFY_ERROR },
|
10
10
|
configuration: create_configuration
|
11
11
|
)
|
@@ -12,7 +12,7 @@ module Truemail
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def create_configuration(**configuration_settings)
|
15
|
-
configuration_settings[:verifier_email] = ::
|
15
|
+
configuration_settings[:verifier_email] = ::FFaker::Internet.email unless configuration_settings[:verifier_email]
|
16
16
|
Truemail::Configuration.new(&configuration_block(**configuration_settings))
|
17
17
|
end
|
18
18
|
end
|
@@ -4,12 +4,12 @@ module Truemail
|
|
4
4
|
module RSpec
|
5
5
|
module ValidatorHelper
|
6
6
|
def create_servers_list(size = nil)
|
7
|
-
::Array.new(size || rand(1..4)) { ::
|
7
|
+
::Array.new(size || ::Random.rand(1..4)) { ::FFaker::Internet.ip_v4_address }
|
8
8
|
end
|
9
9
|
|
10
10
|
def create_validator( # rubocop:disable Metrics/ParameterLists
|
11
11
|
validation_type = nil,
|
12
|
-
email = ::
|
12
|
+
email = ::FFaker::Internet.email,
|
13
13
|
mail_servers = create_servers_list,
|
14
14
|
rcptto_error: 'user not found',
|
15
15
|
success: true,
|
data/lib/truemail/rspec.rb
CHANGED
data/truemail-rspec.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
lib = File.expand_path('lib', __dir__)
|
3
|
+
lib = ::File.expand_path('lib', __dir__)
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
5
|
require 'truemail/rspec/version'
|
6
6
|
|
@@ -28,23 +28,15 @@ Gem::Specification.new do |spec|
|
|
28
28
|
|
29
29
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
30
30
|
spec.bindir = 'exe'
|
31
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| ::File.basename(f) }
|
32
32
|
spec.require_paths = ['lib']
|
33
33
|
|
34
|
-
spec.
|
35
|
-
spec.
|
36
|
-
spec.
|
37
|
-
spec.
|
38
|
-
|
39
|
-
spec.add_development_dependency '
|
40
|
-
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.
|
41
|
-
spec.add_development_dependency '
|
42
|
-
spec.add_development_dependency 'rspec', '~> 3.10'
|
43
|
-
spec.add_development_dependency 'rubocop', '~> 1.14'
|
44
|
-
spec.add_development_dependency 'rubocop-performance', '~> 1.11', '>= 1.11.3'
|
45
|
-
spec.add_development_dependency 'rubocop-rspec', '~> 2.3'
|
46
|
-
spec.add_development_dependency 'simplecov', '~> 0.17.1'
|
47
|
-
spec.add_runtime_dependency 'faker', '~> 2.17'
|
48
|
-
spec.add_runtime_dependency 'rspec', '~> 3.10'
|
49
|
-
spec.add_runtime_dependency 'truemail', '>= 2.4'
|
34
|
+
spec.add_runtime_dependency 'ffaker', '~> 2.20'
|
35
|
+
spec.add_runtime_dependency 'net-smtp', '~> 0.3.1' if ::RUBY_VERSION >= '3.1.0'
|
36
|
+
spec.add_runtime_dependency 'rspec', '~> 3.11'
|
37
|
+
spec.add_runtime_dependency 'truemail', '~> 2.6', '>= 2.6.2'
|
38
|
+
|
39
|
+
spec.add_development_dependency 'ffaker', '~> 2.20'
|
40
|
+
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
|
41
|
+
spec.add_development_dependency 'rspec', '~> 3.11'
|
50
42
|
end
|
metadata
CHANGED
@@ -1,105 +1,77 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: truemail-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladislav Trotsenko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: ffaker
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 2.2.17
|
23
|
-
type: :development
|
19
|
+
version: '2.20'
|
20
|
+
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '2.
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 2.2.17
|
26
|
+
version: '2.20'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
28
|
+
name: rspec
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
31
|
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
40
|
-
type: :
|
33
|
+
version: '3.11'
|
34
|
+
type: :runtime
|
41
35
|
prerelease: false
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
43
37
|
requirements:
|
44
38
|
- - "~>"
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
40
|
+
version: '3.11'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
42
|
+
name: truemail
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
44
|
requirements:
|
51
45
|
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: '2.
|
54
|
-
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '2.17'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: fasterer
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
47
|
+
version: '2.6'
|
48
|
+
- - ">="
|
66
49
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
68
|
-
type: :
|
50
|
+
version: 2.6.2
|
51
|
+
type: :runtime
|
69
52
|
prerelease: false
|
70
53
|
version_requirements: !ruby/object:Gem::Requirement
|
71
54
|
requirements:
|
72
55
|
- - "~>"
|
73
56
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
75
|
-
-
|
76
|
-
name: overcommit
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: 0.57.0
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "~>"
|
57
|
+
version: '2.6'
|
58
|
+
- - ">="
|
87
59
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
60
|
+
version: 2.6.2
|
89
61
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
62
|
+
name: ffaker
|
91
63
|
requirement: !ruby/object:Gem::Requirement
|
92
64
|
requirements:
|
93
65
|
- - "~>"
|
94
66
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
67
|
+
version: '2.20'
|
96
68
|
type: :development
|
97
69
|
prerelease: false
|
98
70
|
version_requirements: !ruby/object:Gem::Requirement
|
99
71
|
requirements:
|
100
72
|
- - "~>"
|
101
73
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
74
|
+
version: '2.20'
|
103
75
|
- !ruby/object:Gem::Dependency
|
104
76
|
name: rake
|
105
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,7 +81,7 @@ dependencies:
|
|
109
81
|
version: '13.0'
|
110
82
|
- - ">="
|
111
83
|
- !ruby/object:Gem::Version
|
112
|
-
version: 13.0.
|
84
|
+
version: 13.0.6
|
113
85
|
type: :development
|
114
86
|
prerelease: false
|
115
87
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -119,145 +91,21 @@ dependencies:
|
|
119
91
|
version: '13.0'
|
120
92
|
- - ">="
|
121
93
|
- !ruby/object:Gem::Version
|
122
|
-
version: 13.0.
|
123
|
-
- !ruby/object:Gem::Dependency
|
124
|
-
name: reek
|
125
|
-
requirement: !ruby/object:Gem::Requirement
|
126
|
-
requirements:
|
127
|
-
- - "~>"
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: '6.0'
|
130
|
-
- - ">="
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version: 6.0.4
|
133
|
-
type: :development
|
134
|
-
prerelease: false
|
135
|
-
version_requirements: !ruby/object:Gem::Requirement
|
136
|
-
requirements:
|
137
|
-
- - "~>"
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: '6.0'
|
140
|
-
- - ">="
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version: 6.0.4
|
94
|
+
version: 13.0.6
|
143
95
|
- !ruby/object:Gem::Dependency
|
144
96
|
name: rspec
|
145
97
|
requirement: !ruby/object:Gem::Requirement
|
146
98
|
requirements:
|
147
99
|
- - "~>"
|
148
100
|
- !ruby/object:Gem::Version
|
149
|
-
version: '3.
|
150
|
-
type: :development
|
151
|
-
prerelease: false
|
152
|
-
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
requirements:
|
154
|
-
- - "~>"
|
155
|
-
- !ruby/object:Gem::Version
|
156
|
-
version: '3.10'
|
157
|
-
- !ruby/object:Gem::Dependency
|
158
|
-
name: rubocop
|
159
|
-
requirement: !ruby/object:Gem::Requirement
|
160
|
-
requirements:
|
161
|
-
- - "~>"
|
162
|
-
- !ruby/object:Gem::Version
|
163
|
-
version: '1.14'
|
164
|
-
type: :development
|
165
|
-
prerelease: false
|
166
|
-
version_requirements: !ruby/object:Gem::Requirement
|
167
|
-
requirements:
|
168
|
-
- - "~>"
|
169
|
-
- !ruby/object:Gem::Version
|
170
|
-
version: '1.14'
|
171
|
-
- !ruby/object:Gem::Dependency
|
172
|
-
name: rubocop-performance
|
173
|
-
requirement: !ruby/object:Gem::Requirement
|
174
|
-
requirements:
|
175
|
-
- - "~>"
|
176
|
-
- !ruby/object:Gem::Version
|
177
|
-
version: '1.11'
|
178
|
-
- - ">="
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: 1.11.3
|
101
|
+
version: '3.11'
|
181
102
|
type: :development
|
182
103
|
prerelease: false
|
183
104
|
version_requirements: !ruby/object:Gem::Requirement
|
184
105
|
requirements:
|
185
106
|
- - "~>"
|
186
107
|
- !ruby/object:Gem::Version
|
187
|
-
version: '
|
188
|
-
- - ">="
|
189
|
-
- !ruby/object:Gem::Version
|
190
|
-
version: 1.11.3
|
191
|
-
- !ruby/object:Gem::Dependency
|
192
|
-
name: rubocop-rspec
|
193
|
-
requirement: !ruby/object:Gem::Requirement
|
194
|
-
requirements:
|
195
|
-
- - "~>"
|
196
|
-
- !ruby/object:Gem::Version
|
197
|
-
version: '2.3'
|
198
|
-
type: :development
|
199
|
-
prerelease: false
|
200
|
-
version_requirements: !ruby/object:Gem::Requirement
|
201
|
-
requirements:
|
202
|
-
- - "~>"
|
203
|
-
- !ruby/object:Gem::Version
|
204
|
-
version: '2.3'
|
205
|
-
- !ruby/object:Gem::Dependency
|
206
|
-
name: simplecov
|
207
|
-
requirement: !ruby/object:Gem::Requirement
|
208
|
-
requirements:
|
209
|
-
- - "~>"
|
210
|
-
- !ruby/object:Gem::Version
|
211
|
-
version: 0.17.1
|
212
|
-
type: :development
|
213
|
-
prerelease: false
|
214
|
-
version_requirements: !ruby/object:Gem::Requirement
|
215
|
-
requirements:
|
216
|
-
- - "~>"
|
217
|
-
- !ruby/object:Gem::Version
|
218
|
-
version: 0.17.1
|
219
|
-
- !ruby/object:Gem::Dependency
|
220
|
-
name: faker
|
221
|
-
requirement: !ruby/object:Gem::Requirement
|
222
|
-
requirements:
|
223
|
-
- - "~>"
|
224
|
-
- !ruby/object:Gem::Version
|
225
|
-
version: '2.17'
|
226
|
-
type: :runtime
|
227
|
-
prerelease: false
|
228
|
-
version_requirements: !ruby/object:Gem::Requirement
|
229
|
-
requirements:
|
230
|
-
- - "~>"
|
231
|
-
- !ruby/object:Gem::Version
|
232
|
-
version: '2.17'
|
233
|
-
- !ruby/object:Gem::Dependency
|
234
|
-
name: rspec
|
235
|
-
requirement: !ruby/object:Gem::Requirement
|
236
|
-
requirements:
|
237
|
-
- - "~>"
|
238
|
-
- !ruby/object:Gem::Version
|
239
|
-
version: '3.10'
|
240
|
-
type: :runtime
|
241
|
-
prerelease: false
|
242
|
-
version_requirements: !ruby/object:Gem::Requirement
|
243
|
-
requirements:
|
244
|
-
- - "~>"
|
245
|
-
- !ruby/object:Gem::Version
|
246
|
-
version: '3.10'
|
247
|
-
- !ruby/object:Gem::Dependency
|
248
|
-
name: truemail
|
249
|
-
requirement: !ruby/object:Gem::Requirement
|
250
|
-
requirements:
|
251
|
-
- - ">="
|
252
|
-
- !ruby/object:Gem::Version
|
253
|
-
version: '2.4'
|
254
|
-
type: :runtime
|
255
|
-
prerelease: false
|
256
|
-
version_requirements: !ruby/object:Gem::Requirement
|
257
|
-
requirements:
|
258
|
-
- - ">="
|
259
|
-
- !ruby/object:Gem::Version
|
260
|
-
version: '2.4'
|
108
|
+
version: '3.11'
|
261
109
|
description: Truemail RSpec helpers
|
262
110
|
email:
|
263
111
|
- admin@bestweb.com.ua
|
@@ -266,8 +114,11 @@ extensions: []
|
|
266
114
|
extra_rdoc_files: []
|
267
115
|
files:
|
268
116
|
- ".circleci/config.yml"
|
117
|
+
- ".circleci/gemspec_compatible"
|
118
|
+
- ".circleci/gemspec_latest"
|
269
119
|
- ".codeclimate.yml"
|
270
120
|
- ".github/BRANCH_NAMING_CONVENTION.md"
|
121
|
+
- ".github/DEVELOPMENT_ENVIRONMENT_GUIDE.md"
|
271
122
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
272
123
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
273
124
|
- ".github/ISSUE_TEMPLATE/issue_report.md"
|
@@ -284,7 +135,6 @@ files:
|
|
284
135
|
- CODE_OF_CONDUCT.md
|
285
136
|
- CONTRIBUTING.md
|
286
137
|
- Gemfile
|
287
|
-
- Gemfile.lock
|
288
138
|
- LICENSE.txt
|
289
139
|
- README.md
|
290
140
|
- Rakefile
|
data/Gemfile.lock
DELETED
@@ -1,125 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
truemail-rspec (0.6.0)
|
5
|
-
faker (~> 2.17)
|
6
|
-
rspec (~> 3.10)
|
7
|
-
truemail (>= 2.4)
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
ast (2.4.2)
|
13
|
-
bundler-audit (0.8.0)
|
14
|
-
bundler (>= 1.2.0, < 3)
|
15
|
-
thor (~> 1.0)
|
16
|
-
byebug (11.1.3)
|
17
|
-
childprocess (4.0.0)
|
18
|
-
coderay (1.1.3)
|
19
|
-
colorize (0.8.1)
|
20
|
-
concurrent-ruby (1.1.8)
|
21
|
-
diff-lcs (1.4.4)
|
22
|
-
docile (1.4.0)
|
23
|
-
faker (2.17.0)
|
24
|
-
i18n (>= 1.6, < 2)
|
25
|
-
fasterer (0.9.0)
|
26
|
-
colorize (~> 0.7)
|
27
|
-
ruby_parser (>= 3.14.1)
|
28
|
-
i18n (1.8.10)
|
29
|
-
concurrent-ruby (~> 1.0)
|
30
|
-
iniparse (1.5.0)
|
31
|
-
json (2.5.1)
|
32
|
-
kwalify (0.7.2)
|
33
|
-
method_source (1.0.0)
|
34
|
-
overcommit (0.57.0)
|
35
|
-
childprocess (>= 0.6.3, < 5)
|
36
|
-
iniparse (~> 1.4)
|
37
|
-
parallel (1.20.1)
|
38
|
-
parser (3.0.1.1)
|
39
|
-
ast (~> 2.4.1)
|
40
|
-
pry (0.13.1)
|
41
|
-
coderay (~> 1.1)
|
42
|
-
method_source (~> 1.0)
|
43
|
-
pry-byebug (3.9.0)
|
44
|
-
byebug (~> 11.0)
|
45
|
-
pry (~> 0.13.0)
|
46
|
-
psych (3.3.1)
|
47
|
-
rainbow (3.0.0)
|
48
|
-
rake (13.0.3)
|
49
|
-
reek (6.0.4)
|
50
|
-
kwalify (~> 0.7.0)
|
51
|
-
parser (~> 3.0.0)
|
52
|
-
psych (~> 3.1)
|
53
|
-
rainbow (>= 2.0, < 4.0)
|
54
|
-
regexp_parser (2.1.1)
|
55
|
-
rexml (3.2.5)
|
56
|
-
rspec (3.10.0)
|
57
|
-
rspec-core (~> 3.10.0)
|
58
|
-
rspec-expectations (~> 3.10.0)
|
59
|
-
rspec-mocks (~> 3.10.0)
|
60
|
-
rspec-core (3.10.1)
|
61
|
-
rspec-support (~> 3.10.0)
|
62
|
-
rspec-expectations (3.10.1)
|
63
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
64
|
-
rspec-support (~> 3.10.0)
|
65
|
-
rspec-mocks (3.10.2)
|
66
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
67
|
-
rspec-support (~> 3.10.0)
|
68
|
-
rspec-support (3.10.2)
|
69
|
-
rubocop (1.14.0)
|
70
|
-
parallel (~> 1.10)
|
71
|
-
parser (>= 3.0.0.0)
|
72
|
-
rainbow (>= 2.2.2, < 4.0)
|
73
|
-
regexp_parser (>= 1.8, < 3.0)
|
74
|
-
rexml
|
75
|
-
rubocop-ast (>= 1.5.0, < 2.0)
|
76
|
-
ruby-progressbar (~> 1.7)
|
77
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
78
|
-
rubocop-ast (1.5.0)
|
79
|
-
parser (>= 3.0.1.1)
|
80
|
-
rubocop-performance (1.11.3)
|
81
|
-
rubocop (>= 1.7.0, < 2.0)
|
82
|
-
rubocop-ast (>= 0.4.0)
|
83
|
-
rubocop-rspec (2.3.0)
|
84
|
-
rubocop (~> 1.0)
|
85
|
-
rubocop-ast (>= 1.1.0)
|
86
|
-
ruby-progressbar (1.11.0)
|
87
|
-
ruby_parser (3.15.1)
|
88
|
-
sexp_processor (~> 4.9)
|
89
|
-
sexp_processor (4.15.2)
|
90
|
-
simplecov (0.17.1)
|
91
|
-
docile (~> 1.1)
|
92
|
-
json (>= 1.8, < 3)
|
93
|
-
simplecov-html (~> 0.10.0)
|
94
|
-
simplecov-html (0.10.2)
|
95
|
-
simpleidn (0.2.1)
|
96
|
-
unf (~> 0.1.4)
|
97
|
-
thor (1.1.0)
|
98
|
-
truemail (2.4.1)
|
99
|
-
simpleidn (~> 0.2.1)
|
100
|
-
unf (0.1.4)
|
101
|
-
unf_ext
|
102
|
-
unf_ext (0.0.7.7)
|
103
|
-
unicode-display_width (2.0.0)
|
104
|
-
|
105
|
-
PLATFORMS
|
106
|
-
x86_64-darwin-19
|
107
|
-
|
108
|
-
DEPENDENCIES
|
109
|
-
bundler (~> 2.2, >= 2.2.17)
|
110
|
-
bundler-audit (~> 0.8.0)
|
111
|
-
faker (~> 2.17)
|
112
|
-
fasterer (~> 0.9.0)
|
113
|
-
overcommit (~> 0.57.0)
|
114
|
-
pry-byebug (~> 3.9)
|
115
|
-
rake (~> 13.0, >= 13.0.3)
|
116
|
-
reek (~> 6.0, >= 6.0.4)
|
117
|
-
rspec (~> 3.10)
|
118
|
-
rubocop (~> 1.14)
|
119
|
-
rubocop-performance (~> 1.11, >= 1.11.3)
|
120
|
-
rubocop-rspec (~> 2.3)
|
121
|
-
simplecov (~> 0.17.1)
|
122
|
-
truemail-rspec!
|
123
|
-
|
124
|
-
BUNDLED WITH
|
125
|
-
2.2.17
|