dns_mock 1.5.1 → 1.5.2

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: 9069a9d61624fa9e49041b67253d88d812933450d86e7f557266ec2914c1ffe1
4
- data.tar.gz: 60d488d520030288cca869e464e710bb2606dc4b9e76dd38af355c8b5856fac0
3
+ metadata.gz: 4f9619c8cde22bb1fc930c91a7aca80484933552d752c0b16a5b11e9d09bc2a0
4
+ data.tar.gz: e763c628b2d0615b4e62d03f15110b9434d7f7a75400aad8c5925d823a71ec05
5
5
  SHA512:
6
- metadata.gz: 5e6c1ec6ad0d6f1e5b0688593b6d40c8b4df3fdefbc292652a33c7641fa4aaa4c382c8dda235f9a303b12e4da3050e45ebba5f85ab565ce454c1bc8a57d2ed62
7
- data.tar.gz: c195a82ee5a5f88ca8d0c73cc5bee45eaf6120e408dc80553bd687961f62dfc39b7c8e757723183e9590e0a8fca3dbabab5a932487c5f8ff87e5db976cbc8e30
6
+ metadata.gz: d7282581f314ad2d3d245a103362abbea044c9a74b2ca5d660e96482609d4c9adf6631734b5a47012ad5f8ff500c1732a9ec76b07e800db612589df18a0cd864
7
+ data.tar.gz: 8486ad4d2e2521a9223368766311873ee96b0d520b36b31241c419171ab640ab25964ee8a71bf337377dbf554a83e945bfdd95f44d9ee4569de6d74a52f1be08
data/.circleci/config.yml CHANGED
@@ -34,11 +34,17 @@ references:
34
34
  curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
35
35
  chmod +x ./cc-test-reporter
36
36
 
37
+ use_latest_gemspec: &use_latest_gemspec
38
+ run:
39
+ name: Using latest gemspec
40
+ command: |
41
+ cp .circleci/gemspec_latest dns_mock.gemspec
42
+
37
43
  use_compatible_gemspec: &use_compatible_gemspec
38
44
  run:
39
- name: Use compatible gemspec
45
+ name: Using compatible gemspec
40
46
  command: |
41
- cp dns_mock.gemspec_compatible dns_mock.gemspec
47
+ cp .circleci/gemspec_compatible dns_mock.gemspec
42
48
 
43
49
  jobs:
44
50
  linters-ruby:
@@ -51,6 +57,7 @@ jobs:
51
57
  steps:
52
58
  - checkout
53
59
 
60
+ - <<: *use_latest_gemspec
54
61
  - <<: *restore_bundle_cache
55
62
  - <<: *bundle_install
56
63
  - <<: *save_bundle_cache
@@ -71,6 +78,7 @@ jobs:
71
78
  steps:
72
79
  - checkout
73
80
 
81
+ - <<: *use_latest_gemspec
74
82
  - <<: *restore_bundle_cache
75
83
  - <<: *bundle_install
76
84
  - <<: *save_bundle_cache
@@ -107,7 +115,7 @@ jobs:
107
115
  - checkout
108
116
  - <<: *use_compatible_gemspec
109
117
  - ruby/install-deps:
110
- bundler-version: "2.3.5"
118
+ bundler-version: "2.3.8"
111
119
  with-cache: false
112
120
  path: './vendor/custom_bundle'
113
121
  - run:
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = ::File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'dns_mock/version'
3
+ require_relative 'lib/dns_mock/version'
6
4
 
7
5
  Gem::Specification.new do |spec|
8
6
  spec.name = 'dns_mock'
@@ -34,9 +32,7 @@ Gem::Specification.new do |spec|
34
32
  spec.add_runtime_dependency 'simpleidn', '~> 0.2.1'
35
33
 
36
34
  spec.add_development_dependency 'ffaker', '~> 2.20'
37
- spec.add_development_dependency 'pry-byebug'
38
35
  spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
39
- spec.add_development_dependency 'rspec', '~> 3.10'
36
+ spec.add_development_dependency 'rspec', '~> 3.11'
40
37
  spec.add_development_dependency 'rspec-dns', '~> 0.1.8'
