webpurify 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- parameters = []
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
 
@@ -1,3 +1,3 @@
1
1
  module WebPurify
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webpurify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: