web-console 3.5.0 → 3.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +4 -0
- data/lib/web_console/extensions.rb +8 -7
- data/lib/web_console/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a1cf82ab4c1380c5d85d7cdbda8b48d8ef0d7e4
|
4
|
+
data.tar.gz: 15b623e433d5101d376444ad1122b00282fc3fa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e02abfa3203653103218c7a187c5cc4337b252f5a383ad5c3cfd06eee7d0a93f42f08230131bab0bc9481d7ba78cc8296230a78af7e393fa08bc1a08f8c4b76
|
7
|
+
data.tar.gz: fae466a396dfdff3c5c2397c002ca6c5ca9d1e9b82d59a71d71f4c39b3752f2a3b41101675b9f8c1c9ec40edb71ab0784e007839cc53c2622660131a05883351
|
data/CHANGELOG.markdown
CHANGED
@@ -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
|
24
|
-
|
25
|
-
def
|
26
|
-
|
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 =
|
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)
|
data/lib/web_console/version.rb
CHANGED
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.
|
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-
|
14
|
+
date: 2017-05-12 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: railties
|