asset_sync 2.8.0 → 2.8.1
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/CHANGELOG.md +15 -1
 - data/asset_sync.gemspec +0 -2
 - data/lib/asset_sync/config.rb +1 -1
 - data/lib/asset_sync/version.rb +1 -1
 - data/spec/unit/asset_sync_spec.rb +35 -3
 - metadata +3 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 8fe1b25680b5ffe0564794f00e56e46d6f25fb1880b23f6887d653aa8e6ccdbd
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 3d3b3847e385485bf86ba3752aa7a73e87418866cf475312844c5bd50130060f
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: d4b805b6cac2e2f7c0a1e15d1225aa52c263a9c38036871e5e34807ba51fd7fa568ac1d49d2da629f5132e0d41c9cce45c020a0439aace9809b1f5f6b6cb9f16
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 8bf270ecef14d5b3a1e1bc760d05aacd5009e5b69d5b927f731571380c008894adf33b7c9c554b39981b22c17f65afbab5b84b492c687c39b5828549a3504cde
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -18,6 +18,19 @@ This project adheres to [Semantic Versioning](http://semver.org/). 
     | 
|
| 
       18 
18 
     | 
    
         
             
            - Nothing
         
     | 
| 
       19 
19 
     | 
    
         | 
| 
       20 
20 
     | 
    
         | 
| 
      
 21 
     | 
    
         
            +
            ## [2.8.1] - 2019-07-25
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
            ### Changed
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
            - Removed `rubyforge_project` from gemspec
         
     | 
| 
      
 26 
     | 
    
         
            +
              (https://github.com/AssetSync/asset_sync/pull/386)
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
            ### Fixed
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
            - Fixed when `fog_public` set to `false`, file were still set to be public
         
     | 
| 
      
 31 
     | 
    
         
            +
              (https://github.com/AssetSync/asset_sync/pull/387)
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
       21 
34 
     | 
    
         
             
            ## [2.8.0] - 2019-06-17
         
     | 
| 
       22 
35 
     | 
    
         | 
| 
       23 
36 
     | 
    
         
             
            ### Added
         
     | 
| 
         @@ -909,7 +922,8 @@ Changes: 
     | 
|
| 
       909 
922 
     | 
    
         
             
                * Merge branch 'sinatra'
         
     | 
| 
       910 
923 
     | 
    
         | 
| 
       911 
924 
     | 
    
         | 
| 
       912 
     | 
    
         
            -
            [Unreleased]: https://github.com/AssetSync/asset_sync/compare/v2.8. 
     | 
| 
      
 925 
     | 
    
         
            +
            [Unreleased]: https://github.com/AssetSync/asset_sync/compare/v2.8.1...HEAD
         
     | 
| 
      
 926 
     | 
    
         
            +
            [2.8.1]: https://github.com/AssetSync/asset_sync/compare/v2.8.0...v2.8.1
         
     | 
| 
       913 
927 
     | 
    
         
             
            [2.8.0]: https://github.com/AssetSync/asset_sync/compare/v2.7.0...v2.8.0
         
     | 
| 
       914 
928 
     | 
    
         
             
            [2.7.0]: https://github.com/AssetSync/asset_sync/compare/v2.6.0...v2.7.0
         
     | 
| 
       915 
929 
     | 
    
         
             
            [2.6.0]: https://github.com/AssetSync/asset_sync/compare/v2.5.0...v2.6.0
         
     | 
    
        data/asset_sync.gemspec
    CHANGED
    
    
    
        data/lib/asset_sync/config.rb
    CHANGED
    
    
    
        data/lib/asset_sync/version.rb
    CHANGED
    
    
| 
         @@ -145,7 +145,7 @@ describe AssetSync do 
     | 
|
| 
       145 
145 
     | 
    
         | 
| 
       146 
146 
     | 
    
         
             
                it "should default asset_regexps to match regexps" do
         
     | 
| 
       147 
147 
     | 
    
         
             
                  expect(AssetSync.config.cache_asset_regexps).to eq(['cache_me.js', /cache_some\.\d{8}\.css/])
         
     | 
| 
       148 
     | 
    
         
            -
                end 
     | 
| 
      
 148 
     | 
    
         
            +
                end
         
     | 
| 
       149 
149 
     | 
    
         
             
              end
         
     | 
| 
       150 
150 
     | 
    
         | 
| 
       151 
151 
     | 
    
         
             
              describe 'from yml, exporting to a mobile hybrid development directory' do
         
     | 
| 
         @@ -255,12 +255,12 @@ describe AssetSync do 
     | 
|
| 
       255 
255 
     | 
    
         
             
                  expect(AssetSync.config.manifest_path).to match(/public\/custom_assets\/manifest.yml/)
         
     | 
| 
       256 
256 
     | 
    
         
             
                end
         
     | 
| 
       257 
257 
     | 
    
         
             
              end
         
     | 
| 
       258 
     | 
    
         
            -
             
     | 
| 
      
 258 
     | 
    
         
            +
             
     | 
| 
       259 
259 
     | 
    
         
             
              describe 'with cache_asset_regexps' do
         
     | 
| 
       260 
260 
     | 
    
         
             
                before(:each) do
         
     | 
| 
       261 
261 
     | 
    
         
             
                  AssetSync.config = AssetSync::Config.new
         
     | 
| 
       262 
262 
     | 
    
         
             
                end
         
     | 
| 
       263 
     | 
    
         
            -
             
     | 
| 
      
 263 
     | 
    
         
            +
             
     | 
| 
       264 
264 
     | 
    
         
             
                it "config.cache_asset_regexp should set cache_asset_regexps" do
         
     | 
| 
       265 
265 
     | 
    
         
             
                  AssetSync.config.cache_asset_regexp = /\.[a-f0-9]{8}/i
         
     | 
| 
       266 
266 
     | 
    
         
             
                  expect(AssetSync.config.cache_asset_regexps.size).to eq(1)
         
     | 
| 
         @@ -283,4 +283,36 @@ describe AssetSync do 
     | 
|
| 
       283 
283 
     | 
    
         
             
                  expect{ AssetSync::Config.new }.to raise_error(Psych::SyntaxError)
         
     | 
| 
       284 
284 
     | 
    
         
             
                end
         
     | 
| 
       285 
285 
     | 
    
         
             
              end
         
     | 
| 
      
 286 
     | 
    
         
            +
             
     | 
| 
      
 287 
     | 
    
         
            +
              describe 'FogPublicValue' do
         
     | 
| 
      
 288 
     | 
    
         
            +
                describe "#to_bool" do
         
     | 
| 
      
 289 
     | 
    
         
            +
                  it "true should be converted to true" do
         
     | 
| 
      
 290 
     | 
    
         
            +
                    expect(AssetSync::Config::FogPublicValue.new(true).to_bool).to be_truthy
         
     | 
| 
      
 291 
     | 
    
         
            +
                  end
         
     | 
| 
      
 292 
     | 
    
         
            +
                  it "false should be converted to false" do
         
     | 
| 
      
 293 
     | 
    
         
            +
                    expect(AssetSync::Config::FogPublicValue.new(false).to_bool).to be_falsey
         
     | 
| 
      
 294 
     | 
    
         
            +
                  end
         
     | 
| 
      
 295 
     | 
    
         
            +
                  it "nil should be converted to false" do
         
     | 
| 
      
 296 
     | 
    
         
            +
                    expect(AssetSync::Config::FogPublicValue.new(nil).to_bool).to be_falsey
         
     | 
| 
      
 297 
     | 
    
         
            +
                  end
         
     | 
| 
      
 298 
     | 
    
         
            +
                  it "'default' should be converted to false" do
         
     | 
| 
      
 299 
     | 
    
         
            +
                    expect(AssetSync::Config::FogPublicValue.new("default").to_bool).to be_truthy
         
     | 
| 
      
 300 
     | 
    
         
            +
                  end
         
     | 
| 
      
 301 
     | 
    
         
            +
                end
         
     | 
| 
      
 302 
     | 
    
         
            +
             
     | 
| 
      
 303 
     | 
    
         
            +
                describe "#use_explicit_value?" do
         
     | 
| 
      
 304 
     | 
    
         
            +
                  it "true should be converted to true" do
         
     | 
| 
      
 305 
     | 
    
         
            +
                    expect(AssetSync::Config::FogPublicValue.new(true).use_explicit_value?).to be_truthy
         
     | 
| 
      
 306 
     | 
    
         
            +
                  end
         
     | 
| 
      
 307 
     | 
    
         
            +
                  it "false should be converted to true" do
         
     | 
| 
      
 308 
     | 
    
         
            +
                    expect(AssetSync::Config::FogPublicValue.new(false).use_explicit_value?).to be_truthy
         
     | 
| 
      
 309 
     | 
    
         
            +
                  end
         
     | 
| 
      
 310 
     | 
    
         
            +
                  it "nil should be converted to true" do
         
     | 
| 
      
 311 
     | 
    
         
            +
                    expect(AssetSync::Config::FogPublicValue.new(nil).use_explicit_value?).to be_truthy
         
     | 
| 
      
 312 
     | 
    
         
            +
                  end
         
     | 
| 
      
 313 
     | 
    
         
            +
                  it "'default' should be converted to false" do
         
     | 
| 
      
 314 
     | 
    
         
            +
                    expect(AssetSync::Config::FogPublicValue.new("default").use_explicit_value?).to be_falsey
         
     | 
| 
      
 315 
     | 
    
         
            +
                  end
         
     | 
| 
      
 316 
     | 
    
         
            +
                end
         
     | 
| 
      
 317 
     | 
    
         
            +
              end
         
     | 
| 
       286 
318 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: asset_sync
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 2.8. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.8.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Simon Hamilton
         
     | 
| 
         @@ -11,7 +11,7 @@ authors: 
     | 
|
| 
       11 
11 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       12 
12 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       13 
13 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       14 
     | 
    
         
            -
            date: 2019- 
     | 
| 
      
 14 
     | 
    
         
            +
            date: 2019-07-25 00:00:00.000000000 Z
         
     | 
| 
       15 
15 
     | 
    
         
             
            dependencies:
         
     | 
| 
       16 
16 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       17 
17 
     | 
    
         
             
              name: fog-core
         
     | 
| 
         @@ -257,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       257 
257 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       258 
258 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       259 
259 
     | 
    
         
             
            requirements: []
         
     | 
| 
       260 
     | 
    
         
            -
            rubygems_version: 3.0. 
     | 
| 
      
 260 
     | 
    
         
            +
            rubygems_version: 3.0.4
         
     | 
| 
       261 
261 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       262 
262 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       263 
263 
     | 
    
         
             
            summary: Synchronises Assets in a Rails 3 application and Amazon S3/Cloudfront and
         
     |