whenauser 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  WhenAUser
2
2
  =========
3
3
 
4
- [WhenAUser.com](http://whenauser.com) is a rules engine as a service that uses events from your application to trigger calls to 3rd party SaaS APIs. This lets you eliminate business logic in your application, and use the WhenAUser web UI instead. This gem contains Rack middleware for connecting to WhenAUser. It generates two event streams, one for exceptions and the other for pageviews.
4
+ [WhenAUser.com](http://whenauser.com) is a rules engine as a service that uses events from your application to trigger calls to 3rd party SaaS APIs. This lets you lift out the rapidly evolving parts of the business logic from your application, and use the WhenAUser web UI instead. This gem contains Rack middleware for connecting to WhenAUser. It generates two event streams, one for exceptions and the other for pageviews.
5
5
 
6
6
  Usage Example
7
7
  -------------
@@ -16,10 +16,11 @@ Usage Example
16
16
  This gem will automatically send events for all exceptions and all pageviews (except those that filtered out by the options). You can also manually send additional events. For example:
17
17
 
18
18
  WhenAUser.send_event(
19
- :_actor => current_user.email,
19
+ :_actor => current_user.unique_id,
20
20
  :_timestamp => Time.now.to_f,
21
21
  :_domain => 'account',
22
22
  :_name => 'upgrade',
23
+ :user_email => current_user.email,
23
24
  :plan => plan.name )
24
25
 
25
26
  Options
@@ -1,3 +1,3 @@
1
1
  module WhenAUser
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
data/lib/whenauser.rb CHANGED
@@ -26,7 +26,7 @@ module WhenAUser
26
26
 
27
27
  class Rack
28
28
  def initialize(app, options={})
29
- options[:webhook_url] ||= 'http://whenauser.com/events'
29
+ options[:webhook_url] ||= 'http://whenauser.com/events/'
30
30
  @app = app
31
31
  WhenAUser.queue = []
32
32
  WhenAUser.filter_parameters = defined?(Rails) ? Rails.application.config.filter_parameters : []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whenauser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
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-07-14 00:00:00.000000000 Z
12
+ date: 2012-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport