proscenium 0.13.0-x86_64-darwin → 0.15.0.beta.1-x86_64-darwin

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,12 +14,14 @@ class Proscenium::ViewComponent < ViewComponent::Base
14
14
 
15
15
  module Sideload
16
16
  def before_render
17
- Proscenium::SideLoad.sideload_inheritance_chain self
17
+ Proscenium::SideLoad.sideload_inheritance_chain self, controller.sideload_assets_options
18
18
 
19
19
  super
20
20
  end
21
21
  end
22
22
 
23
+ class_attribute :sideload_assets_options
24
+
23
25
  class << self
24
26
  attr_accessor :abstract_class
25
27
 
@@ -28,5 +30,9 @@ class Proscenium::ViewComponent < ViewComponent::Base
28
30
 
29
31
  super
30
32
  end
33
+
34
+ def sideload_assets(value)
35
+ self.sideload_assets_options = value
36
+ end
31
37
  end
32
38
  end
data/lib/proscenium.rb CHANGED
@@ -46,6 +46,16 @@ module Proscenium
46
46
  "Path #{@path.inspect} cannot be resolved"
47
47
  end
48
48
  end
49
+
50
+ class << self
51
+ def config
52
+ @config ||= Railtie.config.proscenium
53
+ end
54
+
55
+ def cache
56
+ @cache ||= config.cache || ActiveSupport::Cache::NullStore.new
57
+ end
58
+ end
49
59
  end
50
60
 
51
61
  require 'proscenium/railtie'
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.13.0
4
+ version: 0.15.0.beta.1
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-11-17 00:00:00.000000000 Z
11
+ date: 2024-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  requirements: []
152
- rubygems_version: 3.4.22
152
+ rubygems_version: 3.5.5
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: The engine powering your Rails frontend