korboard 0.0.1 → 0.0.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.
@@ -17,19 +17,21 @@ class Korboard::Client
17
17
  end
18
18
 
19
19
  # can do this for the rest too
20
- def record_signup identifier,options=nil
20
+ def record_signup identifier,session_id,options={ }
21
+ options.merge! :user_profile => { :session_id => session_id , :user_id => identifier}
21
22
  record :signup,@iteration_number,identifier,options
22
23
  end
23
24
 
24
- def record_visit identifier,options=nil
25
+ def record_visit identifier,options={ }
26
+ options.merge! :user_profile => { :session_id => identifier }
25
27
  record :signup,@iteration_number,identifier,options
26
28
  end
27
29
 
28
30
 
29
31
 
30
- def record metric ,iteration_number, identifier, options =nil
32
+ def record metric ,iteration_number, identifier, options ={ }
31
33
  data = { :signup => { :identifier => identifier }, :iteration => { :number => iteration_number } }
32
- data.merge(options) if options
34
+ data.merge!(options)
33
35
 
34
36
  path = "/v1.1/#{metric.to_s.pluralize}?token=#{@token}"
35
37
 
@@ -1,3 +1,3 @@
1
1
  module Korboard
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: korboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-06 00:00:00.000000000Z
12
+ date: 2012-03-08 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: This gem allows developers to access the Korboard API from their app
15
15
  using Ruby