hanami-utils 2.1.0 → 2.2.0.beta2

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: 3dc0618bfe7e44762b35b4acae6dafe21b1ddd512121692d092fabbed22a1969
4
- data.tar.gz: e9ee04ed321bbb809219d32f29efc45c756292e7636bbd4c6d5c044af57b0ae2
3
+ metadata.gz: 7360ba0193e762c577db1232b7eb4abd7b836bc14b1cda342add6f9fac5952e2
4
+ data.tar.gz: 35cc9b1af9755d61e2afde4f712407cd8697adef17472c4d13f3f7a2f9beda79
5
5
  SHA512:
6
- metadata.gz: ba35074d29a8ec997fcc944b376124bdccba9959034889eeb0c18bd765b933aaa8afb9b5afb27ddd2dc540c86af3e9b78a25448981a76abcceff2d604399283f
7
- data.tar.gz: c118318406fa8d49aee34ceac5b5db0c66b2e8ddbef6caae78c1e417cfdb5f85e43acfe333609e054f65ed4849581effaa57d9d16486e9142c4313e029b7dad9
6
+ metadata.gz: bc858ec423bb7b260f5d3fbc2c99d307d12fe5529ee03f45ff3b8a4a7b1fa76273c5fae46723b9e8a20053a8844c108edc8d845862587c04cfae161293944336
7
+ data.tar.gz: 877570b72ab19befdd39d0280598f44f5e9f8cfb5e4838e3d6f55264ac0ab9689bd0d44112841624af81ac8b5f500cd82523974a0305e681c551d294fd0014eb
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  Ruby core extensions and class utilities for Hanami
4
4
 
5
+ ## v2.2.0.beta2 - 2024-09-25
6
+
7
+ ## v2.2.0.beta1 - 2024-07-16
8
+
9
+ ### Changed
10
+
11
+ - Drop support for Ruby 3.0
12
+
5
13
  ## v2.1.0 - 2024-02-27
6
14
 
7
15
  ## v2.1.0.rc3 - 2024-02-16
