proscenium 0.19.0.beta9-aarch64-linux → 0.19.0.beta10-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: c28443bd291a5fe78a46a1c1210f17f8cdfb87561589fd2b396abb5dbb32afd2
4
- data.tar.gz: 30341a580ecf30d1c310394af9f7e63e5b01e1b3bc2644dfd3a0d140516fefda
3
+ metadata.gz: d85881b731ec3a30d6baabb1f4626ba8e0900143238ec61b45f86c21fb37ed3c
4
+ data.tar.gz: 7e3e70a336f4bf3b3d8257c632960e1b2f88538ba2843572e09a57c3dcbfaddb
5
5
  SHA512:
6
- metadata.gz: 11a2d8682f9de2e3ec48383e185001937ebf1c704874aa4f24ee59a1e2659a18ed671507e26a61e6cb182104cc21ec9d3a37931a933217cca6aaf80df32ae420
7
- data.tar.gz: 9bd6ee3bbf5a6e4517e804d61c11d4430ab6a8031572eed99ab8e5be8638f9d8b5a82c3a26f1f93b78c1b4cf5976fabe3301edb9c9652454623450a56a6d0829
6
+ metadata.gz: 0a5d98814450ecc5591aba10d0e3f048b214d4161a69120f7dd92a50a2f7960def4d967407cdc86da2c4535fefe14ddc647e309efeca08cf9ee242f81bc77cfe
7
+ data.tar.gz: d2d444de8956c5bef7999d687470a7d61f6b66d2ad744a9761bff9a098fe35c8729ca41368c3674e6257f581e8a835e96c96013445e5966027a164a08f41634e
@@ -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
@@ -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
 
@@ -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,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium
4
- VERSION = '0.19.0.beta9'
4
+ VERSION = '0.19.0.beta10'
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proscenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0.beta9
4
+ version: 0.19.0.beta10
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Joel Moss
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-09 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: countries
@@ -37,6 +37,20 @@ dependencies:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: 1.17.0
40
+ - !ruby/object:Gem::Dependency
41
+ name: gems
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 1.3.0
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: 1.3.0
40
54
  - !ruby/object:Gem::Dependency
41
55
  name: literal
42
56
  requirement: !ruby/object:Gem::Requirement
@@ -251,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
265
  - !ruby/object:Gem::Version
252
266
  version: '0'
253
267
  requirements: []
254
- rubygems_version: 3.6.5
268
+ rubygems_version: 3.6.7
255
269
  specification_version: 4
256
270
  summary: The engine powering your Rails frontend
257
271
  test_files: []