bucky-core 0.10.23 → 0.10.24

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: 9e89072db00e4df5e80e1f278d15e0976743423838a641c1df204754a4acfde8
4
- data.tar.gz: f18a891e5334b570789f295704764b51684dc55c4a805ea20e2cab90481987ae
3
+ metadata.gz: dd619a84c0de1ce0c71eaefd926916ad3a6f11bdba82938fe2f6c3b5d032320f
4
+ data.tar.gz: 0d52f9202d09f51d9113f0bbd08990ea3b4aa96507f78b823068c68afcfd4655
5
5
  SHA512:
6
- metadata.gz: b4e80a78747cebdf3d7e6a03d94e5e17fc0f271944864a34a69bdc5691ed8e82daf7aecf61f861a91ba09840d56a552bf89c204bdbd2ccb41b44077344682fe7
7
- data.tar.gz: 4b173d92d41bf7ff4eeb86bd29862e07d449d59f55fce945735158acaccc5a5b28f47bce4fccd03db0209a2980e0477a0dbccd976bc74571f810217d7004613b
6
+ metadata.gz: ba5bee620e4327959134baf64423473743235d854d7a6453e9e072014de8d74465a95cab6af519614e4e8fffb0e2a34f59bf40f89abb0d10548dd32b3b11221e
7
+ data.tar.gz: 7ff5cc8c44f9c0f8d43b1e1ae703b70d658ed850449c7039f4ddd699d99dd97a4547184025aa2909b80c1a5862b1c00e8bc3ee4c2046cac6c91c88a9296bfcd2
@@ -18,7 +18,11 @@ module Bucky
18
18
  # @return [Net::HTTP] HttpStatusCode
19
19
  def get_response(uri, device, open_timeout, read_timeout)
20
20
  parsed_uri = Addressable::URI.parse(uri.to_str.strip)
21
- query = parsed_uri.query ? "?#{CGI.escape(parsed_uri.query)}" : ''
21
+ query = if parsed_uri.query.nil?
22
+ ''
23
+ else
24
+ '?' + parsed_uri.query_values.map { |k, v| "#{CGI.escape(k)}=#{CGI.escape(v)}" }.join('&')
25
+ end
22
26
  # If path is empty, add "/" e.g) http://example.com
23
27
  path = parsed_uri.path.empty? ? '/' : parsed_uri.path
24
28
 
data/lib/bucky/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bucky
4
4
  module Version
5
- VERSION = '0.10.23'
5
+ VERSION = '0.10.24'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bucky-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.23
4
+ version: 0.10.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - NaotoKishino
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: exe
15
15
  cert_chain: []
16
- date: 2022-10-26 00:00:00.000000000 Z
16
+ date: 2022-11-02 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: awesome_print