foobara 0.0.98 → 0.0.100

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: 4403355094ff48ae0013002826f8373c3ebddf3d19838171a5d7879b560e7a22
4
- data.tar.gz: 3ad2b83c5da5b31d617672e1eb2876f1542422dc675ae9aa17066426827cff49
3
+ metadata.gz: 0ed570dbfd45a01b8f1a00ef04c3cb1f74e5cf1e001f8beba8bbbd9491673b2b
4
+ data.tar.gz: 364e9f9cc9a994b2cfa03dffdfa18e1a87475bf82944fc9b05701dc39d798824
5
5
  SHA512:
6
- metadata.gz: 5e9cc896794b1ad669e494b841c6f115f31558a4aa2ba8167d182fdacdea63f5533f4a96664f609cef0ed7b0d2ccc174189bd4512ad5ea6f88c149cbe067f5f5
7
- data.tar.gz: 22f48cb818843388e228a63e7215d3e7f0749757b2a1f57f83015c3ccfc504c139658b0d120e0e38c29525e1a92e6a3b42f5aa798192794d324d4734e220a34e
6
+ metadata.gz: a915cdc81bd8fdb5aa3715a70d5df92431da2378d471187b4307c33182cae8c4f9a03c0b8893400172ed15e9241cc266d4ce8eaedd368ff9ad5d5860d19a591d
7
+ data.tar.gz: 360b77bb94ba75a954a18268ec557deaa3ea16153b47ba626375528542fd27829474922b6716ff09a1e0c369e41de2681e0bf9486184c83fbf69eb9248318c11
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # [0.0.100] - 2025-04-11
2
+
3
+ - Restore missing Response#error
4
+
5
+ # [0.0.99] - 2025-04-11
6
+
7
+ - Just testing publishing gem to rubygems with new bundler to see if it resolves issue
8
+
1
9
  # [0.0.98] - 2025-04-10
2
10
 
3
11
  - Make atomic serializer dig into first entity instead of staying at the top
@@ -15,6 +15,10 @@ module Foobara
15
15
  request.command
16
16
  end
17
17
 
18
+ def error
19
+ request.error
20
+ end
21
+
18
22
  def success?
19
23
  request.success?
20
24
  end
@@ -5,7 +5,7 @@ module Foobara
5
5
  module Serializers
6
6
  class SuccessSerializer < Serializer
7
7
  def always_applicable?
8
- request.outcome.success?
8
+ request.outcome&.success?
9
9
  end
10
10
  end
11
11
  end
@@ -63,8 +63,8 @@ module Foobara
63
63
  end
64
64
  else
65
65
  # :nocov:
66
- raise ArgumentError, "Not sure how to convert #{args.inspect} into an error. " \
67
- "Can handle a hash of error " \
66
+ raise ArgumentError, "Not sure how to convert #{error_or_collection_or_error_hash.inspect} " \
67
+ "into an error. Can handle a hash of error " \
68
68
  "args or 3 arguments for symbol, message, and context, or, of course, an Error"
69
69
  # :nocov:
70
70
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.98
4
+ version: 0.0.100
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bigdecimal
@@ -487,7 +487,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
487
487
  - !ruby/object:Gem::Version
488
488
  version: '0'
489
489
  requirements: []
490
- rubygems_version: 3.6.2
490
+ rubygems_version: 3.6.7
491
491
  specification_version: 4
492
492
  summary: A command-centric and discoverable software framework with a focus on domain
493
493
  concepts and abstracting away integration code