sprockets-rails 3.0.3 → 3.0.4
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/sprockets/rails/helper.rb +8 -8
 - data/lib/sprockets/rails/version.rb +1 -1
 - data/lib/sprockets/railtie.rb +3 -2
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: a7cb5a6b14d9c7bb706dad33e5d930e8f528d212
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 76221e850d34d167aa5a26d7653248d0197482c5
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 9fec7c6db539f43f5527edb868e65a1a73530be359faa79854cf12a8702b9ec9fb3b0a6a99706664bc6662d2b09a3420dbfb65c98c64df2d7a00b00403618cbe
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: b7e049037095f8f7890236d0dc08f4bdbea922b2b50ed7155a498b8f0cd2195a3f1eb076acf932f34fe93fb2398700321fb70e7a1ff8aeaad1a6162c3e593f88
         
     | 
| 
         @@ -125,13 +125,13 @@ module Sprockets 
     | 
|
| 
       125 
125 
     | 
    
         | 
| 
       126 
126 
     | 
    
         
             
                    if options["debug"] != false && request_debug_assets?
         
     | 
| 
       127 
127 
     | 
    
         
             
                      sources.map { |source|
         
     | 
| 
       128 
     | 
    
         
            -
                        if asset = lookup_debug_asset(source, : 
     | 
| 
      
 128 
     | 
    
         
            +
                        if asset = lookup_debug_asset(source, type: :javascript)
         
     | 
| 
       129 
129 
     | 
    
         
             
                          if asset.respond_to?(:to_a)
         
     | 
| 
       130 
130 
     | 
    
         
             
                            asset.to_a.map do |a|
         
     | 
| 
       131 
     | 
    
         
            -
                              super(path_to_javascript(a.logical_path, : 
     | 
| 
      
 131 
     | 
    
         
            +
                              super(path_to_javascript(a.logical_path, debug: true), options)
         
     | 
| 
       132 
132 
     | 
    
         
             
                            end
         
     | 
| 
       133 
133 
     | 
    
         
             
                          else
         
     | 
| 
       134 
     | 
    
         
            -
                            super(path_to_javascript(asset.logical_path, : 
     | 
| 
      
 134 
     | 
    
         
            +
                            super(path_to_javascript(asset.logical_path, debug: true), options)
         
     | 
| 
       135 
135 
     | 
    
         
             
                          end
         
     | 
| 
       136 
136 
     | 
    
         
             
                        else
         
     | 
| 
       137 
137 
     | 
    
         
             
                          super(source, options)
         
     | 
| 
         @@ -139,7 +139,7 @@ module Sprockets 
     | 
|
| 
       139 
139 
     | 
    
         
             
                      }.flatten.uniq.join("\n").html_safe
         
     | 
| 
       140 
140 
     | 
    
         
             
                    else
         
     | 
| 
       141 
141 
     | 
    
         
             
                      sources.map { |source|
         
     | 
| 
       142 
     | 
    
         
            -
                        options = options.merge('integrity' => asset_integrity(source, : 
     | 
| 
      
 142 
     | 
    
         
            +
                        options = options.merge('integrity' => asset_integrity(source, type: :javascript)) if integrity
         
     | 
| 
       143 
143 
     | 
    
         
             
                        super source, options
         
     | 
| 
       144 
144 
     | 
    
         
             
                      }.join("\n").html_safe
         
     | 
| 
       145 
145 
     | 
    
         
             
                    end
         
     | 
| 
         @@ -154,13 +154,13 @@ module Sprockets 
     | 
|
| 
       154 
154 
     | 
    
         | 
| 
       155 
155 
     | 
    
         
             
                    if options["debug"] != false && request_debug_assets?
         
     | 
| 
       156 
156 
     | 
    
         
             
                      sources.map { |source|
         
     | 
| 
       157 
     | 
    
         
            -
                        if asset = lookup_debug_asset(source, : 
     | 
| 
      
 157 
     | 
    
         
            +
                        if asset = lookup_debug_asset(source, type: :stylesheet)
         
     | 
| 
       158 
158 
     | 
    
         
             
                          if asset.respond_to?(:to_a)
         
     | 
| 
       159 
159 
     | 
    
         
             
                            asset.to_a.map do |a|
         
     | 
| 
       160 
     | 
    
         
            -
                              super(path_to_stylesheet(a.logical_path, : 
     | 
| 
      
 160 
     | 
    
         
            +
                              super(path_to_stylesheet(a.logical_path, debug: true), options)
         
     | 
| 
       161 
161 
     | 
    
         
             
                            end
         
     | 
| 
       162 
162 
     | 
    
         
             
                          else
         
     | 
| 
       163 
     | 
    
         
            -
                            super(path_to_stylesheet(asset.logical_path, : 
     | 
| 
      
 163 
     | 
    
         
            +
                            super(path_to_stylesheet(asset.logical_path, debug: true), options)
         
     | 
| 
       164 
164 
     | 
    
         
             
                          end
         
     | 
| 
       165 
165 
     | 
    
         
             
                        else
         
     | 
| 
       166 
166 
     | 
    
         
             
                          super(source, options)
         
     | 
| 
         @@ -168,7 +168,7 @@ module Sprockets 
     | 
|
| 
       168 
168 
     | 
    
         
             
                      }.flatten.uniq.join("\n").html_safe
         
     | 
| 
       169 
169 
     | 
    
         
             
                    else
         
     | 
| 
       170 
170 
     | 
    
         
             
                      sources.map { |source|
         
     | 
| 
       171 
     | 
    
         
            -
                        options = options.merge('integrity' => asset_integrity(source, : 
     | 
| 
      
 171 
     | 
    
         
            +
                        options = options.merge('integrity' => asset_integrity(source, type: :stylesheet)) if integrity
         
     | 
| 
       172 
172 
     | 
    
         
             
                        super source, options
         
     | 
| 
       173 
173 
     | 
    
         
             
                      }.join("\n").html_safe
         
     | 
| 
       174 
174 
     | 
    
         
             
                    end
         
     | 
    
        data/lib/sprockets/railtie.rb
    CHANGED
    
    | 
         @@ -113,10 +113,11 @@ module Sprockets 
     | 
|
| 
       113 
113 
     | 
    
         
             
                end
         
     | 
| 
       114 
114 
     | 
    
         | 
| 
       115 
115 
     | 
    
         
             
                Sprockets.register_dependency_resolver 'rails-env' do
         
     | 
| 
       116 
     | 
    
         
            -
                  ::Rails.env
         
     | 
| 
      
 116 
     | 
    
         
            +
                  ::Rails.env.to_s
         
     | 
| 
       117 
117 
     | 
    
         
             
                end
         
     | 
| 
      
 118 
     | 
    
         
            +
             
     | 
| 
       118 
119 
     | 
    
         
             
                config.assets.configure do |env|
         
     | 
| 
       119 
     | 
    
         
            -
                  env.depend_on ' 
     | 
| 
      
 120 
     | 
    
         
            +
                  env.depend_on 'rails-env'
         
     | 
| 
       120 
121 
     | 
    
         
             
                end
         
     | 
| 
       121 
122 
     | 
    
         | 
| 
       122 
123 
     | 
    
         
             
                config.assets.configure do |env|
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: sprockets-rails
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 3.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 3.0.4
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Joshua Peek
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2016-02 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2016-03-02 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: sprockets
         
     |