abiquo-api 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1304f42a84ccb9a8c9f92e6b8e6b41e9f4a4c509
4
- data.tar.gz: 0ebab054e7d0e287045ac821e171c8d2e6cbe969
3
+ metadata.gz: eb15f1293b855e03fee76dd9ebdc2a753d82c84a
4
+ data.tar.gz: 0e0ca66b25c535cca053e37b04c00b22070e46e5
5
5
  SHA512:
6
- metadata.gz: 85c7aa06dafb2cf62ca1c6f6312c2134e469919acd2233421ea5446847b2d292a7b8ff1005b3976ab566b54c59bc36f0c0580317e024e54d8910c04a4d7223e0
7
- data.tar.gz: 8828b536738f0d636ef4ec1426b4392b4a4682e7452c72b0f2fc2b74246470e41b3908335afeef567c0bc996fd1562287023f70aeba7a907e8b090f5a8dd2a58
6
+ metadata.gz: 954535df029c63f03730f016eb9f6339e74f10c8aa9ddda578613d837855cd89a2a0a1f2ae6c376c646421b1950fc85a6128732f8b761efd30dbc04e2043ac9e
7
+ data.tar.gz: 105a3cd6658bba282ddfb881e0a72bd8c984dbc7cd3f755cf5cbc0a8b644f6d52fac09164ca337aff0fd55da38633844a76759d651821d94435045857c1b61ca
data/lib/abiquo-api.rb CHANGED
@@ -166,6 +166,7 @@ class AbiquoAPI
166
166
  accept = options[:accept].nil? ? link.type : options.delete(:accept)
167
167
 
168
168
  req_hash = {
169
+ :expects => [200, 201, 202, 204],
169
170
  :method => 'POST',
170
171
  :path => link.href,
171
172
  :body => data.to_json,
@@ -202,6 +203,7 @@ class AbiquoAPI
202
203
  accept = options[:accept].nil? ? link.type : options.delete(:accept)
203
204
 
204
205
  req_hash = {
206
+ :expects => [200, 201, 202, 204],
205
207
  :method => 'PUT',
206
208
  :path => link.href,
207
209
  :body => data.to_json,
@@ -1,3 +1,3 @@
1
1
  module AbiquoAPIClient
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abiquo-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Cirauqui
@@ -111,4 +111,3 @@ signing_key:
111
111
  specification_version: 4
112
112
  summary: Simple Abiquo API client
113
113
  test_files: []
114
- has_rdoc: