ihunter-whatcounts 0.3.6 → 0.3.7

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.
@@ -6,7 +6,7 @@ require 'cgi'
6
6
  # require 'fastercsv'
7
7
 
8
8
  module WhatCounts
9
- VERSION = '0.3.6'
9
+ VERSION = '0.3.7'
10
10
  class WhatCountsError < StandardError; end
11
11
 
12
12
  class CreationError < WhatCountsError; end
@@ -40,8 +40,8 @@ module WhatCounts
40
40
  pairs << "data=#{CGI.escape(self.data)}"
41
41
  elsif self.data.kind_of? Hash
42
42
  data_pairs = self.data.inject([[],[]]) do |acc,(k,v)|
43
- acc[0] << CGI.escape(k)
44
- acc[1] << CGI.escape(v)
43
+ acc[0] << CGI.escape(k.to_s)
44
+ acc[1] << CGI.escape(v.to_s)
45
45
  acc
46
46
  end
47
47
  pairs << "data=#{data_pairs[0].join(',')}^#{data_pairs[1].join(',')}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ihunter-whatcounts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Hunter