hanami-utils 2.0.0 → 2.0.1

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: 2575ff2a640a9ffcddf8a9930a887d536ec9da4b64bc4a2883849ed261f57b43
4
- data.tar.gz: 70fbfe55f826d940c0f5decad39840990925e061de975e53d2b672fdae9873df
3
+ metadata.gz: 5921ff2b972c982e6370bc45f65f18dd83f9b561bf226214f215f422a6ba90aa
4
+ data.tar.gz: a069b9d22b0e29e1d034e58742624e6337d055d2e8c8933150e020d73fb63cb1
5
5
  SHA512:
6
- metadata.gz: 73d5a9fade1cb961ac4be22b8967507fceebde1a9d8edb33d71634b06ef6c06538c8d0ef2b1a32a33e8442c7609b675ae99bd63780c353c6db02485ddbfd3432
7
- data.tar.gz: 368ffe941852e67432d9574b79220b1807b1529cbdf4289fb2fd2db92299888617bc3779bd6e0c3f03b81d5fbcb9725b8b36364733d262a3c5fa2cb257db91b1
6
+ metadata.gz: 2e8e26ae2287bd68e9c278b6166f4cea01cec1eb6e69c2795f26aabd6631b13027e2b65cccde55a664b3f54a0c3b564f5017e49ad46cc07592019fafc0241b1a
7
+ data.tar.gz: f26fe52741c1e7c2b0e9fcc10f1118947148f37dbd8b49003995236317591c8901bc28efb4b372f155b868247a76818bef6d6072b2f9e72dd2556eb1707d0f6c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  Ruby core extensions and class utilities for Hanami
4
4
 
5
+ ## v2.0.1 - 2022-12-06
6
+
7
+ ### Fixed
8
+
9
+ - [Tim Riley] Make `Hanami::Utils::Callbacks::Chain` and `Hanami::Utils::Callbacks::Callback` comparable via `#==` based on their contents, rather than their object identity
10
+
5
11
  ## v2.0.0 - 2022-11-22
6
12
 
7
13
  ## v2.0.0.rc1 - 2022-11-08
data/hanami-utils.gemspec CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.metadata["rubygems_mfa_required"] = "true"
21
21
  spec.required_ruby_version = ">= 3.0"
22
22
 
23
+ spec.add_dependency "dry-core", "~> 1.0", "< 2"
23
24
  spec.add_dependency "dry-transformer", "~> 1.0", "< 2"
24
25
  spec.add_dependency "concurrent-ruby", "~> 1.0"
25
26
 
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "concurrent/array"
4
+ require "dry/core"
4
5
 
5
6
  module Hanami
6
7
  module Utils
@@ -14,6 +15,8 @@ module Hanami
14
15
  # @since 0.1.0
15
16
  # @private
16
17
  class Chain
18
+ include Dry.Equalizer(:chain)
19
+
17
20
  # Returns a new chain
18
21
  #
19
22
  # @return [Hanami::Utils::Callbacks::Chain]
@@ -235,6 +238,8 @@ module Hanami
235
238
  # @since 0.1.0
236
239
  # @api private
237
240
  class Callback
241
+ include Dry.Equalizer(:callback)
242
+
238
243
  # @api private
239
244
  attr_reader :callback
240
245
 
@@ -6,6 +6,6 @@ module Hanami
6
6
  #
7
7
  # @since 0.1.0
8
8
  # @api public
9
- VERSION = "2.0.0"
9
+ VERSION = "2.0.1"
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,15 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
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-22 00:00:00.000000000 Z
11
+ date: 2022-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: dry-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2'
13
33
  - !ruby/object:Gem::Dependency
14
34
  name: dry-transformer
15
35
  requirement: !ruby/object:Gem::Requirement
@@ -159,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
179
  - !ruby/object:Gem::Version
160
180
  version: '0'
161
181
  requirements: []
162
- rubygems_version: 3.3.7
182
+ rubygems_version: 3.3.3
163
183
  signing_key:
164
184
  specification_version: 4
165
185
  summary: Ruby core extentions and Hanami utilities