almapi 0.1.7 → 0.1.8

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
  SHA256:
3
- metadata.gz: e2595f89d0085997b7725770d054dcdbd80f56dc3c57fbd3c28a6655f70def3e
4
- data.tar.gz: edb1857f61ab8d66c891c7e201e7cd269f3617e193e6aa184d4c341fe167816f
3
+ metadata.gz: cb6918b7e7c9f7ebd49f2255ce6d447e9b3ac8608a2847790b9bde4434325622
4
+ data.tar.gz: 0b3fe11572d763268e2ae1be8c2b42a77a816d8ea4687855389ba93fb654624e
5
5
  SHA512:
6
- metadata.gz: 2c7b704e6e58e721c1ab6c6bb531fd60096c928adca37451e79615352d6b10bcce87bf85464a84e4ba6fcefe03fb99645f52c7fd2cc97e7e73921f0ee88941e2
7
- data.tar.gz: 619689dd130c5c710c17278e117f596b2d807652de3cf212bc9e81150b2a190ab3449acf462a501ce3a9efc65a62319968e385f6f6dfa19cede7de550ba20e23
6
+ metadata.gz: 94f9e303a9ccd2fa37fe182c8b1b1d5039cda9f5f9c551fee3706dc9f6520aee4567f8600f8148b48179a9818583687be6de25555b773d6b2d4021c39501a2ae
7
+ data.tar.gz: cee651945fb60c85d80b364782d8485c06305a805ebcc16e3e6b3e53f6684da98695844196a3ea43edd09cf389dc3ef013323766594a9d6e4743c72a4c64a3d1
data/lib/almapi/almapi.rb CHANGED
@@ -71,7 +71,7 @@ module Almapi
71
71
  # @param data [String] : an XML string containing data to post.
72
72
  # @return [Response] : the resulting response
73
73
  def post(resource, data)
74
- url_api = resource.to_s
74
+ url_api = "#{@uri_base}#{resource}"
75
75
  handle_response(@conn.post(url_api, data.to_s))
76
76
  end
77
77
 
@@ -82,7 +82,7 @@ module Almapi
82
82
  # @param data [String] : an XML string containing data to put.
83
83
  # @return [Response] : the resulting response. If error occurs, raises an AlmapiError
84
84
  def put(resource, data)
85
- url_api = resource.to_s
85
+ url_api = "#{@uri_base}#{resource}"
86
86
  puts url_api
87
87
  begin
88
88
  handle_response(@conn.put(url_api, data.to_s, "Content-Type" => "application/xml"))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Almapi
4
- VERSION = "0.1.7"
4
+ VERSION = "0.1.8"
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - jszenb