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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stathat.rb +12 -12
  3. data/stathat.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ddfff8dbbe9dea010d91fdde55759f8e91830089
4
- data.tar.gz: 8b934b9139ca99e7b6d47bf1256a62878a669a74
3
+ metadata.gz: dd028f6c38be0568aafcb4c61551265bee55a15a
4
+ data.tar.gz: 2d769feddbb21b40f2cca5439580d8f41963f028
5
5
  SHA512:
6
- metadata.gz: aac889bfb0f781329085d6e2cce81024e60f737d92ff273b350e8d4dbb9bbee4c3623b91c2434b344b0567bd2a6cce2bed806f2aebb49fc289edd9945a5ef8bc
7
- data.tar.gz: d4436bc3b97803b0676c27e699b33d4c2d9686f6157f7b6d74bbd57e672905af539aa47d29dd00ad33c5c00e3605d1bd75d920e3fdbe5b54d127aff683f1b0be
6
+ metadata.gz: a34468e2baa1fdbffc7ff77cf606a2ea17fbaade1958f8961e7574860aa200659a7c15f025eb80d39a5a56d9c01e9d3aaa38644bfeb412431f6521a196579dee
7
+ data.tar.gz: 769d70f9fb15b9e83d4114c81b7a5c20ffb655d5243c9c7e4ed7d4e6f42394d4caa54d34d071d004138daca6a5548e77d259774eb78f7b98b3b5fd94189650b3
@@ -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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{stathat}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
  s.authors = ["StatHat"]
7
7
  s.description = %q{Easily post stats to your StatHat account using this gem. Encapsulates full API.}
8
8
  s.email = %q{info@stathat.com}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stathat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - StatHat