dns_mock 1.2.0 → 1.2.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 +1 -1
- data/.rubocop.yml +12 -0
- data/CHANGELOG.md +10 -1
- data/Gemfile.lock +17 -17
- data/README.md +3 -1
- data/dns_mock.gemspec +6 -6
- data/lib/dns_mock/version.rb +1 -1
- metadata +16 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 064a09d83281b9b85beb9c30435f5db5bd68b5658389ff9ac8776aa23a148bff
|
4
|
+
data.tar.gz: d9bb631674d58c3588c76deb8adedd38fd5dcef17cc15e38ad7185e9b1af11cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfa19e12835b63f6637f41daa3a7c4fe2c0cecf5b32a6a5e0348398b4201e8e0ad7d2468a068e3c735e438a6e429b82878dc9b9c56c04cdea075cfa0c99b9c3f
|
7
|
+
data.tar.gz: ed40dcd5e44181d3df023628cbcaef4478dfa152ed2f3e2434561ef85f628a34157274dfe811a27be78b63f80db2719106438ccd8325d436e412dd95c19e8c49
|
data/.codeclimate.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -121,6 +121,9 @@ Style/HashExcept:
|
|
121
121
|
Style/IfWithBooleanLiteralBranches:
|
122
122
|
Enabled: true
|
123
123
|
|
124
|
+
Style/HashConversion:
|
125
|
+
Enabled: true
|
126
|
+
|
124
127
|
Layout/LineLength:
|
125
128
|
Max: 150
|
126
129
|
|
@@ -218,6 +221,9 @@ Lint/SymbolConversion:
|
|
218
221
|
Lint/TripleQuotes:
|
219
222
|
Enabled: true
|
220
223
|
|
224
|
+
Gemspec/DateAssignment:
|
225
|
+
Enabled: true
|
226
|
+
|
221
227
|
Performance/AncestorsInclude:
|
222
228
|
Enabled: true
|
223
229
|
|
@@ -257,6 +263,12 @@ Performance/MethodObjectAsBlock:
|
|
257
263
|
Performance/Sum:
|
258
264
|
Enabled: true
|
259
265
|
|
266
|
+
Performance/RedundantEqualityComparisonBlock:
|
267
|
+
Enabled: true
|
268
|
+
|
269
|
+
Performance/RedundantSplitRegexpArgument:
|
270
|
+
Enabled: true
|
271
|
+
|
260
272
|
RSpec/ExampleLength:
|
261
273
|
Enabled: false
|
262
274
|
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,15 @@
|
|
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
|
+
## [1.2.1] - 2021-03-23
|
6
|
+
|
7
|
+
### Changed
|
8
|
+
|
9
|
+
- Updated gem development dependencies
|
10
|
+
- Updated rubocop/codeclimate config
|
11
|
+
- Updated gem documentation
|
12
|
+
- Updated tests
|
13
|
+
|
5
14
|
## [1.2.0] - 2021-02-04
|
6
15
|
|
7
16
|
### Ability to specify MX record priority
|
@@ -11,7 +20,7 @@ Added ability to specify custom priority of MX record if it needed. Now it impos
|
|
11
20
|
```ruby
|
12
21
|
records = {
|
13
22
|
'example.com' => {
|
14
|
-
mx: %w[.:0 mx1.domain.com:10 mx2.domain.com:10 mx3.domain.com]
|
23
|
+
mx: %w[.:0 mx1.domain.com:10 mx2.domain.com:10 mx3.domain.com] # .:0 - null MX record
|
15
24
|
}
|
16
25
|
}
|
17
26
|
|
data/Gemfile.lock
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dns_mock (1.2.
|
4
|
+
dns_mock (1.2.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
ast (2.4.2)
|
10
|
-
bundler-audit (0.
|
10
|
+
bundler-audit (0.8.0)
|
11
11
|
bundler (>= 1.2.0, < 3)
|
12
|
-
thor (
|
12
|
+
thor (~> 1.0)
|
13
13
|
byebug (11.1.3)
|
14
14
|
childprocess (4.0.0)
|
15
15
|
coderay (1.1.3)
|
@@ -19,12 +19,12 @@ GEM
|
|
19
19
|
dnsruby (1.61.5)
|
20
20
|
simpleidn (~> 0.1)
|
21
21
|
docile (1.3.5)
|
22
|
-
faker (2.
|
22
|
+
faker (2.17.0)
|
23
23
|
i18n (>= 1.6, < 2)
|
24
|
-
fasterer (0.
|
24
|
+
fasterer (0.9.0)
|
25
25
|
colorize (~> 0.7)
|
26
26
|
ruby_parser (>= 3.14.1)
|
27
|
-
i18n (1.8.
|
27
|
+
i18n (1.8.9)
|
28
28
|
concurrent-ruby (~> 1.0)
|
29
29
|
iniparse (1.5.0)
|
30
30
|
json (2.5.1)
|
@@ -42,7 +42,7 @@ GEM
|
|
42
42
|
pry-byebug (3.9.0)
|
43
43
|
byebug (~> 11.0)
|
44
44
|
pry (~> 0.13.0)
|
45
|
-
psych (3.3.
|
45
|
+
psych (3.3.1)
|
46
46
|
rainbow (3.0.0)
|
47
47
|
rake (13.0.3)
|
48
48
|
reek (6.0.3)
|
@@ -50,7 +50,7 @@ GEM
|
|
50
50
|
parser (~> 3.0.0)
|
51
51
|
psych (~> 3.1)
|
52
52
|
rainbow (>= 2.0, < 4.0)
|
53
|
-
regexp_parser (2.
|
53
|
+
regexp_parser (2.1.1)
|
54
54
|
rexml (3.2.4)
|
55
55
|
rspec (3.10.0)
|
56
56
|
rspec-core (~> 3.10.0)
|
@@ -69,7 +69,7 @@ GEM
|
|
69
69
|
diff-lcs (>= 1.2.0, < 2.0)
|
70
70
|
rspec-support (~> 3.10.0)
|
71
71
|
rspec-support (3.10.2)
|
72
|
-
rubocop (1.
|
72
|
+
rubocop (1.11.0)
|
73
73
|
parallel (~> 1.10)
|
74
74
|
parser (>= 3.0.0.0)
|
75
75
|
rainbow (>= 2.2.2, < 4.0)
|
@@ -80,10 +80,10 @@ GEM
|
|
80
80
|
unicode-display_width (>= 1.4.0, < 3.0)
|
81
81
|
rubocop-ast (1.4.1)
|
82
82
|
parser (>= 2.7.1.5)
|
83
|
-
rubocop-performance (1.
|
83
|
+
rubocop-performance (1.10.2)
|
84
84
|
rubocop (>= 0.90.0, < 2.0)
|
85
85
|
rubocop-ast (>= 0.4.0)
|
86
|
-
rubocop-rspec (2.
|
86
|
+
rubocop-rspec (2.2.0)
|
87
87
|
rubocop (~> 1.0)
|
88
88
|
rubocop-ast (>= 1.1.0)
|
89
89
|
ruby-progressbar (1.11.0)
|
@@ -108,19 +108,19 @@ PLATFORMS
|
|
108
108
|
|
109
109
|
DEPENDENCIES
|
110
110
|
bundler (~> 1.16)
|
111
|
-
bundler-audit (~> 0.
|
111
|
+
bundler-audit (~> 0.8.0)
|
112
112
|
dns_mock!
|
113
|
-
faker (~> 2.
|
114
|
-
fasterer (~> 0.
|
113
|
+
faker (~> 2.17)
|
114
|
+
fasterer (~> 0.9.0)
|
115
115
|
overcommit (~> 0.57.0)
|
116
116
|
pry-byebug (~> 3.9)
|
117
117
|
rake (~> 13.0, >= 13.0.3)
|
118
118
|
reek (~> 6.0, >= 6.0.3)
|
119
119
|
rspec (~> 3.10)
|
120
120
|
rspec-dns (~> 0.1.8)
|
121
|
-
rubocop (~> 1.
|
122
|
-
rubocop-performance (~> 1.
|
123
|
-
rubocop-rspec (~> 2.
|
121
|
+
rubocop (~> 1.11)
|
122
|
+
rubocop-performance (~> 1.10, >= 1.10.2)
|
123
|
+
rubocop-rspec (~> 2.2)
|
124
124
|
simplecov (~> 0.17.1)
|
125
125
|
|
126
126
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -17,6 +17,8 @@
|
|
17
17
|
- [Installation](#installation)
|
18
18
|
- [Usage](#usage)
|
19
19
|
- [RSpec](#rspec)
|
20
|
+
- [DnsMock RSpec helper](#dnsmock-rspec-helper)
|
21
|
+
- [DnsMock RSpec interface](#dnsmock-rspec-interface)
|
20
22
|
- [Contributing](#contributing)
|
21
23
|
- [License](#license)
|
22
24
|
- [Code of Conduct](#code-of-conduct)
|
@@ -63,7 +65,7 @@ records = {
|
|
63
65
|
a: %w[1.1.1.1 2.2.2.2],
|
64
66
|
aaaa: %w[2a00:1450:4001:81e::200e],
|
65
67
|
ns: %w[ns1.domain.com ns2.domain.com],
|
66
|
-
mx: %w[mx1.domain.com mx2.domain.com:50], # you can specify host(s) or host(s) with priority
|
68
|
+
mx: %w[mx1.domain.com mx2.domain.com:50], # you can specify host(s) or host(s) with priority, use '.:0' for definition null MX record
|
67
69
|
txt: %w[txt_record_1 txt_record_2],
|
68
70
|
cname: 'some.domain.com',
|
69
71
|
soa: [
|
data/dns_mock.gemspec
CHANGED
@@ -32,17 +32,17 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.require_paths = ['lib']
|
33
33
|
|
34
34
|
spec.add_development_dependency 'bundler', '~> 1.16'
|
35
|
-
spec.add_development_dependency 'bundler-audit', '~> 0.
|
36
|
-
spec.add_development_dependency 'faker', '~> 2.
|
37
|
-
spec.add_development_dependency 'fasterer', '~> 0.
|
35
|
+
spec.add_development_dependency 'bundler-audit', '~> 0.8.0'
|
36
|
+
spec.add_development_dependency 'faker', '~> 2.17'
|
37
|
+
spec.add_development_dependency 'fasterer', '~> 0.9.0'
|
38
38
|
spec.add_development_dependency 'overcommit', '~> 0.57.0'
|
39
39
|
spec.add_development_dependency 'pry-byebug', '~> 3.9'
|
40
40
|
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.3'
|
41
41
|
spec.add_development_dependency 'reek', '~> 6.0', '>= 6.0.3'
|
42
42
|
spec.add_development_dependency 'rspec', '~> 3.10'
|
43
43
|
spec.add_development_dependency 'rspec-dns', '~> 0.1.8'
|
44
|
-
spec.add_development_dependency 'rubocop', '~> 1.
|
45
|
-
spec.add_development_dependency 'rubocop-performance', '~> 1.
|
46
|
-
spec.add_development_dependency 'rubocop-rspec', '~> 2.
|
44
|
+
spec.add_development_dependency 'rubocop', '~> 1.11'
|
45
|
+
spec.add_development_dependency 'rubocop-performance', '~> 1.10', '>= 1.10.2'
|
46
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 2.2'
|
47
47
|
spec.add_development_dependency 'simplecov', '~> 0.17.1'
|
48
48
|
end
|
data/lib/dns_mock/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dns_mock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.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: 2021-
|
11
|
+
date: 2021-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,48 +30,42 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.8.0
|
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: 0.
|
40
|
+
version: 0.8.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: faker
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '2.
|
48
|
-
- - ">="
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: 2.15.1
|
47
|
+
version: '2.17'
|
51
48
|
type: :development
|
52
49
|
prerelease: false
|
53
50
|
version_requirements: !ruby/object:Gem::Requirement
|
54
51
|
requirements:
|
55
52
|
- - "~>"
|
56
53
|
- !ruby/object:Gem::Version
|
57
|
-
version: '2.
|
58
|
-
- - ">="
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 2.15.1
|
54
|
+
version: '2.17'
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
56
|
name: fasterer
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
64
58
|
requirements:
|
65
59
|
- - "~>"
|
66
60
|
- !ruby/object:Gem::Version
|
67
|
-
version: 0.
|
61
|
+
version: 0.9.0
|
68
62
|
type: :development
|
69
63
|
prerelease: false
|
70
64
|
version_requirements: !ruby/object:Gem::Requirement
|
71
65
|
requirements:
|
72
66
|
- - "~>"
|
73
67
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0.
|
68
|
+
version: 0.9.0
|
75
69
|
- !ruby/object:Gem::Dependency
|
76
70
|
name: overcommit
|
77
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,48 +168,48 @@ dependencies:
|
|
174
168
|
requirements:
|
175
169
|
- - "~>"
|
176
170
|
- !ruby/object:Gem::Version
|
177
|
-
version: '1.
|
171
|
+
version: '1.11'
|
178
172
|
type: :development
|
179
173
|
prerelease: false
|
180
174
|
version_requirements: !ruby/object:Gem::Requirement
|
181
175
|
requirements:
|
182
176
|
- - "~>"
|
183
177
|
- !ruby/object:Gem::Version
|
184
|
-
version: '1.
|
178
|
+
version: '1.11'
|
185
179
|
- !ruby/object:Gem::Dependency
|
186
180
|
name: rubocop-performance
|
187
181
|
requirement: !ruby/object:Gem::Requirement
|
188
182
|
requirements:
|
189
183
|
- - "~>"
|
190
184
|
- !ruby/object:Gem::Version
|
191
|
-
version: '1.
|
185
|
+
version: '1.10'
|
192
186
|
- - ">="
|
193
187
|
- !ruby/object:Gem::Version
|
194
|
-
version: 1.
|
188
|
+
version: 1.10.2
|
195
189
|
type: :development
|
196
190
|
prerelease: false
|
197
191
|
version_requirements: !ruby/object:Gem::Requirement
|
198
192
|
requirements:
|
199
193
|
- - "~>"
|
200
194
|
- !ruby/object:Gem::Version
|
201
|
-
version: '1.
|
195
|
+
version: '1.10'
|
202
196
|
- - ">="
|
203
197
|
- !ruby/object:Gem::Version
|
204
|
-
version: 1.
|
198
|
+
version: 1.10.2
|
205
199
|
- !ruby/object:Gem::Dependency
|
206
200
|
name: rubocop-rspec
|
207
201
|
requirement: !ruby/object:Gem::Requirement
|
208
202
|
requirements:
|
209
203
|
- - "~>"
|
210
204
|
- !ruby/object:Gem::Version
|
211
|
-
version: '2.
|
205
|
+
version: '2.2'
|
212
206
|
type: :development
|
213
207
|
prerelease: false
|
214
208
|
version_requirements: !ruby/object:Gem::Requirement
|
215
209
|
requirements:
|
216
210
|
- - "~>"
|
217
211
|
- !ruby/object:Gem::Version
|
218
|
-
version: '2.
|
212
|
+
version: '2.2'
|
219
213
|
- !ruby/object:Gem::Dependency
|
220
214
|
name: simplecov
|
221
215
|
requirement: !ruby/object:Gem::Requirement
|