proscenium 0.19.0.beta9-x86_64-darwin → 0.19.0.beta10-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/ensure_loaded.rb +14 -10
- data/lib/proscenium/ext/proscenium +0 -0
- data/lib/proscenium/railtie.rb +2 -0
- data/lib/proscenium/registry/ruby_gem_package.rb +2 -0
- data/lib/proscenium/version.rb +1 -1
- metadata +17 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: e33fffed8e878611492a92f37fa000bc2e52bfb6b63523ab97829dff51c2f8ae
         | 
| 4 | 
            +
              data.tar.gz: 4d9dc1a4e0e780c6d65c3653de3125d72f5b550489c893505b4fbbed0eca7a98
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 34f0bdb142fb05bd0ce5e600e9d892d4d0f6219365edf1e4785a5cdc03620d50d6e49b5d88a702dbd8ba0b2e813b7d51cc80ea6ecd71517b50bbafc95a7706e3
         | 
| 7 | 
            +
              data.tar.gz: 737288419526206609025a3f5452fa3345b94acb474ac25b181da9d7bbffb6553d55493fd2aa860906bf5a7cb76cf004b819c19e91b5dfc9fc0a2b1b75fb2c60
         | 
| @@ -7,17 +7,21 @@ module Proscenium | |
| 7 7 | 
             
                def self.included(child)
         | 
| 8 8 | 
             
                  child.class_eval do
         | 
| 9 9 | 
             
                    append_after_action do
         | 
| 10 | 
            -
                      if request.format.html? && Importer.imported?
         | 
| 11 | 
            -
                         | 
| 12 | 
            -
                           | 
| 13 | 
            -
             | 
| 14 | 
            -
             | 
| 15 | 
            -
             | 
| 10 | 
            +
                      if request.format.html? && !response.redirect? && Importer.imported?
         | 
| 11 | 
            +
                        msg = <<-TEXT.squish
         | 
| 12 | 
            +
                          There are side loaded and imported assets to be included, but they have not been
         | 
| 13 | 
            +
                          included in the page. Did you forget to add the `#include_assets` helper in your
         | 
| 14 | 
            +
                          views? These assets were imported but not included:
         | 
| 15 | 
            +
                          #{Importer.imported.keys.to_sentence}
         | 
| 16 | 
            +
                        TEXT
         | 
| 16 17 |  | 
| 17 | 
            -
                        if  | 
| 18 | 
            -
                           | 
| 19 | 
            -
             | 
| 20 | 
            -
             | 
| 18 | 
            +
                        if Proscenium.config.ensure_loaded == :log
         | 
| 19 | 
            +
                          Rails.logger.warn do
         | 
| 20 | 
            +
                            "#{ActiveSupport::LogSubscriber.new.send(:color, '  [Proscenium]', nil,
         | 
| 21 | 
            +
                                                                     bold: true)} #{msg}"
         | 
| 22 | 
            +
                          end
         | 
| 23 | 
            +
                        elsif Proscenium.config.ensure_loaded == :raise
         | 
| 24 | 
            +
                          raise NotIncludedError, msg
         | 
| 21 25 | 
             
                        end
         | 
| 22 26 | 
             
                      end
         | 
| 23 27 | 
             
                    end
         | 
| Binary file | 
    
        data/lib/proscenium/railtie.rb
    CHANGED
    
    | @@ -15,6 +15,8 @@ module Proscenium | |
| 15 15 | 
             
                config.proscenium.side_load = true
         | 
| 16 16 | 
             
                config.proscenium.code_splitting = true
         | 
| 17 17 |  | 
| 18 | 
            +
                config.proscenium.ensure_loaded = :raise
         | 
| 19 | 
            +
             | 
| 18 20 | 
             
                config.proscenium.cache_query_string = Rails.env.production? && ENV.fetch('REVISION', nil)
         | 
| 19 21 | 
             
                config.proscenium.cache_max_age = 2_592_000 # 30 days
         | 
| 20 22 |  | 
    
        data/lib/proscenium/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,13 +1,13 @@ | |
| 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.beta10
         | 
| 5 5 | 
             
            platform: x86_64-darwin
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Joel Moss
         | 
| 8 8 | 
             
            bindir: bin
         | 
| 9 9 | 
             
            cert_chain: []
         | 
| 10 | 
            -
            date:  | 
| 10 | 
            +
            date: 1980-01-02 00:00:00.000000000 Z
         | 
| 11 11 | 
             
            dependencies:
         | 
| 12 12 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 13 13 | 
             
              name: countries
         | 
| @@ -37,6 +37,20 @@ dependencies: | |
| 37 37 | 
             
                - - "~>"
         | 
| 38 38 | 
             
                  - !ruby/object:Gem::Version
         | 
| 39 39 | 
             
                    version: 1.17.0
         | 
| 40 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 41 | 
            +
              name: gems
         | 
| 42 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 43 | 
            +
                requirements:
         | 
| 44 | 
            +
                - - "~>"
         | 
| 45 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 46 | 
            +
                    version: 1.3.0
         | 
| 47 | 
            +
              type: :runtime
         | 
| 48 | 
            +
              prerelease: false
         | 
| 49 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 50 | 
            +
                requirements:
         | 
| 51 | 
            +
                - - "~>"
         | 
| 52 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 53 | 
            +
                    version: 1.3.0
         | 
| 40 54 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 41 55 | 
             
              name: literal
         | 
| 42 56 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -251,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 251 265 | 
             
                - !ruby/object:Gem::Version
         | 
| 252 266 | 
             
                  version: '0'
         | 
| 253 267 | 
             
            requirements: []
         | 
| 254 | 
            -
            rubygems_version: 3.6. | 
| 268 | 
            +
            rubygems_version: 3.6.7
         | 
| 255 269 | 
             
            specification_version: 4
         | 
| 256 270 | 
             
            summary: The engine powering your Rails frontend
         | 
| 257 271 | 
             
            test_files: []
         |