sinatra-assetpack 0.3.3 → 0.3.5
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.travis.yml +1 -1
- data/CHANGELOG.md +16 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +10 -7
- data/README.md +13 -5
- data/certs/j15e.pem +16 -16
- data/lib/sinatra/assetpack.rb +1 -1
- data/lib/sinatra/assetpack/builder.rb +9 -1
- data/lib/sinatra/assetpack/compressor.rb +1 -0
- data/lib/sinatra/assetpack/engines/none.rb +14 -0
- data/lib/sinatra/assetpack/helpers.rb +7 -2
- data/lib/sinatra/assetpack/options.rb +2 -0
- data/lib/sinatra/assetpack/package.rb +2 -2
- data/lib/sinatra/assetpack/rake.rb +24 -4
- data/lib/sinatra/assetpack/version.rb +1 -1
- data/sinatra-assetpack.gemspec +9 -3
- data/test/app/app/fonts/cantarell-regular-webfont.woff2 +0 -0
- data/test/helpers_test.rb +8 -0
- data/test/mime_type_test.rb +5 -0
- data/test/none_test.rb +24 -0
- data/test/preproc_test.rb +0 -1
- metadata +81 -62
- metadata.gz.sig +0 -0
- data/UPGRADING +0 -17
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 156a3789cfc5c8833210b9877bb4c2798eeacb4e
         | 
| 4 | 
            +
              data.tar.gz: 26ef15ea0f5d3b66a0fbb4a94fe7cf2c31a99000
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 818e198bae771dcff67f26dda032b879ad631bbdb01fcd9d4ebf83effe263183d2593211ea1b5cb9037829ba361ed2b131df1314d4da7bf0c809a3422d736908
         | 
| 7 | 
            +
              data.tar.gz: b0a48cee001fa85e2817492395c4450aba8c6a795f81286afdbfd04778045a65f339e639ba2fe89bfdd523d46e376e24a8471f7ac7314086b90823ddadd5d224
         | 
    
        checksums.yaml.gz.sig
    CHANGED
    
    | Binary file | 
    
        data.tar.gz.sig
    CHANGED
    
    | Binary file | 
    
        data/.travis.yml
    CHANGED
    
    
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,3 +1,19 @@ | |
| 1 | 
            +
            ## v0.3.5 - December 3, 2015
         | 
| 2 | 
            +
             | 
| 3 | 
            +
              * WARNING : This repo is not maintained anymore!
         | 
| 4 | 
            +
              * Final release to notify gem users.
         | 
| 5 | 
            +
             | 
