dnsruby 1.72.1 → 1.72.2

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: 59e143e5c778c710c41fc8773f011abe1bdb6502604202d41d2dc953af051792
4
- data.tar.gz: 6fd89c7fe716e10af20c5b494102a47d8d33e51a5258b48dd959099266e7e7c8
3
+ metadata.gz: 21b497d743921a2f83086443d5e25b66a3087ca3c861d9f41e0e3f1c017c6265
4
+ data.tar.gz: 4c2998abc2f178334cc36d238e60439b4006afadd531a39736a954e90053a865
5
5
  SHA512:
6
- metadata.gz: 313f1b89fb446ce5c1f19d8910e1fe6ed21ef3f392b680e980bbedc9d98a7f5bb0844c52aa9422df6b525f0bcc4c249541c0e23b0cf3bcf8f139c8f98b4de913
7
- data.tar.gz: 870efeeb297acf83b0a0c1b9cb5d832e138480e37bf8723986d74d43997998773195936bb4e5a035f579bb2c93806ce94a03bdc39d6c7e41fedb56fb303d1b80
6
+ metadata.gz: e4d37f65d26367954a341fc0165cfaf6b22c3c909cc854f1a39589aa5db6483b8001e2ddcdffadb35404cf125ef82fae328a4558dba3aef371419a9020e8d572
7
+ data.tar.gz: df972f71febbf80f63abf39aac4f2d2c5119720a9be63a5982667949c4e3a36b8284ac2119837a78c2f804af48ce8a1ee4844ec3a0d613f5c31a8bd642a66cf3
data/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release Notes
2
2
 
3
+ ## v1.72.2
4
+
5
+ * Invalid CAA handling fixes - thanks Noah Smethwick and Ryan Doherty!
6
+
3
7
  ## v.1.72.1
4
8
 
5
9
  * Add issuemail CAA record support - thanks Ryan Doherty!
@@ -44,6 +44,9 @@ module Dnsruby
44
44
 
45
45
  def from_string(input) #:nodoc: all
46
46
  matches = (/(\d+) (issuewild|issuemail|issue|iodef|contactemail|contactphone) "(.+)"$/).match(input)
47
+ if matches.nil?
48
+ raise DecodeError.new("Cannot parse record: #{input[0...1000]}")
49
+ end
47
50
  @flag = matches[1]
48
51
  @property_tag = matches[2]
49
52
  @property_value = matches[3]
@@ -1,3 +1,3 @@
1
1
  module Dnsruby
2
- VERSION = '1.72.1'
2
+ VERSION = '1.72.2'
3
3
  end
data/test/tc_caa.rb CHANGED
@@ -45,5 +45,16 @@ class TestCAA < Minitest::Test
45
45
  end
46
46
  end
47
47
 
48
+ def test_caa_error
49
+ {
50
+ 'foo.com. IN CAA 0 ca.example.net "issue"' => [0, 'ca.example.net', 'issue'],
51
+ 'foo.com. IN CAA 0 Issue "ca.example.net"' => [0, 'Issue', 'ca.example.net']
52
+ }.each do |text, data|
53
+ assert_raises DecodeError do
54
+ RR.create(text)
55
+ end
56
+ end
57
+ end
58
+
48
59
  end
49
60
 
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.72.1
4
+ version: 1.72.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Dalitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-16 00:00:00.000000000 Z
11
+ date: 2024-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -336,7 +336,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
336
336
  - !ruby/object:Gem::Version
337
337
  version: '0'
338
338
  requirements: []
339
- rubygems_version: 3.2.30
339
+ rubygems_version: 3.5.3
340
340
  signing_key:
341
341
  specification_version: 4
342
342
  summary: Ruby DNS(SEC) implementation