trailblazer-operation 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/trailblazer/operation/public_call.rb +1 -1
- data/lib/trailblazer/operation/version.rb +1 -1
- data/test/step_test.rb +11 -3
- data/test/trace_test.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63f655777a97401ddf1ae5b1706757a7b284efbc6d5545397c00da0b4904a606
|
4
|
+
data.tar.gz: 71b308182ed3ad9c27333c0fd818ec017309002a1c7588adf64a85b54fde714e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2372fb0f13931fb7e08a2e60cff6d9f4850b74a3d17b5661ad3a9853a460fd855656117387d685d6135306d1f67e27e26350c5e1ef07b29c2b16990fda5c874
|
7
|
+
data.tar.gz: cda2f29f0892f0d7c20d5c8af862e1076bec5a2c8849c307d53af92b09214720293e637fd6163690a76e7c9de282017743eb9c31107f3648329300a076d650db
|
data/CHANGES.md
CHANGED
data/test/step_test.rb
CHANGED
@@ -178,12 +178,20 @@ class StepTest < Minitest::Spec
|
|
178
178
|
# not existent :name
|
179
179
|
it do
|
180
180
|
op = assert_raises Trailblazer::Activity::DSL::Linear::Sequence::IndexError do
|
181
|
-
|
181
|
+
class InvalidStep < Trailblazer::Operation
|
182
182
|
step :a, before: "I don't exist!"
|
183
183
|
end
|
184
184
|
end
|
185
|
-
|
186
|
-
|
185
|
+
|
186
|
+
error_message = %{#<Trailblazer::Activity::DSL::Linear::Sequence::IndexError: StepTest::InvalidStep:
|
187
|
+
\e[31m\"I don't exist!\" is not a valid step ID. Did you mean any of these ?\e[0m
|
188
|
+
\e[32m\"Start.default\"
|
189
|
+
\"End.success\"
|
190
|
+
\"End.pass_fast\"
|
191
|
+
\"End.fail_fast\"
|
192
|
+
\"End.failure\"\e[0m>}
|
193
|
+
|
194
|
+
assert_match error_message, op.inspect
|
187
195
|
end
|
188
196
|
|
189
197
|
#---
|
data/test/trace_test.rb
CHANGED
@@ -56,7 +56,7 @@ class TraceTest < Minitest::Spec
|
|
56
56
|
result = Create.wtf?(params: {x: 1}, a_return: true)
|
57
57
|
end
|
58
58
|
|
59
|
-
output.gsub(/0x\w+/, "").gsub(/@.+_test/, "").must_equal %{`--
|
59
|
+
output.gsub(/0x\w+/, "").gsub(/@.+_test/, "").must_equal %{`-- TraceTest::Create
|
60
60
|
|-- \e[32mStart.default\e[0m
|
61
61
|
|-- \e[32mCreate.task.a\e[0m
|
62
62
|
|-- MyNested
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trailblazer-operation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trailblazer-activity-dsl-linear
|
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
- !ruby/object:Gem::Version
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
|
-
rubygems_version: 3.
|
173
|
+
rubygems_version: 3.0.8
|
174
174
|
signing_key:
|
175
175
|
specification_version: 4
|
176
176
|
summary: Trailblazer's operation object with railway flow and integrated error handling.
|