ruby_smart-simple_logger 1.1.0 → 1.1.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: 8cc72f952c5cfb9d1a5e2fca3ff7ae6d8b697b89fef74faa4a8a6dcf20db61ce
4
- data.tar.gz: 2649fb1c0e53cada001815d355677266da520781a474dbcc7d7187df518306b6
3
+ metadata.gz: c9d250fc038e12f5d76ede43d6714efb039be7b6093bd4ea8abca6dfc937d8cc
4
+ data.tar.gz: 52d4bc7495fea29db91b336161b7af454d55b9f22e76f1e83291264844686df7
5
5
  SHA512:
6
- metadata.gz: 16fe32793aeec46fffa7b2e0830ba56d53910751945a624c2652566b10d318ace07a625db96a76901c7c2afb3f3505282658df37633fdc793725be7905660856
7
- data.tar.gz: 39b52c84ec5d173199f9e3234abd11c0747fee9ceaee55f71b17b8185cd0f3ff14fcb48ae8dc3c89b88895799abc0d0680f0efcde5842aefc2b448d42312641a
6
+ metadata.gz: cf60c99604f5da1abd4bc4ffa5c536c233728c242c7c198849fd1838cacf856a0abaaef39f6cb1aa46fc9adbd85be329637f01e0844c39e43bdac660db311a20
7
+ data.tar.gz: 7c618af918fd6a19228f152fd456a8a4f2d99bbeceae1aec4d2aa6706f11f2138ba575390d68076f2d07e29fe09fbcdce75c64baed06a887becb752662f391bd
data/docs/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # RubySmart::SimpleLogger - CHANGELOG
2
2
 
3
+ ## [1.1.1] - 2023-02-07
4
+ * **[fix]** 'ruby 2.6.x' kwargs for `::Logger::LogDevice` messed up with 'binmode'
5
+
3
6
  ## [1.1.0] - 2023-02-07
4
7
  * **[add]** `#processed` method for logger
5
8
  * **[ref]** `Debugger` to enforce a 'DEBUG' severity
@@ -81,13 +81,19 @@ module RubySmart
81
81
 
82
82
  # special case handling to additionally stdout logs
83
83
  ::RubySmart::SimpleLogger::Devices::MultiDevice.register(
84
- ::Logger::LogDevice.new(_logdev(builtin),
85
- shift_age: opts[:shift_age] || 0,
86
- shift_size: opts[:shift_size] || 1048576,
87
- shift_period_suffix: opts[:shift_period_suffix],
88
- binmode: opts[:binmode]),
89
- ::RubySmart::SimpleLogger::Formatter.new(format: device_format, nl: _nl(opts), clr: false)
90
- )
84
+ if GemInfo.match?(RUBY_VERSION, '< 2.7')
85
+ ::Logger::LogDevice.new(_logdev(builtin),
86
+ shift_age: opts[:shift_age] || 0,
87
+ shift_size: opts[:shift_size] || 1048576,
88
+ shift_period_suffix: opts[:shift_period_suffix])
89
+ else
90
+ ::Logger::LogDevice.new(_logdev(builtin),
91
+ shift_age: opts[:shift_age] || 0,
92
+ shift_size: opts[:shift_size] || 1048576,
93
+ shift_period_suffix: opts[:shift_period_suffix],
94
+ binmode: opts[:binmode])
95
+ end,
96
+ ::RubySmart::SimpleLogger::Formatter.new(format: device_format, nl: _nl(opts), clr: false))
91
97
  .register(STDOUT, ::RubySmart::SimpleLogger::Formatter.new(format: device_format, nl: _nl(opts), clr: opts[:clr]))
92
98
  else
93
99
  builtin
@@ -10,7 +10,7 @@ module RubySmart
10
10
  module VERSION
11
11
  MAJOR = 1
12
12
  MINOR = 1
13
- TINY = 0
13
+ TINY = 1
14
14
  PRE = nil
15
15
 
16
16
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_smart-simple_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Gonsior
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  - !ruby/object:Gem::Version
162
162
  version: '0'
163
163
  requirements: []
164
- rubygems_version: 3.3.7
164
+ rubygems_version: 3.3.26
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: A simple, multifunctional logging library for Ruby.