proscenium 0.11.0.pre.11-aarch64-linux → 0.11.0.pre.13-aarch64-linux

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
  SHA256:
3
- metadata.gz: 40875dbd593465f75a067738b21fd014699c0d5446a6909940482af9d1e0d5f4
4
- data.tar.gz: 77236634b03b5297da87cd66dd59111f9625b08daea11ec833a9b4700387de62
3
+ metadata.gz: a2e5004aed3e4efc4ab729d5f2e6572129601351fbc3f6a339c0f9f3735cfc63
4
+ data.tar.gz: 6996182c41e28bb37cd71f4690c7a8f262fb2c61703434f0699835e8896607bf
5
5
  SHA512:
6
- metadata.gz: c04105e4fba44a79b0f1bf85d624e9f59e34678a966effab524ace2d5a44956c9355bd535e4e9faeea268acf14e1ec7640c91dc740d8be67e7ab3e049f738658
7
- data.tar.gz: 88d4403b3490debccbf43dea69cd8895b987721f941a60e8adaec16090bf8198a21c3eb8c1e9317f0a13a276562a298694bec1eca8c53214033fd678a087afa6
6
+ metadata.gz: 351ffa24608c015eeec20e4ef3eece779a91008d33cff5bf57bc61b5fc9caf37caf8ca19ccdc0f1afd0f46143391c8fc9ac0fe4163e55c1b0971de48c3d4364e
7
+ data.tar.gz: 0625521c9cf7bf30a9cc81d847cbc903dd1ded768dcf33a978d8dcf2bab680708df20c221ec386c11c484e9793fd5698a336f9f7fc3d3eed08b9cd18d60e561a
Binary file
@@ -45,6 +45,13 @@ module Proscenium
45
45
  'Proscenium::Builder::BuildError' => 'build_error'
46
46
  }
47
47
 
48
+ initializer 'proscenium.debugging' do
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
53
+ end
54
+
48
55
  initializer 'proscenium.middleware' do |app|
49
56
  app.middleware.insert_after ActionDispatch::Static, Middleware
50
57
  # app.middleware.insert_after ActionDispatch::Static, Rack::ETag, 'no-cache'
@@ -70,12 +77,13 @@ module Proscenium
70
77
  end
71
78
  end
72
79
 
73
- # Monkey path ActionDispatch::DebugView to use our custom error template on BuildError exceptions.
74
- class ActionDispatch::DebugView
75
- def initialize(assigns)
76
- paths = [RESCUES_TEMPLATE_PATH,
77
- Proscenium::Railtie.root.join('lib', 'proscenium', 'templates').to_s]
78
- lookup_context = ActionView::LookupContext.new(paths)
79
- super(lookup_context, assigns, nil)
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
80
88
  end
81
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">
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium
4
- VERSION = '0.11.0.pre.11'
4
+ VERSION = '0.11.0.pre.13'
5
5
  end
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.11
4
+ version: 0.11.0.pre.13
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-10 00:00:00.000000000 Z
11
+ date: 2023-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport