hanami-ruby3 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +2 -1
- data/hanami-ruby3.gemspec +1 -1
- data/lib/hanami/ruby3/hanami/configuration.rb +8 -0
- data/lib/hanami/ruby3/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8aaa6b22733000fa1ba8e1e678fad8a21f3efa1a8c03a0860f8ce49aceb57b0b
|
4
|
+
data.tar.gz: 3068aeb3c3448d1b547d1637a2818839813deaaf5ef6d50c698bd4170c436c76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 526813c24d0db9a2e2b3d4d1283d2cf3980a6b4b15169a31b63736b6795148794fd48e73d8527e722145c45eba8d12a2b0d966b57087b08b6f6fb1eca636444a
|
7
|
+
data.tar.gz: 460a0b14e02b2301bb2ed4b9cbad698c1b7de49220d562082b8bd7454721ebd8f85703008e444ebbcfee4795a7df4d8397225f52a0feef441365a21d6f601651
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -21,8 +21,9 @@ and your deprecations tracked.
|
|
21
21
|
In your project, install overrides for the given classes
|
22
22
|
|
23
23
|
```ruby
|
24
|
+
# custom-hanami-utils is required to allow installing Hanami 1.3.5 with ruby 3
|
24
25
|
gem 'hanami-utils', github: 'swilgosz/hanami-utils', branch: '1.3.x-support-ruby-3.0'
|
25
|
-
gem 'hanami-ruby3'
|
26
|
+
gem 'hanami-ruby3'
|
26
27
|
```
|
27
28
|
|
28
29
|
Then load overrides in the `environment.rb`, after loading Hanami files.
|
data/hanami-ruby3.gemspec
CHANGED
@@ -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
|
data/lib/hanami/ruby3/version.rb
CHANGED
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-ruby3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
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-
|
11
|
+
date: 2023-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hanami
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.3.4
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.3.4
|
27
27
|
description: Set of component overrides for Hanami 1.3.X to support Ruby 3.0
|