opera 0.2.5 → 0.2.6

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: e5d9c893a5fbb54c998d21da587625c5c4395325cba2e626daaecc7a09c8dfcb
4
- data.tar.gz: 718d329ba4593be294625339bf7803764c3daba1b6af28d44bbd0d466d5bc0ac
3
+ metadata.gz: 8d61667567e16b2d1e328826229d79e9c2551cafd013ab7f7f5b8f68f6ddb88d
4
+ data.tar.gz: a29639d3fc66ac1cb0fbf72523e00124230230fc18cd5d86838ea5d4d7ff6690
5
5
  SHA512:
6
- metadata.gz: 723969ac97c573f821395a239ed57fb4fcd8f39ab8ffe7f1d492c848b4625ab7e2b6a1e6a1460cddf5500fa1a486bb43aa6849e2d7bbd1e984ba915321f9aeff
7
- data.tar.gz: eb67bdc92c6d8f6156566e00bae3da4b7cbe9ea7eb7911c287952726fae6b3d703258efe495ef9fcfcdb4b847b2593358d859e72426a75e1ce2fec70017091b8
6
+ metadata.gz: 863d1b065902feb3c1affd29b348f53d295a34a1717d960367df191dfce98a344c4de4a13909cfabae5ef9bf669c8372beae6bc2593ef868c7896be92af5952b
7
+ data.tar.gz: f427a8932e93bd86b4d3fce9eb72b8f453ba3f3c57362d288c4de2621dd6c0d1d535005f713999f75aa70a5ace67476a46cb787f18d293d28575e25bf540090f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Opera Changelog
2
2
 
3
+ ### 0.2.6 - October 29, 2021
4
+
5
+ - New method Result#failures that returns combined errors and exceptions
6
+
3
7
  ### 0.2.5 - August 3, 2021
4
8
 
5
9
  - make sure that `default` option in accessors is always lambda
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opera (0.2.5)
4
+ opera (0.2.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -28,6 +28,10 @@ module Opera
28
28
  !failure?
29
29
  end
30
30
 
31
+ def failures
32
+ errors.merge(exceptions)
33
+ end
34
+
31
35
  # rubocop:disable Metrics/MethodLength
32
36
  def add_error(field, message)
33
37
  @errors[field] ||= []
data/lib/opera/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Opera
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opera
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ProFinda Development Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-04 00:00:00.000000000 Z
11
+ date: 2021-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-validation