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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fae996cc6ba2691735a5acde3ce4a588a3ac5c0ecf840e688b71c57e0e1f6d1
4
- data.tar.gz: 6375a09a9a8447e74668a7d553285ac3bf495e0aa5859373d6292d1b06f1621f
3
+ metadata.gz: e2595f89d0085997b7725770d054dcdbd80f56dc3c57fbd3c28a6655f70def3e
4
+ data.tar.gz: edb1857f61ab8d66c891c7e201e7cd269f3617e193e6aa184d4c341fe167816f
5
5
  SHA512:
6
- metadata.gz: 490cfab30075877e0faf4670b6bb65a12f338dd07d10e55a274f6e09cc75ec9206fec95ddc59c22d9c1f3a8012259aec2bda4c65cd25958b1a87b0823d2be255
7
- data.tar.gz: b061fcb46452f5b56fc9924a0df40a711f8a1b9da4b1c28367aff234da74f685017e926354639d7458d8212d7714b36680175f7f883ec02ff7c91cc0884b3b4a
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Almapi
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: almapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - jszenb