squash_rails 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,9 @@ module Squash
27
27
  begin
28
28
  result = @app.call(env)
29
29
  rescue ::Exception => ex
30
- @env['squash.notified'] = ::Squash::Ruby.notify(ex, squash_rack_data)
30
+ unless ex.instance_variable_get(:@_squash_controller_notified)
31
+ @env['squash.notified'] = ::Squash::Ruby.notify(ex, squash_rack_data)
32
+ end
31
33
  raise ex
32
34
  end
33
35
 
@@ -45,6 +45,7 @@ module Squash::Ruby::ControllerMethods
45
45
  # exceptions are ignored and not reported to Squash.)
46
46
 
47
47
  def notify_squash(exception, user_data={})
48
+ exception.instance_variable_set :@_squash_controller_notified, true
48
49
  Squash::Ruby.notify exception, user_data.merge(squash_rails_data)
49
50
  end
50
51
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: squash_rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 1
10
- version: 1.1.1
9
+ - 2
10
+ version: 1.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tim Morgan
@@ -15,10 +15,11 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-04-09 00:00:00 Z
18
+ date: 2013-04-24 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- requirement: &id001 !ruby/object:Gem::Requirement
21
+ type: :runtime
22
+ version_requirements: &id001 !ruby/object:Gem::Requirement
22
23
  none: false
23
24
  requirements:
24
25
  - - ">="
@@ -27,12 +28,12 @@ dependencies:
27
28
  segments:
28
29
  - 0
29
30
  version: "0"
30
- version_requirements: *id001
31
- name: squash_ruby
31
+ requirement: *id001
32
32
  prerelease: false
33
- type: :runtime
33
+ name: squash_ruby
34
34
  - !ruby/object:Gem::Dependency
35
- requirement: &id002 !ruby/object:Gem::Requirement
35
+ type: :development
36
+ version_requirements: &id002 !ruby/object:Gem::Requirement
36
37
  none: false
37
38
  requirements:
38
39
  - - ">="
@@ -41,12 +42,12 @@ dependencies:
41
42
  segments:
42
43
  - 0
43
44
  version: "0"
44
- version_requirements: *id002
45
- name: rails
45
+ requirement: *id002
46
46
  prerelease: false
47
- type: :development
47
+ name: rails
48
48
  - !ruby/object:Gem::Dependency
49
- requirement: &id003 !ruby/object:Gem::Requirement
49
+ type: :development
50
+ version_requirements: &id003 !ruby/object:Gem::Requirement
50
51
  none: false
51
52
  requirements:
52
53
  - - ">="
@@ -55,12 +56,12 @@ dependencies:
55
56
  segments:
56
57
  - 0
57
58
  version: "0"
58
- version_requirements: *id003
59
- name: rspec
59
+ requirement: *id003
60
60
  prerelease: false
61
- type: :development
61
+ name: rspec
62
62
  - !ruby/object:Gem::Dependency
63
- requirement: &id004 !ruby/object:Gem::Requirement
63
+ type: :development
64
+ version_requirements: &id004 !ruby/object:Gem::Requirement
64
65
  none: false
65
66
  requirements:
66
67
  - - ">="
@@ -69,12 +70,12 @@ dependencies:
69
70
  segments:
70
71
  - 0
71
72
  version: "0"
72
- version_requirements: *id004
73
- name: yard
73
+ requirement: *id004
74
74
  prerelease: false
75
- type: :development
75
+ name: yard
76
76
  - !ruby/object:Gem::Dependency
77
- requirement: &id005 !ruby/object:Gem::Requirement
77
+ type: :development
78
+ version_requirements: &id005 !ruby/object:Gem::Requirement
78
79
  none: false
79
80
  requirements:
80
81
  - - ">="
@@ -83,12 +84,12 @@ dependencies:
83
84
  segments:
84
85
  - 0
85
86
  version: "0"
86
- version_requirements: *id005
87
- name: redcarpet
87
+ requirement: *id005
88
88
  prerelease: false
89
- type: :development
89
+ name: redcarpet
90
90
  - !ruby/object:Gem::Dependency
91
- requirement: &id006 !ruby/object:Gem::Requirement
91
+ type: :development
92
+ version_requirements: &id006 !ruby/object:Gem::Requirement
92
93
  none: false
93
94
  requirements:
94
95
  - - ">="
@@ -97,10 +98,9 @@ dependencies:
97
98
  segments:
98
99
  - 0
99
100
  version: "0"
100
- version_requirements: *id006
101
- name: jeweler
101
+ requirement: *id006
102
102
  prerelease: false
103
- type: :development
103
+ name: jeweler
104
104
  description: This client library records Ruby on Rails exceptions to Squash.
105
105
  email: tim@squareup.com
106
106
  executables: []