rapa 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: 6759f32d6175ac260576b9fe16678e49e39ce482
4
- data.tar.gz: c827b10203a61a7f1ad725a21cb879a97355fd65
3
+ metadata.gz: 32c9b270469b90ec62081f5a27c72e0c6655f053
4
+ data.tar.gz: 4a2a5b0d7094be56f5079e65794fcb76b15718ee
5
5
  SHA512:
6
- metadata.gz: 5d252376839d2195a4743c11e892b1e224d552739d193c8477d498be7db1da4d58f4aee3bf73f839ea4f58beedefd5cbfefe3ddfce3f96eca4331623966ced21
7
- data.tar.gz: f0b037b092716cf2c0cc6c71086ae11b8d8e53410749507ec8a955edfcddf96a468810ef3e4bde624fba66889673d58e9c77e3b5e7dd396abd66d4ecb888ffa2
6
+ metadata.gz: eb61716a1d132c26e7d2b8f7105cb20c72553ef717dd53363d4fe164af2db1faac42a96dd3079a8a3f6a689c394a1a7c6127cff89486f1baf8e3603cf72b8983
7
+ data.tar.gz: e8386bc8652b8a332f631c2bef76c2d0fbc680512d107e40a98dba31b2d700adf2c1f3e0ffb5e2c52104a937bdbbca08930f483ac9a160afc6aa84ba724a732b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.1
2
+
3
+ - Fix escape bug of spaces in URL query
4
+
1
5
  ## 0.3.0
2
6
 
3
7
  - Add `Rapa::Responses::SearchItemsResponse#error`
data/lib/rapa/encoder.rb CHANGED
@@ -8,7 +8,7 @@ module Rapa
8
8
  parameters.map do |key, value|
9
9
  [
10
10
  key,
11
- ::CGI.escape(value),
11
+ value,
12
12
  ].join("=")
13
13
  end.join("&")
14
14
  end
@@ -1,4 +1,4 @@
1
- require "cgi"
1
+ require "erb"
2
2
  require "time"
3
3
 
4
4
  module Rapa
@@ -88,7 +88,7 @@ module Rapa
88
88
  self.class.property_names.each_with_object({}) do |property_name, result|
89
89
  value = send(property_name)
90
90
  unless value.nil?
91
- result[property_name.to_s] = value
91
+ result[property_name.to_s] = ::ERB::Util.url_encode(value)
92
92
  end
93
93
  end.sort.to_h
94
94
  end
@@ -98,7 +98,7 @@ module Rapa
98
98
  to_hash.map do |key, value|
99
99
  [
100
100
  key,
101
- ::CGI.escape(value),
101
+ value,
102
102
  ].join("=")
103
103
  end.join("&")
104
104
  end
data/lib/rapa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rapa
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rapa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura