stathat 0.1.1 → 0.1.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.
- checksums.yaml +4 -4
- data/lib/stathat.rb +12 -12
- data/stathat.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd028f6c38be0568aafcb4c61551265bee55a15a
|
4
|
+
data.tar.gz: 2d769feddbb21b40f2cca5439580d8f41963f028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a34468e2baa1fdbffc7ff77cf606a2ea17fbaade1958f8961e7574860aa200659a7c15f025eb80d39a5a56d9c01e9d3aaa38644bfeb412431f6521a196579dee
|
7
|
+
data.tar.gz: 769d70f9fb15b9e83d4114c81b7a5c20ffb655d5243c9c7e4ed7d4e6f42394d4caa54d34d071d004138daca6a5548e77d259774eb78f7b98b3b5fd94189650b3
|
data/lib/stathat.rb
CHANGED
@@ -11,16 +11,16 @@ module StatHat
|
|
11
11
|
Reporter.instance.ez_post_value(stat_name, ezkey, value, block)
|
12
12
|
end
|
13
13
|
|
14
|
-
def ez_post_count(stat_name, ezkey, count)
|
15
|
-
Reporter.instance.ez_post_count(stat_name, ezkey, count)
|
14
|
+
def ez_post_count(stat_name, ezkey, count, &block)
|
15
|
+
Reporter.instance.ez_post_count(stat_name, ezkey, count, block)
|
16
16
|
end
|
17
17
|
|
18
|
-
def post_count(stat_key, user_key, count)
|
19
|
-
Reporter.instance.post_count(stat_key, user_key, count)
|
18
|
+
def post_count(stat_key, user_key, count, &block)
|
19
|
+
Reporter.instance.post_count(stat_key, user_key, count, block)
|
20
20
|
end
|
21
21
|
|
22
|
-
def post_value(stat_key, user_key, value)
|
23
|
-
Reporter.instance.post_value(stat_key, user_key, value)
|
22
|
+
def post_value(stat_key, user_key, value, &block)
|
23
|
+
Reporter.instance.post_value(stat_key, user_key, value, block)
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
@@ -43,18 +43,18 @@ module StatHat
|
|
43
43
|
# XXX serialize queue?
|
44
44
|
end
|
45
45
|
|
46
|
-
def post_value(stat_key, user_key, value)
|
46
|
+
def post_value(stat_key, user_key, value, cb)
|
47
47
|
args = { :key => stat_key,
|
48
48
|
:ukey => user_key,
|
49
49
|
:value => value }
|
50
|
-
enqueue(CLASSIC_VALUE_URL, args)
|
50
|
+
enqueue(CLASSIC_VALUE_URL, args, cb)
|
51
51
|
end
|
52
52
|
|
53
|
-
def post_count(stat_key, user_key, count)
|
53
|
+
def post_count(stat_key, user_key, count, cb)
|
54
54
|
args = { :key => stat_key,
|
55
55
|
:ukey => user_key,
|
56
56
|
:count => count }
|
57
|
-
enqueue(CLASSIC_COUNT_URL, args)
|
57
|
+
enqueue(CLASSIC_COUNT_URL, args, cb)
|
58
58
|
end
|
59
59
|
|
60
60
|
def ez_post_value(stat_name, ezkey, value, cb)
|
@@ -65,11 +65,11 @@ module StatHat
|
|
65
65
|
enqueue(EZ_URL, args, cb)
|
66
66
|
end
|
67
67
|
|
68
|
-
def ez_post_count(stat_name, ezkey, count)
|
68
|
+
def ez_post_count(stat_name, ezkey, count, cb)
|
69
69
|
args = { :stat => stat_name,
|
70
70
|
:ezkey => ezkey,
|
71
71
|
:count => count }
|
72
|
-
enqueue(EZ_URL, args)
|
72
|
+
enqueue(EZ_URL, args, cb)
|
73
73
|
end
|
74
74
|
|
75
75
|
private
|
data/stathat.gemspec
CHANGED