41
- spec.add_development_dependency 'simplecov', '~> 0.17.1'
42
38
  end
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/dns_mock/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'dns_mock'
7
+ spec.version = DnsMock::VERSION
8
+ spec.authors = ['Vladislav Trotsenko']
9
+ spec.email = ['admin@bestweb.com.ua']
10
+
11
+ spec.summary = %(dns_mock)
12
+ spec.description = %(💎 Ruby DNS mock. Mimic any DNS records for your test environment and even more.)
13
+
14
+ spec.homepage = 'https://github.com/mocktools/ruby-dns-mock'
15
+ spec.license = 'MIT'
16
+
17
+ spec.metadata = {
18
+ 'homepage_uri' => 'https://github.com/mocktools/ruby-dns-mock',
19
+ 'changelog_uri' => 'https://github.com/mocktools/ruby-dns-mock/blob/master/CHANGELOG.md',
20
+ 'source_code_uri' => 'https://github.com/mocktools/ruby-dns-mock',
21
+ 'documentation_uri' => 'https://github.com/mocktools/ruby-dns-mock/blob/master/README.md',
22
+ 'bug_tracker_uri' => 'https://github.com/mocktools/ruby-dns-mock/issues'
23
+ }
24
+
25
+ spec.required_ruby_version = '>= 2.5.0'
26
+
27
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28
+ spec.bindir = 'exe'
29
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| ::File.basename(f) }
30
+ spec.require_paths = ['lib']
31
+
32
+ spec.add_runtime_dependency 'simpleidn', '~> 0.2.1'
33
+
34
+ spec.add_development_dependency 'bundler-audit', '~> 0.9.0.1'
35
+ spec.add_development_dependency 'fasterer', '~> 0.9.0'
36
+ spec.add_development_dependency 'ffaker', '~> 2.20'
37
+ spec.add_development_dependency 'net-ftp', '~> 0.1.3'
38
+ spec.add_development_dependency 'overcommit', '~> 0.58.0'
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 'reek', '~> 6.1'
42
+ spec.add_development_dependency 'rspec', '~> 3.11'
43
+ spec.add_development_dependency 'rspec-dns', '~> 0.1.8'
44
+ spec.add_development_dependency 'rubocop', '~> 1.26'
45
+ spec.add_development_dependency 'rubocop-performance', '~> 1.13', '>= 1.13.3'
46
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.9'
47
+ spec.add_development_dependency 'simplecov', '~> 0.21.2'
48
+ end
data/.codeclimate.yml CHANGED
@@ -7,7 +7,7 @@ checks:
7
7
  plugins:
8
8
  rubocop:
9
9
  enabled: true
10
- channel: rubocop-1-25
10
+ channel: rubocop-1-26
11
11
 
12
12
  reek:
13
13
  enabled: true
@@ -0,0 +1,26 @@
1
+ # Development environment guide
2
+
3
+ ## Preparing
4
+
5
+ Clone `dns_mock` repository:
6
+
7
+ ```bash
8
+ git clone https://github.com/mocktools/ruby-dns-mock.git
9
+ cd ruby-dns-mock
10
+ ```
11
+
12
+ Configure latest Ruby environment:
13
+
14
+ ```bash
15
+ echo 'ruby-3.1.1' > .ruby-version
16
+ cp .circleci/gemspec_latest dns_mock.gemspec
17
+ ```
18
+
19
+ ## Commiting
20
+
21
+ Commit your changes excluding `.ruby-version`, `dns_mock.gemspec`
22
+
23
+ ```bash
24
+ git add . ':!.ruby-version' ':!dns_mock.gemspec'
25
+ git commit -m 'Your new awesome dns_mock feature'
26
+ ```
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.1.0
1
+ ruby-2.5.0
data/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
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.2] - 2022-03-10
6
+
7
+ ### Added
8
+
9
+ - Development environment guide
10
+
11
+ ### Updated
12
+
13
+ - Updated gemspecs
14
+ - Updated codeclimate/circleci configs
15
+ - Updated gem development dependencies
16
+ - Updated gem version
17
+
5
18
  ## [1.5.1] - 2022-01-23
