occi-api 4.3.2 → 4.3.3

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: 04565e23e7e47439f4b835dbdf574dd2a8fb9745
4
- data.tar.gz: 377f670ffdae197276a7ea3feb1894bfad184868
3
+ metadata.gz: b31a4ef31f01497fb6bc37b720e2bc129dfb8e1c
4
+ data.tar.gz: 34839545df78237a7667522561c6c1dce2a201c3
5
5
  SHA512:
6
- metadata.gz: 8d1ec06ab28e2583f83a1ab6e3ec481ada11473970475fed1cd96f9968849f5d5c65ef725962e1db9d38e8617b5cfa5ca7901c498334782ff243afb9983ed9e9
7
- data.tar.gz: 6d13444e919da595cd14731ea04303525849c95cf7e9d5f95e0a80d2a274b5d7455344b92435be3d6cf77d9569c68b0e0cd94de27228abade63d3530f0d2431e
6
+ metadata.gz: 98b21d80f28f2dc681e61e466e9100cefc2ee23b5989ffd2c2f9acefdbc80538b81bc3555c4c6c0c02fb530cbdf21f51fb232e3852ae350b55baa6a14c327552
7
+ data.tar.gz: 88f422c97daed701da92242e1a311d9011ce868d6b58ec9a6db96d245a6957e0383d30e167550696407f1bd70fe9cece40d6324ad8ac6eb706ee9c23017f4517
@@ -3,6 +3,9 @@ module Occi::Api::Client
3
3
 
4
4
  module PartyWrappers
5
5
 
6
+ # Acceptable responses indicating OK
7
+ OK_RANGE = [200, 201, 202, 204].freeze
8
+
6
9
  # Performs GET request and parses the responses to collections.
7
10
  #
8
11
  # @example
@@ -174,7 +177,7 @@ module Occi::Api::Client
174
177
 
175
178
  def report_failure(response)
176
179
  # Is there something to report?
177
- return if response.code.between? 200, 202
180
+ return if OK_RANGE.include? response.code
178
181
 
179
182
  # get a human-readable response message
180
183
  response_msg = response_message(response)
@@ -1,5 +1,5 @@
1
1
  module Occi
2
2
  module Api
3
- VERSION = "4.3.2" unless defined?(::Occi::Api::VERSION)
3
+ VERSION = "4.3.3" unless defined?(::Occi::Api::VERSION)
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: occi-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.2
4
+ version: 4.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Feldhaus
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-06-16 00:00:00.000000000 Z
13
+ date: 2015-11-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: occi-core
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  version: '0'
235
235
  requirements: []
236
236
  rubyforge_project:
237
- rubygems_version: 2.4.4
237
+ rubygems_version: 2.4.6
238
238
  signing_key:
239
239
  specification_version: 4
240
240
  summary: OCCI development library providing a high-level client API