dnsruby 1.59.2 → 1.59.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/RELEASE_NOTES.md +6 -0
- data/lib/dnsruby/resource/TXT.rb +1 -1
- data/lib/dnsruby/resource/domain_name.rb +3 -1
- data/lib/dnsruby/update.rb +1 -1
- data/lib/dnsruby/version.rb +1 -1
- data/test/tc_update.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7df18e131f6ea67c915c87802242c9f4b5336c2d
|
4
|
+
data.tar.gz: 8d7d98f5c264ffe18600f133f9b18f43f869fe4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2549d20e5db3d157744813968a8b0483f20fb9f0f972557b2ee6c3b1dd73db1885470c64ca9813b69a7b88d87a391d6b504e1bce93251d3300ed0b251589c9a9
|
7
|
+
data.tar.gz: 887d3cff6ba77f6ce30c752559037149fbf0304d9f6f1b86bd3e56d3998b72c2199b57c7e14760fdf00935c19c2cb2ca6afab80d4990bb1b659f51ca8153166b
|
data/RELEASE_NOTES.md
CHANGED
data/lib/dnsruby/resource/TXT.rb
CHANGED
data/lib/dnsruby/update.rb
CHANGED
@@ -153,7 +153,7 @@ module Dnsruby
|
|
153
153
|
add_pre(rec)
|
154
154
|
return rec
|
155
155
|
else
|
156
|
-
raise ArgumentError.new("Wrong number of arguments (#{args.length} for 1 or 2) for Update#
|
156
|
+
raise ArgumentError.new("Wrong number of arguments (#{args.length} for 1 or 2) for Update#present")
|
157
157
|
end
|
158
158
|
end
|
159
159
|
|
data/lib/dnsruby/version.rb
CHANGED
data/test/tc_update.rb
CHANGED
@@ -219,6 +219,17 @@ class TestUpdate < Minitest::Test
|
|
219
219
|
assert_equal(Classes.NONE, pre[2].klass, 'forth class right'); #66
|
220
220
|
end
|
221
221
|
|
222
|
+
def test_absent_cname
|
223
|
+
update = Update.new()
|
224
|
+
rr = update.absent("target_name", "CNAME")
|
225
|
+
assert(rr, 'nxdomain() returned RR');
|
226
|
+
assert_equal(rr.name.to_s, "target_name", 'nxdomain - right name');
|
227
|
+
assert_equal(rr.ttl, 0, 'nxdomain - right ttl');
|
228
|
+
assert_equal(rr.klass.string, 'NONE', 'nxdomain - right class');
|
229
|
+
assert_equal(rr.type.string, 'CNAME', 'nxdomain - right type');
|
230
|
+
assert(is_empty(rr.rdata), 'nxdomain - data empty');
|
231
|
+
end
|
232
|
+
|
222
233
|
def test_txt
|
223
234
|
update = Update.new()
|
224
235
|
update.add("target_name", "TXT", 100, "test signed update")
|
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.59.
|
4
|
+
version: 1.59.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Dalitz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|