trouble 0.0.9 → 0.0.10

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
- !binary "U0hBMQ==":
3
- metadata.gz: 5de7d3db6b48ffb51de7e4c9a253081946e8e45a
4
- data.tar.gz: 4c0bf0a4ea848ad1c9a07430488732c1a2eb1ac9
2
+ SHA1:
3
+ metadata.gz: 0566c1a9f4781b362607e40b234e90092c302d48
4
+ data.tar.gz: 7068f17853e2a4c21ccf64c5bdba79ce0b1dca21
5
5
  SHA512:
6
- metadata.gz: 4704a268db5f36d76f104d8aaeb1fe6f558ade61db389ee449a1ea7fb1487eddfb629bbd8b5597d0ceeba013aa6ae830f7c70c75035fdbb7507e480077ed9e7a
7
- data.tar.gz: e29cea69f56a8f6f5fbdfedffc52eb92dceb93514f2cc664df51a4fc273603b63220f1deeaff7c161238612a261afeee8c43e671ffb5089ad70c9fa126e58cdd
6
+ metadata.gz: 7769108b3ed9e1014893b67e4f65d441cd5bf8f6c175f46ef4921974f335be03f9826cf7caf6200112c438e431c747274a03a5602d2f084fcef240d4628eb65e
7
+ data.tar.gz: c33242b9396cb863fee041689cff9554e1fdf67aeafeeabb74650c02e20a532615ed15950464a72d82b7c4f244f4fc4e27c6c4f64c9c8bf14836e1a87f155722
data/README.md CHANGED
@@ -28,3 +28,10 @@ exception = RuntimeError.new
28
28
  Trouble.notify exception
29
29
  Trouble.notify exception, some_idea_why_it_happened: "I don't know, but try this and that."
30
30
  ```
31
+
32
+ # Rails Middleware
33
+
34
+ ```ruby
35
+ # config/application.rb
36
+ config.middleware.insert_after ActionDispatch::DebugExceptions, 'Trouble::Middleware'
37
+ ```
@@ -17,6 +17,9 @@ module Trouble
17
17
  raise unless exception.message.include?('invalid %-encoding')
18
18
  return [400, {}, ['']]
19
19
 
20
+ rescue ActionController::BadRequest
21
+ return [400, {}, ['']]
22
+
20
23
  rescue => exception
21
24
  logger.fatal [$!.class, $!.message, $!.backtrace[2..5]].join("\n")
22
25
  ::Trouble.notify exception
@@ -2,7 +2,7 @@ module Trouble
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 9
5
+ TINY = 10
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trouble
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - bukowskis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-27 00:00:00.000000000 Z
11
+ date: 2015-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: guard-rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rb-fsevent
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: A generic abstraction layer for reporting errors and Exceptions. This
@@ -74,18 +74,18 @@ licenses:
74
74
  metadata: {}
75
75
  post_install_message:
76
76
  rdoc_options:
77
- - --encoding
77
+ - "--encoding"
78
78
  - UTF-8
79
79
  require_paths:
80
80
  - lib
81
81
  required_ruby_version: !ruby/object:Gem::Requirement
82
82
  requirements:
83
- - - ! '>='
83
+ - - ">="
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ! '>='
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  requirements: []
@@ -95,4 +95,3 @@ signing_key:
95
95
  specification_version: 4
96
96
  summary: A generic abstraction layer for reporting errors and Exceptions.
97
97
  test_files: []
98
- has_rdoc: