payboard 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.
Files changed (3) hide show
  1. data/README.md +14 -8
  2. data/lib/payboard/version.rb +1 -1
  3. metadata +5 -5
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Payboard
2
2
 
3
- TODO: Write a gem description
3
+ Installing this gem and adding a line to your application_controller.rb will start flowing customer events to Payboard.
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,12 +18,18 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ The fastest way to get going is to create an account at <a href="http://www.Payboard.com">www.Payboard.com</a>, add the gem (see above) and add the following code to your application_controller.rb file inside the ApplicationController class. You can get your Public API Key from the accounts tab at Payboard.
22
+
23
+ after_filter :log_event
24
+
25
+ def log_event
26
+ Payboard.log_event("Public API Key", self.controller_name + "-" + self.action_name + "-" + request.method, current_user.id) if current_user
27
+ end
28
+
29
+ This method automatically generates event names using the controller name, the action name, and the request method (get or post). You can also log events manually by adding the code above to a particular action.
30
+
31
+ Each of those parameters above are required. Here are all of the parameters that are available.
32
+
33
+ ApiKey, EventName, UserId, First (optional), Last (optional), Email (optional), CustomerId (optional), CustomerName (optional)
22
34
 
23
- ## Contributing
24
35
 
25
- 1. Fork it
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Add some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
@@ -1,3 +1,3 @@
1
1
  module Payboard
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: payboard
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:
@@ -13,7 +13,7 @@ date: 2013-11-11 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
- requirement: &70233798041340 !ruby/object:Gem::Requirement
16
+ requirement: &70299984246720 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.3'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70233798041340
24
+ version_requirements: *70299984246720
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70233798040920 !ruby/object:Gem::Requirement
27
+ requirement: &70299984246180 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70233798040920
35
+ version_requirements: *70299984246180
36
36
  description: Payboard gem for logging events
37
37
  email:
38
38
  - matt@dyor.com