croesus 0.1.7 → 0.1.8

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: 28f687e900c0b9a6b1990942df0a33c6270b95ca
4
- data.tar.gz: 7c5c1ce8d1cf99f8714980cbbb5ecf2bf970b15f
3
+ metadata.gz: 22c9f63a2e9dbc7ecb777286956405cb4b403dd8
4
+ data.tar.gz: e48b591e583a492a1ae7f68f655f504917dd72e7
5
5
  SHA512:
6
- metadata.gz: 01ae7fe775024f80d1084000e463ac2268eae69afbb877689fab7c4034ed17a1029f52ef8ef504f82c053fb34457f0bfd5b63bc88f0be581880e52728188978e
7
- data.tar.gz: e1310ad3ee40a196fd5eb46f1ea31394f092faac679ea6371ebc0f373ed06e6bc92281b105376089848264d7d878e2d0f0629779bd7473e00f352ec6098f9295
6
+ metadata.gz: 72d7dd5252f39762f9089dc108d8e14ae4a1b7f439f185d677c7c7b7b150b8eab7dd4051c52ed1b45adeebf054feb74a4a67b9b37288aa14829d5b4188446962
7
+ data.tar.gz: 8fead4233f32a568b72bad07dd0a541b2fc99892668732817db33d5897d4d6f3bdd0a2d71d2e7e01e9756080865ee6527f8308603b454c8fdd4441d0ef3c3fe0
@@ -89,7 +89,7 @@ module Croesus
89
89
  InvalidMethodError = Class.new StandardError
90
90
  InvalidArgumentCount = Class.new StandardError
91
91
 
92
- API_VERSION = { type: 'APIVersion', major: 1, minor: 3, micro: 2 }
92
+ # API_VERSION = { type: 'APIVersion', major: 1, minor: 3, micro: 2 }
93
93
 
94
94
  API_ENDPOINT = '/resources/json/delphix'
95
95
 
@@ -123,6 +123,7 @@ module Croesus
123
123
  # @return [#body] parsed response body
124
124
  # @return [#raw_body] un-parsed response body
125
125
  attr_accessor :session
126
+ attr_accessor :api_version
126
127
 
127
128
  # @!attribute [rw] server
128
129
  # @return [String] Delphix server address
@@ -172,7 +173,7 @@ module Croesus
172
173
  # @api public
173
174
  def self.cookies
174
175
  @resp ||= Croesus.post session_url,
175
- { type: 'APISession', version: API_VERSION }
176
+ { type: 'APISession', version: @api_version }
176
177
  @resp.cookies
177
178
  end
178
179
 
@@ -27,7 +27,7 @@ module Croesus
27
27
  module Version
28
28
  MAJOR = 0
29
29
  MINOR = 1
30
- PATCH = 7
30
+ PATCH = 8
31
31
 
32
32
  # Returns a version string by joining MAJOR, MINOR, and PATCH with '.'
33
33
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: croesus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Harding