6
19
 
7
20
  ### Updated
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 and make your changes. This includes tests for features!
46
- 6. Push to your fork and submit a pull request to `develop` branch
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/dns_mock.gemspec CHANGED
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = ::File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'dns_mock/version'
3
+ require_relative 'lib/dns_mock/version'
6
4
 
7
5
  Gem::Specification.new do |spec|
8
6
  spec.name = 'dns_mock'
@@ -33,18 +31,9 @@ Gem::Specification.new do |spec|
33
31
 
34
32
  spec.add_runtime_dependency 'simpleidn', '~> 0.2.1'
35
33
 
36
- spec.add_development_dependency 'bundler-audit', '~> 0.9.0.1'
37
- spec.add_development_dependency 'fasterer', '~> 0.9.0'
38
34
  spec.add_development_dependency 'ffaker', '~> 2.20'
39
- spec.add_development_dependency 'net-ftp', '~> 0.1.3'
40
- spec.add_development_dependency 'overcommit', '~> 0.58.0'
41
- spec.add_development_dependency 'pry-byebug', '~> 3.9'
35
+ spec.add_development_dependency 'net-ftp', '~> 0.1.3' if ::RUBY_VERSION >= '3.1.0'
42
36
  spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
43
- spec.add_development_dependency 'reek', '~> 6.1'
44
- spec.add_development_dependency 'rspec', '~> 3.10'
37
+ spec.add_development_dependency 'rspec', '~> 3.11'
45
38
  spec.add_development_dependency 'rspec-dns', '~> 0.1.8'
46
- spec.add_development_dependency 'rubocop', '~> 1.25'
47
- spec.add_development_dependency 'rubocop-performance', '~> 1.13', '>= 1.13.2'
48
- spec.add_development_dependency 'rubocop-rspec', '~> 2.7'
49
- spec.add_development_dependency 'simplecov', '~> 0.17.1'
50
39
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DnsMock
4
- VERSION = '1.5.1'
4
+ VERSION = '1.5.2'
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.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladislav Trotsenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-23 00:00:00.000000000 Z
11
+ date: 2022-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simpleidn
@@ -24,34 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.2.1
27
- - !ruby/object:Gem::Dependency
28
- name: bundler-audit
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 0.9.0.1
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 0.9.0.1
41
- - !ruby/object:Gem::Dependency
42
- name: fasterer
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: 0.9.0
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: 0.9.0
55
27
  - !ruby/object:Gem::Dependency
56
28
  name: ffaker
57
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,48 +38,6 @@ dependencies:
66
38
  - - "~>"
67
39
  - !ruby/object:Gem::Version
68
40
  version: '2.20'
69
- - !ruby/object:Gem::Dependency
70
- name: net-ftp
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 0.1.3
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 0.1.3
83
- - !ruby/object:Gem::Dependency
84
- name: overcommit
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 0.58.0
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 0.58.0
97
- - !ruby/object:Gem::Dependency
98
- name: pry-byebug
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '3.9'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '3.9'
111
41
  - !ruby/object:Gem::Dependency
112
42
  name: rake
113
43
  requirement: !ruby/object:Gem::Requirement
@@ -128,34 +58,20 @@ dependencies:
128
58
  - - ">="
129
59
  - !ruby/object:Gem::Version
130
60
  version: 13.0.6
131
- - !ruby/object:Gem::Dependency
132
- name: reek
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: '6.1'
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: '6.1'
145
61
  - !ruby/object:Gem::Dependency
146
62
  name: rspec
147
63
  requirement: !ruby/object:Gem::Requirement
148
64
  requirements:
149
65
  - - "~>"
150
66
  - !ruby/object:Gem::Version
151
- version: '3.10'
67
+ version: '3.11'
152
68
  type: :development
153
69
  prerelease: false
154
70
  version_requirements: !ruby/object:Gem::Requirement
155
71
  requirements:
156
72
  - - "~>"
157
73
  - !ruby/object:Gem::Version
