almodovar 2.0.1 → 2.0.3
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/README.rdoc +2 -2
- data/lib/almodovar/disable_duration_parsing.rb +11 -0
- data/lib/almodovar/errors.rb +2 -1
- data/lib/almodovar/version.rb +1 -1
- data/lib/almodovar.rb +1 -0
- metadata +8 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 98e5edc9f55a8086fc6411eb824531ed14f6373b0afddc2bdf324bf4168c59b7
|
|
4
|
+
data.tar.gz: 87c761a1eacd840c17fee8017e54c6e78c172017294d740b50f34b18bf797b61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '02957949e58b7e8928c9fa558ba0845ef460e646bfc81384fb7bd01c0bd97deb29cc3ee49996f01a52ad1e1b74aba6cc96b5dcb6b46d41fa66a68feab6dd0994'
|
|
7
|
+
data.tar.gz: 0b23d0665a54a98bf631b82b22558b18bcdbd0e85f99e7fdcd37f6b5f8cd8d72dbfebe519b3304f25f51325ed57c8795ed469eeb4ebd8fa07c396669560ead4a
|
data/README.rdoc
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
=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)
|
|
143
|
+
Copyright (c) 2023 BeBanjo S.L., released under the MIT license
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Removes the 'duration' parser from ActiveSupport::XmlMini to prevent errors when processing non-ISO duration values in Rails 8+
|
|
2
|
+
# This patch modifies the PARSING constant so that ActiveSupport does not automatically convert duration values, preventing unexpected failures.
|
|
3
|
+
module ActiveSupport
|
|
4
|
+
module XmlMini
|
|
5
|
+
if const_defined?(:PARSING)
|
|
6
|
+
new_parsing = PARSING.except("duration").freeze
|
|
7
|
+
remove_const(:PARSING)
|
|
8
|
+
const_set(:PARSING, new_parsing)
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
data/lib/almodovar/errors.rb
CHANGED
|
@@ -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)
|
data/lib/almodovar/version.rb
CHANGED
data/lib/almodovar.rb
CHANGED
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.
|
|
4
|
+
version: 2.0.3
|
|
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:
|
|
11
|
+
date: 2026-02-20 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: []
|
|
@@ -132,6 +132,7 @@ files:
|
|
|
132
132
|
- README.rdoc
|
|
133
133
|
- lib/almodovar.rb
|
|
134
134
|
- lib/almodovar/digest_auth.rb
|
|
135
|
+
- lib/almodovar/disable_duration_parsing.rb
|
|
135
136
|
- lib/almodovar/errors.rb
|
|
136
137
|
- lib/almodovar/http_accessor.rb
|
|
137
138
|
- lib/almodovar/http_client.rb
|
|
@@ -144,7 +145,7 @@ homepage: http://wiki.github.com/bebanjo/almodovar/
|
|
|
144
145
|
licenses:
|
|
145
146
|
- MIT
|
|
146
147
|
metadata: {}
|
|
147
|
-
post_install_message:
|
|
148
|
+
post_install_message:
|
|
148
149
|
rdoc_options:
|
|
149
150
|
- "--main"
|
|
150
151
|
- README.rdoc
|
|
@@ -161,8 +162,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
162
|
- !ruby/object:Gem::Version
|
|
162
163
|
version: '0'
|
|
163
164
|
requirements: []
|
|
164
|
-
rubygems_version: 3.
|
|
165
|
-
signing_key:
|
|
165
|
+
rubygems_version: 3.1.2
|
|
166
|
+
signing_key:
|
|
166
167
|
specification_version: 4
|
|
167
168
|
summary: BeBanjo API client
|
|
168
169
|
test_files: []
|