jekyll-assets 2.2.7 → 2.2.8
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/README.md +26 -14
- data/lib/jekyll/assets/addons/autoprefixer.rb +0 -2
- data/lib/jekyll/assets/env.rb +10 -4
- data/lib/jekyll/assets/hooks/cache.rb +2 -2
- data/lib/jekyll/assets/manifest.rb +2 -4
- data/lib/jekyll/assets/processors/less.rb +3 -1
- data/lib/jekyll/assets/processors/liquid.rb +3 -3
- data/lib/jekyll/assets/version.rb +1 -1
- metadata +28 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: de1aafb18ffbc5dd93d6cc939c6aee6ccb9ff656
         | 
| 4 | 
            +
              data.tar.gz: 60f99c86d63f7ee293bbd9a92eb83c917c740705
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 0d49e408b902b4c23f961d175024bddb7d19cca7306d6337e85eebc5f78fd5796d8e59a246c18fd6bd7032dbd8ae980aeffe2f0c73c146ca5941faee8266af7f
         | 
| 7 | 
            +
              data.tar.gz: 94c1f84f35918fbe1700083159ac974543ccad187d709408854d7247f720e621ae9d1ce8986da8f19a976944f7b2375c834c4876f0c5eceb8c3f5d856a815700
         | 
    
        data/README.md
    CHANGED
    
    | @@ -115,7 +115,29 @@ folder as the sole source (base folder.)*** | |
| 115 115 | 
             
            * Disable compression by default in development.
         | 
| 116 116 | 
             
            * Enable by default in production.
         | 
| 117 117 |  | 
| 118 | 
            -
             | 
| 118 | 
            +
            ## Addons
         | 
| 119 | 
            +
             | 
| 120 | 
            +
            * CSS Auto Prefixer - add "autoprefixer-rails" to your Gemfile and configure target browsers in `_config.yml`:
         | 
| 121 | 
            +
             | 
| 122 | 
            +
                ```yml
         | 
| 123 | 
            +
                assets:
         | 
| 124 | 
            +
                  autoprefixer:
         | 
| 125 | 
            +
                    browsers:
         | 
| 126 | 
            +
                      - "last 2 versions"
         | 
| 127 | 
            +
                      - "IE > 9"
         | 
| 128 | 
            +
                ```
         | 
| 129 | 
            +
                
         | 
| 130 | 
            +
            * ES6 Transpiler (through Babel) - add "sprockets-es6" to your Gemfile — any `.es6` files (e.g. `main.js.es6`) will be transpiled
         | 
| 131 | 
            +
            * Bootstrap - add "bootstrap-sass" to your Gemfile, and `@import 'boostrap-sprockets'; @import 'bootstrap'`
         | 
| 132 | 
            +
            * Font Awesome - add "font-awesome-sass" to your Gemfile, and `@import 'font-awesome-sprockets'; @import 'font-awesome'`
         | 
| 133 | 
            +
            * Image Magick - add "mini_magick" to your Gemfile, only works with `img`, `image`.
         | 
| 134 | 
            +
            * LESS - add "less" to your Gemfile
         | 
| 135 | 
            +
             | 
| 136 | 
            +
            ***Please note that some of these (if not all) have trouble with Rhino --
         | 
| 137 | 
            +
            `therubyrhino` so you would probably be best to just use Node.js or io.js at
         | 
| 138 | 
            +
            that point rather than trying to fight it.***
         | 
| 139 | 
            +
             | 
| 140 | 
            +
            ## Bower Components
         | 
| 119 141 |  | 
| 120 142 | 
             
            Modify your `.bowerrc` file and add:
         | 
| 121 143 |  | 
| @@ -268,21 +290,11 @@ end | |
| 268 290 | 
             
            * image_url
         | 
| 269 291 | 
             
            * font_url
         | 
| 270 292 |  | 
| 271 | 
            -
            ## Addons
         | 
