dns_mock 1.4.4 → 1.5.0

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: d5c5667d59fb9ca903b86d07db9ea589aab8af84ea9e5cdbe4db59e0b42a6f7f
4
- data.tar.gz: 4b28259e0bb3eb7bf8c9df457fdc5bb93e7d70db3c2cdcac70b6893353a79532
3
+ metadata.gz: 869f672c5ab2b35ea419436b33764be1539bf0072a3838855c47bfb83543fe7f
4
+ data.tar.gz: 941b3e48aca4fef38fdda2df46cf6be5bd72aa7517aa19944cfd030f43061d35
5
5
  SHA512:
6
- metadata.gz: aeaebb04153c229192b4db833f8154a9fd631d6ce1c6f0a14cc1de3263a2447d0a13792854f554607d547d1732be1c922fcf78542d081267f0c73073d1654520
7
- data.tar.gz: 8ed61b7ba70335ed5d1ff344aa75888b6ac5fd8d92d61a5d2c9e13e5c47128ae4311ee90b3bf8e53500338cdc31834ce57447c899d77adced3250bf424f7d23d
6
+ metadata.gz: 778204dba4f902e28e9a84fb17a12cf7433a98a7becefa7531ada9f3384b44b23de55c3604a244fd00d8dbe06c1aeea4c5be35ec7255d8fc4cefafed95dc7e9d
7
+ data.tar.gz: 8f5e3cb4e6ffc4d4eb9f6a5f5e4bcee97b4a64ab6ac73548c0c18636d763061c1de8d07d182381c0a4b96b8ae8ba8f87e119f6d527548ca194de97368165bee1
data/.circleci/config.yml CHANGED
@@ -4,18 +4,11 @@ defaults: &defaults
4
4
  working_directory: ~/ruby-dns-mock
5
5
  docker:
6
6
  - image: cimg/ruby:<< parameters.ruby-version >>
7
- environment:
8
- CC_TEST_REPORTER_ID: 18fba9e7d6885c48453a80a0f019a60d9ffa3fd80467652a6b3c95fef5ea9a50
9
7
 
10
8
  orbs:
11
- ruby: circleci/ruby@1.1.3
9
+ ruby: circleci/ruby@1.2.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: bundle install --path vendor/bundle
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:
@@ -50,7 +45,6 @@ jobs:
50
45
  steps:
51
46
  - checkout
52
47
 
53
- - <<: *install_bundler
54
48
  - <<: *restore_bundle_cache
55
49
  - <<: *bundle_install
56
50
  - <<: *save_bundle_cache
@@ -71,7 +65,6 @@ jobs:
71
65
  steps:
72
66
  - checkout
73
67
 
74
- - <<: *install_bundler
75
68
  - <<: *restore_bundle_cache
76
69
  - <<: *bundle_install
77
70
  - <<: *save_bundle_cache
@@ -107,6 +100,7 @@ jobs:
107
100
  steps:
108
101
  - checkout
109
102
  - ruby/install-deps:
103
+ bundler-version: "2.3.3"
110
104
  with-cache: false
111
105
  path: './vendor/custom_bundle'
112
106
  - run:
@@ -127,4 +121,4 @@ workflows:
127
121
  - compatibility-ruby:
128
122
  matrix:
129
123
  parameters:
130
- ruby-version: ["2.6", "2.7", "3.0"]
124
+ ruby-version: ["2.6", "2.7", "3.0", "3.1"]
data/.codeclimate.yml CHANGED
@@ -7,7 +7,7 @@ checks:
7
7
  plugins:
8
8
  rubocop:
9
9
  enabled: true
10
- channel: rubocop-1-22
10
+ channel: rubocop-1-24
11
11
 
12
12
  reek:
13
13
  enabled: true
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /tmp/
9
9
  .rspec_status
10
10
  .DS_Store
11
+ Gemfile.lock
data/.rubocop.yml CHANGED
@@ -31,6 +31,9 @@ Naming/RescuedExceptionsVariableName:
31
31
  Naming/InclusiveLanguage:
32
32
  Enabled: false
33
33
 
34
+ Naming/BlockForwarding:
35
+ Enabled: true
36
+
34
37
  Style/Documentation:
35
38
  Enabled: false
36
39
 
@@ -151,6 +154,18 @@ Style/NumberedParametersLimit:
151
154
  Style/SelectByRegexp:
152
155
  Enabled: true
153
156
 
157
+ Style/FileRead:
158
+ Enabled: true
159
+
160
+ Style/FileWrite:
161
+ Enabled: true
162
+
163
+ Style/MapToHash:
164
+ Enabled: true
165
+
166
+ Style/OpenStructUse:
167
+ Enabled: true
168
+
154
169
  Layout/LineLength:
155
170
  Max: 150
156
171
 
@@ -266,9 +281,15 @@ Lint/IncompatibleIoSelectWithFiberScheduler:
266
281
  Lint/RequireRelativeSelfPath:
267
282
  Enabled: true
268
283
 
284
+ Lint/UselessRuby2Keywords:
285
+ Enabled: true
286
+
269
287
  Gemspec/DateAssignment:
270
288
  Enabled: true
271
289
 
290
+ Gemspec/RequireMFA:
291
+ Enabled: false
292
+
272
293
  Security/IoMethods:
273
294
  Enabled: true
274
295
 
@@ -323,6 +344,9 @@ Performance/MapCompact:
323
344
  Performance/ConcurrentMonotonicTime:
324
345
  Enabled: true
325
346
 
347
+ Performance/StringIdentifierArgument:
348
+ Enabled: true
349
+
326
350
  RSpec/ExampleLength:
327
351
  Enabled: false
328
352
 
@@ -364,3 +388,6 @@ RSpec/ExcessiveDocstringSpacing:
364
388
 
365
389
  RSpec/SubjectDeclaration:
366
390
  Enabled: true
391
+
392
+ RSpec/FactoryBot/SyntaxMethods:
393
+ Enabled: true
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
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.5.0] - 2021-12-29
6
+
7
+ ### Added
8
+
9
+ - Added Ruby 3.1.x compatibility
10
+
11
+ ### Updated
12
+
13
+ - Updated rubocop/codeclimate/circleci configs
14
+ - Updated gem development dependencies
15
+ - Updated gem docs, version
16
+
5
17
  ## [1.4.4] - 2021-11-11
6
18
 
7
19
  ### Updated
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dns_mock (1.4.4)
4
+ dns_mock (1.5.0)
5
5
  simpleidn (~> 0.2.1)
6
6
 
7
7
  GEM
@@ -15,7 +15,8 @@ GEM
15
15
  childprocess (4.1.0)
16
16
  coderay (1.1.3)
17
17
  colorize (0.8.1)
18
- diff-lcs (1.4.4)
18
+ date (3.2.2)
19
+ diff-lcs (1.5.0)
19
20
  dnsruby (1.61.7)
20
21
  simpleidn (~> 0.1)
21
22
  docile (1.4.0)
@@ -24,15 +25,22 @@ GEM
24
25
  ruby_parser (>= 3.14.1)
25
26
  ffaker (2.20.0)
26
27
  iniparse (1.5.0)
28
+ io-wait (0.1.0)
27
29
  json (2.6.1)
28
30
  kwalify (0.7.2)
29
31
  method_source (1.0.0)
32
+ net-ftp (0.1.3)
33
+ net-protocol
34
+ time
35
+ net-protocol (0.1.2)
36
+ io-wait
37
+ timeout
30
38
  overcommit (0.58.0)
31
39
  childprocess (>= 0.6.3, < 5)
32
40
  iniparse (~> 1.4)
33
41
  rexml (~> 3.2)
34
42
  parallel (1.21.0)
35
- parser (3.0.2.0)
43
+ parser (3.0.3.2)
36
44
  ast (~> 2.4.1)
37
45
  pry (0.13.1)
38
46
  coderay (~> 1.1)
@@ -46,7 +54,7 @@ GEM
46
54
  kwalify (~> 0.7.0)
47
55
  parser (~> 3.0.0)
48
56
  rainbow (>= 2.0, < 4.0)
49
- regexp_parser (2.1.1)
57
+ regexp_parser (2.2.0)
50
58
  rexml (3.2.5)
51
59
  rspec (3.10.0)
52
60
  rspec-core (~> 3.10.0)
@@ -65,21 +73,21 @@ GEM
65
73
  diff-lcs (>= 1.2.0, < 2.0)
66
74
  rspec-support (~> 3.10.0)
67
75
  rspec-support (3.10.3)
68
- rubocop (1.22.3)
76
+ rubocop (1.24.0)
69
77
  parallel (~> 1.10)
70
78
  parser (>= 3.0.0.0)
71
79
  rainbow (>= 2.2.2, < 4.0)
72
80
  regexp_parser (>= 1.8, < 3.0)
73
81
  rexml
74
- rubocop-ast (>= 1.12.0, < 2.0)
82
+ rubocop-ast (>= 1.15.0, < 2.0)
75
83
  ruby-progressbar (~> 1.7)
76
84
  unicode-display_width (>= 1.4.0, < 3.0)
77
- rubocop-ast (1.13.0)
85
+ rubocop-ast (1.15.1)
78
86
  parser (>= 3.0.1.1)
79
- rubocop-performance (1.12.0)
87
+ rubocop-performance (1.13.0)
80
88
  rubocop (>= 1.7.0, < 2.0)
81
89
  rubocop-ast (>= 0.4.0)
82
- rubocop-rspec (2.6.0)
90
+ rubocop-rspec (2.7.0)
83
91
  rubocop (~> 1.19)
84
92
  ruby-progressbar (1.11.0)
85
93
  ruby_parser (3.18.1)
@@ -93,6 +101,9 @@ GEM
93
101
  simpleidn (0.2.1)
94
102
  unf (~> 0.1.4)
95
103
  thor (1.1.0)
104
+ time (0.2.0)
105
+ date
106
+ timeout (0.2.0)
96
107
  unf (0.1.4)
97
108
  unf_ext
98
109
  unf_ext (0.0.8)
@@ -102,21 +113,21 @@ PLATFORMS
102
113
  x86_64-darwin-20
103
114
 
104
115
  DEPENDENCIES
105
- bundler (~> 2.2, >= 2.2.31)
106
116
  bundler-audit (~> 0.9.0.1)
107
117
  dns_mock!
108
118
  fasterer (~> 0.9.0)
109
119
  ffaker (~> 2.20)
120
+ net-ftp (~> 0.1.3)
110
121
  overcommit (~> 0.58.0)
111
122
  pry-byebug (~> 3.9)
112
123
  rake (~> 13.0, >= 13.0.6)
113
124
  reek (~> 6.0, >= 6.0.6)
114
125
  rspec (~> 3.10)
115
126
  rspec-dns (~> 0.1.8)
116
- rubocop (~> 1.22, >= 1.22.3)
117
- rubocop-performance (~> 1.12)
118
- rubocop-rspec (~> 2.6)
127
+ rubocop (~> 1.24)
128
+ rubocop-performance (~> 1.13)
129
+ rubocop-rspec (~> 2.7)
119
130
  simplecov (~> 0.17.1)
120
131
 
121
132
  BUNDLED WITH
122
- 2.2.31
133
+ 2.3.3
data/README.md CHANGED
@@ -5,6 +5,7 @@
5
5
  [![CircleCI](https://circleci.com/gh/mocktools/ruby-dns-mock/tree/master.svg?style=svg)](https://circleci.com/gh/mocktools/ruby-dns-mock/tree/master)
6
6
  [![Gem Version](https://badge.fury.io/rb/dns_mock.svg)](https://badge.fury.io/rb/dns_mock)
7
7
  [![Downloads](https://img.shields.io/gem/dt/dns_mock.svg?colorA=004d99&colorB=0073e6)](https://rubygems.org/gems/dns_mock)
8
+ [![In Awesome Ruby](https://raw.githubusercontent.com/sindresorhus/awesome/main/media/mentioned-badge.svg)](https://github.com/markets/awesome-ruby)
8
9
  [![GitHub](https://img.shields.io/github/license/mocktools/ruby-dns-mock)](LICENSE.txt)
9
10
  [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md)
10
11
 
data/dns_mock.gemspec CHANGED
@@ -33,18 +33,18 @@ Gem::Specification.new do |spec|
33
33
 
34
34
  spec.add_runtime_dependency 'simpleidn', '~> 0.2.1'
35
35
 
36
- spec.add_development_dependency 'bundler', '~> 2.2', '>= 2.2.31'
37
36
  spec.add_development_dependency 'bundler-audit', '~> 0.9.0.1'
38
37
  spec.add_development_dependency 'fasterer', '~> 0.9.0'
39
38
  spec.add_development_dependency 'ffaker', '~> 2.20'
39
+ spec.add_development_dependency 'net-ftp', '~> 0.1.3'
40
40
  spec.add_development_dependency 'overcommit', '~> 0.58.0'
41
41
  spec.add_development_dependency 'pry-byebug', '~> 3.9'
42
42
  spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
43
43
  spec.add_development_dependency 'reek', '~> 6.0', '>= 6.0.6'
44
44
  spec.add_development_dependency 'rspec', '~> 3.10'
45
45
  spec.add_development_dependency 'rspec-dns', '~> 0.1.8'
46
- spec.add_development_dependency 'rubocop', '~> 1.22', '>= 1.22.3'
47
- spec.add_development_dependency 'rubocop-performance', '~> 1.12'
48
- spec.add_development_dependency 'rubocop-rspec', '~> 2.6'
46
+ spec.add_development_dependency 'rubocop', '~> 1.24'
47
+ spec.add_development_dependency 'rubocop-performance', '~> 1.13'
48
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.7'
49
49
  spec.add_development_dependency 'simplecov', '~> 0.17.1'
50
50
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DnsMock
4
- VERSION = '1.4.4'
4
+ VERSION = '1.5.0'
5
5
  end
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.4.4
4
+ version: 1.5.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: 2021-11-11 00:00:00.000000000 Z
11
+ date: 2021-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simpleidn
@@ -25,67 +25,61 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.2.1
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: '2.2'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 2.2.31
33
+ version: 0.9.0.1
37
34
  type: :development
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
38
  - - "~>"
42
39
  - !ruby/object:Gem::Version
43
- version: '2.2'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 2.2.31
40
+ version: 0.9.0.1
47
41
  - !ruby/object:Gem::Dependency
48
- name: bundler-audit
42
+ name: fasterer
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
45
  - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: 0.9.0.1
47
+ version: 0.9.0
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
51
  requirements:
58
52
  - - "~>"
59
53
  - !ruby/object:Gem::Version
60
- version: 0.9.0.1
54
+ version: 0.9.0
61
55
  - !ruby/object:Gem::Dependency
62
- name: fasterer
56
+ name: ffaker
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
59
  - - "~>"
66
60
  - !ruby/object:Gem::Version
67
- version: 0.9.0
61
+ version: '2.20'
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.9.0
68
+ version: '2.20'
75
69
  - !ruby/object:Gem::Dependency
76
- name: ffaker
70
+ name: net-ftp
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
73
  - - "~>"
80
74
  - !ruby/object:Gem::Version
81
- version: '2.20'
75
+ version: 0.1.3
82
76
  type: :development
83
77
  prerelease: false
84
78
  version_requirements: !ruby/object:Gem::Requirement
85
79
  requirements:
86
80
  - - "~>"
87
81
  - !ruby/object:Gem::Version
88
- version: '2.20'
82
+ version: 0.1.3
89
83
  - !ruby/object:Gem::Dependency
90
84
  name: overcommit
91
85
  requirement: !ruby/object:Gem::Requirement
@@ -188,48 +182,42 @@ dependencies:
188
182
  requirements:
189
183
  - - "~>"
190
184
  - !ruby/object:Gem::Version
191
- version: '1.22'
192
- - - ">="
193
- - !ruby/object:Gem::Version
194
- version: 1.22.3
185
+ version: '1.24'
195
186
  type: :development
196
187
  prerelease: false
197
188
  version_requirements: !ruby/object:Gem::Requirement
198
189
  requirements:
199
190
  - - "~>"
200
191
  - !ruby/object:Gem::Version
201
- version: '1.22'
202
- - - ">="
203
- - !ruby/object:Gem::Version
204
- version: 1.22.3
192
+ version: '1.24'
205
193
  - !ruby/object:Gem::Dependency
206
194
  name: rubocop-performance
207
195
  requirement: !ruby/object:Gem::Requirement
208
196
  requirements:
209
197
  - - "~>"
210
198
  - !ruby/object:Gem::Version
211
- version: '1.12'
199
+ version: '1.13'
212
200
  type: :development
213
201
  prerelease: false
214
202
  version_requirements: !ruby/object:Gem::Requirement
215
203
  requirements:
216
204
  - - "~>"
217
205
  - !ruby/object:Gem::Version
218
- version: '1.12'
206
+ version: '1.13'
219
207
  - !ruby/object:Gem::Dependency
220
208
  name: rubocop-rspec
221
209
  requirement: !ruby/object:Gem::Requirement
222
210
  requirements:
223
211
  - - "~>"
224
212
  - !ruby/object:Gem::Version
225
- version: '2.6'
213
+ version: '2.7'
226
214
  type: :development
227
215
  prerelease: false
228
216
  version_requirements: !ruby/object:Gem::Requirement
229
217
  requirements:
230
218
  - - "~>"
231
219
  - !ruby/object:Gem::Version
232
- version: '2.6'
220
+ version: '2.7'
233
221
  - !ruby/object:Gem::Dependency
234
222
  name: simplecov
235
223
  requirement: !ruby/object:Gem::Requirement