proscenium 0.19.0.beta14-aarch64-linux → 0.19.0.beta15-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: e5f141de675cc72b6dea06cd91559cb7ad9181cb8935ec86d99f9893d0a6aaf6
4
- data.tar.gz: a10dc4ab34022cb848110c11dd545a86f76d71162f87901553b152010e3e7650
3
+ metadata.gz: 9b61c1cf96f34b0deb2f9a92814814969745877ff75b45d29694e19de551eb32
4
+ data.tar.gz: d9dff569bac8a7c2c0d5d4cdd0756cc84e121614dbebb706b8f9fea6b9a27d15
5
5
  SHA512:
6
- metadata.gz: acb59068d4958e83c1b8dda9b88f7010c34286d0da77f6adbbc18ea04d3aa0a6b52e54d6f895a2b92b4617c26e76f4e3f8178ccba60f9f4cce44f7bc30fbfbb0
7
- data.tar.gz: 2b3f899ba54cb2b09f97bed378ed3f6f721cee8920332dd67f330d0dbd8751e7d62e789df1a998ccccded51d04c8d1b862ab1e262d3ee3649f83dbb29577eab9
6
+ metadata.gz: ebf70277d183d76b8a743daf9322de90634b7174548eb12cca3ec714d0ff6bb2e80ef867498ef275abe57a5805eda422117ba264ee681547a04a8c6a3adc758b
7
+ data.tar.gz: '097323cc7776fd4eed2a456c50139109fc000bb4496b2f3002de5e59320c3e476b50203777471869bc253b3f5d9540ed0b9f25390891dc737f46e02db8ca6852'
@@ -13,7 +13,7 @@ module Proscenium
13
13
  bundle = {}
14
14
  specs.each do |s|
15
15
  bundle[s.name] = if s.name == 'proscenium'
16
- Pathname(s.full_gem_path).join('lib/proscenium/ui').to_s
16
+ Pathname(s.full_gem_path).join('lib/proscenium').to_s
17
17
  else
18
18
  s.full_gem_path
19
19
  end
@@ -1,11 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium::CssModule
4
- extend ActiveSupport::Autoload
5
-
6
- autoload :Path
7
- autoload :Transformer
8
-
9
4
  class TransformError < StandardError
10
5
  def initialize(name, additional_msg = nil)
11
6
  msg = "Failed to transform CSS module `#{name}`"
Binary file
@@ -2,15 +2,9 @@
2
2
 
3
3
  module Proscenium
4
4
  class Middleware
5
- extend ActiveSupport::Autoload
6
-
7
5
  # Error when the build command fails.
8
6
  class BuildError < StandardError; end
9
7
 
10
- autoload :Base
11
- autoload :Esbuild
12
- autoload :RubyGems
13
-
14
8
  def initialize(app)
15
9
  @app = app
16
10
 
@@ -4,12 +4,6 @@ require 'phlex-rails'
4
4
 
5
5
  module Proscenium
6
6
  class Phlex < ::Phlex::HTML
7
- extend ActiveSupport::Autoload
8
-
9
- autoload :CssModules
10
- autoload :ReactComponent
11
- autoload :AssetInclusions
12
-
13
7
  include Proscenium::SourcePath
14
8
  include CssModules
15
9
  include AssetInclusions
@@ -55,15 +55,5 @@ module Proscenium
55
55
  ActionView::PartialRenderer.prepend Monkey::PartialRenderer
56
56
  end
57
57
  end
58
-
59
- initializer 'proscenium.public_path' do |app|
60
- if app.config.public_file_server.enabled
61
- headers = app.config.public_file_server.headers || {}
62
- index = app.config.public_file_server.index_name || 'index'
63
-
64
- app.middleware.insert_after(ActionDispatch::Static, ActionDispatch::Static,
65
- root.join('public').to_s, index:, headers:)
66
- end
67
- end
68
58
  end
69
59
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium
4
- VERSION = '0.19.0.beta14'
4
+ VERSION = '0.19.0.beta15'
5
5
  end
data/lib/proscenium.rb CHANGED
@@ -1,10 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'active_support'
3
+ require 'zeitwerk'
4
+ require 'proscenium/railtie'
4
5
 
5
- module Proscenium
6
- extend ActiveSupport::Autoload
6
+ loader = Zeitwerk::Loader.for_gem
7
+ loader.ignore "#{__dir__}/proscenium/core_ext/object/css_module_ivars.rb"
8
+ loader.setup
7
9
 
10
+ module Proscenium
8
11
  FILE_EXTENSIONS = ['js', 'mjs', 'ts', 'jsx', 'tsx', 'css', 'js.map', 'mjs.map', 'jsx.map',
9
12
  'ts.map', 'tsx.map', 'css.map'].freeze
10
13
 
@@ -20,22 +23,6 @@ module Proscenium
20
23
  # Environment variables that should always be passed to the builder.
21
24
  DEFAULT_ENV_VARS = Set['RAILS_ENV', 'NODE_ENV'].freeze
22
25
 
23
- autoload :SourcePath
24
- autoload :Utils
25
- autoload :Monkey
26
- autoload :Middleware
27
- autoload :EnsureLoaded
28
- autoload :SideLoad
29
- autoload :CssModule
30
- autoload :ReactComponentable
31
- autoload :ViewComponent
32
- autoload :Phlex
33
- autoload :Helper
34
- autoload :Builder
35
- autoload :Importer
36
- autoload :Resolver
37
- autoload :BundledGems
38
-
39
26
  class Deprecator
40
27
  def deprecation_warning(name, message, _caller_backtrace = nil)
41
28
  msg = "`#{name}` is deprecated and will be removed in a near future release of Proscenium"
@@ -65,5 +52,3 @@ module Proscenium
65
52
  end
66
53
  end
67
54
  end
68
-
69
- 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.19.0.beta14
4
+ version: 0.19.0.beta15
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-23 00:00:00.000000000 Z
11
+ date: 2025-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -72,6 +72,20 @@ dependencies:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
74
  version: 1.1.1
75
+ - !ruby/object:Gem::Dependency
76
+ name: zeitwerk
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: 2.7.2
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: 2.7.2
75
89
  description:
76
90
  email:
77
91
  - joel@developwithstyle.com