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 +1 -1
- data/kissmetrics.gemspec +1 -1
- data/lib/kissmetrics.rb +9 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/kissmetrics.gemspec
CHANGED
data/lib/kissmetrics.rb
CHANGED
@@ -51,10 +51,16 @@ class Kissmetrics
|
|
51
51
|
query['_k'] = @api_key
|
52
52
|
query['_p'] = @identity if @identity
|
53
53
|
|
54
|
-
|
54
|
+
QueryStringHash.new(query)
|
55
55
|
end
|
56
56
|
|
57
|
-
|
58
|
-
|
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.
|
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:
|
118
|
+
hash: -1757115897083586638
|
119
119
|
segments:
|
120
120
|
- 0
|
121
121
|
version: "0"
|