globodns_client 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b581f204f7c034c6f4afbab0a8bd2bad8c76ba82
4
- data.tar.gz: 50bffe9da09d2e2a779b5aaf964507858d5f6071
3
+ metadata.gz: c19b8aa381e3e5e80fffa070ca50e077449d53f8
4
+ data.tar.gz: bf5db99934195821f1aa9273aa2424f7f9f368fe
5
5
  SHA512:
6
- metadata.gz: 5cc9f5e51ba9663e2512cc88cc3f8e383cede5b3821cdce315f0bc6869763363fadfd2cb7c2ea1f5423b3da090b90f4f4648cf9f26fea301d860ccec2db258a9
7
- data.tar.gz: 7747d3e4c71fc33f2410c8c1a0b829c2977667da0dc5b96c354d1c96384370b77f68581c280c595d10521301e1bc23b6f91fa5fcbee51cc85b12ae1c1667d10d
6
+ metadata.gz: 843ebd4316c6212f30e929d4425c2d9c72db26ef961f06bf56252748c129f27a52aee50e679ccf77685a377813db4f609c5fdc1a6f9969d0585a0fd0de144884
7
+ data.tar.gz: 4eb2200f9b2d3a3548e71162f72751b9bf086e82b9b9612d2078c3e7948fcb76b2e25bea516b8bb962e817ca3474cd88ae0918772227776febabb21d1c685eec
@@ -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 anda_records.collect{|r| r[:content]}.include? value)
83
+ raise GlobodnsClient::AlreadyExists, "Item (#{key}) already exists with reference (#{a_records[0][:content]})" if (a_records and a_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
@@ -1,3 +1,3 @@
1
1
  module GlobodnsClient
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: globodns_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernesto Thorp