proscenium 0.19.0.beta14-x86_64-darwin → 0.19.0.beta15-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 +4 -4
 - data/lib/proscenium/bundled_gems.rb +1 -1
 - data/lib/proscenium/css_module.rb +0 -5
 - data/lib/proscenium/middleware.rb +0 -6
 - data/lib/proscenium/phlex.rb +0 -6
 - data/lib/proscenium/railtie.rb +0 -10
 - data/lib/proscenium/version.rb +1 -1
 - data/lib/proscenium.rb +6 -21
 - metadata +16 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 0606b1387a069c8978499997374959f827b243b08b526f335bcec1da93c59645
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 53982d087bc524a963a60110406bea2ad90c09eed9ce7cda8fd280c5806167f2
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: fa291b698f79fb9a93f5dd9b05c564eb3b0f15728ad7bca82d09fdd2c8ed6be5473e17eafb00788fb19513f27c371f1c8b6c7cad9100717e8211d0de34e34ee0
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 1dc32fd9e89027d12ae34fc425f1488b404e11704fc634377fc87104ca2cecf4ab6c858224ddb030e9c43df64daf455f2fba4056a0085cd82309f7c659ab7973
         
     | 
| 
         @@ -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}`"
         
     | 
| 
         @@ -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 
     | 
    
         | 
    
        data/lib/proscenium/phlex.rb
    CHANGED
    
    | 
         @@ -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
         
     | 
    
        data/lib/proscenium/railtie.rb
    CHANGED
    
    | 
         @@ -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
         
     | 
    
        data/lib/proscenium/version.rb
    CHANGED
    
    
    
        data/lib/proscenium.rb
    CHANGED
    
    | 
         @@ -1,10 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # frozen_string_literal: true
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            require ' 
     | 
| 
      
 3 
     | 
    
         
            +
            require 'zeitwerk'
         
     | 
| 
      
 4 
     | 
    
         
            +
            require 'proscenium/railtie'
         
     | 
| 
       4 
5 
     | 
    
         | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
      
 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. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.19.0.beta15
         
     | 
| 
       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- 
     | 
| 
      
 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
         
     |