dynect_rest 0.4.5 → 0.4.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: c76956f031fe416df31adcce7120046bbefa4b10
4
- data.tar.gz: bbdf0916a72c70bbfedb50da70efd6feb4885ae6
3
+ metadata.gz: ccada5b663065910ecdc89731264deea71e8917e
4
+ data.tar.gz: 67ab32917e401ce15b4704131b67f23dd7114f12
5
5
  SHA512:
6
- metadata.gz: dc798756194e6075342898da64d201ca908845f0bdc79e623f7926c51e4a2486cec07081ebd7f6e163b42de7f866ac0df228a4573a95d92547fd8bb879479eb7
7
- data.tar.gz: 11f189851af46c068d0aff5a15131ae5d29ccdeab1e29e6a655e785a7c7787fbff02f05aaa0725a79fcd8c39694ba1bf60ea0eb24fd6473180855ff68cdc60b5
6
+ metadata.gz: 33598b866e39e8f77a3ba2902b58748259abff081b5f75b1125d8a630b086b4d44cd2a029486cc7440b4ffedf42d5edfed52f0dba13f2af7aaff7ca6a7a3c579
7
+ data.tar.gz: 54fb58ac8c8c86f2705379b774af0cd7e64440146ee5dd7e2fc5d6928d8c3cef699031d101fb3f7245852dfdcacbb2cccda2897b4f5bfefba93d2a9e45bd3e3e
@@ -153,9 +153,9 @@ class DynectRest
153
153
  end
154
154
  end
155
155
 
156
- def to_json
156
+ def to_hash
157
157
  {
158
- "ttl" => @ttl,
158
+ "ttl" => @ttl,
159
159
  "monitor" => @monitor,
160
160
  "region" => {
161
161
  "region_code" => @region_code,
@@ -164,7 +164,11 @@ class DynectRest
164
164
  "pool" => @host_list.values
165
165
  },
166
166
  "contact_nickname" => @contact_nick
167
- }.to_json
167
+ }
168
+ end
169
+
170
+ def to_json
171
+ to_hash.to_json
168
172
  end
169
173
  end
170
174
  end
@@ -17,5 +17,5 @@
17
17
  #
18
18
 
19
19
  class DynectRest
20
- VERSION='0.4.5'
20
+ VERSION='0.4.6'
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynect_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob