almodovar 2.0.0 → 2.0.2

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: 7826fbffb35fbbabb139a2244a9a77636191540610b78d8a25409ccc4e248cef
4
- data.tar.gz: bef219e9b1b6fad640ebd911b82fe492cc1cac3b0db2cf5f6b9c1edc44b3e676
3
+ metadata.gz: e64e56d85330df4abc31f68a39ad05412127cbdad5caa6d3ac1a83e30729ec95
4
+ data.tar.gz: 38aca16cdae2ba8e670b1d8666db507182ab47a5362b697c06a050919e2e40c8
5
5
  SHA512:
6
- metadata.gz: e7a33bfe5704badd3a492711a8d975bdab39dfeb36090b7f9d1b5fd47a13f65719890f4e61abcf3528d7ba0795d29742b9cfb0ceaa1cc7fd745c4e8c00c4048d
7
- data.tar.gz: 900d458e8febe8dc9028f80d671babcee3989b6954612c8a09d678fe549001bff0b45ea20ace548889609d6130b74135288c9cec506b46b79be239113849bea2
6
+ metadata.gz: 91f9b66cbf6fd0a18dbb4e63d7563495f53c718fc38f313afabe689b491f62dca01b8ff7644013359e1ebd95b951dd9b03e70356fee066828522de1f0a030c8b
7
+ data.tar.gz: 70543c6256fffb6bf4db19fc7a0a356087691ec1c98eafc0c12fb9d7b5a748319cd3c6acab0809d652ca0d46a3e3f14fe89ed50943aaa253f8137f2dfb389c95
data/README.rdoc CHANGED
@@ -1,4 +1,4 @@
1
- =Almodovar {<img src="https://github.com/bebanjo/almodovar/workflows/CI/badge.svg" />}[http://travis-ci.org/bebanjo/almodovar]
1
+ =Almodovar
2
2
 
3
3
  Almodovar is a client for BeBanjo's Sequence & Movida API written in Ruby (it's actually a generic client which plays nice with any RESTful API following some conventions).
4
4
 
@@ -140,4 +140,4 @@ In case an incorrect _PUT/POST_ request fails with 422 response status, you can
140
140
  * Write the conventions Almodovar expects in an API
141
141
  * Other authentication methods than digest
142
142
 
143
- Copyright (c) 2010 BeBanjo S.L., released under the MIT license
143
+ Copyright (c) 2023 BeBanjo S.L., released under the MIT license
@@ -1,12 +1,13 @@
1
1
  module Almodovar
2
2
  class HttpError < StandardError
3
- attr_reader :response_status, :response_body, :response_headers
3
+ attr_reader :response_status, :response_body, :response_headers, :response_url
4
4
 
5
5
  # Children of this class must not override the initialize method
6
6
  def initialize(response, url, query_params = {})
7
7
  @response_status = response.status
8
8
  @response_body = response.body
9
9
  @response_headers = response.headers
10
+ @response_url = url
10
11
  message = "Status code #{response.status} on resource #{url}"
11
12
  message += " with params: #{query_params.inspect}" if query_params.present?
12
13
  super(message)
@@ -20,8 +20,8 @@ module Almodovar
20
20
  @xml = Nokogiri::XML.parse(response.body).root
21
21
  end
22
22
 
23
- def delete
24
- check_errors(http.delete(@url), @url)
23
+ def delete(extra_query_params = {})
24
+ check_errors(http.delete(@url, extra_query_params), @url, extra_query_params)
25
25
  end
26
26
 
27
27
  def url
@@ -1,3 +1,3 @@
1
1
  module Almodovar
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: almodovar
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - BeBanjo S.L.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-25 00:00:00.000000000 Z
11
+ date: 2023-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -122,7 +122,7 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: 3.2.5
125
- description:
125
+ description:
126
126
  email: ballsbreaking@bebanjo.com
127
127
  executables: []
128
128
  extensions: []
@@ -144,7 +144,7 @@ homepage: http://wiki.github.com/bebanjo/almodovar/
144
144
  licenses:
145
145
  - MIT
146
146
  metadata: {}
147
- post_install_message:
147
+ post_install_message:
148
148
  rdoc_options:
149
149
  - "--main"
150
150
  - README.rdoc
@@ -161,8 +161,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  - !ruby/object:Gem::Version
162
162
  version: '0'
163
163
  requirements: []
164
- rubygems_version: 3.2.33
165
- signing_key:
164
+ rubygems_version: 3.1.2
165
+ signing_key:
166
166
  specification_version: 4
167
167
  summary: BeBanjo API client
168
168
  test_files: []