globodns_client 0.2.3 → 0.2.4
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 +2 -2
- 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: 7abbe8b468b332e035e0b0a68300757ec601bbc4
|
4
|
+
data.tar.gz: b70ca3348a480c66ceaaebfa565cdaec4f35b238
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dcb8598439c00430a7e502b7e4aafd81c9919c4054302067b7b6e50e9e3b52dc57c556267fcddccf59c0fe23bef71d047fd4a1f9100ac21219e98a55f3432ae
|
7
|
+
data.tar.gz: 4f7ea823cb770eef0e4a4eaaa7ed26e054ea500e4c6f77e7beff14c7fe3af7f04deeb1243d2345d830cfa5dec9006b0b4eb66bc4072d539b1147aa4ada533a81
|
@@ -116,7 +116,7 @@ module GlobodnsClient
|
|
116
116
|
private
|
117
117
|
|
118
118
|
def get_host(key, zone, kind)
|
119
|
-
if kind.eql?('A') or kind.eql?('CNAME') or kind.eql?('TXT')
|
119
|
+
if kind.eql?('A') or kind.eql?('AAAA') or kind.eql?('CNAME') or kind.eql?('TXT')
|
120
120
|
host = key.split('.'+zone[0][:domain][:name])[0]
|
121
121
|
elsif kind.eql?('PTR')
|
122
122
|
case zone[0][:domain][:name].count('.')
|
@@ -150,7 +150,7 @@ module GlobodnsClient
|
|
150
150
|
|
151
151
|
case method
|
152
152
|
when 'get'
|
153
|
-
if type.eql?('A') or type.eql?('CNAME') or type.eql?('TXT')
|
153
|
+
if type.eql?('A') or type.eql?('AAAA') or type.eql?('CNAME') or type.eql?('TXT')
|
154
154
|
headers[:params] = {query: value}
|
155
155
|
elsif type.eql?('PTR')
|
156
156
|
headers[:params] = {query: value, reverse: true}
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ernesto Thorp
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|