data/README.md CHANGED
@@ -5,30 +5,23 @@ Ruby core extensions and class utilities for [Hanami](http://hanamirb.org)
5
5
  ## Status
6
6
 
7
7
  [![Gem Version](https://badge.fury.io/rb/hanami-utils.svg)](https://badge.fury.io/rb/hanami-utils)
8
- [![CI](https://github.com/hanami/utils/workflows/ci/badge.svg?branch=main)](https://github.com/hanami/utils/actions?query=workflow%3Aci+branch%3Amain)
8
+ [![CI](https://github.com/hanami/utils/actions/workflows/ci.yml/badge.svg)](https://github.com/hanami/utils/actions?query=workflow%3Aci+branch%3Amain)
9
9
  [![Test Coverage](https://codecov.io/gh/hanami/utils/branch/main/graph/badge.svg)](https://codecov.io/gh/hanami/utils)
10
10
  [![Depfu](https://badges.depfu.com/badges/a8545fb67cf32a2c75b6227bc0821027/overview.svg)](https://depfu.com/github/hanami/utils?project=Bundler)
11
- [![Inline Docs](http://inch-ci.org/github/hanami/utils.svg)](http://inch-ci.org/github/hanami/utils)
12
-
13
- ## Version
14
-
15
- **This branch contains the code for `hanami-utils` 2.x.**
16
11
 
17
12
  ## Contact
18
13
 
19
14
  - Home page: http://hanamirb.org
20
15
  - Mailing List: http://hanamirb.org/mailing-list
21
- - API Doc: http://rdoc.info/gems/hanami-utils
16
+ - API Doc: http://rubydoc.info/gems/hanami-utils
22
17
  - Bugs/Issues: https://github.com/hanami/utils/issues
23
- - Support: http://stackoverflow.com/questions/tagged/hanami
24
18
  - Chat: http://chat.hanamirb.org
25
19
 
26
- ## Rubies
27
-
28
- **Hanami::Utils** supports Ruby (MRI) 3.0+
29
20
 
30
21
  ## Installation
31
22
 
23
+ **Hanami::Utils** supports Ruby (MRI) 3.1+.
24
+
32
25
  Add this line to your application's Gemfile:
33
26
 
34
27
  ```ruby
@@ -128,4 +121,4 @@ Enhanced version of Ruby's `String`. [[API doc](http://www.rubydoc.info/gems/han
128
121
 
129
122
  ## Copyright
130
123
 
131
- Copyright © 2014 Hanami Team – Released under MIT License
124
+ Copyright © 2014–2024 Hanami Team – Released under MIT License
data/hanami-utils.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib"]
20
20
  spec.metadata["rubygems_mfa_required"] = "true"
21
- spec.required_ruby_version = ">= 3.0"
21
+ spec.required_ruby_version = ">= 3.1"
22
22
 
23
23
  spec.add_dependency "dry-core", "~> 1.0", "< 2"
24
24
  spec.add_dependency "dry-transformer", "~> 1.0", "< 2"
@@ -93,7 +93,7 @@ module Hanami
93
93
  # response = Response.new(200, {}, 'hello')
94
94
  # Hanami::Utils::Kernel.Array(response) # => [200, {}, "hello"]
95
95
  def self.Array(arg)
96
- super(arg).dup.tap do |a|
96
+ super.dup.tap do |a|
97
97
  a.flatten!
98
98
  a.compact!
99
99
  a.uniq!
@@ -215,7 +215,7 @@ module Hanami
215
215
  if arg.respond_to?(:to_h)
216
216
  arg.to_h
217
217
  else
218
- super(arg)
218
+ super
219
219
  end
220
220
  rescue NoMethodError
221
221
  raise TypeError.new "can't convert #{inspect_type_error(arg)}into Hash"
@@ -329,7 +329,7 @@ module Hanami
329
329
  # input = Complex(2, 3)
330
330
  # Hanami::Utils::Kernel.Integer(input) # => TypeError
331
331
  def self.Integer(arg)
332
- super(arg)
332
+ super
333
333
  rescue ArgumentError, TypeError, NoMethodError
334
334
  begin
335
335
  case arg
@@ -549,7 +549,7 @@ module Hanami
549
549
  # input = Complex(2, 3)
550
550
  # Hanami::Utils::Kernel.Float(input) # => TypeError
551
551
  def self.Float(arg)
552
- super(arg)
552
+ super
553
553
  rescue ArgumentError, TypeError
554
554
  begin
555
555
  case arg
@@ -654,7 +654,7 @@ module Hanami
654
654
  # Hanami::Utils::Kernel.String(input) # => TypeError
655
655
  def self.String(arg)
656
656
  arg = arg.to_str if arg.respond_to?(:to_str)
657
- super(arg)
657
+ super
658
658
  rescue NoMethodError
659
659
  raise TypeError.new "can't convert #{inspect_type_error(arg)}into String"
660
660
  end
@@ -6,6 +6,6 @@ module Hanami
6
6
  #
7
7
  # @since 0.1.0
8
8
  # @api public
9
- VERSION = "2.1.0"
9
+ VERSION = "2.2.0.beta2"
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-27 00:00:00.000000000 Z
11
+ date: 2024-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-core
@@ -171,14 +171,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
171
171
  requirements:
172
172
  - - ">="
173
173
  - !ruby/object:Gem::Version
174
- version: '3.0'
174
+ version: '3.1'
175
175
  required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  requirements:
177
177
  - - ">="
178
178
  - !ruby/object:Gem::Version
179
179
  version: '0'
180
180
  requirements: []
181
- rubygems_version: 3.5.6
181
+ rubygems_version: 3.5.16
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: Ruby core extentions and Hanami utilities