webpurify 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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: