dry-logger 1.0.1 → 1.0.2

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: e066ca44b228d611e0170f99488de6fa110d6ad2bdfea5de5e5f9e7513143019
4
- data.tar.gz: d563a0fa78660c91e0757a66194269cfc565075d5a6f69356ebd1aec2cb18d6e
3
+ metadata.gz: 684f7f0c0e79988487b854789ccb5fce18a2da413db5c0e002a8dd053da60ca8
4
+ data.tar.gz: 0c55f8e65565349555885bcfc948d08f4fb1a84114640af14025d684ce3a3d6f
5
5
  SHA512:
6
- metadata.gz: f856780a1ef1fd89828a835c27f7c33b1fd4c5e518c5be8d9251c503d60e75f73b0a8b30e9dbeffdfea90dcc05bf9848fd31fb7ce972eba4b96c63bef6320165
7
- data.tar.gz: 835f8a12cb10da5a459d4a8cc0b32f8e0c29afff000db89a1014c3686709bf6cd074e344ebcf6a4378c285f024c481df483527a8ec7e92b8fe79aad360628d4a
6
+ metadata.gz: e6946ec738001c7b1c65c2053792940150d161d5b42fe199c657cd69640ad8156665a332057f2b71f195e6568cd344cee584df3c4d5d0366f29e6fee6402cf7b
7
+ data.tar.gz: ea712b521c34f3d595413de30251bdc9fa1cbf63e52e70a50905abccd9f7d3d627ed1322094f85261cf33991c8574ab9480f5941b44f51b0f0432d3c95e50d09
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  <!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
2
2
 
3
+ ## 1.0.2 2022-11-24
4
+
5
+
6
+ ### Fixed
7
+
8
+ - Handle `:log_if` in Proxy constructors (via #23) (@solnic)
9
+
10
+
11
+ [Compare v1.0.1...v1.0.2](https://github.com/dry-rb/dry-logger/compare/v1.0.1...v1.0.2)
12
+
3
13
  ## 1.0.1 2022-11-23
4
14
 
5
15
 
@@ -35,6 +35,14 @@ module Dry
35
35
  end
36
36
  end
37
37
 
38
+ # @since 1.0.2
39
+ # @api private
40
+ def initialize(backend, **options)
41
+ super(backend)
42
+ @options = options
43
+ self.log_if = @options[:log_if]
44
+ end
45
+
38
46
  # @since 1.0.0
39
47
  # @api private
40
48
  def log?(entry)
@@ -260,7 +260,7 @@ module Dry
260
260
  backend =
261
261
  case (instance ||= Dry::Logger.new(**options, **backend_options))
262
262
  when Backends::Stream then instance
263
- else Backends::Proxy.new(instance)
263
+ else Backends::Proxy.new(instance, **options, **backend_options)
264
264
  end
265
265
 
266
266
  yield(backend) if block_given?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Logger
5
- VERSION = "1.0.1"
5
+ VERSION = "1.0.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-23 00:00:00.000000000 Z
11
+ date: 2022-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec