proscenium 0.11.0.pre.11-x86_64-darwin → 0.11.0.pre.12-x86_64-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: bbaa1085da775617ff05dd56b98b9596a269ce6dbdcbf2022298b805ba60d9d1
4
- data.tar.gz: 12cba17bddc0b42ef9e9352a816711ab4dca1ee8b2c1090c95774aaf32772c1f
3
+ metadata.gz: 97d3bb9554ee30ec6306490e81cbb59466dfefa91b807cda872ab5ef618bfbc2
4
+ data.tar.gz: e4c9e0e07e8f9c4f9c3fbc5922c145b3726e54db61143e57aa6f7a6aa9df0749
5
5
  SHA512:
6
- metadata.gz: c8f0ca2517304db1a98e07f86b6f170de1a798e73044914974dc9997b8ef9475f71926466ed40f035b02bafba2b35206dcbefb66573c82def82e6c36ffb9a8e1
7
- data.tar.gz: 5c575c1788cd624ed78d358e4d5a01158a532f6e16676d86fa267aadd7eb6300684f6a9cbf9038e43dd849af81de6b0459c533323def4cd9cdbc3a354c457bad
6
+ metadata.gz: d0304128e7b2ca2e02508f022beea6fb195cc4465bdd11c9145bee7a4243c28cd1da368a9fe7da78ad1bec9e98ad22201b283d4d8bacde63586d0c05b1d816e4
7
+ data.tar.gz: 47a4c3ba8d6db611f22d78e050b18c3d8845a36acbd865692e17d6da9f8b103ff28641fa16463ce8ad34aa51799de8222ae401439732342632c067c9002ee07d
Binary file
@@ -45,6 +45,11 @@ module Proscenium
45
45
  'Proscenium::Builder::BuildError' => 'build_error'
46
46
  }
47
47
 
48
+ initializer 'proscenium.debugging' do
49
+ ActionDispatch::DebugView::RESCUES_TEMPLATE_PATHS << root.join('lib', 'proscenium',
50
+ 'templates').to_s
51
+ end
52
+
48
53
  initializer 'proscenium.middleware' do |app|
49
54
  app.middleware.insert_after ActionDispatch::Static, Middleware
50
55
  # app.middleware.insert_after ActionDispatch::Static, Rack::ETag, 'no-cache'
@@ -69,13 +74,3 @@ module Proscenium
69
74
  end
70
75
  end
71
76
  end
72
-
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
- end
81
- end
@@ -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.12'
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.12
5
5
  platform: x86_64-darwin
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-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport