proscenium 0.11.0.pre.12-arm64-darwin → 0.11.0.pre.13-arm64-darwin

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: 9ffe99381b81904463f3fd0642fdcfba65ab28a37ac5811cc3dc029421003c0c
4
- data.tar.gz: ca30bf741c5ef28730d859427881a3b37c287b02404d67c0150e5951ec683ad6
3
+ metadata.gz: e194150bceddde6ff022e44c289dc906cbad5210c12abe16534dfa569543d1bb
4
+ data.tar.gz: 70b60910b4a8170698cb1ed89dd75841274b719671fbae683892e57561d1998f
5
5
  SHA512:
6
- metadata.gz: 9ab4117f18dbbf34b8c0e7afb591f6f00495753079850f5b2a67c282daed8b09a0d309ca74825b2ab4dae0140581823f0254de13b1b558a6bb903dce8ddf7326
7
- data.tar.gz: 460e679b5d5114922d3ecccc3add996438ee0a742f1ab0dcb4df941d8b78b3523f3d5467c98bc19489b197cac24558534221e2a6a1ce6a2bac3f6494c21d13d8
6
+ metadata.gz: 8120adfdf45a1ec565730f4075b313ad7f78e1bf246eafd6597007423af9169de4c6e605be6d78d672445b1fb33fa207db66d72d6360e03303c883b9b7ff866f
7
+ data.tar.gz: 5577d1d5952c57b9260d33a8f29231a88d69aafccd265438c04345a848214edc0de1694ccf2665cfe7bd6a57b05d0213a3774938d0797252d19c65ffca797c60
Binary file
@@ -46,8 +46,10 @@ module Proscenium
46
46
  }
47
47
 
48
48
  initializer 'proscenium.debugging' do
49
- ActionDispatch::DebugView::RESCUES_TEMPLATE_PATHS << root.join('lib', 'proscenium',
50
- 'templates').to_s
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">
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium
4
- VERSION = '0.11.0.pre.12'
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.12
4
+ version: 0.11.0.pre.13
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-11 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