dns_mock 1.3.0 → 1.3.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 +6 -0
- data/CHANGELOG.md +12 -4
- data/Gemfile.lock +11 -11
- data/README.md +2 -2
- data/dns_mock.gemspec +4 -4
- data/lib/dns_mock/version.rb +1 -1
- metadata +13 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb90f7f7c21ba2fff7de8259e0ac994a0781c212d7de77c05eebbe209b2f7f4c
|
4
|
+
data.tar.gz: e6ac11bad8d86f035063f2b6ca09c681a66988a647c7051a2a80de5b3f0d0ff9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a50714bf62ee1976954cd4cd351399b29d67d240a89e4da379e8da4a5b33c12f323bbed706e5233f23d9edafa609fce52a0f6f3454aab414254368a5069a552f
|
7
|
+
data.tar.gz: 1d2ad40b18259ba6132215bb486dd2d8e9c0e7cf1df195b1538589c0d8fbc034f2436f3d062fed9823e61df54c50c4c958340f9b8e4a04093044ce6bc708ded9
|
data/.codeclimate.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -28,6 +28,9 @@ Naming/VariableNumber:
|
|
28
28
|
Naming/RescuedExceptionsVariableName:
|
29
29
|
Enabled: false
|
30
30
|
|
31
|
+
Naming/InclusiveLanguage:
|
32
|
+
Enabled: false
|
33
|
+
|
31
34
|
Style/Documentation:
|
32
35
|
Enabled: false
|
33
36
|
|
@@ -167,6 +170,9 @@ Layout/EmptyLineAfterGuardClause:
|
|
167
170
|
Layout/SpaceBeforeBrackets:
|
168
171
|
Enabled: true
|
169
172
|
|
173
|
+
Layout/LineEndStringConcatenationIndentation:
|
174
|
+
Enabled: true
|
175
|
+
|
170
176
|
Lint/NonDeterministicRequireOrder:
|
171
177
|
Enabled: true
|
172
178
|
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
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.3.1] - 2021-07-07
|
6
|
+
|
7
|
+
### Changed
|
8
|
+
|
9
|
+
- Updated gem development dependencies
|
10
|
+
- Updated rubocop/codeclimate config
|
11
|
+
- Updated gem documentation, version
|
12
|
+
|
5
13
|
## [1.3.0] - 2021-06-14
|
6
14
|
|
7
15
|
Detecting random available port via OS features. Thanks [@ioquatix](https://github.com/ioquatix) for [suggestion](https://github.com/mocktools/ruby-dns-mock/issues/42) 🚀
|
@@ -180,7 +188,7 @@ Added ability to mock PTR records. Please note, you can define host address with
|
|
180
188
|
|
181
189
|
```ruby
|
182
190
|
records = {
|
183
|
-
'1.
|
191
|
+
'1.2.3.4' => {
|
184
192
|
ptr: %w[domain_1.com domain_2.com]
|
185
193
|
}
|
186
194
|
}
|
@@ -189,7 +197,7 @@ DnsMock.start_server(records: records)
|
|
189
197
|
```
|
190
198
|
|
191
199
|
```bash
|
192
|
-
dig @localhost -p 5300 -x 1.
|
200
|
+
dig @localhost -p 5300 -x 1.2.3.4
|
193
201
|
```
|
194
202
|
|
195
203
|
```
|
@@ -197,8 +205,8 @@ dig @localhost -p 5300 -x 1.1.1.1
|
|
197
205
|
; (2 servers found)
|
198
206
|
|
199
207
|
;; ANSWER SECTION:
|
200
|
-
|
201
|
-
|
208
|
+
4.3.2.1.in-addr.arpa. 1 IN PTR domain_1.com.
|
209
|
+
4.3.2.1.in-addr.arpa. 1 IN PTR domain_2.com.
|
202
210
|
|
203
211
|
;; Query time: 0 msec
|
204
212
|
;; SERVER: 127.0.0.1#5300(127.0.0.1)
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dns_mock (1.3.
|
4
|
+
dns_mock (1.3.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -16,7 +16,7 @@ GEM
|
|
16
16
|
colorize (0.8.1)
|
17
17
|
concurrent-ruby (1.1.9)
|
18
18
|
diff-lcs (1.4.4)
|
19
|
-
dnsruby (1.61.
|
19
|
+
dnsruby (1.61.7)
|
20
20
|
simpleidn (~> 0.1)
|
21
21
|
docile (1.4.0)
|
22
22
|
faker (2.18.0)
|
@@ -45,7 +45,7 @@ GEM
|
|
45
45
|
pry (~> 0.13.0)
|
46
46
|
psych (3.3.2)
|
47
47
|
rainbow (3.0.0)
|
48
|
-
rake (13.0.
|
48
|
+
rake (13.0.4)
|
49
49
|
reek (6.0.4)
|
50
50
|
kwalify (~> 0.7.0)
|
51
51
|
parser (~> 3.0.0)
|
@@ -70,7 +70,7 @@ GEM
|
|
70
70
|
diff-lcs (>= 1.2.0, < 2.0)
|
71
71
|
rspec-support (~> 3.10.0)
|
72
72
|
rspec-support (3.10.2)
|
73
|
-
rubocop (1.
|
73
|
+
rubocop (1.18.3)
|
74
74
|
parallel (~> 1.10)
|
75
75
|
parser (>= 3.0.0.0)
|
76
76
|
rainbow (>= 2.2.2, < 4.0)
|
@@ -81,7 +81,7 @@ GEM
|
|
81
81
|
unicode-display_width (>= 1.4.0, < 3.0)
|
82
82
|
rubocop-ast (1.7.0)
|
83
83
|
parser (>= 3.0.1.1)
|
84
|
-
rubocop-performance (1.11.
|
84
|
+
rubocop-performance (1.11.4)
|
85
85
|
rubocop (>= 1.7.0, < 2.0)
|
86
86
|
rubocop-ast (>= 0.4.0)
|
87
87
|
rubocop-rspec (2.4.0)
|
@@ -105,24 +105,24 @@ GEM
|
|
105
105
|
unicode-display_width (2.0.0)
|
106
106
|
|
107
107
|
PLATFORMS
|
108
|
-
x86_64-darwin-
|
108
|
+
x86_64-darwin-20
|
109
109
|
|
110
110
|
DEPENDENCIES
|
111
|
-
bundler (~> 2.2, >= 2.2.
|
111
|
+
bundler (~> 2.2, >= 2.2.22)
|
112
112
|
bundler-audit (~> 0.8.0)
|
113
113
|
dns_mock!
|
114
114
|
faker (~> 2.18)
|
115
115
|
fasterer (~> 0.9.0)
|
116
116
|
overcommit (~> 0.58.0)
|
117
117
|
pry-byebug (~> 3.9)
|
118
|
-
rake (~> 13.0, >= 13.0.
|
118
|
+
rake (~> 13.0, >= 13.0.4)
|
119
119
|
reek (~> 6.0, >= 6.0.4)
|
120
120
|
rspec (~> 3.10)
|
121
121
|
rspec-dns (~> 0.1.8)
|
122
|
-
rubocop (~> 1.
|
123
|
-
rubocop-performance (~> 1.11, >= 1.11.
|
122
|
+
rubocop (~> 1.18, >= 1.18.3)
|
123
|
+
rubocop-performance (~> 1.11, >= 1.11.4)
|
124
124
|
rubocop-rspec (~> 2.4)
|
125
125
|
simplecov (~> 0.17.1)
|
126
126
|
|
127
127
|
BUNDLED WITH
|
128
|
-
2.2.
|
128
|
+
2.2.22
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Ruby DnsMock
|
1
|
+
# ![Ruby DnsMock - mimic any DNS records for your test environment and even more!](https://repository-images.githubusercontent.com/323097031/ba2a0780-df26-11eb-954b-5e3204587eb2)
|
2
2
|
|
3
3
|
[![Maintainability](https://api.codeclimate.com/v1/badges/5ea9da61ef468b8ad4c4/maintainability)](https://codeclimate.com/github/mocktools/ruby-dns-mock/maintainability)
|
4
4
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/5ea9da61ef468b8ad4c4/test_coverage)](https://codeclimate.com/github/mocktools/ruby-dns-mock/test_coverage)
|
@@ -80,7 +80,7 @@ records = {
|
|
80
80
|
}
|
81
81
|
]
|
82
82
|
},
|
83
|
-
'1.2.3.4' => {
|
83
|
+
'1.2.3.4' => { # You can define RDNS host address without lookup prefix. It will be converted to 4.3.2.1.in-addr.arpa automatically
|
84
84
|
ptr: %w[domain_1.com domain_2.com]
|
85
85
|
}
|
86
86
|
}
|
data/dns_mock.gemspec
CHANGED
@@ -31,18 +31,18 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
32
32
|
spec.require_paths = ['lib']
|
33
33
|
|
34
|
-
spec.add_development_dependency 'bundler', '~> 2.2', '>= 2.2.
|
34
|
+
spec.add_development_dependency 'bundler', '~> 2.2', '>= 2.2.22'
|
35
35
|
spec.add_development_dependency 'bundler-audit', '~> 0.8.0'
|
36
36
|
spec.add_development_dependency 'faker', '~> 2.18'
|
37
37
|
spec.add_development_dependency 'fasterer', '~> 0.9.0'
|
38
38
|
spec.add_development_dependency 'overcommit', '~> 0.58.0'
|
39
39
|
spec.add_development_dependency 'pry-byebug', '~> 3.9'
|
40
|
-
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.
|
40
|
+
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.4'
|
41
41
|
spec.add_development_dependency 'reek', '~> 6.0', '>= 6.0.4'
|
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.11', '>= 1.11.
|
44
|
+
spec.add_development_dependency 'rubocop', '~> 1.18', '>= 1.18.3'
|
45
|
+
spec.add_development_dependency 'rubocop-performance', '~> 1.11', '>= 1.11.4'
|
46
46
|
spec.add_development_dependency 'rubocop-rspec', '~> 2.4'
|
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.3.
|
4
|
+
version: 1.3.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-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '2.2'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 2.2.
|
22
|
+
version: 2.2.22
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '2.2'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 2.2.
|
32
|
+
version: 2.2.22
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: bundler-audit
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
version: '13.0'
|
110
110
|
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: 13.0.
|
112
|
+
version: 13.0.4
|
113
113
|
type: :development
|
114
114
|
prerelease: false
|
115
115
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -119,7 +119,7 @@ dependencies:
|
|
119
119
|
version: '13.0'
|
120
120
|
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: 13.0.
|
122
|
+
version: 13.0.4
|
123
123
|
- !ruby/object:Gem::Dependency
|
124
124
|
name: reek
|
125
125
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,20 +174,20 @@ dependencies:
|
|
174
174
|
requirements:
|
175
175
|
- - "~>"
|
176
176
|
- !ruby/object:Gem::Version
|
177
|
-
version: '1.
|
177
|
+
version: '1.18'
|
178
178
|
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 1.
|
180
|
+
version: 1.18.3
|
181
181
|
type: :development
|
182
182
|
prerelease: false
|
183
183
|
version_requirements: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '1.
|
187
|
+
version: '1.18'
|
188
188
|
- - ">="
|
189
189
|
- !ruby/object:Gem::Version
|
190
|
-
version: 1.
|
190
|
+
version: 1.18.3
|
191
191
|
- !ruby/object:Gem::Dependency
|
192
192
|
name: rubocop-performance
|
193
193
|
requirement: !ruby/object:Gem::Requirement
|
@@ -197,7 +197,7 @@ dependencies:
|
|
197
197
|
version: '1.11'
|
198
198
|
- - ">="
|
199
199
|
- !ruby/object:Gem::Version
|
200
|
-
version: 1.11.
|
200
|
+
version: 1.11.4
|
201
201
|
type: :development
|
202
202
|
prerelease: false
|
203
203
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -207,7 +207,7 @@ dependencies:
|
|
207
207
|
version: '1.11'
|
208
208
|
- - ">="
|
209
209
|
- !ruby/object:Gem::Version
|
210
|
-
version: 1.11.
|
210
|
+
version: 1.11.4
|
211
211
|
- !ruby/object:Gem::Dependency
|
212
212
|
name: rubocop-rspec
|
213
213
|
requirement: !ruby/object:Gem::Requirement
|
@@ -331,8 +331,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
331
331
|
- !ruby/object:Gem::Version
|
332
332
|
version: '0'
|
333
333
|
requirements: []
|
334
|
-
|
335
|
-
rubygems_version: 2.7.3
|
334
|
+
rubygems_version: 3.2.20
|
336
335
|
signing_key:
|
337
336
|
specification_version: 4
|
338
337
|
summary: dns_mock
|