resolv-hosts-dynamic 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 126c6b7b7a5bc340dfcb8488cc1623921ad1976dda6034b7ce2f62e2114fc281
4
- data.tar.gz: c82cbd54fba898efb13293f1e91d2254b393ec018b6f8f587949d5ce9c58d73f
3
+ metadata.gz: c2abe5a079619b0c2c70c89c3e1cae72e6f2ddb0eb70f1bc840f942fc3782e18
4
+ data.tar.gz: a6877d1a9884e078145440a96c2ae76dd31bff801eb30fc066d405071ec499ba
5
5
  SHA512:
6
- metadata.gz: 1f21cc848051647d02da4b41babf250c6f59a40e4eb6944f1a25b4e61544fbdd0305888ccf7d5a577f50c95bbd704560e1e940a949b0d09c1f10fc253bb97a64
7
- data.tar.gz: 4e3cd8ffbb2b9f4b1bc2b3a416d177816e9725d9bd0de196a9f9cf82800a12b64d8d065a25b71706eb9a1d328c488170a3a66ddb14418ffbbd41ec09a6014e7f
6
+ metadata.gz: 5a0e7913053632a9db051decb67dbc6461fa1499522986ded796469c1653d862cd69dd1957aaba3c5932900658098acebfc98a7441877a8c37afddae88ad63ce
7
+ data.tar.gz: 1bf8aa05e5352e20bb49c14fc44bbc2319ebb1041a7c0cc65a3591bd346b0d199de5fee276fa00aedd7785c5d42532e289428d523c9113021405f33e3ef0cc55
@@ -1,27 +1,31 @@
1
+ ---
1
2
  name: Run tests
2
- on: [push, pull_request]
3
+ on: [push, pull_request] # yamllint disable-line rule:truthy
3
4
  jobs:
4
5
  test:
5
6
  strategy:
6
7
  fail-fast: false
7
8
  matrix:
8
- ruby: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1']
9
+ ruby: [
10
+ '2.3', '2.4', '2.5', '2.6', '2.7',
11
+ '3.0', '3.1', '3.2', '3.3', '3.4'
12
+ ]
9
13
  runs-on: ubuntu-latest
10
14
  env:
11
15
  BUNDLE_GEMFILE: ${{ github.workspace }}/spec/spec.gemfile
12
16
  steps:
13
- - uses: actions/checkout@v2
14
- - uses: ruby/setup-ruby@v1
15
- with:
16
- ruby-version: ${{ matrix.ruby }}
17
- bundler-cache: true
18
- - run: bundle exec rspec
17
+ - uses: actions/checkout@v5
18
+ - uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: ${{ matrix.ruby }}
21
+ bundler-cache: true
22
+ - run: bundle exec rspec
19
23
  lint:
20
24
  runs-on: ubuntu-latest
21
25
  steps:
22
- - uses: actions/checkout@v2
23
- - uses: ruby/setup-ruby@v1
24
- with:
25
- ruby-version: 2.7
26
- bundler-cache: true
27
- - run: bundle exec rubocop
26
+ - uses: actions/checkout@v5
27
+ - uses: ruby/setup-ruby@v1
28
+ with:
29
+ ruby-version: 2.7
30
+ bundler-cache: true
31
+ - run: bundle exec rubocop
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## [1.1.0] - 2025-11-17
5
+
6
+ ### Changed
7
+
8
+ - Add support for ruby >= 3.3 (@markeganfuller).
9
+ - Drop use of `untainted` (@markeganfuller).
10
+
11
+
4
12
  ## [1.0.0] - 2023-03-12
5
13
 
6
14
  ### Changed
@@ -22,6 +30,7 @@
22
30
  Initial release.
23
31
 
24
32
 
33
+ [1.1.0]: https://github.com/chris-reeves/gem-resolv-hosts-dynamic/compare/v1.0.0...v1.1.0
25
34
  [1.0.0]: https://github.com/chris-reeves/gem-resolv-hosts-dynamic/compare/v0.0.2...v1.0.0
26
35
  [0.0.2]: https://github.com/chris-reeves/gem-resolv-hosts-dynamic/compare/v0.0.1...v0.0.2
27
36
  [0.0.1]: https://github.com/chris-reeves/gem-resolv-hosts-dynamic/releases/tag/v0.0.1
data/Gemfile CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- ruby '2.7.7'
5
+ ruby '2.7.8'
6
6
 
7
7
  # Specify your gem's dependencies in resolv-hosts-dynamic.gemspec
8
8
  gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- resolv-hosts-dynamic (1.0.0)
4
+ resolv-hosts-dynamic (1.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -35,9 +35,6 @@ class Resolv
35
35
  raise "Must specify 'addr' for host" unless addr
36
36
  raise "Must specify 'hostname' for host" unless hostname
37
37
 
38
- addr.untaint
39
- hostname.untaint
40
-
41
38
  # So that aliases can be passed a string or an array of strings
42
39
  aliases = [aliases] if aliases.is_a? String
43
40
 
@@ -47,7 +44,6 @@ class Resolv
47
44
  @name2addr[hostname] = [] unless @name2addr.include? hostname
48
45
  @name2addr[hostname] << addr
49
46
  aliases&.each do |n|
50
- n.untaint
51
47
  @name2addr[n] = [] unless @name2addr.include? n
52
48
  @name2addr[n] << addr
53
49
  end
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'resolv-hosts-dynamic'
8
- spec.version = '1.0.0'
8
+ spec.version = '1.1.0'
9
9
  spec.authors = ['Chris Reeves']
10
10
  spec.email = ['chris.reeves@iname.com']
11
11
  spec.summary = "Dynamic in-memory 'hosts' file for resolving hostnames."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resolv-hosts-dynamic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Reeves
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-12 00:00:00.000000000 Z
11
+ date: 2025-11-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  Dynamic in-memory 'hosts' file for resolving hostnames. Injects entries
@@ -47,7 +47,7 @@ metadata:
47
47
  source_code_uri: https://github.com/chris-reeves/gem-resolv-hosts-dynamic
48
48
  bug_tracker_uri: https://github.com/chris-reeves/gem-resolv-hosts-dynamic/issues
49
49
  rubygems_mfa_required: 'true'
50
- post_install_message:
50
+ post_install_message:
51
51
  rdoc_options: []
52
52
  require_paths:
53
53
  - lib
@@ -62,8 +62,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  requirements: []
65
- rubygems_version: 3.1.6
66
- signing_key:
65
+ rubygems_version: 3.3.15
66
+ signing_key:
67
67
  specification_version: 4
68
68
  summary: Dynamic in-memory 'hosts' file for resolving hostnames.
69
69
  test_files: