gabrake 0.1.1 → 0.1.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.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/README.md +3 -1
- data/lib/gabrake/notifier.rb +1 -1
- data/lib/gabrake/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d9af72b12789b026be70fb6f40c952803e65c585
|
|
4
|
+
data.tar.gz: c77b5c2378ce643e57777159a1b330aa780ee1c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3351f483cdf5f9397cb95f30ea0960bd53027023b5854acd1fdc0b2190e143c6772766b992578ae09f76933291e2d35a94e8ddee02420b187c39eb5aeeeee537
|
|
7
|
+
data.tar.gz: 0e07e231c723c1eefb46eacff0d9986d083c8f51dda9b1f0ad47176d6d75282f996aa31a72d8a24ddfd6d870016c31d4ed667aad58c5469c3d5ea3adf87ab12d
|
data/README.md
CHANGED
|
@@ -6,6 +6,8 @@ Let's have a look.
|
|
|
6
6
|
|
|
7
7
|
[Realtime Tracking by category](https://www.dropbox.com/s/k0bhpd1f90hhe6e/gabrake-realtime.png?dl=0)
|
|
8
8
|
|
|
9
|
+
[JavaScript Tracking by messages](https://www.dropbox.com/s/8pa1j5vujcma9oq/gabrake-js.png?dl=0)
|
|
10
|
+
|
|
9
11
|
[Overview by error message and location](https://www.dropbox.com/s/hrmyy9cgo1jkclw/gabrake-overview.png?dl=0)
|
|
10
12
|
|
|
11
13
|
[Overview by error message and browser](https://www.dropbox.com/s/q736nd92vzz5r4a/gabrake-overview-by-browser.png?dl=0)
|
|
@@ -59,7 +61,7 @@ Wait couple minutes.
|
|
|
59
61
|
|
|
60
62
|
1. Go to **Behaviour** > **Events** > **Overview**.
|
|
61
63
|
2. Click on one of the Gabrake categories. On top of table, choose primary dimension as **Event Action**.
|
|
62
|
-
3. Choose secondary dimension by your taste — *Event Label (backtrace location), Page, Browser
|
|
64
|
+
3. Choose secondary dimension by your taste — *Event Label (backtrace location), Page, Browser.*
|
|
63
65
|
|
|
64
66
|
**Important**: *Make sure that the overview date includes TODAY! You'll save yourself a headache.*
|
|
65
67
|
|
data/lib/gabrake/notifier.rb
CHANGED
|
@@ -9,7 +9,7 @@ module Gabrake
|
|
|
9
9
|
|
|
10
10
|
class Env
|
|
11
11
|
def self.extract_context(env)
|
|
12
|
-
cookies = env
|
|
12
|
+
cookies = env['action_dispatch.cookies'] || Hash.new
|
|
13
13
|
default_client_id = "GA1.1.#{(rand() * 2147483647).to_i}.#{Time.now.to_i}"
|
|
14
14
|
_, version, client_id = *(cookies['_ga'] || default_client_id).match(/GA(\d+)\..+\.(\d+\.\d+)\z/)
|
|
15
15
|
|
data/lib/gabrake/version.rb
CHANGED