| 272 | 
            -
             | 
| 273 | 
            -
            * CSS Auto Prefixer - add "autoprefixer-rails" to your Gemfile.
         | 
| 274 | 
            -
            * ES6 Transpiler (through Babel) - add "sprockets-es6" to your Gemfile.
         | 
| 275 | 
            -
            * Bootstrap - add "bootstrap-sass" to your Gemfile, and `@import 'boostrap-sprockets'; @import 'bootstrap'`
         | 
| 276 | 
            -
            * Font Awesome - add "font-awesome-sass" to your Gemfile, and `@import 'font-awesome-sprockets'; @import 'font-awesome'`
         | 
| 277 | 
            -
            * Image Magick - add "mini_magick" to your Gemfile, only works with `img`, `image`.
         | 
| 278 | 
            -
            * LESS - add "less" to your Gemfile
         | 
| 279 | 
            -
             | 
| 280 | 
            -
            ***Please note that some of these (if not all) have trouble with Rhino --
         | 
| 281 | 
            -
            `therubyrhino` so you would probably be best to just use Node.js or io.js at
         | 
| 282 | 
            -
            that point rather than trying to fight it.***
         | 
| 283 | 
            -
             | 
| 284 293 | 
             
            ### Image Magick Proxy arguments:
         | 
| 285 294 |  | 
| 295 | 
            +
            **NOTE: You'll need the `mini_magick` gem installed for these to work**
         | 
| 296 | 
            +
            To install `mini_magick`, add `gem "mini_magick"` to your `Gemfile`
         | 
| 297 | 
            +
             | 
| 286 298 | 
             
            * `magick:resize:<value>`
         | 
| 287 299 | 
             
            * `magick:format:<value>`
         | 
| 288 300 | 
             
            * `magick:quality:<value>`
         | 
| @@ -1,8 +1,6 @@ | |
| 1 | 
            -
            # ----------------------------------------------------------------------------
         | 
| 2 1 | 
             
            # Frozen-string-literal: true
         | 
| 3 2 | 
             
            # Copyright: 2012 - 2016 - MIT License
         | 
| 4 3 | 
             
            # Encoding: utf-8
         | 
| 5 | 
            -
            # ----------------------------------------------------------------------------
         | 
| 6 4 |  | 
| 7 5 | 
             
            try_require_if_javascript "autoprefixer-rails" do
         | 
| 8 6 | 
             
              Jekyll::Assets::Hook.register :env, :init do |env|
         | 
    
        data/lib/jekyll/assets/env.rb
    CHANGED
    
    | @@ -273,10 +273,16 @@ module Jekyll | |
| 273 273 | 
             
                  def write_all
         | 
| 274 274 | 
             
                    assets = manifest.all.to_a.compact
         | 
| 275 275 | 
             
                    if assets.size != manifest.all.size
         | 
| 276 | 
            -
                       | 
| 277 | 
            -
                         | 
| 278 | 
            -
                           | 
| 279 | 
            -
             | 
| 276 | 
            +
                      begin
         | 
| 277 | 
            +
                        Jekyll.logger.error "", "Asset inconsistency, expected " +
         | 
| 278 | 
            +
                          "#{manifest.all.size}, can only write #{
         | 
| 279 | 
            +
                            assets.size
         | 
| 280 | 
            +
                          }"
         | 
| 281 | 
            +
                      rescue
         | 
| 282 | 
            +
                        # When a serious error happens in the upstream manifest.
         | 
| 283 | 
            +
                        Jekyll.logger.error "", "Asset inconsistency, unable to " \
         | 
| 284 | 
            +
                          "determine the problem, please clear your cache."
         | 
| 285 | 
            +
                      end
         | 
| 280 286 | 
             
                    end
         | 
| 281 287 |  | 
| 282 288 | 
             
                    assets = manifest.all.group_by do |v|
         | 
