twiglet 3.8.0 → 3.9.0

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: 1cdc9271dfb49fa3e76ebd4684c2b6ad6164aba6a67c6586ebbd6c13c59d9070
4
- data.tar.gz: 77d75cab942109f1d6895d7cf92179df48d8ecccef266beb9bff8d11dc1f942a
3
+ metadata.gz: 24bb01ca290d4e49c2a38e69a0566bcb0e06d38e5c1daa120abb90c2a88c1826
4
+ data.tar.gz: 00e825a9ae2164604a36b54811bf659321bc5bb1bf96afc198399c890058004a
5
5
  SHA512:
6
- metadata.gz: 46b45ee3e218bf6499264f930d1aa8c4d60200c6b73e444400f640a764f29873eb4c3c49bf86c711cf38faf2c36b7b00005729e87b374180dfa6c214fd47d1bb
7
- data.tar.gz: dc62148dac2c6b797eacc86b01b001f54c643732256fbd682adb369eeb522ed6379849ca623fa3e658e7972c6c781149d047423251100e7c4251f84e0702ebd5
6
+ metadata.gz: 8992a36124f946eb46fc63fd432d5ae1c5359101572a759eea3a70bb7d1b5d3ccadc9d76a075b42222906f6eb2a4c03de273b967a4e7bb8d977ec9f2a2095954
7
+ data.tar.gz: bfd2479a25d3d2f5212721941bd2400ad6179080f65a913efa4256c7ca7304e8042efc9ca50f294e19d5157e4d640e2c03e97c45891320ea445ef32792eaaa88
data/.rubocop.yml CHANGED
@@ -2,11 +2,8 @@ inherit_gem:
2
2
  simplycop: .simplycop.yml
3
3
 
4
4
  AllCops:
5
- TargetRubyVersion: 2.6
6
- Rails:
7
- Enabled: false
8
- Documentation:
9
- Enabled: false
5
+ TargetRubyVersion: 3.0
6
+
10
7
  Metrics/BlockLength:
11
8
  Max: 250
12
9
  Metrics/AbcSize:
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.2
1
+ 3.2.2
@@ -10,7 +10,7 @@ module HashExtensions
10
10
  end
11
11
 
12
12
  def deep_merge(hash_to_merge)
13
- merger = proc { |_, val1, val2| val1.is_a?(Hash) && val2.is_a?(Hash) ? val1.merge(val2, &merger) : val2 }
13
+ merger = proc { |_, val_1, val_2| val_1.is_a?(Hash) && val_2.is_a?(Hash) ? val_1.merge(val_2, &merger) : val_2 }
14
14
  merge(hash_to_merge, &merger)
15
15
  end
16
16
 
@@ -6,11 +6,13 @@ module Twiglet
6
6
  class Formatter < ::Logger::Formatter
7
7
  Hash.include HashExtensions
8
8
 
9
- def initialize(service_name,
10
- validator:,
11
- default_properties: {},
12
- context_provider: nil,
13
- now: -> { Time.now.utc })
9
+ def initialize(
10
+ service_name,
11
+ validator:,
12
+ default_properties: {},
13
+ context_provider: nil,
14
+ now: -> { Time.now.utc }
15
+ )
14
16
  @service_name = service_name
15
17
  @now = now
16
18
  @default_properties = default_properties
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Twiglet
4
- VERSION = '3.8.0'
4
+ VERSION = '3.9.0'
5
5
  end
data/test/logger_test.rb CHANGED
@@ -34,8 +34,19 @@ describe Twiglet::Logger do
34
34
 
35
35
  it 'conforms to the standard Ruby Logger API' do
36
36
  [
37
- :debug, :debug?, :info, :info?, :warn, :warn?, :fatal, :fatal?, :error, :error?,
38
- :level, :level=, :sev_threshold=
37
+ :debug,
38
+ :debug?,
39
+ :info,
40
+ :info?,
41
+ :warn,
42
+ :warn?,
43
+ :fatal,
44
+ :fatal?,
45
+ :error,
46
+ :error?,
47
+ :level,
48
+ :level=,
49
+ :sev_threshold=
39
50
  ].each do |call|
40
51
  assert @logger.respond_to?(call), "Logger does not respond to #{call}"
41
52
  end
data/twiglet.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.files = `git ls-files`.split("\n")
18
18
 
19
19
  gem.require_paths = ['lib']
20
- gem.required_ruby_version = '>= 2.6'
20
+ gem.required_ruby_version = '>= 3.0'
21
21
 
22
22
  gem.license = 'Copyright SimplyBusiness'
23
23
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twiglet
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.0
4
+ version: 3.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simply Business
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-10 00:00:00.000000000 Z
11
+ date: 2023-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema
@@ -141,14 +141,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - ">="
143
143
  - !ruby/object:Gem::Version
144
- version: '2.6'
144
+ version: '3.0'
145
145
  required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0'
150
150
  requirements: []
151
- rubygems_version: 3.3.7
151
+ rubygems_version: 3.4.10
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: Twiglet