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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f607880f67a6363f812625bf502991d85aaee20f
4
- data.tar.gz: 131a8f8817bc10aacc99860b17529a342ecbfbac
3
+ metadata.gz: a37fa7b25c9f0efe581064b7d934d86efae41ec0
4
+ data.tar.gz: ed2e1a1a0c45fe6b0aee080dffcb637f32e670fb
5
5
  SHA512:
6
- metadata.gz: 273aeb95d37e15dc13592b63c0a9489b941dbed6b3d38124cc99c2ffc65c14c935070ce24859a97ef80d173e27a09702c0d7354b2b88755303bb19ac8e3797fb
7
- data.tar.gz: 2f723624bed6b59984792201cfb267e9c8c00143d40adc651804b2251818d7a120fc794a4bc39daf6e1325382884f073b4d3ecbc485bc96dfe299f0e3c045b7e
6
+ metadata.gz: 6d1cf4c61b07a1ba098797bdf9383217df686306c6613319079c7fb5a37bcf5daae6e0725f8769f27b9fd70ccb24378a987b303967da6013b1b6d5047c11b526
7
+ data.tar.gz: 6bb1c99410d2c57b0506a1aea89e2e24f1717adc1d9b05504716c1994d9b471488ca4c49b8e10df65a127393ff31bed1fd7deebb7b8d846bd4a8f6620293c3c8
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ ## tremolo-rails 0.1.1 ##
2
+
3
+ * Expand page tags to include http status, format (html, etc), action, and controller
4
+
5
+ *Tony Pitale*
6
+
7
+ ## tremolo-rails 0.1.0 ##
8
+
9
+ * Initial release
10
+
11
+ *Tony Pitale*
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 on GETs
25
+ * Pageview tracking
26
26
  * Tracker hook in controllers that can use a generated UUID request session `client_id`
27
- * Exception tracking (tracks only the exception name; not recommended for anything but stat-keeping)
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](#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
@@ -1,5 +1,5 @@
1
1
  module Tremolo
2
2
  module Rails
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  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.0
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-24 00:00:00.000000000 Z
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