158
- version: '3.10'
74
+ version: '3.11'
159
75
  - !ruby/object:Gem::Dependency
160
76
  name: rspec-dns
161
77
  requirement: !ruby/object:Gem::Requirement
@@ -170,68 +86,6 @@ dependencies:
170
86
  - - "~>"
171
87
  - !ruby/object:Gem::Version
172
88
  version: 0.1.8
173
- - !ruby/object:Gem::Dependency
174
- name: rubocop
175
- requirement: !ruby/object:Gem::Requirement
176
- requirements:
177
- - - "~>"
178
- - !ruby/object:Gem::Version
179
- version: '1.25'
180
- type: :development
181
- prerelease: false
182
- version_requirements: !ruby/object:Gem::Requirement
183
- requirements:
184
- - - "~>"
185
- - !ruby/object:Gem::Version
186
- version: '1.25'
187
- - !ruby/object:Gem::Dependency
188
- name: rubocop-performance
189
- requirement: !ruby/object:Gem::Requirement
190
- requirements:
191
- - - "~>"
192
- - !ruby/object:Gem::Version
193
- version: '1.13'
194
- - - ">="
195
- - !ruby/object:Gem::Version
196
- version: 1.13.2
197
- type: :development
198
- prerelease: false
199
- version_requirements: !ruby/object:Gem::Requirement
200
- requirements:
201
- - - "~>"
202
- - !ruby/object:Gem::Version
203
- version: '1.13'
204
- - - ">="
205
- - !ruby/object:Gem::Version
206
- version: 1.13.2
207
- - !ruby/object:Gem::Dependency
208
- name: rubocop-rspec
209
- requirement: !ruby/object:Gem::Requirement
210
- requirements:
211
- - - "~>"
212
- - !ruby/object:Gem::Version
213
- version: '2.7'
214
- type: :development
215
- prerelease: false
216
- version_requirements: !ruby/object:Gem::Requirement
217
- requirements:
218
- - - "~>"
219
- - !ruby/object:Gem::Version
220
- version: '2.7'
221
- - !ruby/object:Gem::Dependency
222
- name: simplecov
223
- requirement: !ruby/object:Gem::Requirement
224
- requirements:
225
- - - "~>"
226
- - !ruby/object:Gem::Version
227
- version: 0.17.1
228
- type: :development
229
- prerelease: false
230
- version_requirements: !ruby/object:Gem::Requirement
231
- requirements:
232
- - - "~>"
233
- - !ruby/object:Gem::Version
234
- version: 0.17.1
235
89
  description: "\U0001F48E Ruby DNS mock. Mimic any DNS records for your test environment
236
90
  and even more."
237
91
  email:
@@ -241,8 +95,11 @@ extensions: []
241
95
  extra_rdoc_files: []
242
96
  files:
243
97
  - ".circleci/config.yml"
98
+ - ".circleci/gemspec_compatible"
99
+ - ".circleci/gemspec_latest"
244
100
  - ".codeclimate.yml"
245
101
  - ".github/BRANCH_NAMING_CONVENTION.md"
102
+ - ".github/DEVELOPMENT_ENVIRONMENT_GUIDE.md"
246
103
  - ".github/ISSUE_TEMPLATE/bug_report.md"
247
104
  - ".github/ISSUE_TEMPLATE/feature_request.md"
248
105
  - ".github/ISSUE_TEMPLATE/issue_report.md"
@@ -265,7 +122,6 @@ files:
265
122
  - bin/console
266
123
  - bin/setup
267
124
  - dns_mock.gemspec
268
- - dns_mock.gemspec_compatible
269
125
  - lib/dns_mock.rb
270
126
  - lib/dns_mock/core.rb
271
127
  - lib/dns_mock/error/argument_type.rb
@@ -329,7 +185,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
329
185
  - !ruby/object:Gem::Version
330
186
  version: '0'
331
187
  requirements: []
332
- rubygems_version: 3.3.3
188
+ rubyforge_project:
189
+ rubygems_version: 2.7.3
333
190
  signing_key:
334
191
  specification_version: 4
335
192
  summary: dns_mock