proscenium 0.19.0.beta14-x86_64-linux → 0.19.0.beta16-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 +4 -4
- data/lib/proscenium/builder.rb +1 -1
- data/lib/proscenium/bundled_gems.rb +1 -1
- data/lib/proscenium/css_module.rb +0 -5
- data/lib/proscenium/ext/proscenium +0 -0
- 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: 5918439e20e4d5d6369efe0024039308ed3883fbb62a9d9c8592ce5fbeffe739
         | 
| 4 | 
            +
              data.tar.gz: 9d6c0eb5da2a7ac7ca64116f9276b09378d2efbcc148ac7306eaf29ae9e6f6d8
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 29ab69f3f678c96c7a33613573d111058e70b8280c609c6267da2285af31b7edb9a2ed920bea08a61541d518e835db42da7a3d9f9d9d3c7d0775607dbfffae2a
         | 
| 7 | 
            +
              data.tar.gz: 97459db33bf3cd2534ce10839dbf33c0bd6b7f210e4140e9669345c0afb0fc308a6126e9149c747119374550511660147d841cf3d0bd19d4405c9dc70f8bf1fd
         | 
    
        data/lib/proscenium/builder.rb
    CHANGED
    
    | @@ -16,7 +16,7 @@ module Proscenium | |
| 16 16 |  | 
| 17 17 | 
             
                module Request
         | 
| 18 18 | 
             
                  extend FFI::Library
         | 
| 19 | 
            -
                  ffi_lib Pathname.new(__dir__).join('ext/proscenium').to_s
         | 
| 19 | 
            +
                  ffi_lib ENV.fetch('PROSCENIUM_BIN', Pathname.new(__dir__).join('ext/proscenium').to_s)
         | 
| 20 20 |  | 
| 21 21 | 
             
                  enum :environment, [:development, 1, :test, :production]
         | 
| 22 22 |  | 
| @@ -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 |  | 
    
        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.beta16
         | 
| 5 5 | 
             
            platform: x86_64-linux
         | 
| 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-26 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
         |