globodns_client 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/globodns_client/connection.rb +1 -1
- data/lib/globodns_client/version.rb +1 -1
- 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: b581f204f7c034c6f4afbab0a8bd2bad8c76ba82
|
4
|
+
data.tar.gz: 50bffe9da09d2e2a779b5aaf964507858d5f6071
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cc9f5e51ba9663e2512cc88cc3f8e383cede5b3821cdce315f0bc6869763363fadfd2cb7c2ea1f5423b3da090b90f4f4648cf9f26fea301d860ccec2db258a9
|
7
|
+
data.tar.gz: 7747d3e4c71fc33f2410c8c1a0b829c2977667da0dc5b96c354d1c96384370b77f68581c280c595d10521301e1bc23b6f91fa5fcbee51cc85b12ae1c1667d10d
|
@@ -80,7 +80,7 @@ module GlobodnsClient
|
|
80
80
|
a_records = get_record(key, 'A', zone)
|
81
81
|
case kind
|
82
82
|
when 'A'
|
83
|
-
raise GlobodnsClient::AlreadyExists, "Item (#{key}) already exists with reference (#{a_records[0][:content]})" if a_records.collect{|r| r[:content]}.include? value
|
83
|
+
raise GlobodnsClient::AlreadyExists, "Item (#{key}) already exists with reference (#{a_records[0][:content]})" if (a_records anda_records.collect{|r| r[:content]}.include? value)
|
84
84
|
when 'CNAME'
|
85
85
|
cname_records = get_record(key, 'CNAME', zone)
|
86
86
|
raise GlobodnsClient::AlreadyExists, "Item (#{key}) already exists" if a_records or cname_records
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: globodns_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ernesto Thorp
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|