asset_sync 2.8.0 → 2.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74e4b4e4b5b2bfd4c4cfee260974c10edc2c30f20eaf1e78b81a5a5e2968b301
4
- data.tar.gz: d85f293b10a8c1112abacfe03f2be361924022456c6de596dedc53bd551553c0
3
+ metadata.gz: 8fe1b25680b5ffe0564794f00e56e46d6f25fb1880b23f6887d653aa8e6ccdbd
4
+ data.tar.gz: 3d3b3847e385485bf86ba3752aa7a73e87418866cf475312844c5bd50130060f
5
5
  SHA512:
6
- metadata.gz: 017ae2ede9e7ab17ceefd97e4ec5d5d0e397f3836ef0ade762522c8a5282e337c14a268a606e6822b15f60d4be4523c487c6076e410b9fbad37ce6d65c9c5458
7
- data.tar.gz: b8528e7ecb9489e57cc5e1a8ee6f1982e4b16ddc20e2c4d46ec49e38616924943858f6291e329ff69df0a5775ef0676998f3e738ded7a23d166f5148c0c4fddd
6
+ metadata.gz: d4b805b6cac2e2f7c0a1e15d1225aa52c263a9c38036871e5e34807ba51fd7fa568ac1d49d2da629f5132e0d41c9cce45c020a0439aace9809b1f5f6b6cb9f16
7
+ data.tar.gz: 8bf270ecef14d5b3a1e1bc760d05aacd5009e5b69d5b927f731571380c008894adf33b7c9c554b39981b22c17f65afbab5b84b492c687c39b5828549a3504cde
@@ -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.0...HEAD
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
@@ -15,8 +15,6 @@ Gem::Specification.new do |s|
15
15
 
16
16
  s.license = 'MIT'
17
17
 
18
- s.rubyforge_project = "asset_sync"
19
-
20
18
  s.add_dependency("fog-core")
21
19
  s.add_dependency('unf')
22
20
  s.add_dependency('activemodel', ">= 4.1.0")
@@ -361,7 +361,7 @@ module AssetSync
361
361
  end
362
362
 
363
363
  def to_bool
364
- !@value.nil?
364
+ !!@value
365
365
  end
366
366
  end
367
367
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AssetSync
4
- VERSION = "2.8.0".freeze
4
+ VERSION = "2.8.1".freeze
5
5
  end
@@ -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.0
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-06-17 00:00:00.000000000 Z
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.3
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