proscenium 0.11.0.pre.12-x86_64-linux → 0.11.0-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: 8c50db1d900a00b8c85feb758fcbe99c2a189af4b1b21a1d0eb0ccf563f15463
4
- data.tar.gz: 48ba1636e92291e37ff2cef6e1dd2f583de47b8f3b384e541e98fdbc6649b94b
3
+ metadata.gz: c6d0b7bc727c5204adc7752cea2888dab566c2831b547069101706c0385969c1
4
+ data.tar.gz: dd6c21954e8ab827c65e215db2dfc6d095672b28442db5b0ff54296cddd1d421
5
5
  SHA512:
6
- metadata.gz: 9847c5eaf5a274e5d2323930da9aea499c8e6361cf3aefb726eadfc10e9f711cd647f760354f756b85234cd121f5ccf921ddf2673bac7ea3878caddc30f86972
7
- data.tar.gz: 2768f6e7ddddd38f20288522d3bcf1edee08e8e6f097d2c343d57d8eaee19c4977d5f14781c5e7d3e5de9d259f0ce0ecdc4e532e44e6cc3a15cf88e62c4aa889
6
+ metadata.gz: 127ef4f1d15c73aca068cd303c3a59685f9ed762e9e56bc2624800fa8cfac890ee2d7ab9b3420029eb3f15049e02ad015954f06cf5c5bb72343461a438e14fb1
7
+ data.tar.gz: 6e9875c9cbe9b26310fd2373b875c9c87c36b12c06790f6b7a150b84b6ea74c2d5e2e401b643e2447b5a2f8092704543e6861470f608768b8fcc2af670f8c23d
data/README.md CHANGED
@@ -227,6 +227,16 @@ import utils from '/lib/utils'
227
227
  import constants from './constants'
228
228
  ```
229
229
 
230
+ ```css /app/views/layouts/application.css
231
+ @import '/lib/reset';
232
+ ```
233
+
234
+ ```css /lib/reset.css
235
+ body {
236
+ /* some styles... */
237
+ }
238
+ ```
239
+
230
240
  ## Import Maps
231
241
 
232
242
  > **[WIP]**
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'
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
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 00:00:00.000000000 Z
11
+ date: 2023-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -144,9 +144,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
144
  version: 2.7.0
145
145
  required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - ">"
147
+ - - ">="
148
148
  - !ruby/object:Gem::Version
149
- version: 1.3.1
149
+ version: '0'
150
150
  requirements: []
151
151
  rubygems_version: 3.4.20
152
152
  signing_key: