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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 361174bf425595b2737464a496fb0c3b3627e3f8
4
- data.tar.gz: 9cd5b9d19b9ee244885e9d845f1e1fbee843d5d3
3
+ metadata.gz: 7abbe8b468b332e035e0b0a68300757ec601bbc4
4
+ data.tar.gz: b70ca3348a480c66ceaaebfa565cdaec4f35b238
5
5
  SHA512:
6
- metadata.gz: 50ce9412b8be6b5ecb1d2e08c6d16f3f6160b5623b250de32b6cc00334be63389ad291cdf99b24ab1ed439801228cfa7e28c90d0a4725fddd0055339c50e994d
7
- data.tar.gz: 307eda87d7557f4066af811c5860e2ddb95032f0f8e5dbdf24b9d63753faf19bfac7403d144641dc8d62cb05e4e9cd203bc7544b9c600c85e69568b3d0837a8d
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}
@@ -1,3 +1,3 @@
1
1
  module GlobodnsClient
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
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.3
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: 2017-09-04 00:00:00.000000000 Z
11
+ date: 2018-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client