kissmetrics 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{kissmetrics}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jason Morrison"]
@@ -51,10 +51,16 @@ class Kissmetrics
51
51
  query['_k'] = @api_key
52
52
  query['_p'] = @identity if @identity
53
53
 
54
- hash_to_query_string(query)
54
+ QueryStringHash.new(query)
55
55
  end
56
56
 
57
- def hash_to_query_string(hash)
58
- hash.collect { |k,v| "#{k}=#{CGI.escape(v.to_s)}" }.join('&')
57
+ class QueryStringHash
58
+ def initialize(hash)
59
+ @hash = hash
60
+ end
61
+
62
+ def to_s
63
+ @hash.collect { |key, value| "#{key}=#{CGI.escape(value.to_s)}" }.join('&')
64
+ end
59
65
  end
60
66
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: kissmetrics
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jason Morrison
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - ">="
117
117
  - !ruby/object:Gem::Version
118
- hash: 970554408361776796
118
+ hash: -1757115897083586638
119
119
  segments:
120
120
  - 0
121
121
  version: "0"