delphix 0.3.3 → 0.3.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: 09d0c3137d34135c5a54bcb13f3d365836cd1ad1
4
- data.tar.gz: f054e3626e949cd8c19d16476dfb73f448662066
3
+ metadata.gz: 3efeefeb0545619a8b648c907e865d2d3cad5789
4
+ data.tar.gz: 4b1321d0433c79bcd69017f69db71fb0508e618a
5
5
  SHA512:
6
- metadata.gz: e4fb0fd71de1b47dd2180721d6d83f35b63a6c1c54b1dce3dcc5b2fa79748b2fc68f4009095c0d315e62445554799a6014a9d89185fe642af0a6f7c4f85fbf01
7
- data.tar.gz: 73ac1426252560284e138d75a0318230bf4b3b9fafb351a01c12e3b522363bf2b2c014163f3d230b10608f337488e977c8e0261037e7f3629b762152259d9271
6
+ metadata.gz: 7399351d1b85fdfe51a57f105dfc97e0ffa1619e5325ff8ce9f4a3b623de6a4c910e464691535e82520e15252ac6fd2e01c95bb067b6fb3303e7f9658c50138e
7
+ data.tar.gz: 19b29624f8cafe6a51d34b3ba95120aa2ac63d5d1019d9a31431b54e911185ea2c38b8ae9b6578a60895ffea57b10d7c4a3a8c14644d0d9592eab94f02ac8679
data/lib/delphix.rb CHANGED
@@ -220,11 +220,6 @@ module Delphix
220
220
  # resource_url shorthand.
221
221
  # @return [String] The API path to sourceconfig.
222
222
  #
223
- # @!method template
224
- # A helper method to return the URL for the resource by using the
225
- # resource_url shorthand.
226
- # @return [String] The API path to template.
227
- #
228
223
  # @!method timeflow
229
224
  # A helper method to return the URL for the resource by using the
230
225
  # resource_url shorthand.
@@ -237,7 +232,7 @@ module Delphix
237
232
  #
238
233
  [ :alert, :container, :database, :environment, :group, :host, :job,
239
234
  :login, :policy, :repository, :session, :snapshot, :source,
240
- :sourceconfig, :template, :timeflow, :user
235
+ :sourceconfig, :timeflow, :user
241
236
  ].each do |name|
242
237
  define_singleton_method(name.to_s + '_url') do
243
238
  api_url('/resources/json/delphix/' + name.to_s)
@@ -27,7 +27,7 @@ module Delphix
27
27
  module Version
28
28
  MAJOR = 0
29
29
  MINOR = 3
30
- PATCH = 3
30
+ PATCH = 4
31
31
 
32
32
  # Returns a version string by joining MAJOR, MINOR, and PATCH with '.'
33
33
  #
@@ -47,16 +47,20 @@ module Delphix
47
47
  @code = response.code
48
48
  @headers = response.headers
49
49
  @raw_body = response
50
- @body = Hashie::Mash.new(JSON.parse(@raw_body))
50
+ @body = @raw_body
51
51
  @cookies = response.cookies
52
52
 
53
53
  Delphix.last_response = {
54
54
  code: response.code,
55
55
  headers: response.headers,
56
- body: response.body,
56
+ body: Hashie::Mash.new(JSON.parse(response.body)),
57
57
  cookies: response.cookies,
58
58
  description: response.description
59
59
  }
60
+ begin
61
+ @body = Hashie::Mash.new(JSON.parse(@raw_body))
62
+ rescue Exception
63
+ end
60
64
  end
61
65
  end
62
66
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delphix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Harding