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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d1ea1f6542da9c25967c48b656397f2a399e51ed288a9cd8606b8e806fbbab0
4
- data.tar.gz: 9a9b8072477e17078498ba1e51b4fd8232f144aa7c293b0f7a9f16adebac5dcd
3
+ metadata.gz: 8aaa6b22733000fa1ba8e1e678fad8a21f3efa1a8c03a0860f8ce49aceb57b0b
4
+ data.tar.gz: 3068aeb3c3448d1b547d1637a2818839813deaaf5ef6d50c698bd4170c436c76
5
5
  SHA512:
6
- metadata.gz: f810cc9a7bd9424dbb397fdee27bd8f3bc06d828e764e4dc639506ba159ead5cd9d564b0b502570ee36e42dbead8212a96b4ba062c4b63c1432acd3343d0aed1
7
- data.tar.gz: 94c8a0e900e62798242fd9ee242ab44aef9b0c0f51b9378a74f9f792c30c52a08250286b17f13baa8fbf957c879b48da7df1db5d9510a4c6c66a1254b3e700cf
6
+ metadata.gz: 526813c24d0db9a2e2b3d4d1283d2cf3980a6b4b15169a31b63736b6795148794fd48e73d8527e722145c45eba8d12a2b0d966b57087b08b6f6fb1eca636444a
7
+ data.tar.gz: 460a0b14e02b2301bb2ed4b9cbad698c1b7de49220d562082b8bd7454721ebd8f85703008e444ebbcfee4795a7df4d8397225f52a0feef441365a21d6f601651
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hanami-ruby3 (0.0.1)
5
- hanami (= 1.3.4)
4
+ hanami-ruby3 (0.0.3)
5
+ hanami (~> 1.3.4)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
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', path: '../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
@@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ["lib"]
28
28
 
29
- spec.add_dependency "hanami", "1.3.4"
29
+ spec.add_dependency "hanami", "~> 1.3.4"
30
30
  end
@@ -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.1"
5
+ VERSION = "0.0.3"
6
6
  end
7
7
  end
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.1
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
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