asset_sync 1.2.0 → 1.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2b9e6c9d6ade5d65f516ee31d195c7feafc932f
4
- data.tar.gz: 0ad6e154aafdbed6b570b31c07b5b8b317a5b41e
3
+ metadata.gz: 2c68bc90d034746edc2c7534f4f4385459202d0b
4
+ data.tar.gz: 7c9b4ae0af9fd7c185e26bfcf727a099160f1c6e
5
5
  SHA512:
6
- metadata.gz: b8ebe629fd1674e4d0834c472d5a376e100bc84230d06fa903a2034ab8b1fbfe7453986d6b495678465411bd52a853f8365053d892cf9432594236bacd1899cb
7
- data.tar.gz: bacc8715e7117849d1f912882faff4519acb53431b4a3a4c858e6e9538f481027a7783e68a339b420210007dfc434af5dae7af44ff756836dfe15e51a4a7d8d5
6
+ metadata.gz: 2def4eaad25263680713d712c9f746ab471b19a05116e90513ea7dcb1dfc513ab21883c913dfc1c40d0fe1a88c651984df7433acf5ab60b0d0476b080d43aeb4
7
+ data.tar.gz: 777b4d76caf40ebf28f133b2d394616a268b61a61a6f4311eb171135623ae94a7aeecb6c1aeab651ab99fed05c586bd4f8975faf92670543f9f65bff0765779f
data/CHANGELOG.md CHANGED
@@ -18,6 +18,13 @@ This project adheres to [Semantic Versioning](http://semver.org/).
18
18
  - Nothing
19
19
 
20
20
 
21
+ ## [1.2.1] - 2016-08-19
22
+
23
+ ### Fixed
24
+
25
+ - Respect value of option `log_silently` even when `ENV['RAILS_GROUPS'] == 'assets'`
26
+
27
+
21
28
  ## [1.2.0] - 2016-08-17
22
29
 
23
30
  ### Added
@@ -774,5 +781,6 @@ Changes:
774
781
  * Merge branch 'sinatra'
775
782
 
776
783
 
777
- [Unreleased]: https://github.com/AssetSync/asset_sync/compare/v1.2.0...HEAD
784
+ [Unreleased]: https://github.com/AssetSync/asset_sync/compare/v1.2.1...HEAD
785
+ [1.2.1]: https://github.com/AssetSync/asset_sync/compare/v1.2.0...v1.2.1
778
786
  [1.2.0]: https://github.com/AssetSync/asset_sync/compare/v1.1.0...v1.2.0
data/README.md CHANGED
@@ -193,6 +193,10 @@ AssetSync.configure do |config|
193
193
  #
194
194
  # Fail silently. Useful for environments such as Heroku
195
195
  # config.fail_silently = true
196
+ #
197
+ # Log silently. Default is `true`. But you can set it to false if more logging message are preferred.
198
+ # Logging messages are sent to `STDOUT` when `log_silently` is falsy
199
+ # config.log_silently = true
196
200
  end
197
201
  ```
198
202
 
@@ -95,7 +95,7 @@ module AssetSync
95
95
  end
96
96
 
97
97
  def log_silently?
98
- ENV['RAILS_GROUPS'] == 'assets' || !!self.log_silently
98
+ !!self.log_silently
99
99
  end
100
100
 
101
101
  def enabled?
@@ -1,3 +1,3 @@
1
1
  module AssetSync
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
@@ -70,7 +70,7 @@ describe AssetSync do
70
70
  it "should default log_silently to true" do
71
71
  expect(AssetSync.config.log_silently).to be_truthy
72
72
  end
73
-
73
+
74
74
  it "log_silently? should reflect the configuration" do
75
75
  AssetSync.config.log_silently = false
76
76
  expect(AssetSync.config.log_silently?).to eq(false)
@@ -78,9 +78,9 @@ describe AssetSync do
78
78
 
79
79
  it "log_silently? should always be true if ENV['RAILS_GROUPS'] == 'assets'" do
80
80
  AssetSync.config.log_silently = false
81
- # make sure ENV is actually being checked ...
82
- expect(ENV).to receive(:[]).with('RAILS_GROUPS').and_return('assets')
83
- expect(AssetSync.config.log_silently?).to eq(true)
81
+ allow(ENV).to receive(:[]).with('RAILS_GROUPS').and_return('assets')
82
+
83
+ expect(AssetSync.config.log_silently?).to eq(false)
84
84
  end
85
85
 
86
86
  it "should default cdn_distribution_id to nil" do
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: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Hamilton