web-console 3.5.0 → 3.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b2ea6288a1823356b457a11ad5746b84b4788aa
4
- data.tar.gz: 4ce3d79517c3aee34c9841d8c9d9d697329a7b44
3
+ metadata.gz: 8a1cf82ab4c1380c5d85d7cdbda8b48d8ef0d7e4
4
+ data.tar.gz: 15b623e433d5101d376444ad1122b00282fc3fa6
5
5
  SHA512:
6
- metadata.gz: 51316ba9e0ef5be8be874d5a77a15a54907ea73fd0d4cab8c15ae3b02ea1f5b4cdd42fb71636892f68c74f8c89c3866bd8eb9c69c92fde0ffd9f2944826922e7
7
- data.tar.gz: d61663a8957c915c8f90efb54893874e5a8c6003241928336f9a54041b241e30c898b109a7994fc852e699b3d150f44753f226792b37a6f1234353df19df697b
6
+ metadata.gz: 7e02abfa3203653103218c7a187c5cc4337b252f5a383ad5c3cfd06eee7d0a93f42f08230131bab0bc9481d7ba78cc8296230a78af7e393fa08bc1a08f8c4b76
7
+ data.tar.gz: fae466a396dfdff3c5c2397c002ca6c5ca9d1e9b82d59a71d71f4c39b3752f2a3b41101675b9f8c1c9ec40edb71ab0784e007839cc53c2622660131a05883351
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master (unreleased)
4
4
 
5
+ ## 3.5.1
6
+
7
+ * [239](https://github.com/rails/web-console/pull/239) Fix the ActionDispatch::DebugExceptions integration ([@gsamokovarov])
8
+
5
9
  ## 3.5.0
6
10
 
7
11
  * [237](https://github.com/rails/web-console/pull/237) Bindex integration for JRuby 9k support ([@gsamokovarov])
@@ -20,12 +20,12 @@ module Kernel
20
20
  end
21
21
  end
22
22
 
23
- module WebConsole
24
- module DebugExceptionsExt
25
- def render_exception(request, exception)
26
- super(request, exception).tap do
23
+ module ActionDispatch
24
+ class DebugExceptions
25
+ def render_exception_with_web_console(request, exception)
26
+ render_exception_without_web_console(request, exception).tap do
27
27
  backtrace_cleaner = request.get_header('action_dispatch.backtrace_cleaner')
28
- error = ActionDispatch::ExceptionWrapper.new(backtrace_cleaner, exception).exception
28
+ error = ExceptionWrapper.new(backtrace_cleaner, exception).exception
29
29
 
30
30
  # Get the original exception if ExceptionWrapper decides to follow it.
31
31
  Thread.current[:__web_console_exception] = error
@@ -38,7 +38,8 @@ module WebConsole
38
38
  end
39
39
  end
40
40
  end
41
+
42
+ alias_method :render_exception_without_web_console, :render_exception
43
+ alias_method :render_exception, :render_exception_with_web_console
41
44
  end
42
45
  end
43
-
44
- ActionDispatch::DebugExceptions.prepend(WebConsole::DebugExceptionsExt)
@@ -1,3 +1,3 @@
1
1
  module WebConsole
2
- VERSION = '3.5.0'
2
+ VERSION = '3.5.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web-console
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Somerville
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-03-29 00:00:00.000000000 Z
14
+ date: 2017-05-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: railties