tee_logger 3.0.2 → 3.0.3

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
  SHA1:
3
- metadata.gz: 3c79949078c49a4d284fbc91a1d9f95096ca7d84
4
- data.tar.gz: 353081f242f08a788ce77aeffec40b6eddb6c5b9
3
+ metadata.gz: 6c8a72c49080cdf67b57ba78fd480cbe99cb4e05
4
+ data.tar.gz: 98be6da99a89f38ab7543b8f448a5a8d89bb0c15
5
5
  SHA512:
6
- metadata.gz: 56e5b76c2bc1b6eff02d16997c04f19b38b15db1cc0675e80ce82162703224603d6de63ade285d587c9477d4e93791661c13d9219657479aad57bf55fb17c55a
7
- data.tar.gz: 2ac56759895edff78e7f274cbe5126986dc5f8b14a22c777bca51e22c1c7d7acace9432ae8a5e083369dd8233c0f162802e2cec5fa1e6da2a08eee7b00dc427f
6
+ metadata.gz: eabb749828cb2247faac7382e621f31283e1f450a04a0517de3412a16276fe348b86a3fd4b3e8479cd6559aaf939265d3225219dd8fe5dad662892092c6d7f9a
7
+ data.tar.gz: 74b47c66dc590844949118221f9aaf2425e4da4db37c705d909224a35de0eecfe4da62807ca9522e5508a7b5f3a4c484a4cb1590c31a773529d4c611f5445e3f
@@ -1,3 +1,7 @@
1
+ # v3.0.3
2
+ - shared_examples_for_tee_logger_spec.rb [ae1e481](https://github.com/k-ta-yamada/tee_logger/commit/ae1e481)
3
+ - new constant for disabling formatter [478eccb](https://github.com/k-ta-yamada/tee_logger/commit/478eccb)
4
+
1
5
  # v3.0.2
2
6
  - refactoring
3
7
  - CONSTANTS move to ./lib/constants.rb
@@ -104,7 +104,7 @@ module TeeLogger
104
104
  yield
105
105
  enable(logdev_name)
106
106
  else
107
- logdev_instance(logdev_name).formatter = proc { |_, _, _, _| '' }
107
+ logdev_instance(logdev_name).formatter = FORMATTER_FOR_DISABLING
108
108
  end
109
109
  end
110
110
 
@@ -9,6 +9,8 @@ module TeeLogger
9
9
  # defined paired of logdev name
10
10
  LOGDEV_REVERSE = { console: :logfile, logfile: :console }
11
11
 
12
+ FORMATTER_FOR_DISABLING = proc { |_severity, _time, _progname, _msg| '' }
13
+
12
14
  # using private method #parse_to_hash
13
15
  ParsedOption = Struct.new(:logdev_name, :indent_level)
14
16
  # LOGDEV_NAMES not incuded error
@@ -1,5 +1,5 @@
1
1
  # namespace
2
2
  module TeeLogger
3
3
  # version number
4
- VERSION = '3.0.2'
4
+ VERSION = '3.0.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tee_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - k-ta-yamada
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-10 00:00:00.000000000 Z
11
+ date: 2015-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler