proscenium 0.19.0.beta8-arm64-darwin → 0.19.0.beta10-arm64-darwin

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: 0e35e85065edcaa6f56c0e4b5d0059484ca71a5d320801fe04d20e9e49920b6f
4
- data.tar.gz: 1f12d90505c42458760e84b69991fe1f743cf815b16018ebb77d6ee30ed9db6b
3
+ metadata.gz: 9bc9284d5aed881e0c759fe851cdd8d00c7f7026df4f5be86352bb2620aac5f7
4
+ data.tar.gz: 9b6d9aa232e49d65c7aff9d15c8565da6bb51c0a68f647f3078e5313306b3bf3
5
5
  SHA512:
6
- metadata.gz: 7a6f5f5ec41879568cc840d69c3738f807677bbd9cea67893cfac846864b2da2c8ba4b4b4dfc8d92452381551d6c301f72c1cabb46cd83e2b683cb563927d453
7
- data.tar.gz: afaa47b0f063e708012970e11d93fa487c45e14e13c66af80067d49e3eae1b428df67feba39c2c69edceeb1580f39667bc8fa3c340faa7eed780f1c0cb60bf35
6
+ metadata.gz: 30f61a258c9e5d391f48ee60e7f1c6e35fb76b1d1110bab970f6847afc2cf40c5d2cc54c28cd7bbb9163bcddeddf866493e41b59e71ed55046b27953e917c3a8
7
+ data.tar.gz: 16ef8b3f62fed8f2882fcbd795a8c43ec25cb8effb52084fd31d695cd4e21a42b0028dd3ebc2c894d0ac4c8ad6175e7348c9bb4332c4ddf0778e88a9c3781746
@@ -7,17 +7,21 @@ module Proscenium
7
7
  def self.included(child)
8
8
  child.class_eval do
9
9
  append_after_action do
10
- if request.format.html? && Importer.imported?
11
- if Importer.js_imported?
12
- raise NotIncludedError, 'There are side loaded javascripts to be included, but ' \
13
- 'they have not been included in the page. Did you forget ' \
14
- 'to add the `#include_assets` helper in your views?'
15
- end
10
+ if request.format.html? && !response.redirect? && Importer.imported?
11
+ msg = <<-TEXT.squish
12
+ There are side loaded and imported assets to be included, but they have not been
13
+ included in the page. Did you forget to add the `#include_assets` helper in your
14
+ views? These assets were imported but not included:
15
+ #{Importer.imported.keys.to_sentence}
16
+ TEXT
16
17
 
17
- if Importer.css_imported?
18
- raise NotIncludedError, 'There are side loaded stylesheets to be included, but ' \
19
- 'they have not been included in the page. Did you forget ' \
20
- 'to add the `#include_assets` helper in your views?'
18
+ if Proscenium.config.ensure_loaded == :log
19
+ Rails.logger.warn do
20
+ "#{ActiveSupport::LogSubscriber.new.send(:color, ' [Proscenium]', nil,
21
+ bold: true)} #{msg}"
22
+ end
23
+ elsif Proscenium.config.ensure_loaded == :raise
24
+ raise NotIncludedError, msg
21
25
  end
22
26
  end
23
27
  end
Binary file
@@ -23,6 +23,7 @@ module Proscenium
23
23
  end
24
24
 
25
25
  def after_template
26
+ self.class.resolved_css_module_paths ||= Concurrent::Set.new
26
27
  self.class.resolved_css_module_paths.each do |path|
27
28
  Proscenium::Importer.import path, sideloaded: true
28
29
  end
@@ -67,6 +68,8 @@ module Proscenium
67
68
  if attributes.key?(:class) && (attributes[:class] = tokens(attributes[:class])).include?('@')
68
69
  names = attributes[:class].is_a?(Array) ? attributes[:class] : attributes[:class].split
69
70
 
71
+ self.class.resolved_css_module_paths ||= Concurrent::Set.new
72
+
70
73
  attributes[:class] = cssm.class_names(*names).map do |name, path|
71
74
  self.class.resolved_css_module_paths << path if path
72
75
  name
@@ -15,6 +15,8 @@ module Proscenium
15
15
  config.proscenium.side_load = true
16
16
  config.proscenium.code_splitting = true
17
17
 
18
+ config.proscenium.ensure_loaded = :raise
19
+
18
20
  config.proscenium.cache_query_string = Rails.env.production? && ENV.fetch('REVISION', nil)
19
21
  config.proscenium.cache_max_age = 2_592_000 # 30 days
20
22
 
@@ -48,8 +50,6 @@ module Proscenium
48
50
 
49
51
  initializer 'proscenium.middleware' do |app|
50
52
  app.middleware.insert_after ActionDispatch::Static, Proscenium::Middleware
51
- # app.middleware.insert_after ActionDispatch::Static, Rack::ETag, 'no-cache'
52
- # app.middleware.insert_after ActionDispatch::Static, Rack::ConditionalGet
53
53
  end
54
54
 
55
55
  initializer 'proscenium.sideloading' do
@@ -77,14 +77,3 @@ module Proscenium
77
77
  end
78
78
  end
79
79
  end
80
-
81
- if Rails.gem_version < Gem::Version.new('7.1.0')
82
- class ActionDispatch::DebugView
83
- def initialize(assigns)
84
- tpl_path = Proscenium::Railtie.root.join('lib', 'proscenium', 'templates').to_s
85
- paths = [RESCUES_TEMPLATE_PATH, tpl_path]
86
- lookup_context = ActionView::LookupContext.new(paths)
87
- super(lookup_context, assigns, nil)
88
- end
89
- end
90
- end
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'gems'
4
+
3
5
  class Proscenium::Registry
4
6
  class RubyGemPackage < Package
5
7
  def version = spec['version']
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'literal'
4
-
5
3
  module Proscenium::UI
6
4
  class Breadcrumbs::Component < Component
7
5
  extend Literal::Properties
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'literal'
4
-
5
3
  module Proscenium::UI
6
4
  # Helpers to aid in building forms and associated inputs with built-in styling, and inspired by
7
5
  # Rails form helpers and SimpleForm.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium
4
- VERSION = '0.19.0.beta8'
4
+ VERSION = '0.19.0.beta10'
5
5
  end
data/lib/proscenium.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'active_support'
4
+ require 'active_record/type' # needed by Literal, even though we're not using ActiveRecord
5
+ require 'literal'
4
6
 
5
7
  module Proscenium
6
8
  extend ActiveSupport::Autoload
metadata CHANGED
@@ -1,63 +1,56 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proscenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0.beta8
4
+ version: 0.19.0.beta10
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Joel Moss
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-04-07 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
- name: activesupport
13
+ name: countries
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - ">="
16
+ - - "~>"
18
17
  - !ruby/object:Gem::Version
19
18
  version: 7.1.0
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '9.0'
23
19
  type: :runtime
24
20
  prerelease: false
25
21
  version_requirements: !ruby/object:Gem::Requirement
26
22
  requirements:
27
- - - ">="
23
+ - - "~>"
28
24
  - !ruby/object:Gem::Version
29
25
  version: 7.1.0
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '9.0'
33
26
  - !ruby/object:Gem::Dependency
34
- name: countries
27
+ name: ffi
35
28
  requirement: !ruby/object:Gem::Requirement
36
29
  requirements:
37
30
  - - "~>"
38
31
  - !ruby/object:Gem::Version
39
- version: 7.1.0
32
+ version: 1.17.0
40
33
  type: :runtime
41
34
  prerelease: false
42
35
  version_requirements: !ruby/object:Gem::Requirement
43
36
  requirements:
44
37
  - - "~>"
45
38
  - !ruby/object:Gem::Version
46
- version: 7.1.0
39
+ version: 1.17.0
47
40
  - !ruby/object:Gem::Dependency
48
- name: ffi
41
+ name: gems
49
42
  requirement: !ruby/object:Gem::Requirement
50
43
  requirements:
51
44
  - - "~>"
52
45
  - !ruby/object:Gem::Version
53
- version: 1.17.0
46
+ version: 1.3.0
54
47
  type: :runtime
55
48
  prerelease: false
56
49
  version_requirements: !ruby/object:Gem::Requirement
57
50
  requirements:
58
51
  - - "~>"
59
52
  - !ruby/object:Gem::Version
60
- version: 1.17.0
53
+ version: 1.3.0
61
54
  - !ruby/object:Gem::Dependency
62
55
  name: literal
63
56
  requirement: !ruby/object:Gem::Requirement
@@ -72,6 +65,20 @@ dependencies:
72
65
  - - "~>"
73
66
  - !ruby/object:Gem::Version
74
67
  version: '1.0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: phlex-rails
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '1.2'
75
+ type: :runtime
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '1.2'
75
82
  - !ruby/object:Gem::Dependency
76
83
  name: phonelib
77
84
  requirement: !ruby/object:Gem::Requirement
@@ -87,7 +94,7 @@ dependencies:
87
94
  - !ruby/object:Gem::Version
88
95
  version: 0.10.3
89
96
  - !ruby/object:Gem::Dependency
90
- name: railties
97
+ name: rails
91
98
  requirement: !ruby/object:Gem::Requirement
92
99
  requirements:
93
100
  - - ">="
@@ -112,15 +119,14 @@ dependencies:
112
119
  requirements:
113
120
  - - "~>"
114
121
  - !ruby/object:Gem::Version
115
- version: 1.0.1
122
+ version: 1.1.1
116
123
  type: :runtime
117
124
  prerelease: false
118
125
  version_requirements: !ruby/object:Gem::Requirement
119
126
  requirements:
120
127
  - - "~>"
121
128
  - !ruby/object:Gem::Version
122
- version: 1.0.1
123
- description:
129
+ version: 1.1.1
124
130
  email:
125
131
  - joel@developwithstyle.com
126
132
  executables: []
@@ -245,7 +251,6 @@ metadata:
245
251
  source_code_uri: https://github.com/joelmoss/proscenium
246
252
  changelog_uri: https://github.com/joelmoss/proscenium/releases
247
253
  rubygems_mfa_required: 'true'
248
- post_install_message:
249
254
  rdoc_options: []
250
255
  require_paths:
251
256
  - lib
@@ -260,8 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
265
  - !ruby/object:Gem::Version
261
266
  version: '0'
262
267
  requirements: []
263
- rubygems_version: 3.5.23
264
- signing_key:
268
+ rubygems_version: 3.6.7
265
269
  specification_version: 4
266
270
  summary: The engine powering your Rails frontend
267
271
  test_files: []