| 6 | 
            +
              * Change : Woff2 Support (#199)
         | 
| 7 | 
            +
              * Change : Set the environment as a string (#190)
         | 
| 8 | 
            +
              * Change : Add noop compressing engine via :none (#176)
         | 
| 9 | 
            +
              * Change : Optionally only build packages in production (169)
         | 
| 10 | 
            +
              * Fix : Prevent syntax error in regex (#178)
         | 
| 11 | 
            +
              * Fix : Fix image_path helper for absolute urls (#183)
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            ## v0.3.4 - December 3, 2015
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            * Yanked (post install message wasn't working)
         | 
| 16 | 
            +
             | 
| 1 17 | 
             
            ## v0.3.3 - April 29, 2014
         | 
| 2 18 |  | 
| 3 19 | 
             
              * Fix : Skip CSS preprocessing for malformed URIs (#167)
         | 
    
        data/Gemfile
    CHANGED
    
    
    
        data/Gemfile.lock
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            PATH
         | 
| 2 2 | 
             
              remote: .
         | 
| 3 3 | 
             
              specs:
         | 
| 4 | 
            -
                sinatra-assetpack (0.3. | 
| 4 | 
            +
                sinatra-assetpack (0.3.4)
         | 
| 5 5 | 
             
                  jsmin
         | 
| 6 6 | 
             
                  rack-test
         | 
| 7 7 | 
             
                  sinatra
         | 
| @@ -36,17 +36,17 @@ GEM | |
| 36 36 | 
             
                metaclass (0.0.1)
         | 
| 37 37 | 
             
                mocha (0.14.0)
         | 
| 38 38 | 
             
                  metaclass (~> 0.0.1)
         | 
| 39 | 
            -
                rack (1. | 
| 40 | 
            -
                rack-protection (1.5. | 
| 39 | 
            +
                rack (1.6.4)
         | 
| 40 | 
            +
                rack-protection (1.5.3)
         | 
| 41 41 | 
             
                  rack
         | 
| 42 | 
            -
                rack-test (0.6. | 
| 42 | 
            +
                rack-test (0.6.3)
         | 
| 43 43 | 
             
                  rack (>= 1.0)
         | 
| 44 44 | 
             
                rake (10.1.1)
         | 
| 45 45 | 
             
                sass (3.2.13)
         | 
| 46 | 
            -
                sinatra (1.4. | 
| 46 | 
            +
                sinatra (1.4.6)
         | 
| 47 47 | 
             
                  rack (~> 1.4)
         | 
| 48 48 | 
             
                  rack-protection (~> 1.4)
         | 
| 49 | 
            -
                  tilt ( | 
| 49 | 
            +
                  tilt (>= 1.3, < 3)
         | 
| 50 50 | 
             
                stylus (1.0.0)
         | 
| 51 51 | 
             
                  execjs
         | 
| 52 52 | 
             
                  stylus-source
         | 
| @@ -69,10 +69,13 @@ DEPENDENCIES | |
| 69 69 | 
             
              gem-release
         | 
| 70 70 | 
             
              haml
         | 
| 71 71 | 
             
              less
         | 
| 72 | 
            -
              mocha
         | 
| 72 | 
            +
              mocha (= 0.14.0)
         | 
| 73 73 | 
             
              rake
         | 
| 74 74 | 
             
              sass
         | 
| 75 75 | 
             
              sinatra-assetpack!
         | 
| 76 76 | 
             
              stylus
         | 
| 77 77 | 
             
              uglifier
         | 
| 78 78 | 
             
              yui-compressor
         | 
| 79 | 
            +
             | 
| 80 | 
            +
            BUNDLED WITH
         | 
| 81 | 
            +
               1.10.6
         | 
    
        data/README.md
    CHANGED
    
    | @@ -1,3 +1,7 @@ | |
| 1 | 
            +
            ### <i color="red">WARNING :</i> [This repo is not maintained anymore!](https://github.com/rstacruz/sinatra-assetpack/issues/197)
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            See sprocket-based alternatives like [sinatra-asset-pipeline](https://github.com/kalasjocke/sinatra-asset-pipeline) and [sprockets-helpers](https://github.com/petebrowne/sprockets-helpers).
         | 
| 4 | 
            +
             | 
| 1 5 | 
             
            # [Sinatra AssetPack](http://ricostacruz.com/sinatra-assetpack)
         | 
| 2 6 |  | 
| 3 7 | 
             
            >  The most convenient way to manage your assets in Sinatra.
         | 
| @@ -266,10 +270,14 @@ require 'sinatra/assetpack/rake' | |
| 266 270 | 
             
            ```
         | 
| 267 271 |  | 
| 268 272 | 
             
            #### Invoking
         | 
| 269 | 
            -
            Now invoke the `assetpack:build` Rake task. This will create files in `/public`.
         | 
| 270 273 |  | 
| 271 | 
            -
             | 
| 274 | 
            +
            Now you have the following tasks to precompile assets.
         | 
| 272 275 |  | 
| 276 | 
            +
            ``` ruby
         | 
| 277 | 
            +
            rake assetpack:precompile           # Precompile all assets
         | 
| 278 | 
            +
            rake assetpack:precompile:files     # Precompile files only
         | 
| 279 | 
            +
            rake assetpack:precompile:packages  # Precompile packages only
         | 
| 280 | 
            +
            ```
         | 
| 273 281 |  | 
| 274 282 | 
             
            ## Settings
         | 
| 275 283 |  | 
| @@ -284,13 +292,13 @@ class App < Sinatra::Base | |
| 284 292 | 
             
              # Style 1
         | 
| 285 293 | 
             
              assets do
         | 
| 286 294 | 
             
                css :hello, [ '/css/*.css' ]
         | 
| 287 | 
            -
                 | 
| 295 | 
            +
                css_compression :yui
         | 
| 288 296 | 
             
              end
         | 
| 289 297 |  | 
| 290 298 | 
             
              # Style 2
         | 
| 291 299 | 
             
              assets do |a|
         | 
| 292 300 | 
             
                a.css :hello, ['/css/*.css' ]
         | 
| 293 | 
            -
                a. | 
| 301 | 
            +
                a.css_compression :yui
         | 
| 294 302 | 
             
              end
         | 
| 295 303 | 
             
            end
         | 
| 296 304 | 
             
            ```
         | 
| @@ -301,7 +309,7 @@ almost all the options, with the exception for `css`, `js` and `serve`. | |
| 301 309 |  | 
| 302 310 | 
             
            ``` ruby
         | 
| 303 311 | 
             
            App.assets
         | 
| 304 | 
            -
            App.assets. | 
| 312 | 
            +
            App.assets.css_compression   #=> :yui
         | 
| 305 313 | 
             
            ```
         | 
| 306 314 |  | 
| 307 315 | 
             
            ### assets.serve
         | 
    
        data/certs/j15e.pem
    CHANGED
    
    | @@ -1,22 +1,22 @@ | |
| 1 1 | 
             
            -----BEGIN CERTIFICATE-----
         | 
| 2 2 | 
             
            MIIDmjCCAoKgAwIBAgIBATANBgkqhkiG9w0BAQUFADBJMRswGQYDVQQDDBJqZWFu
         | 
| 3 3 | 
             
            cGhpbGlwcGUuZG95bGUxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT
         | 
| 4 | 
            -
             | 
| 4 | 
            +
            8ixkARkWA2NvbTAeFw0xNTAyMDIxNjQ5NTNaFw0xNjAyMDIxNjQ5NTNaMEkxGzAZ
         | 
| 5 5 | 
             
            BgNVBAMMEmplYW5waGlsaXBwZS5kb3lsZTEVMBMGCgmSJomT8ixkARkWBWdtYWls
         | 
| 6 6 | 
             
            MRMwEQYKCZImiZPyLGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
         | 
| 7 | 
            -
             | 
| 8 | 
            -
             | 
| 9 | 
            -
             | 
| 10 | 
            -
             | 
| 11 | 
            -
             | 
| 12 | 
            -
             | 
| 13 | 
            -
             | 
| 7 | 
            +
            CgKCAQEAzpnUIh2dzSBkAghI4ZzdefobWdGH8M9yjiyZl4DfO+LSLV5ovcqVYPYr
         | 
| 8 | 
            +
            fzHm4TJO4w0S7jnfdwq45mGO3ogEMbmQLz4B/bUZXVHX0K9//KRroseRCUH24BE0
         | 
| 9 | 
            +
            q46UCeaFMs5wGcniT7XhuDcqPQaqCIxDE1aBxcKlZg8i62yM3BO/yX5DwLPqhyEu
         | 
| 10 | 
            +
            XVViJ+PvHjUGa69iw1fqUs9PZaf9WdKHyPHhgbhwy7xqx7EavG+tmHQUxtIf7xhl
         | 
| 11 | 
            +
            OU80hUsHQrkj5PxPU2Qfs6q2jOxrfRcUSBJZxUDzjmbhP9eq0XN+b5/Cqz3OboSI
         | 
| 12 | 
            +
            nWF0Kj0971wJgZiNdzXsLMy+zmHdiQIDAQABo4GMMIGJMAkGA1UdEwQCMAAwCwYD
         | 
| 13 | 
            +
            VR0PBAQDAgSwMB0GA1UdDgQWBBRro81JisHXRBP5dZh5mzOEHsjLxTAnBgNVHREE
         | 
| 14 14 | 
             
            IDAegRxqZWFucGhpbGlwcGUuZG95bGVAZ21haWwuY29tMCcGA1UdEgQgMB6BHGpl
         | 
| 15 | 
            -
             | 
| 16 | 
            -
             | 
| 17 | 
            -
             | 
| 18 | 
            -
             | 
| 19 | 
            -
             | 
| 20 | 
            -
             | 
| 21 | 
            -
             | 
| 22 | 
            -
            -----END CERTIFICATE-----
         | 
| 15 | 
            +
            YW5waGlsaXBwZS5kb3lsZUBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQADggEBAGHG
         | 
| 16 | 
            +
            D1ue02ll73MLx4J5IRsF/J4rPUbo+p8pawvBCgH0awoYUJFekvbut8AMRzC4JlZ0
         | 
| 17 | 
            +
            nSCTgvkM5PdFj5fptnnthb1+09oDR6iKfLcSSmyFKlEh+vpbkp0YsKyh7BLs+JrJ
         | 
| 18 | 
            +
            81UJFxFsZg6BDhLolSJW2AnjMXOnXuGHiBSo7HDGdZDKELqrEMtX4Jr9hSvGBrza
         | 
| 19 | 
            +
            AJrNT4WI/JyEwNKpI7PflqnmXWpEwzSDu1L+HCn+sRQ41s1KeWEQTZLpB53lAPAg
         | 
| 20 | 
            +
            0BLRj97DRMQzoo+JT8hzfSbUNi/A8++vfRmt3S9M3XsPEMS87qDbomggam5OhepG
         | 
| 21 | 
            +
            9tXfRi8fswcQo96T+yg=
         | 
| 22 | 
            +
            -----END CERTIFICATE-----
         | 
    
        data/lib/sinatra/assetpack.rb
    CHANGED
    
    | @@ -10,7 +10,7 @@ module Sinatra | |
| 10 10 | 
             
                # Returns a list of formats that can be served.
         | 
| 11 11 | 
             
                # Anything not in this list will be rejected.
         | 
| 12 12 | 
             
                def self.supported_formats
         | 
| 13 | 
            -
                  @supported_formats ||= %w(css js png jpg gif svg otf eot ttf woff htc ico)
         | 
| 13 | 
            +
                  @supported_formats ||= %w(css js png jpg gif svg otf eot ttf woff woff2 htc ico)
         | 
| 14 14 | 
             
                end
         | 
| 15 15 |  | 
| 16 16 | 
             
                # Returns a map of what MIME format each Tilt type returns.
         | 
| @@ -2,7 +2,15 @@ module Sinatra | |
| 2 2 | 
             
              module AssetPack
         | 
| 3 3 | 
             
                module Builder
         | 
| 4 4 | 
             
                  def build!(&blk)
         | 
| 5 | 
            +
                    build_packages!
         | 
| 6 | 
            +
                    build_files!
         | 
| 7 | 
            +
                  end
         | 
| 8 | 
            +
             | 
| 9 | 
            +
                  def build_packages!(&blk)
         | 
| 5 10 | 
             
                    packages.each { |_, pack| build_package!(pack, &blk) }
         | 
| 11 | 
            +
                  end
         | 
| 12 | 
            +
             | 
| 13 | 
            +
                  def build_files!(&blk)
         | 
| 6 14 | 
             
                    files.each { |path, local| build_file!(path, local, &blk) }
         | 
| 7 15 | 
             
                  end
         | 
| 8 16 |  | 
| @@ -39,4 +47,4 @@ module Sinatra | |
| 39 47 | 
             
                  end
         | 
| 40 48 | 
             
                end
         | 
| 41 49 | 
             
              end
         | 
| 42 | 
            -
            end
         | 
| 50 | 
            +
            end
         | 
| @@ -18,7 +18,12 @@ module Sinatra | |
| 18 18 |  | 
| 19 19 | 
             
                  def image_path(src)
         | 
| 20 20 | 
             
                    file_path = HtmlHelpers.get_file_uri(src, settings.assets)
         | 
| 21 | 
            -
             | 
| 21 | 
            +
             | 
| 22 | 
            +
                    if file_path =~ /\A(http|https)\:\/\//
         | 
| 23 | 
            +
                      file_path
         | 
| 24 | 
            +
                    else
         | 
| 25 | 
            +
                      File.join(request.script_name, file_path)
         | 
| 26 | 
            +
                    end
         | 
| 22 27 | 
             
                  end
         | 
| 23 28 |  | 
| 24 29 | 
             
                  def show_asset_pack(type, *args)
         | 
| @@ -38,7 +43,7 @@ module Sinatra | |
| 38 43 | 
             
                    pack = settings.assets.packages["#{name}.#{type}"]
         | 
| 39 44 | 
             
                    return ""  unless pack
         | 
| 40 45 |  | 
| 41 | 
            -
                    if settings.environment == :production
         | 
| 46 | 
            +
                    if settings.environment.to_sym == :production
         | 
| 42 47 | 
             
                      pack.to_production_html request.script_name, options
         | 
| 43 48 | 
             
                    else
         | 
| 44 49 | 
             
                      pack.to_development_html request.script_name, options
         | 
| @@ -43,7 +43,7 @@ module Sinatra | |
| 43 43 | 
             
                  end
         | 
| 44 44 |  | 
| 45 45 | 
             
                  def files
         | 
| 46 | 
            -
                    paths_and_files.values
         | 
| 46 | 
            +
                    paths_and_files.values.compact
         | 
| 47 47 | 
             
                  end
         | 
| 48 48 |  | 
| 49 49 | 
             
                  def paths
         | 
| @@ -108,7 +108,7 @@ module Sinatra | |
| 108 108 | 
             
                    paths.map { |path|
         | 
| 109 109 | 
             
                      result = session.get(path)
         | 
| 110 110 | 
             
                      if result.body.respond_to?(:force_encoding)
         | 
| 111 | 
            -
                        response_encoding = result.content_type.split( | 
| 111 | 
            +
                        response_encoding = result.content_type.split(/\;\s*charset\s*=\s*/).last.upcase rescue 'ASCII-8BIT'
         | 
| 112 112 | 
             
                        result.body.force_encoding(response_encoding).encode(Encoding.default_external || 'ASCII-8BIT')  if result.status == 200
         | 
| 113 113 | 
             
                      else
         | 
| 114 114 | 
             
                        result.body  if result.status == 200
         | 
| @@ -20,10 +20,30 @@ def app | |
| 20 20 | 
             
            end
         | 
| 21 21 |  | 
| 22 22 | 
             
            namespace :assetpack do
         | 
| 23 | 
            -
              desc " | 
| 23 | 
            +
              desc "Precompile all assets"
         | 
| 24 | 
            +
              task :precompile => ['precompile:packages', 'precompile:files']
         | 
| 25 | 
            +
             | 
| 26 | 
            +
              namespace :precompile do
         | 
| 27 | 
            +
                desc "Precompile packages only"
         | 
| 28 | 
            +
                task :packages do
         | 
| 29 | 
            +
                  puts "Precompiling packages ..."
         | 
| 30 | 
            +
                  app.assets.build_packages! do |file|
         | 
| 31 | 
            +
                    puts "+ #{file.gsub(Dir.pwd, '')}"
         | 
| 32 | 
            +
                  end
         | 
| 33 | 
            +
                end
         | 
| 34 | 
            +
             | 
| 35 | 
            +
                desc "Precompile files only"
         | 
| 36 | 
            +
                task :files do
         | 
| 37 | 
            +
                  puts "Precompiling files ..."
         | 
| 38 | 
            +
                  app.assets.build_files! do |file|
         | 
| 39 | 
            +
                    puts "+ #{file.gsub(Dir.pwd, '')}"
         | 
| 40 | 
            +
                  end
         | 
| 41 | 
            +
                end
         | 
| 42 | 
            +
              end
         | 
| 43 | 
            +
             | 
| 44 | 
            +
              # For backwards compatibility
         | 
| 24 45 | 
             
              task :build do
         | 
| 25 | 
            -
                 | 
| 26 | 
            -
             | 
| 27 | 
            -
                }
         | 
| 46 | 
            +
                puts "WARNING: assetpack:build is deprecated. Use assetpack:precompile"
         | 
| 47 | 
            +
                Rake::Task["assetpack:precompile"].invoke
         | 
| 28 48 | 
             
              end
         | 
| 29 49 | 
             
            end
         | 
    
        data/sinatra-assetpack.gemspec
    CHANGED
    
    | @@ -15,9 +15,15 @@ Gem::Specification.new do |s| | |
| 15 15 | 
             
              s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0 =~ /gem\z/
         | 
| 16 16 | 
             
              s.required_ruby_version = '>= 1.9.2'
         | 
| 17 17 |  | 
| 18 | 
            -
               | 
| 19 | 
            -
             | 
| 20 | 
            -
             | 
| 18 | 
            +
              s.post_install_message = <<-POST_INSTALL_MESSAGE
         | 
| 19 | 
            +
            ##########################################################
         | 
| 20 | 
            +
            # WARNING : sinatra-assetpack is not maintained anymore! #
         | 
| 21 | 
            +
            ##########################################################
         | 
| 22 | 
            +
             | 
| 23 | 
            +
            YOU MIGHT BE EXPOSED TO SECURITY ISSUES & BUGS.
         | 
| 24 | 
            +
             | 
| 25 | 
            +
            See https://github.com/rstacruz/sinatra-assetpack/issues/197
         | 
| 26 | 
            +
              POST_INSTALL_MESSAGE
         | 
| 21 27 |  | 
| 22 28 | 
             
              s.add_dependency 'jsmin'
         | 
| 23 29 | 
             
              s.add_dependency 'rack-test'
         | 
| Binary file | 
    
        data/test/helpers_test.rb
    CHANGED
    
    | @@ -8,6 +8,7 @@ class HelpersTest < UnitTest | |
| 8 8 | 
             
              Main.get('/helper/css/sq') { css :sq }
         | 
| 9 9 | 
             
              Main.get('/helper/foo_path') { image_path '/images/foo.jpg' }
         | 
| 10 10 | 
             
              Main.get('/helper/email_path') { image_path '/images/email.png' }
         | 
| 11 | 
            +
              Main.get('/helper/absolute_url') { image_path 'https://example.s3.amazonaws.com/images/uploads/foo.jpg' }
         | 
| 11 12 |  | 
| 12 13 | 
             
              test "img non-existing" do
         | 
| 13 14 | 
             
                get '/helper/foo'
         | 
| @@ -48,6 +49,13 @@ class HelpersTest < UnitTest | |
| 48 49 | 
             
                assert body =~ %r{\A/images/email.[a-f0-9]{32}.png\z}
         | 
| 49 50 | 
             
              end
         | 
| 50 51 |  | 
| 52 | 
            +
              test "image_path absolute url (production/cdn)" do
         | 
| 53 | 
            +
                app.stubs(:development?).returns(false)
         | 
| 54 | 
            +
                get '/helper/absolute_url'
         | 
| 55 | 
            +
             | 
| 56 | 
            +
                assert body == "https://example.s3.amazonaws.com/images/uploads/foo.jpg"
         | 
| 57 | 
            +
              end
         | 
| 58 | 
            +
             | 
| 51 59 | 
             
              test "css" do
         | 
| 52 60 | 
             
                re = Array.new
         | 
| 53 61 | 
             
                get '/helper/css/app'; re << body
         | 
    
        data/test/mime_type_test.rb
    CHANGED
    
    | @@ -50,4 +50,9 @@ class AppTest < UnitTest | |
| 50 50 | 
             
                get '/fonts/cantarell-regular-webfont.woff'
         | 
| 51 51 | 
             
                assert last_response.content_type =~ %r[^application/font-woff]
         | 
| 52 52 | 
             
              end
         | 
| 53 | 
            +
              
         | 
| 54 | 
            +
              test 'woff2' do
         | 
| 55 | 
            +
                get '/fonts/cantarell-regular-webfont.woff2'
         | 
| 56 | 
            +
                assert last_response.content_type =~ %r[^application/font-woff2]
         | 
| 57 | 
            +
              end
         | 
| 53 58 | 
             
            end
         | 
    
        data/test/none_test.rb
    ADDED
    
    | @@ -0,0 +1,24 @@ | |
| 1 | 
            +
            require File.expand_path('../test_helper', __FILE__)
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            class NoneEngineTest < UnitTest
         | 
| 4 | 
            +
              setup do
         | 
| 5 | 
            +
                app.set :reload_templates, true
         | 
| 6 | 
            +
                app.assets.js_compression :none
         | 
| 7 | 
            +
                app.assets.css_compression :none
         | 
| 8 | 
            +
              end
         | 
| 9 | 
            +
             | 
| 10 | 
            +
              teardown do
         | 
| 11 | 
            +
                app.assets.js_compression :jsmin
         | 
| 12 | 
            +
                app.assets.css_compression :simple
         | 
| 13 | 
            +
              end
         | 
| 14 | 
            +
             | 
| 15 | 
            +
              test "build CSS without compressing" do
         | 
| 16 | 
            +
                get '/css/sq.css'
         | 
| 17 | 
            +
                assert body.include?(File.read(r('app/css/sqwishable.css')).strip)
         | 
| 18 | 
            +
              end
         | 
| 19 | 
            +
             | 
| 20 | 
            +
              test "build Javascript without compressing" do
         | 
| 21 | 
            +
                get '/js/hello.js'
         | 
| 22 | 
            +
                assert body.include?(File.read(r('app/js/hello.js')).strip)
         | 
| 23 | 
            +
              end
         | 
| 24 | 
            +
            end
         | 
    
        data/test/preproc_test.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: sinatra-assetpack
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.3. | 
| 4 | 
            +
              version: 0.3.5
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Rico Sta. Cruz
         | 
| @@ -9,189 +9,211 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain:
         | 
| 12 | 
            -
            -  | 
| 13 | 
            -
             | 
| 12 | 
            +
            - ! '-----BEGIN CERTIFICATE-----
         | 
| 13 | 
            +
             | 
| 14 14 | 
             
              MIIDmjCCAoKgAwIBAgIBATANBgkqhkiG9w0BAQUFADBJMRswGQYDVQQDDBJqZWFu
         | 
| 15 | 
            +
             | 
| 15 16 | 
             
              cGhpbGlwcGUuZG95bGUxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT
         | 
| 16 | 
            -
             | 
| 17 | 
            +
             | 
| 18 | 
            +
              8ixkARkWA2NvbTAeFw0xNTAyMDIxNjQ5NTNaFw0xNjAyMDIxNjQ5NTNaMEkxGzAZ
         | 
| 19 | 
            +
             | 
| 17 20 | 
             
              BgNVBAMMEmplYW5waGlsaXBwZS5kb3lsZTEVMBMGCgmSJomT8ixkARkWBWdtYWls
         | 
| 21 | 
            +
             | 
| 18 22 | 
             
              MRMwEQYKCZImiZPyLGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
         | 
| 19 | 
            -
             | 
| 20 | 
            -
               | 
| 21 | 
            -
             | 
| 22 | 
            -
               | 
| 23 | 
            -
             | 
| 24 | 
            -
               | 
| 25 | 
            -
             | 
| 23 | 
            +
             | 
| 24 | 
            +
              CgKCAQEAzpnUIh2dzSBkAghI4ZzdefobWdGH8M9yjiyZl4DfO+LSLV5ovcqVYPYr
         | 
| 25 | 
            +
             | 
| 26 | 
            +
              fzHm4TJO4w0S7jnfdwq45mGO3ogEMbmQLz4B/bUZXVHX0K9//KRroseRCUH24BE0
         | 
| 27 | 
            +
             | 
| 28 | 
            +
              q46UCeaFMs5wGcniT7XhuDcqPQaqCIxDE1aBxcKlZg8i62yM3BO/yX5DwLPqhyEu
         | 
| 29 | 
            +
             | 
| 30 | 
            +
              XVViJ+PvHjUGa69iw1fqUs9PZaf9WdKHyPHhgbhwy7xqx7EavG+tmHQUxtIf7xhl
         | 
| 31 | 
            +
             | 
| 32 | 
            +
              OU80hUsHQrkj5PxPU2Qfs6q2jOxrfRcUSBJZxUDzjmbhP9eq0XN+b5/Cqz3OboSI
         | 
| 33 | 
            +
             | 
| 34 | 
            +
              nWF0Kj0971wJgZiNdzXsLMy+zmHdiQIDAQABo4GMMIGJMAkGA1UdEwQCMAAwCwYD
         | 
| 35 | 
            +
             | 
| 36 | 
            +
              VR0PBAQDAgSwMB0GA1UdDgQWBBRro81JisHXRBP5dZh5mzOEHsjLxTAnBgNVHREE
         | 
| 37 | 
            +
             | 
| 26 38 | 
             
              IDAegRxqZWFucGhpbGlwcGUuZG95bGVAZ21haWwuY29tMCcGA1UdEgQgMB6BHGpl
         | 
| 27 | 
            -
             | 
| 28 | 
            -
               | 
| 29 | 
            -
             | 
| 30 | 
            -
               | 
| 31 | 
            -
             | 
| 32 | 
            -
               | 
| 33 | 
            -
             | 
| 39 | 
            +
             | 
| 40 | 
            +
              YW5waGlsaXBwZS5kb3lsZUBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQADggEBAGHG
         | 
| 41 | 
            +
             | 
| 42 | 
            +
              D1ue02ll73MLx4J5IRsF/J4rPUbo+p8pawvBCgH0awoYUJFekvbut8AMRzC4JlZ0
         | 
| 43 | 
            +
             | 
| 44 | 
            +
              nSCTgvkM5PdFj5fptnnthb1+09oDR6iKfLcSSmyFKlEh+vpbkp0YsKyh7BLs+JrJ
         | 
| 45 | 
            +
             | 
| 46 | 
            +
              81UJFxFsZg6BDhLolSJW2AnjMXOnXuGHiBSo7HDGdZDKELqrEMtX4Jr9hSvGBrza
         | 
| 47 | 
            +
             | 
| 48 | 
            +
              AJrNT4WI/JyEwNKpI7PflqnmXWpEwzSDu1L+HCn+sRQ41s1KeWEQTZLpB53lAPAg
         | 
| 49 | 
            +
             | 
| 50 | 
            +
              0BLRj97DRMQzoo+JT8hzfSbUNi/A8++vfRmt3S9M3XsPEMS87qDbomggam5OhepG
         | 
| 51 | 
            +
             | 
| 52 | 
            +
              9tXfRi8fswcQo96T+yg=
         | 
| 53 | 
            +
             | 
| 34 54 | 
             
              -----END CERTIFICATE-----
         | 
| 35 | 
            -
             | 
| 55 | 
            +
             | 
| 56 | 
            +
            '
         | 
| 57 | 
            +
            date: 2015-12-03 00:00:00.000000000 Z
         | 
| 36 58 | 
             
            dependencies:
         | 
| 37 59 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 38 60 | 
             
              name: jsmin
         | 
| 39 61 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 40 62 | 
             
                requirements:
         | 
| 41 | 
            -
                - -  | 
| 63 | 
            +
                - - ! '>='
         | 
| 42 64 | 
             
                  - !ruby/object:Gem::Version
         | 
| 43 65 | 
             
                    version: '0'
         | 
| 44 66 | 
             
              type: :runtime
         | 
| 45 67 | 
             
              prerelease: false
         | 
| 46 68 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 47 69 | 
             
                requirements:
         | 
| 48 | 
            -
                - -  | 
| 70 | 
            +
                - - ! '>='
         | 
| 49 71 | 
             
                  - !ruby/object:Gem::Version
         | 
| 50 72 | 
             
                    version: '0'
         | 
| 51 73 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 52 74 | 
             
              name: rack-test
         | 
| 53 75 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 54 76 | 
             
                requirements:
         | 
| 55 | 
            -
                - -  | 
| 77 | 
            +
                - - ! '>='
         | 
| 56 78 | 
             
                  - !ruby/object:Gem::Version
         | 
| 57 79 | 
             
                    version: '0'
         | 
| 58 80 | 
             
              type: :runtime
         | 
| 59 81 | 
             
              prerelease: false
         | 
| 60 82 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 61 83 | 
             
                requirements:
         | 
| 62 | 
            -
                - -  | 
| 84 | 
            +
                - - ! '>='
         | 
| 63 85 | 
             
                  - !ruby/object:Gem::Version
         | 
| 64 86 | 
             
                    version: '0'
         | 
| 65 87 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 66 88 | 
             
              name: sinatra
         | 
| 67 89 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 68 90 | 
             
                requirements:
         | 
| 69 | 
            -
                - -  | 
| 91 | 
            +
                - - ! '>='
         | 
| 70 92 | 
             
                  - !ruby/object:Gem::Version
         | 
| 71 93 | 
             
                    version: '0'
         | 
| 72 94 | 
             
              type: :runtime
         | 
| 73 95 | 
             
              prerelease: false
         | 
| 74 96 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 75 97 | 
             
                requirements:
         | 
| 76 | 
            -
                - -  | 
| 98 | 
            +
                - - ! '>='
         | 
| 77 99 | 
             
                  - !ruby/object:Gem::Version
         | 
| 78 100 | 
             
                    version: '0'
         | 
| 79 101 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 80 102 | 
             
              name: tilt
         | 
| 81 103 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 82 104 | 
             
                requirements:
         | 
| 83 | 
            -
                - -  | 
| 105 | 
            +
                - - ! '>='
         | 
| 84 106 | 
             
                  - !ruby/object:Gem::Version
         | 
| 85 107 | 
             
                    version: 1.3.0
         | 
| 86 | 
            -
                - -  | 
| 108 | 
            +
                - - <
         | 
| 87 109 | 
             
                  - !ruby/object:Gem::Version
         | 
| 88 110 | 
             
                    version: '2.0'
         | 
| 89 111 | 
             
              type: :runtime
         | 
| 90 112 | 
             
              prerelease: false
         | 
| 91 113 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 92 114 | 
             
                requirements:
         | 
| 93 | 
            -
                - -  | 
| 115 | 
            +
                - - ! '>='
         | 
| 94 116 | 
             
                  - !ruby/object:Gem::Version
         | 
| 95 117 | 
             
                    version: 1.3.0
         | 
| 96 | 
            -
                - -  | 
| 118 | 
            +
                - - <
         | 
| 97 119 | 
             
                  - !ruby/object:Gem::Version
         | 
| 98 120 | 
             
                    version: '2.0'
         | 
| 99 121 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 100 122 | 
             
              name: coffee-script
         | 
| 101 123 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 102 124 | 
             
                requirements:
         | 
| 103 | 
            -
                - -  | 
| 125 | 
            +
                - - ! '>='
         | 
| 104 126 | 
             
                  - !ruby/object:Gem::Version
         | 
| 105 127 | 
             
                    version: '0'
         | 
| 106 128 | 
             
              type: :development
         | 
| 107 129 | 
             
              prerelease: false
         | 
| 108 130 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 109 131 | 
             
                requirements:
         | 
| 110 | 
            -
                - -  | 
| 132 | 
            +
                - - ! '>='
         | 
| 111 133 | 
             
                  - !ruby/object:Gem::Version
         | 
| 112 134 | 
             
                    version: '0'
         | 
| 113 135 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 114 136 | 
             
              name: haml
         | 
| 115 137 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 116 138 | 
             
                requirements:
         | 
| 117 | 
            -
                - -  | 
| 139 | 
            +
                - - ! '>='
         | 
| 118 140 | 
             
                  - !ruby/object:Gem::Version
         | 
| 119 141 | 
             
                    version: '0'
         | 
| 120 142 | 
             
              type: :development
         | 
| 121 143 | 
             
              prerelease: false
         | 
| 122 144 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 123 145 | 
             
                requirements:
         | 
| 124 | 
            -
                - -  | 
| 146 | 
            +
                - - ! '>='
         | 
| 125 147 | 
             
                  - !ruby/object:Gem::Version
         | 
| 126 148 | 
             
                    version: '0'
         | 
| 127 149 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 128 150 | 
             
              name: less
         | 
| 129 151 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 130 152 | 
             
                requirements:
         | 
| 131 | 
            -
                - -  | 
| 153 | 
            +
                - - ! '>='
         | 
| 132 154 | 
             
                  - !ruby/object:Gem::Version
         | 
| 133 155 | 
             
                    version: '0'
         | 
| 134 156 | 
             
              type: :development
         | 
| 135 157 | 
             
              prerelease: false
         | 
| 136 158 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 137 159 | 
             
                requirements:
         | 
| 138 | 
            -
                - -  | 
| 160 | 
            +
                - - ! '>='
         | 
| 139 161 | 
             
                  - !ruby/object:Gem::Version
         | 
| 140 162 | 
             
                    version: '0'
         | 
| 141 163 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 142 164 | 
             
              name: sass
         | 
| 143 165 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 144 166 | 
             
                requirements:
         | 
| 145 | 
            -
                - -  | 
| 167 | 
            +
                - - ! '>='
         | 
| 146 168 | 
             
                  - !ruby/object:Gem::Version
         | 
| 147 169 | 
             
                    version: '0'
         | 
| 148 170 | 
             
              type: :development
         | 
| 149 171 | 
             
              prerelease: false
         | 
| 150 172 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 151 173 | 
             
                requirements:
         | 
| 152 | 
            -
                - -  | 
| 174 | 
            +
                - - ! '>='
         | 
| 153 175 | 
             
                  - !ruby/object:Gem::Version
         | 
| 154 176 | 
             
                    version: '0'
         | 
| 155 177 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 156 178 | 
             
              name: stylus
         | 
| 157 179 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 158 180 | 
             
                requirements:
         | 
| 159 | 
            -
                - -  | 
| 181 | 
            +
                - - ! '>='
         | 
| 160 182 | 
             
                  - !ruby/object:Gem::Version
         | 
| 161 183 | 
             
                    version: '0'
         | 
| 162 184 | 
             
              type: :development
         | 
| 163 185 | 
             
              prerelease: false
         | 
| 164 186 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 165 187 | 
             
                requirements:
         | 
| 166 | 
            -
                - -  | 
| 188 | 
            +
                - - ! '>='
         | 
| 167 189 | 
             
                  - !ruby/object:Gem::Version
         | 
| 168 190 | 
             
                    version: '0'
         | 
| 169 191 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 170 192 | 
             
              name: uglifier
         | 
| 171 193 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 172 194 | 
             
                requirements:
         | 
| 173 | 
            -
                - -  | 
| 195 | 
            +
                - - ! '>='
         | 
| 174 196 | 
             
                  - !ruby/object:Gem::Version
         | 
| 175 197 | 
             
                    version: '0'
         | 
| 176 198 | 
             
              type: :development
         | 
| 177 199 | 
             
              prerelease: false
         | 
| 178 200 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 179 201 | 
             
                requirements:
         | 
| 180 | 
            -
                - -  | 
| 202 | 
            +
                - - ! '>='
         | 
| 181 203 | 
             
                  - !ruby/object:Gem::Version
         | 
| 182 204 | 
             
                    version: '0'
         | 
| 183 205 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 184 206 | 
             
              name: yui-compressor
         | 
| 185 207 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 186 208 | 
             
                requirements:
         | 
| 187 | 
            -
                - -  | 
| 209 | 
            +
                - - ! '>='
         | 
| 188 210 | 
             
                  - !ruby/object:Gem::Version
         | 
| 189 211 | 
             
                    version: '0'
         | 
| 190 212 | 
             
              type: :development
         | 
| 191 213 | 
             
              prerelease: false
         | 
| 192 214 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 193 215 | 
             
                requirements:
         | 
| 194 | 
            -
                - -  | 
| 216 | 
            +
                - - ! '>='
         | 
| 195 217 | 
             
                  - !ruby/object:Gem::Version
         | 
| 196 218 | 
             
                    version: '0'
         | 
| 197 219 | 
             
            description: Package your assets for Sinatra.
         | 
| @@ -201,8 +223,8 @@ executables: [] | |
| 201 223 | 
             
            extensions: []
         | 
| 202 224 | 
             
            extra_rdoc_files: []
         | 
| 203 225 | 
             
            files:
         | 
| 204 | 
            -
            -  | 
| 205 | 
            -
            -  | 
| 226 | 
            +
            - .gitignore
         | 
| 227 | 
            +
            - .travis.yml
         | 
| 206 228 | 
             
            - CHANGELOG.md
         | 
| 207 229 | 
             
            - CONTRIBUTING.md
         | 
| 208 230 | 
             
            - Gemfile
         | 
| @@ -210,7 +232,6 @@ files: | |
| 210 232 | 
             
            - LICENSE.md
         | 
| 211 233 | 
             
            - README.md
         | 
| 212 234 | 
             
            - Rakefile
         | 
| 213 | 
            -
            - UPGRADING
         | 
| 214 235 | 
             
            - certs/j15e.pem
         | 
| 215 236 | 
             
            - examples/basic/.gitignore
         | 
| 216 237 | 
             
            - examples/basic/Rakefile
         | 
| @@ -251,6 +272,7 @@ files: | |
| 251 272 | 
             
            - lib/sinatra/assetpack/engines/closure.rb
         | 
| 252 273 | 
             
            - lib/sinatra/assetpack/engines/jsmin.rb
         | 
| 253 274 | 
             
            - lib/sinatra/assetpack/engines/less.rb
         | 
| 275 | 
            +
            - lib/sinatra/assetpack/engines/none.rb
         | 
| 254 276 | 
             
            - lib/sinatra/assetpack/engines/sass.rb
         | 
| 255 277 | 
             
            - lib/sinatra/assetpack/engines/simple.rb
         | 
| 256 278 | 
             
            - lib/sinatra/assetpack/engines/sqwish.rb
         | 
| @@ -280,6 +302,7 @@ files: | |
| 280 302 | 
             
            - test/app/app/fonts/cantarell-regular-webfont.svg
         | 
| 281 303 | 
             
            - test/app/app/fonts/cantarell-regular-webfont.ttf
         | 
| 282 304 | 
             
            - test/app/app/fonts/cantarell-regular-webfont.woff
         | 
| 305 | 
            +
            - test/app/app/fonts/cantarell-regular-webfont.woff2
         | 
| 283 306 | 
             
            - test/app/app/images/background.jpg
         | 
| 284 307 | 
             
            - test/app/app/images/email.png
         | 
| 285 308 | 
             
            - test/app/app/js/_ignoreme.js
         | 
| @@ -317,6 +340,7 @@ files: | |
| 317 340 | 
             
            - test/local_file_test.rb
         | 
| 318 341 | 
             
            - test/mime_type_test.rb
         | 
| 319 342 | 
             
            - test/non_existent_test.rb
         | 
| 343 | 
            +
            - test/none_test.rb
         | 
| 320 344 | 
             
            - test/options_test.rb
         | 
| 321 345 | 
             
            - test/order_test.rb
         | 
| 322 346 | 
             
            - test/preproc_test.rb
         | 
| @@ -336,40 +360,35 @@ homepage: http://github.com/rstacruz/sinatra-assetpack | |
| 336 360 | 
             
            licenses:
         | 
| 337 361 | 
             
            - MIT
         | 
| 338 362 | 
             
            metadata: {}
         | 
| 339 | 
            -
            post_install_message:  | 
| 340 | 
            -
             | 
| 341 | 
            -
              # | 
| 342 | 
            -
             | 
| 363 | 
            +
            post_install_message: ! '##########################################################
         | 
| 364 | 
            +
             | 
| 365 | 
            +
              # WARNING : sinatra-assetpack is not maintained anymore! #
         | 
| 366 | 
            +
             | 
| 367 | 
            +
              ##########################################################
         | 
| 343 368 |  | 
| 344 | 
            -
              Please note that sinatra-assetpack `img` helper method
         | 
| 345 | 
            -
              no longer sets the image width and height. This default
         | 
| 346 | 
            -
              behavior is not desirable with more recent CSS techniques
         | 
| 347 | 
            -
              regarding high resolutions images for "retina" displays
         | 
| 348 | 
            -
              and "responsive" design CSS using, for example, width:100%.
         | 
| 349 369 |  | 
| 350 | 
            -
               | 
| 370 | 
            +
              YOU MIGHT BE EXPOSED TO SECURITY ISSUES & BUGS.
         | 
| 351 371 |  | 
| 352 | 
            -
              Is now simply this (unless you explicitly set them) :
         | 
| 353 372 |  | 
| 354 | 
            -
               | 
| 373 | 
            +
              See https://github.com/rstacruz/sinatra-assetpack/issues/197
         | 
| 355 374 |  | 
| 356 | 
            -
             | 
| 375 | 
            +
            '
         | 
| 357 376 | 
             
            rdoc_options: []
         | 
| 358 377 | 
             
            require_paths:
         | 
| 359 378 | 
             
            - lib
         | 
| 360 379 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 361 380 | 
             
              requirements:
         | 
| 362 | 
            -
              - -  | 
| 381 | 
            +
              - - ! '>='
         | 
| 363 382 | 
             
                - !ruby/object:Gem::Version
         | 
| 364 383 | 
             
                  version: 1.9.2
         | 
| 365 384 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 366 385 | 
             
              requirements:
         | 
| 367 | 
            -
              - -  | 
| 386 | 
            +
              - - ! '>='
         | 
| 368 387 | 
             
                - !ruby/object:Gem::Version
         | 
| 369 388 | 
             
                  version: '0'
         | 
| 370 389 | 
             
            requirements: []
         | 
| 371 390 | 
             
            rubyforge_project: 
         | 
| 372 | 
            -
            rubygems_version: 2. | 
| 391 | 
            +
            rubygems_version: 2.4.8
         | 
| 373 392 | 
             
            signing_key: 
         | 
| 374 393 | 
             
            specification_version: 4
         | 
| 375 394 | 
             
            summary: Asset packager for Sinatra.
         | 
    
        metadata.gz.sig
    CHANGED
    
    | Binary file | 
    
        data/UPGRADING
    DELETED
    
    | @@ -1,17 +0,0 @@ | |
| 1 | 
            -
            ##################################################
         | 
| 2 | 
            -
            #  NOTE FOR UPGRADING FROM PRE-3.0.0 VERSION     #
         | 
| 3 | 
            -
            ##################################################
         | 
| 4 | 
            -
             | 
| 5 | 
            -
            Please note that sinatra-assetpack `img` helper method
         | 
| 6 | 
            -
            no longer sets the image width and height. This default
         | 
| 7 | 
            -
            behavior is not desirable with more recent CSS techniques
         | 
| 8 | 
            -
            regarding high resolutions images for "retina" displays
         | 
| 9 | 
            -
            and "responsive" design CSS using, for example, width:100%.
         | 
| 10 | 
            -
             | 
| 11 | 
            -
            <img src="retina.jpg" width="1200" height="600">
         | 
| 12 | 
            -
             | 
| 13 | 
            -
            Is now simply this (unless you explicitly set them) :
         | 
| 14 | 
            -
             | 
| 15 | 
            -
            <img src="retina.jpg">
         | 
| 16 | 
            -
             | 
| 17 | 
            -
            See https://github.com/rstacruz/sinatra-assetpack/pull/121
         |