proscenium 0.19.0.beta16-x86_64-darwin → 0.19.0.beta17-x86_64-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: 002f6d52a7e9f1972df4f0053da68778c8ec89ab93627252165dfa9886f15e2d
4
- data.tar.gz: 004ec496876d4181a668862707a1fe189c462a4a36f4498eec52f49a3b4368b3
3
+ metadata.gz: 9f6bdfc89db667f5e044b6846325ff3615d04e1a9cf44f5ba173325e20dce734
4
+ data.tar.gz: 34de8a23b274fff2d4b5d6c22bcf1bfe8b1bea0dab8a6ecebc88bdbaac173f10
5
5
  SHA512:
6
- metadata.gz: 11ce8db264a82caf509c8fcda918fd92c92e17b7df26596934e03c0ae8db6070bc72da9bbfaaaa74f2ed6fef1bfca9826494f5393b5087b642899e3c330ba110
7
- data.tar.gz: d971aadbd62671f18369b66cad036ce5b1673d366b0b8209019439e2baf2d5bc833ded1e5a2b80eebe2609a836603db1451dfee6965b60982c582d43562c926f
6
+ metadata.gz: 5ddc4d6edd04f57c0c119773e45a6747ac4a2feec7faa27109ac1ebd4d5d8bbee78f26caf63b49838cab18fd8413f1e3ec9ed159d230684ebeddaee423ebe0b1
7
+ data.tar.gz: e3352e7f07ca3f8d0e79abd05446228ba2595c11ffa94ff09a10e30a5a2bbd4dec44bf8b8a9fe1ee99882492f5c50ee5db429da035ab70258c425b2caa8f17e4
@@ -16,7 +16,7 @@ module Proscenium
16
16
 
17
17
  module Request
18
18
  extend FFI::Library
19
- ffi_lib ENV.fetch('PROSCENIUM_BIN', Pathname.new(__dir__).join('ext/proscenium').to_s)
19
+ ffi_lib Pathname.new(__dir__).join('ext/proscenium').to_s
20
20
 
21
21
  enum :environment, [:development, 1, :test, :production]
22
22
 
@@ -1,6 +1,11 @@
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
+
4
9
  class TransformError < StandardError
5
10
  def initialize(name, additional_msg = nil)
6
11
  msg = "Failed to transform CSS module `#{name}`"
@@ -2,9 +2,15 @@
2
2
 
3
3
  module Proscenium
4
4
  class Middleware
5
+ extend ActiveSupport::Autoload
6
+
5
7
  # Error when the build command fails.
6
8
  class BuildError < StandardError; end
7
9
 
10
+ autoload :Base
11
+ autoload :Esbuild
12
+ autoload :RubyGems
13
+
8
14
  def initialize(app)
9
15
  @app = app
10
16
 
@@ -4,6 +4,12 @@ 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
+
7
13
  include Proscenium::SourcePath
8
14
  include CssModules
9
15
  include AssetInclusions
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium
4
- VERSION = '0.19.0.beta16'
4
+ VERSION = '0.19.0.beta17'
5
5
  end
data/lib/proscenium.rb CHANGED
@@ -1,13 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'zeitwerk'
4
- require 'proscenium/railtie'
5
-
6
- loader = Zeitwerk::Loader.for_gem
7
- loader.ignore "#{__dir__}/proscenium/core_ext/object/css_module_ivars.rb"
8
- loader.setup
3
+ require 'active_support'
9
4
 
10
5
  module Proscenium
6
+ extend ActiveSupport::Autoload
7
+
11
8
  FILE_EXTENSIONS = ['js', 'mjs', 'ts', 'jsx', 'tsx', 'css', 'js.map', 'mjs.map', 'jsx.map',
12
9
  'ts.map', 'tsx.map', 'css.map'].freeze
13
10
 
@@ -23,6 +20,21 @@ module Proscenium
23
20
  # Environment variables that should always be passed to the builder.
24
21
  DEFAULT_ENV_VARS = Set['RAILS_ENV', 'NODE_ENV'].freeze
25
22
 
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 :Phlex
32
+ autoload :Helper
33
+ autoload :Builder
34
+ autoload :Importer
35
+ autoload :Resolver
36
+ autoload :BundledGems
37
+
26
38
  class Deprecator
27
39
  def deprecation_warning(name, message, _caller_backtrace = nil)
28
40
  msg = "`#{name}` is deprecated and will be removed in a near future release of Proscenium"
@@ -52,3 +64,5 @@ module Proscenium
52
64
  end
53
65
  end
54
66
  end
67
+
68
+ 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.beta16
4
+ version: 0.19.0.beta17
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: 2025-04-26 00:00:00.000000000 Z
11
+ date: 2025-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -72,20 +72,6 @@ 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
89
75
  description:
90
76
  email:
91
77
  - joel@developwithstyle.com