dnsruby 1.61.4 → 1.61.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/RELEASE_NOTES.md +5 -0
- data/demo/rubydig.rb +1 -0
- data/lib/dnsruby/config.rb +6 -4
- data/lib/dnsruby/hosts.rb +8 -4
- data/lib/dnsruby/resource/CAA.rb +1 -1
- data/lib/dnsruby/version.rb +1 -1
- data/test/tc_resolver.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd2234e013517b2d62083f327de9a28e3d8f5f7c49e5204301f576d01e681809
|
4
|
+
data.tar.gz: 5695978850e06ebf1579fc80a7b10aba8e4296dfd210a548fb066cf9762e266d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2575fc3c3d7677fecfcb0479d5d5e77fc941ac57b7b171287ae552ef62d8b5ecb050b42774f996754d2a6a7b1b71b83021d0702446cca8856907120851c4665
|
7
|
+
data.tar.gz: ddaaf6bbb40bf8ce10f8180be766b4a7218b952673fec5cccc3726bf4bd01aceb01f03c5bdb4b1b86df6c30d14016eaff38e7cea69e979ad25d7bdfa1398a5af
|
data/.travis.yml
CHANGED
data/RELEASE_NOTES.md
CHANGED
data/demo/rubydig.rb
CHANGED
data/lib/dnsruby/config.rb
CHANGED
@@ -321,9 +321,11 @@ module Dnsruby
|
|
321
321
|
f.each {|line|
|
322
322
|
line.sub!(/[#;].*/, '')
|
323
323
|
keyword, *args = line.split(/\s+/)
|
324
|
-
|
325
|
-
|
326
|
-
|
324
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.8")
|
325
|
+
args.each { |arg|
|
326
|
+
arg.untaint
|
327
|
+
}
|
328
|
+
end
|
327
329
|
next unless keyword
|
328
330
|
case keyword
|
329
331
|
when 'port'
|
@@ -472,4 +474,4 @@ module Dnsruby
|
|
472
474
|
return candidates
|
473
475
|
end
|
474
476
|
end
|
475
|
-
end
|
477
|
+
end
|
data/lib/dnsruby/hosts.rb
CHANGED
@@ -57,15 +57,19 @@ module Dnsruby
|
|
57
57
|
line.sub!(/#.*/, '')
|
58
58
|
addr, hostname, *aliases = line.split(/\s+/)
|
59
59
|
next unless addr
|
60
|
-
|
61
|
-
|
60
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.8")
|
61
|
+
addr.untaint
|
62
|
+
hostname.untaint
|
63
|
+
end
|
62
64
|
@addr2name[addr] = [] unless @addr2name.include? addr
|
63
65
|
@addr2name[addr] << hostname
|
64
66
|
@addr2name[addr] += aliases
|
65
67
|
@name2addr[hostname] = [] unless @name2addr.include? hostname
|
66
68
|
@name2addr[hostname] << addr
|
67
69
|
aliases.each {|n|
|
68
|
-
|
70
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.8")
|
71
|
+
n.untaint
|
72
|
+
end
|
69
73
|
@name2addr[n] = [] unless @name2addr.include? n
|
70
74
|
@name2addr[n] << addr
|
71
75
|
}
|
@@ -123,4 +127,4 @@ module Dnsruby
|
|
123
127
|
end
|
124
128
|
end
|
125
129
|
end
|
126
|
-
end
|
130
|
+
end
|
data/lib/dnsruby/resource/CAA.rb
CHANGED
@@ -43,7 +43,7 @@ module Dnsruby
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def from_string(input) #:nodoc: all
|
46
|
-
matches = (/(\d+) (issuewild|issue|iodef) "(.+)"$/).match(input)
|
46
|
+
matches = (/(\d+) (issuewild|issue|iodef|contactemail|contactphone) "(.+)"$/).match(input)
|
47
47
|
@flag = matches[1]
|
48
48
|
@property_tag = matches[2]
|
49
49
|
@property_value = matches[3]
|
data/lib/dnsruby/version.rb
CHANGED
data/test/tc_resolver.rb
CHANGED
@@ -171,7 +171,7 @@ class TestResolver < Minitest::Test
|
|
171
171
|
# test timeout behaviour for different retry, retrans, total timeout etc.
|
172
172
|
# Problem here is that many sockets will be created for queries which time out.
|
173
173
|
# Run a query which will not respond, and check that the timeout works
|
174
|
-
if (
|
174
|
+
if (RUBY_PLATFORM !~ /darwin/)
|
175
175
|
start=stop=0
|
176
176
|
retry_times = 3
|
177
177
|
retry_delay=1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dnsruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.61.
|
4
|
+
version: 1.61.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Dalitz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|