casual_helper 0.0.11 → 0.0.12

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.
data/lib/casual_helper.rb CHANGED
@@ -33,6 +33,7 @@ module CasualHelper
33
33
 
34
34
  def initialize(api_server)
35
35
  @api_server = api_server
36
+ p " Running CasualHelper version #{CasualHelper::VERSION}"
36
37
  end
37
38
 
38
39
  attr_reader :api_server
@@ -164,6 +165,13 @@ module CasualHelper
164
165
  return if are_invalid tap_id, comment_string
165
166
  post "#{@api_server.to_s}/v0/taps/#{tap_id}/update", { :feedback => { :comments => [comment_string] } }
166
167
  end
168
+
169
+ def update_counters_tap(tap_id, counter_id, amount)
170
+ return if are_invalid tap_id, counter_id, amount
171
+ counters_hash = Hash.new
172
+ counters_hash[counter_id] = amount
173
+ post "#{@api_server.to_s}/v0/taps/#{tap_id}/update", { :feedback => { :counters => counters_hash } }
174
+ end
167
175
 
168
176
  # @return hash with attributes passed in and readable_id
169
177
  def get_config(id)
@@ -1,3 +1,3 @@
1
1
  module CasualHelper
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 11
9
- version: 0.0.11
8
+ - 12
9
+ version: 0.0.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - matthewspivey
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-09-26 00:00:00 -04:00
17
+ date: 2012-10-08 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency