wright 0.4.1 → 0.4.2

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: d464c024f8b439f03886d5a488c4e07a07ec696c
4
- data.tar.gz: dcf67ec1beadd2f5a785f97386bf1c9f824d230b
3
+ metadata.gz: a78fc6fe7c02647f5c95b62c1dc4a1d761607ba5
4
+ data.tar.gz: a89ef89b32da99fe38e0d966e8a641beccc5d784
5
5
  SHA512:
6
- metadata.gz: 1828c3119e39c99ebc33f719d22cec3ebbdd0e25459209897c687dc6b0209da0173ccd6eb3fc7067e7fff42fcb68d5592b1db8a2f6a54466089f6e75e17e3d06
7
- data.tar.gz: 9e1ba2edb6545336fb163aac66a90ee23b2420ac2f9a042b88053b6e97ffe16ea4172d2679fe0f9aec2904d99afd1256df1c1a859c3930c803d5b76b155ccf55
6
+ metadata.gz: c1df351bcc0a13fbe286d63bb834f3ea6cbaf72df2f79a4cd7eb39e8cc3c3de9d36c14b6d83e37b84db101f3a9a8550fa0ddff84fe8b0de39a53268066d666b7
7
+ data.tar.gz: 754db64514e4b86785d8daff58d4128eebfce117b1d775c69b52b552bb6e0aa0ef5c0748356572290aae2669f5c6eb6c47ce428738389a455d471b52022d7b21
data/NEWS.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # wright NEWS
2
+ ## 0.4.2 (2015-06-15)
3
+ - Don't colorize log messages if Config[:log][:colorize] is nil (#13)
4
+
2
5
  ## 0.4.1 (2015-06-14)
3
6
  - Use GNU passwd group and user providers on Fedora
4
7
 
data/lib/wright/logger.rb CHANGED
@@ -58,7 +58,7 @@ module Wright # rubocop:disable Documentation
58
58
  def initialize(logdev = $stdout)
59
59
  super
60
60
  Wright::Config[:log] ||= {}
61
- return unless Wright::Config[:log][:colorize].nil?
61
+ return if Wright::Config[:log].has_key?(:colorize)
62
62
 
63
63
  Wright::Config[:log][:colorize] = logdev.tty?
64
64
  end
@@ -1,4 +1,4 @@
1
1
  module Wright # rubocop:disable Documentation
2
2
  # Current wright version
3
- VERSION = '0.4.1'
3
+ VERSION = '0.4.2'
4
4
  end
data/spec/logger_spec.rb CHANGED
@@ -36,6 +36,10 @@ describe Wright::Logger do
36
36
  Wright::Config[:log] = { colorize: false }
37
37
  Wright::Logger.new
38
38
  Wright::Config[:log][:colorize].must_equal false
39
+
40
+ Wright::Config[:log] = { colorize: nil }
41
+ Wright::Logger.new
42
+ Wright::Config[:log][:colorize].must_be_nil
39
43
  end
40
44
 
41
45
  it 'should format log messages according to the config' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wright
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Boehm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-14 00:00:00.000000000 Z
11
+ date: 2015-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest