opera 0.5.0 → 0.5.1
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/README.md +106 -1060
- data/benchmarks/operation_benchmark.rb +330 -0
- data/docs/examples/basic-operation.md +79 -0
- data/docs/examples/context-params-dependencies.md +122 -0
- data/docs/examples/finish-if.md +67 -0
- data/docs/examples/inner-operations.md +94 -0
- data/docs/examples/success-blocks.md +68 -0
- data/docs/examples/transactions.md +227 -0
- data/docs/examples/validations.md +139 -0
- data/docs/examples/within.md +166 -0
- data/lib/opera/operation/config.rb +2 -6
- data/lib/opera/operation/executor.rb +13 -4
- data/lib/opera/operation/instructions/executors/finish_if.rb +1 -2
- data/lib/opera/operation/instructions/executors/operation.rb +1 -2
- data/lib/opera/operation/instructions/executors/operations.rb +1 -2
- data/lib/opera/operation/instructions/executors/step.rb +1 -6
- data/lib/opera/operation/instructions/executors/success.rb +5 -2
- data/lib/opera/operation/instructions/executors/validate.rb +1 -2
- data/lib/opera/operation/instructions/executors/within.rb +1 -1
- data/lib/opera/version.rb +1 -1
- metadata +11 -2
|
@@ -6,8 +6,11 @@ module Opera
|
|
|
6
6
|
module Executors
|
|
7
7
|
class Success < Executor
|
|
8
8
|
def call(instruction)
|
|
9
|
-
instruction[:
|
|
10
|
-
|
|
9
|
+
if instruction[:instructions]
|
|
10
|
+
evaluate_instructions(instruction[:instructions])
|
|
11
|
+
else
|
|
12
|
+
execute_step(instruction)
|
|
13
|
+
end
|
|
11
14
|
end
|
|
12
15
|
|
|
13
16
|
def break_condition
|
data/lib/opera/version.rb
CHANGED
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.5.
|
|
4
|
+
version: 0.5.1
|
|
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: 2026-04-
|
|
11
|
+
date: 2026-04-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dry-validation
|
|
@@ -73,9 +73,18 @@ files:
|
|
|
73
73
|
- LICENSE.txt
|
|
74
74
|
- README.md
|
|
75
75
|
- Rakefile
|
|
76
|
+
- benchmarks/operation_benchmark.rb
|
|
76
77
|
- bin/console
|
|
77
78
|
- bin/setup
|
|
78
79
|
- docker-compose.yml
|
|
80
|
+
- docs/examples/basic-operation.md
|
|
81
|
+
- docs/examples/context-params-dependencies.md
|
|
82
|
+
- docs/examples/finish-if.md
|
|
83
|
+
- docs/examples/inner-operations.md
|
|
84
|
+
- docs/examples/success-blocks.md
|
|
85
|
+
- docs/examples/transactions.md
|
|
86
|
+
- docs/examples/validations.md
|
|
87
|
+
- docs/examples/within.md
|
|
79
88
|
- lib/opera.rb
|
|
80
89
|
- lib/opera/errors.rb
|
|
81
90
|
- lib/opera/operation.rb
|