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 +4 -4
- data/RELEASE_NOTES.md +4 -0
- data/lib/dnsruby/resource/CAA.rb +3 -0
- data/lib/dnsruby/version.rb +1 -1
- data/test/tc_caa.rb +11 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 21b497d743921a2f83086443d5e25b66a3087ca3c861d9f41e0e3f1c017c6265
|
|
4
|
+
data.tar.gz: 4c2998abc2f178334cc36d238e60439b4006afadd531a39736a954e90053a865
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e4d37f65d26367954a341fc0165cfaf6b22c3c909cc854f1a39589aa5db6483b8001e2ddcdffadb35404cf125ef82fae328a4558dba3aef371419a9020e8d572
|
|
7
|
+
data.tar.gz: df972f71febbf80f63abf39aac4f2d2c5119720a9be63a5982667949c4e3a36b8284ac2119837a78c2f804af48ce8a1ee4844ec3a0d613f5c31a8bd642a66cf3
|
data/RELEASE_NOTES.md
CHANGED
data/lib/dnsruby/resource/CAA.rb
CHANGED
|
@@ -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]
|
data/lib/dnsruby/version.rb
CHANGED
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.
|
|
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-
|
|
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.
|
|
339
|
+
rubygems_version: 3.5.3
|
|
340
340
|
signing_key:
|
|
341
341
|
specification_version: 4
|
|
342
342
|
summary: Ruby DNS(SEC) implementation
|