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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9086971eceb0388ced5f4d94016d68fa6535cc7
4
- data.tar.gz: b4e13cafcb4e01d162951d9373701fc70d7d2bce
3
+ metadata.gz: 393cf07a78d624c2c96e70e11a29032fdaf05bb5
4
+ data.tar.gz: 66aa2c17928f7e6a16c80835998c819a56f52a08
5
5
  SHA512:
6
- metadata.gz: 029078fd523169306bc11a9cc36a618e48a4925cacea1a60d28653f8903b98c7d507484210574de58afacd9dcdba8fefec875c2b6ba071d8750aafc5871f2304
7
- data.tar.gz: 1637cd6656d513887115881849508ba53251dda569c5b48d968bdeaf5f9bdc8c2a6c51c15dabd9e1d4f7ed6a1988aa5dac107bc7682e56056fbf5d78df2119a7
6
+ metadata.gz: d89b3719da514981b6196b997811f75ccd53da220926ef3abb4da69ba5456c8d53e6c6b64f586df76066f2f2db96b0ff3c678bf16ebc0b9f164b38832f5b4327
7
+ data.tar.gz: 61e15a48fe158ea70775725d1920197cebf9b4eebc5bae55822e3d780b2358c275d0e2c7cc37213c19fc938cd799f2065e619f2568ee2077fc0deae3638a28f7
@@ -51,7 +51,7 @@ module Gabrake
51
51
 
52
52
  return unless backtrace
53
53
 
54
- _, @location, _ = *backtrace.match(/\A(.+?:\d+):in/)
54
+ @location = backtrace.match(/\A(.+?:\d+)/)[1]
55
55
  end
56
56
  end
57
57
  end
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Gabrake
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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.0
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-07-26 00:00:00.000000000 Z
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.2.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