| @@ -23,7 +23,7 @@ Jekyll::Assets::Hook.register :env, :init do | |
| 23 23 | 
             
                end
         | 
| 24 24 |  | 
| 25 25 | 
             
              else
         | 
| 26 | 
            -
                Jekyll.logger.info "", "Caching disabled  | 
| 27 | 
            -
                  "if you  | 
| 26 | 
            +
                Jekyll.logger.info "", "Caching is disabled by configuration. " \
         | 
| 27 | 
            +
                  "However, if you're using proxies, a cache might still be created."
         | 
| 28 28 | 
             
              end
         | 
| 29 29 | 
             
            end
         | 
| @@ -32,9 +32,9 @@ end | |
| 32 32 | 
             
            # ----------------------------------------------------------------------------
         | 
| 33 33 |  | 
| 34 34 | 
             
            Jekyll::Assets::Processors::Liquid::EXT.each do |ext|
         | 
| 35 | 
            -
              Sprockets.register_engine(
         | 
| 36 | 
            -
                 | 
| 37 | 
            -
              )
         | 
| 35 | 
            +
              Sprockets.register_engine(ext, Jekyll::Assets::Processors::Liquid, {
         | 
| 36 | 
            +
                :silence_deprecation => true
         | 
| 37 | 
            +
              })
         | 
| 38 38 | 
             
            end
         | 
| 39 39 |  | 
| 40 40 | 
             
            # ----------------------------------------------------------------------------
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: jekyll-assets
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2.2. | 
| 4 | 
            +
              version: 2.2.8
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Jordon Bedwell
         | 
| @@ -10,8 +10,28 @@ authors: | |
| 10 10 | 
             
            autorequire: 
         | 
| 11 11 | 
             
            bindir: bin
         | 
| 12 12 | 
             
            cert_chain: []
         | 
| 13 | 
            -
            date: 2016-05 | 
| 13 | 
            +
            date: 2016-08-05 00:00:00.000000000 Z
         | 
| 14 14 | 
             
            dependencies:
         | 
| 15 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 16 | 
            +
              name: rack
         | 
| 17 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 18 | 
            +
                requirements:
         | 
| 19 | 
            +
                - - ">"
         | 
| 20 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 21 | 
            +
                    version: '1'
         | 
| 22 | 
            +
                - - "<"
         | 
| 23 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 24 | 
            +
                    version: '2'
         | 
| 25 | 
            +
              type: :runtime
         | 
| 26 | 
            +
              prerelease: false
         | 
| 27 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 28 | 
            +
                requirements:
         | 
| 29 | 
            +
                - - ">"
         | 
| 30 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 31 | 
            +
                    version: '1'
         | 
| 32 | 
            +
                - - "<"
         | 
| 33 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 34 | 
            +
                    version: '2'
         | 
| 15 35 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 16 36 | 
             
              name: sprockets
         | 
| 17 37 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -19,6 +39,9 @@ dependencies: | |
| 19 39 | 
             
                - - "~>"
         | 
| 20 40 | 
             
                  - !ruby/object:Gem::Version
         | 
| 21 41 | 
             
                    version: '3.3'
         | 
| 42 | 
            +
                - - "<"
         | 
| 43 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 44 | 
            +
                    version: '3.7'
         | 
| 22 45 | 
             
              type: :runtime
         | 
| 23 46 | 
             
              prerelease: false
         | 
| 24 47 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| @@ -26,6 +49,9 @@ dependencies: | |
| 26 49 | 
             
                - - "~>"
         | 
| 27 50 | 
             
                  - !ruby/object:Gem::Version
         | 
| 28 51 | 
             
                    version: '3.3'
         | 
| 52 | 
            +
                - - "<"
         | 
| 53 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 54 | 
            +
                    version: '3.7'
         | 
| 29 55 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 30 56 | 
             
              name: fastimage
         | 
| 31 57 | 
             
              requirement: !ruby/object:Gem::Requirement
         |