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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/rapa/encoder.rb +1 -1
- data/lib/rapa/queries/base_query.rb +3 -3
- data/lib/rapa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32c9b270469b90ec62081f5a27c72e0c6655f053
|
4
|
+
data.tar.gz: 4a2a5b0d7094be56f5079e65794fcb76b15718ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb61716a1d132c26e7d2b8f7105cb20c72553ef717dd53363d4fe164af2db1faac42a96dd3079a8a3f6a689c394a1a7c6127cff89486f1baf8e3603cf72b8983
|
7
|
+
data.tar.gz: e8386bc8652b8a332f631c2bef76c2d0fbc680512d107e40a98dba31b2d700adf2c1f3e0ffb5e2c52104a937bdbbca08930f483ac9a160afc6aa84ba724a732b
|
data/CHANGELOG.md
CHANGED
data/lib/rapa/encoder.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require "
|
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
|
-
|
101
|
+
value,
|
102
102
|
].join("=")
|
103
103
|
end.join("&")
|
104
104
|
end
|
data/lib/rapa/version.rb
CHANGED