proscenium 0.19.0.beta9-x86_64-linux → 0.19.0.beta10-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/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: 9d7c11fce3067a535034bfcd77fb6d942bb9c1b9ef3a519ba0581d912d120365
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 63e82522662698b371e677c9e6074121f14778a664520d79e9786a5146f217cc
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 550a0a1ad554f6eadef647338db8d04c3f4904ec7680d8060e8dd355332b1095358240e2fa3cdd9814de59e15ac12bd5a6f1ae1fe0ba2c9653d5ba82ab716fee
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 30b6dc08dab690167777c50532dd073c3b442d4baf7f9fa1e487eda3182e4a79424d0d3a3e0cec36d20d686dd8aed5d209bf0b26589c090af26a5a68b292065b
         
     | 
| 
         @@ -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-linux
         
     | 
| 
       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: []
         
     |