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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fae67b395a1dd76a7de734c1cdfeba67e650a071
4
- data.tar.gz: 007ff0eb5554f4453940d0989120e96e355e7fb2
3
+ metadata.gz: 31adb602c314f8de1252ffe021141878f4fcac84
4
+ data.tar.gz: 21c6b2aa1caed17c653f9b68bab2f4486f64fcc6
5
5
  SHA512:
6
- metadata.gz: '08e6a74046988565f92e8b8c3773a09e29115669ee51b457be6b0e3994f02af852334bba841ae6aa35e94b0d90d257e611f07b3722abceff2edf488a92d8bd5c'
7
- data.tar.gz: a4668b8f712e652969e37b9067eff100defbfb3be6396a3468d914fbe03e47b6fc74164073fd712259b9da8ab7aaa44192030c94c16ee96aa202c9112137a1e4
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 + URI::DEFAULT_PARSER.escape(relative_uri))
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)
@@ -1,3 +1,3 @@
1
1
  module KillBillClient
2
- VERSION = '4.0.5'
2
+ VERSION = '4.0.6'
3
3
  end
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.5
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-01-22 00:00:00.000000000 Z
11
+ date: 2025-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem-release