trailblazer-operation 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGES.md +4 -0
- data/README.md +1 -1
- data/lib/trailblazer/operation.rb +3 -1
- data/lib/trailblazer/operation/trace.rb +1 -1
- data/lib/trailblazer/operation/version.rb +2 -4
- data/test/step_test.rb +3 -2
- data/trailblazer-operation.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3e5248a8515b6f1255116f82ba2b0fc2836b373dcbe03d38fb5c0b93f94c82a
|
4
|
+
data.tar.gz: 185922dd1990ae902d2ed5fd4639c0d2788913d63036eb71542945b15eb1995c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4f01d8601c8e97e72f1cabb52adabd9371d416472fa1784573aa13cc1252108f2c5a6f12157e7e3379f21cfb7b7ebe2d5f1213813473a6796f05a6652b8cc55
|
7
|
+
data.tar.gz: ff7522a5ec8c73ad8ec76ef2e3f2019309fa2d9f708463c9e6b96a83cc07ac8cc6878714b4f730d4701848b69ceec11a999b65c5576514292f0da1b56c27b41a
|
data/.gitignore
CHANGED
data/CHANGES.md
CHANGED
data/README.md
CHANGED
@@ -15,6 +15,6 @@ An operation can be used exaclty like an activity, including nesting, tracing, e
|
|
15
15
|
|
16
16
|
## Copyright
|
17
17
|
|
18
|
-
Copyright (c) 2016 Nick Sutterer <apotonick@gmail.com>
|
18
|
+
Copyright (c) 2016-2020 Nick Sutterer <apotonick@gmail.com>
|
19
19
|
|
20
20
|
`trailblazer-operation` is released under the [MIT License](http://www.opensource.org/licenses/MIT).
|
@@ -1,10 +1,10 @@
|
|
1
|
+
require 'forwardable'
|
1
2
|
require "trailblazer/option"
|
2
3
|
require "trailblazer/context"
|
3
4
|
require "trailblazer/container_chain"
|
4
5
|
|
5
6
|
require "trailblazer/activity/dsl/linear"
|
6
7
|
|
7
|
-
|
8
8
|
module Trailblazer
|
9
9
|
# DISCUSS: I don't know where else to put this. It's not part of the {Activity} concept
|
10
10
|
class Activity
|
@@ -61,6 +61,8 @@ module Trailblazer
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
+
require 'trailblazer/operation/version'
|
65
|
+
|
64
66
|
require "trailblazer/operation/class_dependencies"
|
65
67
|
require "trailblazer/operation/deprecated_macro" # TODO: remove in 2.2.
|
66
68
|
|
data/test/step_test.rb
CHANGED
@@ -173,11 +173,12 @@ class StepTest < Minitest::Spec
|
|
173
173
|
#-
|
174
174
|
# not existent :name
|
175
175
|
it do
|
176
|
-
assert_raises Trailblazer::Activity::DSL::Linear::Sequence::IndexError do
|
176
|
+
op = assert_raises Trailblazer::Activity::DSL::Linear::Sequence::IndexError do
|
177
177
|
Class.new(Trailblazer::Operation) do
|
178
178
|
step :a, before: "I don't exist!"
|
179
179
|
end
|
180
|
-
end
|
180
|
+
end
|
181
|
+
assert_match /<Trailblazer::Activity::DSL::Linear::Sequence::IndexError: "I don't exist!" is not a valid step ID. Did you mean any of these ?/, op.inspect
|
181
182
|
end
|
182
183
|
|
183
184
|
#---
|
@@ -4,7 +4,7 @@ require 'trailblazer/operation/version'
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "trailblazer-operation"
|
7
|
-
spec.version = Trailblazer::
|
7
|
+
spec.version = Trailblazer::Operation::VERSION
|
8
8
|
spec.authors = ["Nick Sutterer"]
|
9
9
|
spec.email = ["apotonick@gmail.com"]
|
10
10
|
spec.description = %q(Trailblazer's operation object.)
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
|
15
15
|
spec.files = `git ls-files`.split($/)
|
16
16
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
-
spec.test_files = spec.files.grep(%r{^(test
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test)/})
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
20
|
spec.add_dependency "trailblazer-activity-dsl-linear", ">= 0.2.6", "< 1.0.0"
|
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.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trailblazer-activity-dsl-linear
|