proscenium 0.19.0.beta13-x86_64-linux → 0.19.0.beta14-x86_64-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: 6053a8594dc05a2a8fd0478c095e4e9eb5c94b92ad355f6d8e48520cf7e12f26
4
- data.tar.gz: 3da63172e773fb796f08bc50790c4816511a4375616335a35b4fb81a004eef91
3
+ metadata.gz: e873563c9a77dcdca3edc130c9e146b5712fe52cb5b874cd50ec80291a66762b
4
+ data.tar.gz: ed7b2290e50fcd5622190534815c4e136344b29d001e2ddd62d0843413887c93
5
5
  SHA512:
6
- metadata.gz: 8649f60e73d98ab8c8fc9b1a9f873ae0f957994fae62ae25262ea33ccaf2c84915699c9172c4bbea296b141bae98369a5b61c349b9365a871b679f1d468a9b22
7
- data.tar.gz: 284bb9d738c8874954b97c2f3e0cbf02e45564ed788cdfa07c17c675ded0c2e544cdaa92625619f7f256b097874bd4ceed513ef58bc4f418beb5d9a8b1783bc2
6
+ metadata.gz: bf252071f21c84c08e37c7fd6b57426bfef8ae9b12e437ca3febe1c0deb4b15144b1327b5dc9c1c7f167d22cc50583fd40af407ae3271b1beacc2b066fa2ec6f
7
+ data.tar.gz: aaec68852e210c8c9afea91f02b0a2e34b238bfe2e4782fe23bc48854f49ae5652dede4c94abe77c64a8e241a0eccb3076d08005a0a21f7802449137d0ef9473
@@ -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}`"
Binary file
@@ -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.beta13'
4
+ VERSION = '0.19.0.beta14'
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,22 @@ 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 :ViewComponent
32
+ autoload :Phlex
33
+ autoload :Helper
34
+ autoload :Builder
35
+ autoload :Importer
36
+ autoload :Resolver
37
+ autoload :BundledGems
38
+
26
39
  class Deprecator
27
40
  def deprecation_warning(name, message, _caller_backtrace = nil)
28
41
  msg = "`#{name}` is deprecated and will be removed in a near future release of Proscenium"
@@ -52,3 +65,5 @@ module Proscenium
52
65
  end
53
66
  end
54
67
  end
68
+
69
+ require 'proscenium/railtie'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proscenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0.beta13
4
+ version: 0.19.0.beta14
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Joel Moss
@@ -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