mixlib-log 3.0.8 → 3.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: 95774ad5586c72101fe71dde872dc0f88c01de6d9ddffb152b3015694e76b397
4
- data.tar.gz: ed308a5b638fb1e78389c868e58c0a41385e6f2dd78c20f92e9b1e1c2f3bf351
3
+ metadata.gz: 9cf0d4862556c543af226177bf63984fd8ced3207b4d638572bae98065e0dbaa
4
+ data.tar.gz: 2d9522399d89fe5f905a04e7c8df1f63cf9d74158d10eeb0d101df3529a7ec01
5
5
  SHA512:
6
- metadata.gz: a28f3d2af4a0c823cad7f648fdd9f16d58f16e6ad65b7f2e154c2db904ff4bd7494444c6a6c04115b08463f463f0d589fd874eea0457d591b085e2b914319a4b
7
- data.tar.gz: 1a92978027ba1bc10acbb74b5959a21f27d1c4918e85e29b893084bea4a3676cb83e3788ec10d85a3cba33fe1d5f1080acdcd3067acfac0c30b7fab896104121
6
+ metadata.gz: 4d5486d4da43e9f99bac74485d9aec655160826c5c060c7f5ed1640bbf0a4b95abbe3a1cc5d3371891b84f34c06d6ac230805026663b9810685393ae875c64db
7
+ data.tar.gz: e13cd3c8a1df41fff8b54042eb1f79f8af8f62226ad83623b27687f9131282d86f923b780e709c48015baf53e507ddee7c05b79fe04fe23f630c36d7fd9950a5
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
 
18
18
  require "logger"
19
- require "time"
19
+ require "time" unless defined?(Time.zone_offset)
20
20
 
21
21
  module Mixlib
22
22
  module Log
@@ -33,11 +33,7 @@ module Mixlib
33
33
  # Create an instance.
34
34
  #
35
35
  def initialize(logdev)
36
- @progname = nil
37
- @level = DEBUG
38
- @default_formatter = Formatter.new
39
- @formatter = nil
40
- @logdev = nil
36
+ super(nil)
41
37
  if logdev
42
38
  @logdev = LocklessLogDevice.new(logdev)
43
39
  end
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  module Log
3
- VERSION = "3.0.8".freeze
3
+ VERSION = "3.1.1".freeze
4
4
  end
5
5
  end
data/lib/mixlib/log.rb CHANGED
@@ -118,7 +118,7 @@ module Mixlib
118
118
  if new_level.nil?
119
119
  LEVEL_NAMES[logger.level]
120
120
  else
121
- self.level = (new_level)
121
+ self.level = new_level
122
122
  end
123
123
  end
124
124
 
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixlib-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.8
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-30 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2024-07-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ffi
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "<"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.17.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "<"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.17.0
13
27
  description:
14
28
  email: info@chef.io
15
29
  executables: []
@@ -35,14 +49,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
35
49
  requirements:
36
50
  - - ">="
37
51
  - !ruby/object:Gem::Version
38
- version: '2.3'
52
+ version: '2.7'
39
53
  required_rubygems_version: !ruby/object:Gem::Requirement
40
54
  requirements:
41
55
  - - ">="
42
56
  - !ruby/object:Gem::Version
43
57
  version: '0'
44
58
  requirements: []
45
- rubygems_version: 3.0.3
59
+ rubygems_version: 3.2.3
46
60
  signing_key:
47
61
  specification_version: 4
48
62
  summary: A gem that provides a simple mixin for log functionality