almapi 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/almapi/almapi.rb +3 -1
- data/lib/almapi/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2595f89d0085997b7725770d054dcdbd80f56dc3c57fbd3c28a6655f70def3e
|
4
|
+
data.tar.gz: edb1857f61ab8d66c891c7e201e7cd269f3617e193e6aa184d4c341fe167816f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c7b704e6e58e721c1ab6c6bb531fd60096c928adca37451e79615352d6b10bcce87bf85464a84e4ba6fcefe03fb99645f52c7fd2cc97e7e73921f0ee88941e2
|
7
|
+
data.tar.gz: 619689dd130c5c710c17278e117f596b2d807652de3cf212bc9e81150b2a190ab3449acf462a501ce3a9efc65a62319968e385f6f6dfa19cede7de550ba20e23
|
data/lib/almapi/almapi.rb
CHANGED
@@ -83,8 +83,9 @@ module Almapi
|
|
83
83
|
# @return [Response] : the resulting response. If error occurs, raises an AlmapiError
|
84
84
|
def put(resource, data)
|
85
85
|
url_api = resource.to_s
|
86
|
+
puts url_api
|
86
87
|
begin
|
87
|
-
handle_response(@conn.put(url_api, data.to_s))
|
88
|
+
handle_response(@conn.put(url_api, data.to_s, "Content-Type" => "application/xml"))
|
88
89
|
rescue StandardError => e
|
89
90
|
puts e
|
90
91
|
end
|
@@ -115,6 +116,7 @@ module Almapi
|
|
115
116
|
else
|
116
117
|
# Request has been correctly handled but cannot succeed
|
117
118
|
raise Almapi::AlmapiError, "AlmapiError : #{response.status} -> #{response.body}"
|
119
|
+
p @conn
|
118
120
|
end
|
119
121
|
end
|
120
122
|
end
|
data/lib/almapi/version.rb
CHANGED