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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0af7c6de9311c48936130f68339d222dc18675d7ad52db92eec7474bae5ee05c
4
- data.tar.gz: cc926e5123a7e691b88261d93891b7f28efbc54d01ca549e1fdabc6d9ee62f1a
3
+ metadata.gz: fd2234e013517b2d62083f327de9a28e3d8f5f7c49e5204301f576d01e681809
4
+ data.tar.gz: 5695978850e06ebf1579fc80a7b10aba8e4296dfd210a548fb066cf9762e266d
5
5
  SHA512:
6
- metadata.gz: c09d09948564591075f2caccc23d0592ec04644d592815400cc78e1664354af47e9185276fce7c64fb81a18ef4fbbfd53520314419e5085a879dd8df0565527f
7
- data.tar.gz: 535c00b339938ffe3e1479286477889398dc1154f43a2eae4defcb7e08a0a04d23033b501163f3815e2793af67d9445448170bfbd516d34702a5df93f4a22b4d
6
+ metadata.gz: b2575fc3c3d7677fecfcb0479d5d5e77fc941ac57b7b171287ae552ef62d8b5ecb050b42774f996754d2a6a7b1b71b83021d0702446cca8856907120851c4665
7
+ data.tar.gz: ddaaf6bbb40bf8ce10f8180be766b4a7218b952673fec5cccc3726bf4bd01aceb01f03c5bdb4b1b86df6c30d14016eaff38e7cea69e979ad25d7bdfa1398a5af
@@ -10,4 +10,8 @@ rvm:
10
10
  - 2.6.6
11
11
  - 2.5.8
12
12
  - 2.7.1
13
+ - ruby-head
13
14
 
15
+ matrix:
16
+ allow_failures:
17
+ - rvm: ruby-head
@@ -1,5 +1,10 @@
1
1
  # Release Notes
2
2
 
3
+ ## v1.61.5
4
+
5
+ * CAA record fixes - add contactphone and contactemail
6
+ * Fix eprecation warnings
7
+
3
8
  ## v1.61.4
4
9
 
5
10
  * Dnsruby::Name : document .punycode
@@ -50,6 +50,7 @@ require 'dnsruby'
50
50
 
51
51
 
52
52
  resolver = Dnsruby::Resolver.new
53
+ Dnsruby::TheLog.level = Logger::DEBUG
53
54
  zone_transfer = Dnsruby::ZoneTransfer.new
54
55
 
55
56
 
@@ -321,9 +321,11 @@ module Dnsruby
321
321
  f.each {|line|
322
322
  line.sub!(/[#;].*/, '')
323
323
  keyword, *args = line.split(/\s+/)
324
- args.each { |arg|
325
- arg.untaint
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
@@ -57,15 +57,19 @@ module Dnsruby
57
57
  line.sub!(/#.*/, '')
58
58
  addr, hostname, *aliases = line.split(/\s+/)
59
59
  next unless addr
60
- addr.untaint
61
- hostname.untaint
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
- n.untaint
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
@@ -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]
@@ -1,3 +1,3 @@
1
1
  module Dnsruby
2
- VERSION = '1.61.4'
2
+ VERSION = '1.61.5'
3
3
  end
@@ -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 (!RUBY_PLATFORM=~/darwin/)
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
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-08-05 00:00:00.000000000 Z
11
+ date: 2020-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake