gabrake 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gabrake/collector.rb +1 -1
- data/lib/gabrake/notifier.rb +1 -1
- data/lib/gabrake/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 393cf07a78d624c2c96e70e11a29032fdaf05bb5
|
4
|
+
data.tar.gz: 66aa2c17928f7e6a16c80835998c819a56f52a08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d89b3719da514981b6196b997811f75ccd53da220926ef3abb4da69ba5456c8d53e6c6b64f586df76066f2f2db96b0ff3c678bf16ebc0b9f164b38832f5b4327
|
7
|
+
data.tar.gz: 61e15a48fe158ea70775725d1920197cebf9b4eebc5bae55822e3d780b2358c275d0e2c7cc37213c19fc938cd799f2065e619f2568ee2077fc0deae3638a28f7
|
data/lib/gabrake/collector.rb
CHANGED
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['action_dispatch.cookies']
|
12
|
+
cookies = env ? 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
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gabrake
|
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
|
- Samuel Molnar
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.
|
157
|
+
rubygems_version: 2.4.5
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: Simple Realtime Error Tracking and Statistics with Google Analytics
|