webpurify 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/web_purify/request.rb +1 -3
- data/lib/web_purify/version.rb +1 -1
- metadata +1 -1
data/lib/web_purify/request.rb
CHANGED
@@ -19,9 +19,7 @@ module WebPurify
|
|
19
19
|
# @param hash [Hash] The hash to be converted
|
20
20
|
# @return [String] The formatted query string
|
21
21
|
def self.to_query(hash)
|
22
|
-
|
23
|
-
hash.each {|k,v| parameters << "#{k}=#{v}" }
|
24
|
-
return URI.encode(parameters.join("&"))
|
22
|
+
return URI.encode(hash.map{|k,v| "#{k}=#{v}"}.join("&"))
|
25
23
|
end
|
26
24
|
|
27
25
|
|
data/lib/web_purify/version.rb
CHANGED