- Data within an operation is now gathered on a separate
#data
object that's passed to a concreteOperatic::Success
/Operatic::Failure
result instance on completion. Convenience data accessors can be defined on theData
object (via the renamedOperatic.data_attr
) but remain available on the result using the magic ofResult#method_missing
. #18 - Require Ruby version 2.7+.
- Support pattern matching solely against a Result's data. #20
- Support pattern matching a Result (in Ruby 2.7+). #12
- Support custom initialize method to aid compatibility with other libraries. #11
- Rename to
Operatic.result_attr
to be more specific about its functionality. #10 - Get and set Result data with
#[]
/#[]=
. #9
- Switch to keyword arguments. #8
- Less specific Rake dependency. #6
- Implement
#to_h
not#to_hash
. #4
First official version hosted on RubyGems.org.