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 +4 -4
- data/.github/workflows/test.yml +18 -14
- data/CHANGELOG.md +9 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/lib/resolv-hosts-dynamic.rb +0 -4
- data/resolv-hosts-dynamic.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c2abe5a079619b0c2c70c89c3e1cae72e6f2ddb0eb70f1bc840f942fc3782e18
|
|
4
|
+
data.tar.gz: a6877d1a9884e078145440a96c2ae76dd31bff801eb30fc066d405071ec499ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a0e7913053632a9db051decb67dbc6461fa1499522986ded796469c1653d862cd69dd1957aaba3c5932900658098acebfc98a7441877a8c37afddae88ad63ce
|
|
7
|
+
data.tar.gz: 1bf8aa05e5352e20bb49c14fc44bbc2319ebb1041a7c0cc65a3591bd346b0d199de5fee276fa00aedd7785c5d42532e289428d523c9113021405f33e3ef0cc55
|
data/.github/workflows/test.yml
CHANGED
|
@@ -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: [
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
data/Gemfile.lock
CHANGED
data/lib/resolv-hosts-dynamic.rb
CHANGED
|
@@ -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.
|
|
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.
|
|
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:
|
|
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.
|
|
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:
|