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 +4 -4
- data/lib/proscenium/ensure_loaded.rb +14 -10
- data/lib/proscenium/ext/proscenium +0 -0
- data/lib/proscenium/railtie.rb +2 -0
- data/lib/proscenium/registry/ruby_gem_package.rb +2 -0
- data/lib/proscenium/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d85881b731ec3a30d6baabb1f4626ba8e0900143238ec61b45f86c21fb37ed3c
|
4
|
+
data.tar.gz: 7e3e70a336f4bf3b3d8257c632960e1b2f88538ba2843572e09a57c3dcbfaddb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
data/lib/proscenium/railtie.rb
CHANGED
@@ -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
|
|
data/lib/proscenium/version.rb
CHANGED
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.
|
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:
|
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.
|
268
|
+
rubygems_version: 3.6.7
|
255
269
|
specification_version: 4
|
256
270
|
summary: The engine powering your Rails frontend
|
257
271
|
test_files: []
|