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 +4 -4
- data/lib/abiquo-api.rb +2 -0
- data/lib/abiquo-api/version.rb +1 -1
- metadata +1 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb15f1293b855e03fee76dd9ebdc2a753d82c84a
|
|
4
|
+
data.tar.gz: 0e0ca66b25c535cca053e37b04c00b22070e46e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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,
|
data/lib/abiquo-api/version.rb
CHANGED
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.
|
|
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:
|