proscenium 0.11.0.pre.12-x86_64-linux → 0.11.0.pre.13-x86_64-linux
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2d83ea21d1d8f0802797dfc2f8df120a8d5dd224fc0586a86583ebe6a4003b0
|
4
|
+
data.tar.gz: 41a2048f4001060b52e6b58286bae9cc190e8a23750505722088b7ebcee90d01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26c905bfb0aa1a519271474f36a8a3c8b98709f56a47e87ea94c323e690e44a45f056e41581ce0d13b32b0daba088fdc75254d12e9bdeaa361644757a8b94804
|
7
|
+
data.tar.gz: e5e0347b3e9d4349a4eb4b6b5cc9bfd1eeb4fa96f81dee2380ecc7fbfb726e5071c08f4d977d47e0a17ccf54d445fd188c2220cb25f704a8759f65ae09e8c9a8
|
Binary file
|
data/lib/proscenium/railtie.rb
CHANGED
@@ -46,8 +46,10 @@ module Proscenium
|
|
46
46
|
}
|
47
47
|
|
48
48
|
initializer 'proscenium.debugging' do
|
49
|
-
|
50
|
-
|
49
|
+
if Rails.gem_version >= Gem::Version.new('7.1.0')
|
50
|
+
tpl_path = root.join('lib', 'proscenium', 'templates').to_s
|
51
|
+
ActionDispatch::DebugView::RESCUES_TEMPLATE_PATHS << tpl_path
|
52
|
+
end
|
51
53
|
end
|
52
54
|
|
53
55
|
initializer 'proscenium.middleware' do |app|
|
@@ -74,3 +76,14 @@ module Proscenium
|
|
74
76
|
end
|
75
77
|
end
|
76
78
|
end
|
79
|
+
|
80
|
+
if Rails.gem_version < Gem::Version.new('7.1.0')
|
81
|
+
class ActionDispatch::DebugView
|
82
|
+
def initialize(assigns)
|
83
|
+
tpl_path = Proscenium::Railtie.root.join('lib', 'proscenium', 'templates').to_s
|
84
|
+
paths = [RESCUES_TEMPLATE_PATH, tpl_path]
|
85
|
+
lookup_context = ActionView::LookupContext.new(paths)
|
86
|
+
super(lookup_context, assigns, nil)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -1,11 +1,14 @@
|
|
1
1
|
<header>
|
2
2
|
<h1>
|
3
|
-
<%= @exception.class.to_s %>
|
3
|
+
<%= Rails.gem_version >= Gem::Version.new('7.1.0') ? @exception_wrapper.exception_class_name : @exception.class.to_s %>
|
4
|
+
<% if params_valid? && @request.parameters['controller'] %>
|
5
|
+
in <%= @request.parameters['controller'].camelize %>Controller<% if @request.parameters['action'] %>#<%= @request.parameters['action'] %><% end %>
|
6
|
+
<% end %>
|
4
7
|
</h1>
|
5
8
|
</header>
|
6
9
|
|
7
10
|
<main role="main" id="container">
|
8
|
-
<%= render "rescues/message_and_suggestions", exception: @exception %>
|
11
|
+
<%= render "rescues/message_and_suggestions", exception: @exception, exception_wrapper: Rails.gem_version >= Gem::Version.new('7.1.0') ? @exception_wrapper : nil %>
|
9
12
|
|
10
13
|
<% if @exception.error['location'] %>
|
11
14
|
<div class="source">
|
data/lib/proscenium/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proscenium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.0.pre.
|
4
|
+
version: 0.11.0.pre.13
|
5
5
|
platform: x86_64-linux
|
6
6
|
authors:
|
7
7
|
- Joel Moss
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|