ex_aequo_base 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 921a91dfad0a5209cd658c5873125499865608102f75473a05e1ad73bbeeba73
4
- data.tar.gz: dd00092b19845ef7f83750d70a8a62d9853eb28d4d7b4c0a3c2c388464caa28c
3
+ metadata.gz: ae43d869cc29935b130eb6e48ae7c674725fe5ebdaefbe93c460f2d047263296
4
+ data.tar.gz: f2ce0ef4590cbbb63653d201115c54d9f768779b172cdfb857a851392f1b8bf0
5
5
  SHA512:
6
- metadata.gz: fa3d653eb3ff3614070315f27a291418fab629056d06abbb7fc89585b2f886fc69afd52765110c35460458d2a43137e3a57245af1d43edf7fc1f0e4674add052
7
- data.tar.gz: 68739fd0703c6f97cd4f6d00a7738d47ad0917c390f720c1ce884f906276ba43e2a05e9c46fc10936668b85d735ca6556117427dcad46770550c0d366ba75513
6
+ metadata.gz: f464381683510725cdc14d8fd02717a049b3cd52a846d1ece287fcf10ad9ae5ccf21e813e4e9c1bf6bbc29661385251b9fcf9e79729ab6e6df5eeee034c55fed
7
+ data.tar.gz: 365afb40f77c98b6d2e1091df35bb98bca19d40be3ae13a69acae569e9678468300aa356bbf68f06566a1dc3c824e53736990844a2130e878361c843d3f8ba7c
@@ -13,11 +13,16 @@ module ExAequo
13
13
  @error
14
14
  end
15
15
 
16
+ def ==(other)
17
+ return false unless self.class === other
18
+ to_h == other.to_h
19
+ end
20
+
16
21
  def extract(&blk)
17
22
  return @result if @ok
18
23
 
19
24
  raise IllegalState, "must not extract from a failure result without a block (#{@error})" unless blk
20
- blk.()
25
+ blk.(self)
21
26
  end
22
27
 
23
28
  def if_failure(&blk)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module ExAequo
4
4
  module Base
5
- VERSION = '0.3.4'
5
+ VERSION = '0.3.5'
6
6
  end
7
7
  end
8
8
  # SPDX-License-Identifier: AGPL-3.0-or-later
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ex_aequo_base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Dober