tremolo-rails 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/README.md +3 -7
- data/lib/tremolo/subscribers/base.rb +24 -0
- data/lib/tremolo-rails/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a37fa7b25c9f0efe581064b7d934d86efae41ec0
|
|
4
|
+
data.tar.gz: ed2e1a1a0c45fe6b0aee080dffcb637f32e670fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6d1cf4c61b07a1ba098797bdf9383217df686306c6613319079c7fb5a37bcf5daae6e0725f8769f27b9fd70ccb24378a987b303967da6013b1b6d5047c11b526
|
|
7
|
+
data.tar.gz: 6bb1c99410d2c57b0506a1aea89e2e24f1717adc1d9b05504716c1994d9b471488ca4c49b8e10df65a127393ff31bed1fd7deebb7b8d846bd4a8f6620293c3c8
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
|
@@ -22,11 +22,11 @@ Or install it yourself as:
|
|
|
22
22
|
## Provides
|
|
23
23
|
|
|
24
24
|
* Timing from instrumentation (total duration, db_runtime, view_runtime)
|
|
25
|
-
* Pageview tracking
|
|
25
|
+
* Pageview tracking
|
|
26
26
|
* Tracker hook in controllers that can use a generated UUID request session `client_id`
|
|
27
|
-
* Exception tracking (tracks
|
|
27
|
+
* Exception tracking (tracks the exception name and line/file if available)
|
|
28
28
|
|
|
29
|
-
Session UUID for the `client_id` is handled for you. Can be overridden easily, see [Overriding the client_id](#
|
|
29
|
+
Session UUID for the `client_id` is handled for you. Can be overridden easily, see [Overriding the client_id](https://github.com/tpitale/tremolo-rails#overriding-the-client_id).
|
|
30
30
|
|
|
31
31
|
## Usage
|
|
32
32
|
|
|
@@ -107,10 +107,6 @@ config.tremolo.pageviews = false # stats: pageview
|
|
|
107
107
|
config.tremolo.exceptions = false # default, stats: exception
|
|
108
108
|
```
|
|
109
109
|
|
|
110
|
-
## TODO ##
|
|
111
|
-
|
|
112
|
-
* Add controller and action to payload
|
|
113
|
-
|
|
114
110
|
## Contributing
|
|
115
111
|
|
|
116
112
|
1. Fork it
|
|
@@ -20,14 +20,38 @@ module Tremolo
|
|
|
20
20
|
path: path,
|
|
21
21
|
hostname: hostname,
|
|
22
22
|
method: method,
|
|
23
|
+
format: format,
|
|
24
|
+
status: status,
|
|
25
|
+
controller: controller,
|
|
26
|
+
action: action,
|
|
23
27
|
client_id: client_id
|
|
24
28
|
}
|
|
25
29
|
end
|
|
26
30
|
|
|
31
|
+
def format
|
|
32
|
+
payload[:format]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def status
|
|
36
|
+
payload[:status]
|
|
37
|
+
end
|
|
38
|
+
|
|
27
39
|
def method
|
|
28
40
|
payload[:method]
|
|
29
41
|
end
|
|
30
42
|
|
|
43
|
+
def action
|
|
44
|
+
params["action"]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def controller
|
|
48
|
+
params["controller"]
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def params
|
|
52
|
+
payload[:params]
|
|
53
|
+
end
|
|
54
|
+
|
|
31
55
|
def path_prefix
|
|
32
56
|
::Rails.application.config.tremolo.path_prefix.to_s
|
|
33
57
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tremolo-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tony Pitale
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-02-
|
|
11
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -133,6 +133,7 @@ files:
|
|
|
133
133
|
- ".rspec"
|
|
134
134
|
- ".ruby-version"
|
|
135
135
|
- ".travis.yml"
|
|
136
|
+
- CHANGELOG.md
|
|
136
137
|
- CODE_OF_CONDUCT.md
|
|
137
138
|
- Gemfile
|
|
138
139
|
- LICENSE.txt
|