whenauser 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -17,20 +17,14 @@ In your Gemfile:
17
17
 
18
18
  gem 'whenauser'
19
19
 
20
- You also need
21
-
22
- gem 'girl_friday', :git => 'git://github.com/mperham/girl_friday.git'
23
-
24
- until a version of girl_friday newer than 0.9.7 is released.
25
-
26
20
  ###For Ruby on Rails
27
21
 
28
- You should create two incoming channels in WhenAUser, and configure their tokens in `config/whenauser.rb` (the available options are explained below). You may want to create additional channels to use in other environments, eg for staging.
22
+ You should create two incoming channels (event streams) in WhenAUser, and configure their tokens in `config/whenauser.rb` (the available options are explained below). You may want to create additional channels to use in other environments, eg for staging.
29
23
 
30
24
  token 'CHANNEL_TOKEN' # default channel (for user-centric events)
31
-
32
- middleware :errors do
33
- token 'ERROR_CHANNEL_TOKEN' # channel for error-centric events
25
+ middleware :pageviews # automatically generate events for pageviews
26
+ middleware :exceptions do # automatically generate events for exceptions
27
+ token 'ERROR_CHANNEL_TOKEN' # separate channel for error-centric events
34
28
  end
35
29
 
36
30
  ###As general-purpose Rack middleware, without Rails
@@ -1,3 +1,4 @@
1
+ require 'singleton'
1
2
  require 'girl_friday'
2
3
 
3
4
  module WhenAUser
@@ -37,7 +37,7 @@ module Whenauser
37
37
 
38
38
  def self.apply(&block)
39
39
  x = new
40
- x.configure(&block)
40
+ x.configure(&block) if block_given?
41
41
  x
42
42
  end
43
43
 
@@ -1,3 +1,3 @@
1
1
  module WhenAUser
2
- VERSION = '0.4.3'
2
+ VERSION = '0.4.4'
3
3
  end
metadata CHANGED
@@ -1,72 +1,71 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: whenauser
3
- version: !ruby/object:Gem::Version
4
- version: 0.4.3
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 4
8
+ - 4
9
+ version: 0.4.4
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - David Anderson
9
13
  - Chris Weis
10
14
  autorequire:
11
15
  bindir: bin
12
16
  cert_chain: []
13
- date: 2012-08-02 00:00:00.000000000 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2012-08-02 00:00:00 +02:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
16
22
  name: activesupport
17
- requirement: !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: '0'
23
- type: :runtime
24
23
  prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ! '>='
29
- - !ruby/object:Gem::Version
30
- version: '0'
31
- - !ruby/object:Gem::Dependency
32
- name: actionpack
33
- requirement: !ruby/object:Gem::Requirement
34
- none: false
35
- requirements:
36
- - - ! '>='
37
- - !ruby/object:Gem::Version
38
- version: '0'
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ version: "0"
39
31
  type: :runtime
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: actionpack
40
35
  prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
46
- version: '0'
47
- - !ruby/object:Gem::Dependency
48
- name: girl_friday
49
- requirement: !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: 0.10.0
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ segments:
41
+ - 0
42
+ version: "0"
55
43
  type: :runtime
44
+ version_requirements: *id002
45
+ - !ruby/object:Gem::Dependency
46
+ name: girl_friday
56
47
  prerelease: false
57
- version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
48
+ requirement: &id003 !ruby/object:Gem::Requirement
49
+ requirements:
60
50
  - - ~>
61
- - !ruby/object:Gem::Version
51
+ - !ruby/object:Gem::Version
52
+ segments:
53
+ - 0
54
+ - 10
55
+ - 0
62
56
  version: 0.10.0
57
+ type: :runtime
58
+ version_requirements: *id003
63
59
  description: Rack middleware for connecting to WhenAUser
64
- email:
60
+ email:
65
61
  - david@alpinegizmo.com
66
62
  executables: []
63
+
67
64
  extensions: []
65
+
68
66
  extra_rdoc_files: []
69
- files:
67
+
68
+ files:
70
69
  - .gitignore
71
70
  - Gemfile
72
71
  - README.md
@@ -80,28 +79,35 @@ files:
80
79
  - lib/whenauser/railtie.rb
81
80
  - lib/whenauser/version.rb
82
81
  - whenauser.gemspec
82
+ has_rdoc: true
83
83
  homepage: https://github.com/tractionlabs/whenauser
84
84
  licenses: []
85
+
85
86
  post_install_message:
86
87
  rdoc_options: []
87
- require_paths:
88
+
89
+ require_paths:
88
90
  - lib
89
- required_ruby_version: !ruby/object:Gem::Requirement
90
- none: false
91
- requirements:
92
- - - ! '>='
93
- - !ruby/object:Gem::Version
94
- version: '0'
95
- required_rubygems_version: !ruby/object:Gem::Requirement
96
- none: false
97
- requirements:
98
- - - ! '>='
99
- - !ruby/object:Gem::Version
100
- version: '0'
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ segments:
96
+ - 0
97
+ version: "0"
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ segments:
103
+ - 0
104
+ version: "0"
101
105
  requirements: []
106
+
102
107
  rubyforge_project:
103
- rubygems_version: 1.8.24
108
+ rubygems_version: 1.3.6
104
109
  signing_key:
105
110
  specification_version: 3
106
111
  summary: Rack middleware for connecting to WhenAUser
107
112
  test_files: []
113
+