Skip to content

Commit fb5cc88

Browse files
committed
fix(caa): add support for issuevmc
1 parent 3e82216 commit fb5cc88

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/dnsruby/resource/CAA.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class CAA < RR
2121
ClassValue = nil #:nodoc: all
2222
TypeValue= Types::CAA #:nodoc: all
2323

24-
# The property tag for the record (issue|issuewild|iodef)
24+
# The property tag for the record (issue|issuewild|issuemail|issuevmc|iodef|contactemail|contactphone)
2525
attr_accessor :property_tag
2626
# The value for the property_tag
2727
attr_accessor :property_value
@@ -43,7 +43,7 @@ def flag
4343
end
4444

4545
def from_string(input) #:nodoc: all
46-
matches = (/(\d+) (issuewild|issuemail|issue|iodef|contactemail|contactphone) "(.+)"$/i).match(input)
46+
matches = (/(\d+) (issuewild|issuemail|issuevmc|issue|iodef|contactemail|contactphone) "(.+)"$/i).match(input)
4747
if matches.nil?
4848
raise DecodeError.new("Cannot parse record: #{input[0...1000]}")
4949
end

test/tc_caa.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def test_caa
2626
'foo.com. IN CAA 1 issue "ca.example.net"' => [1, 'issue', 'ca.example.net'],
2727
'foo.com. IN CAA 0 issuewild "ca.example.net"' => [0, 'issuewild', 'ca.example.net'],
2828
'foo.com. IN CAA 0 issuemail "ca.example.net"' => [0, 'issuemail', 'ca.example.net'],
29+
'foo.com. IN CAA 0 issuevmc "ca.example.net"' => [0, 'issuevmc', 'ca.example.net'],
2930
'foo.com. IN CAA 0 iodef "mailto:security@example.com"' => [0, 'iodef', 'mailto:security@example.com'],
3031
'foo.com. IN CAA 0 issue "ca.example.net; account=230123"' => [0, 'issue', 'ca.example.net; account=230123']
3132
}.each do |text, data|

0 commit comments

Comments
 (0)