hanami-ruby3 0.0.2 → 0.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
  SHA256:
3
- metadata.gz: 41755e4db118edc13bfda6752f927779584f06691fea7b02b28420f0ce86e7bf
4
- data.tar.gz: e2d52250ffbfd5bf86b5b9d66dc09bdeb6e941e6fcb3ed9850818416e9ac39e1
3
+ metadata.gz: 8aaa6b22733000fa1ba8e1e678fad8a21f3efa1a8c03a0860f8ce49aceb57b0b
4
+ data.tar.gz: 3068aeb3c3448d1b547d1637a2818839813deaaf5ef6d50c698bd4170c436c76
5
5
  SHA512:
6
- metadata.gz: 6f5e17e44224a290778be6c67856ca07e892067abd9829dc65f6fc3c8fe4f909747dddd836dd26d03502cfb44e0ea29de3e1a65d4823559f939b3eab3fcafb43
7
- data.tar.gz: 44b23ae025e4e4cd536b47e284d8e7eed59aa1124663f2ef1bf896bcb3d09088cdc10f8c164d6dce8005fb3f166863356106241e4d7e1a0cfad7c80b9c14b774
6
+ metadata.gz: 526813c24d0db9a2e2b3d4d1283d2cf3980a6b4b15169a31b63736b6795148794fd48e73d8527e722145c45eba8d12a2b0d966b57087b08b6f6fb1eca636444a
7
+ data.tar.gz: 460a0b14e02b2301bb2ed4b9cbad698c1b7de49220d562082b8bd7454721ebd8f85703008e444ebbcfee4795a7df4d8397225f52a0feef441365a21d6f601651
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hanami-ruby3 (0.0.2)
4
+ hanami-ruby3 (0.0.3)
5
5
  hanami (~> 1.3.4)
6
6
 
7
7
  GEM
@@ -4,6 +4,14 @@ module Hanami
4
4
  def logger(*args, **kwargs)
5
5
  if args.empty? && kwargs.empty?
6
6
  settings.fetch(:logger, nil)
7
+ # NOTE: Custom logger definition support, like:
8
+ # environment :test do
9
+ # logger Logger.new(level: :fatal)
10
+ elsif kwargs.empty?
11
+ settings[:logger] = [*args]
12
+ # NOTE: Hash-based logger definition support, like:
13
+ # environment :test do
14
+ # logger level: :fatal
7
15
  else
8
16
  settings[:logger] = [*args, kwargs]
9
17
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Hanami
4
4
  module Ruby3
5
- VERSION = "0.0.2"
5
+ VERSION = "0.0.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-ruby3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ascenda Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-27 00:00:00.000000000 Z
11
+ date: 2023-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hanami