proscenium 0.19.0.beta13-arm64-darwin → 0.19.0.beta14-arm64-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 +4 -4
- data/lib/proscenium/css_module.rb +5 -0
- data/lib/proscenium/middleware.rb +6 -0
- data/lib/proscenium/phlex.rb +6 -0
- data/lib/proscenium/version.rb +1 -1
- data/lib/proscenium.rb +21 -6
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f44c5d31f0aecbe1a198e967b211b4b93f656c8f82b4ee6bf1872f8f39ed47b3
|
4
|
+
data.tar.gz: 4c3367d36deb8e70d3d00adf5a0510c88f6c9398524594c00a4a2ca4fcc363cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 984b940a748608e7ac20a8b02c712a8fc9fe53828588a193e24f134293a6431e5caa0272ba494b260d6919a992dc64aa4da7ebbd9b9c590ea9e962ac60209610
|
7
|
+
data.tar.gz: 2551aa7ad16b420b63da569a58740f2794fb60ce77749cf8ae28ee7633ae667be78632f308f61d5d672539d736a2a4a3080f58b474362be6c8b7104d0810169a
|
@@ -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
|
|
data/lib/proscenium/phlex.rb
CHANGED
@@ -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
|
data/lib/proscenium/version.rb
CHANGED
data/lib/proscenium.rb
CHANGED
@@ -1,13 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
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.
|
4
|
+
version: 0.19.0.beta14
|
5
5
|
platform: arm64-darwin
|
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
|