killbill-client 4.0.5 → 4.0.6
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/lib/killbill_client/api/net_http_adapter.rb +2 -2
- data/lib/killbill_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31adb602c314f8de1252ffe021141878f4fcac84
|
4
|
+
data.tar.gz: 21c6b2aa1caed17c653f9b68bab2f4486f64fcc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 955feb2439672126f43a76b3163560e3cf15ff150ae832c5e80b3c7fc9369dbcdca0e4480a2f7bc3f82b2e5740a6c48254a00110a9e7343685a846a6d8b73cfc
|
7
|
+
data.tar.gz: b45da24a25e77779133b17338f50ac2ff5d41de5c7276701c72cbe7ebe51865b4583abbb5532add4f1005f61f4bd2d5835be506225f8870eb3ee2878d057098a
|
@@ -37,14 +37,14 @@ module KillBillClient
|
|
37
37
|
|
38
38
|
def build_uri(relative_uri, options)
|
39
39
|
# Need to encode in case of spaces (e.g. /1.0/kb/security/users/Mad Max/roles)
|
40
|
-
encoded_relative_uri = URI::DEFAULT_PARSER.escape(relative_uri)
|
40
|
+
encoded_relative_uri = URI::DEFAULT_PARSER.regexp[:UNSAFE].match?(relative_uri) ? relative_uri : URI::DEFAULT_PARSER.escape(relative_uri)
|
41
41
|
if URI(encoded_relative_uri).scheme.nil?
|
42
42
|
uri = (options[:base_uri] || KillBillClient::API.base_uri)
|
43
43
|
uri = URI.parse(uri) unless uri.is_a?(URI)
|
44
44
|
# Note: make sure to keep the full path (if any) from URI::HTTP, for non-ROOT deployments
|
45
45
|
# See https://github.com/killbill/killbill/issues/221#issuecomment-151980263
|
46
46
|
base_path = uri.request_uri == '/' ? '' : uri.request_uri
|
47
|
-
uri += (base_path +
|
47
|
+
uri += (base_path + encoded_relative_uri)
|
48
48
|
else
|
49
49
|
uri = encoded_relative_uri
|
50
50
|
uri = URI.parse(uri) unless uri.is_a?(URI)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Killbill core team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem-release
|