nxt_pipeline 0.4.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -1
- data/Gemfile.lock +42 -44
- data/README.md +364 -108
- data/lib/nxt_pipeline/callbacks.rb +61 -0
- data/lib/nxt_pipeline/error_callback.rb +5 -2
- data/lib/nxt_pipeline/pipeline.rb +175 -68
- data/lib/nxt_pipeline/step.rb +105 -40
- data/lib/nxt_pipeline/version.rb +1 -1
- data/lib/nxt_pipeline.rb +40 -1
- data/nxt_pipeline.gemspec +1 -0
- metadata +21 -7
- data/lib/nxt_pipeline/constructor.rb +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5682c4e905d939b057c79b775c8401f1da648a0e5793c1c438dfef3cdb741147
|
4
|
+
data.tar.gz: 8908bf0ab622f472ccdb1a91cce704b0e88181352f4dfa0bb1942a684b60729b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e33df278d8ba33998cc798f6b1a97461360e81af3a0bad83549d74bf00190e8ef7d4aa2459f513bc1e4b3e750785058ae708c90136bfc17bebf0faf79fa7aed0
|
7
|
+
data.tar.gz: '09d1caf2cd41693f56fddbcf6e70e4ba4b2212b7ce9fd3669e736a6afa39245a177d79171a5819bd3842192a5a3927931a4cb99dd86a3b98e24a834e18460218'
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,26 @@
|
|
1
|
+
## nxt_pipeline 2.0.0 (10.05.2022)
|
2
|
+
|
3
|
+
- Rename `Pipeline.execute` to `Pipeline.call`
|
4
|
+
- Pipeline#call accepts any argument instead of just key word arguments or hashes
|
5
|
+
- Introduce constructor resolvers
|
6
|
+
- Expose :new and :call directly on NxtPipeline instead of only through NxtPipeline::Pipeline class
|
7
|
+
- Change step DSL: Introduce constructor option to specify the constructor to use for a step
|
8
|
+
- Introduce Configurations
|
9
|
+
- Expose step.status and step.meta_data accessors to set status and meta_data of steps in constructors
|
10
|
+
- Change arguments of error callbacks to be error, acc, step instead of acc, step, error and only pass by arity of callback
|
11
|
+
|
12
|
+
## nxt_pipeline 1.0.0 (24.11.2020)
|
13
|
+
|
14
|
+
Replace after and before execute hooks with proper callbacks.
|
15
|
+
Introduce before, after and around step callbacks
|
16
|
+
|
17
|
+
## nxt_pipeline 0.4.3 (October 20, 2020)
|
18
|
+
|
19
|
+
Add new attribute readers on step object.
|
20
|
+
|
21
|
+
After executing a step execution_finished_at execution_started_at and execution_duration
|
22
|
+
will be set and can be accessed via attribute readers.
|
23
|
+
|
1
24
|
## nxt_pipeline 0.4.2 (October 12, 2020)
|
2
25
|
|
3
26
|
* Fix bug when registering an error without passing arguments in which case the callback didn't get executed. More info: https://github.com/nxt-insurance/nxt_pipeline/issues/39
|
@@ -35,4 +58,4 @@
|
|
35
58
|
|
36
59
|
* Initial Release.
|
37
60
|
|
38
|
-
*Nils Sommer*
|
61
|
+
*Nils Sommer*
|
data/Gemfile.lock
CHANGED
@@ -1,31 +1,31 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nxt_pipeline (0.
|
4
|
+
nxt_pipeline (2.0.0)
|
5
5
|
activesupport
|
6
|
+
nxt_registry
|
6
7
|
|
7
8
|
GEM
|
8
9
|
remote: https://rubygems.org/
|
9
10
|
specs:
|
10
|
-
activesupport (
|
11
|
+
activesupport (7.0.3)
|
11
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
|
-
i18n (>=
|
13
|
-
minitest (
|
14
|
-
tzinfo (~>
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
guard (2.15.0)
|
13
|
+
i18n (>= 1.6, < 2)
|
14
|
+
minitest (>= 5.1)
|
15
|
+
tzinfo (~> 2.0)
|
16
|
+
byebug (11.1.3)
|
17
|
+
coderay (1.1.3)
|
18
|
+
concurrent-ruby (1.1.10)
|
19
|
+
diff-lcs (1.5.0)
|
20
|
+
ffi (1.15.5)
|
21
|
+
formatador (1.1.0)
|
22
|
+
guard (2.18.0)
|
23
23
|
formatador (>= 0.2.4)
|
24
24
|
listen (>= 2.7, < 4.0)
|
25
25
|
lumberjack (>= 1.0.12, < 2.0)
|
26
26
|
nenv (~> 0.1)
|
27
27
|
notiffany (~> 0.0)
|
28
|
-
pry (>= 0.
|
28
|
+
pry (>= 0.13.0)
|
29
29
|
shellany (~> 0.0)
|
30
30
|
thor (>= 0.18.1)
|
31
31
|
guard-compat (1.2.1)
|
@@ -33,51 +33,49 @@ GEM
|
|
33
33
|
guard (~> 2.1)
|
34
34
|
guard-compat (~> 1.1)
|
35
35
|
rspec (>= 2.99.0, < 4.0)
|
36
|
-
i18n (1.
|
36
|
+
i18n (1.10.0)
|
37
37
|
concurrent-ruby (~> 1.0)
|
38
|
-
listen (3.1
|
39
|
-
rb-fsevent (~> 0.
|
40
|
-
rb-inotify (~> 0.9, >= 0.9.
|
41
|
-
|
42
|
-
lumberjack (1.0.13)
|
38
|
+
listen (3.7.1)
|
39
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
40
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
41
|
+
lumberjack (1.2.8)
|
43
42
|
method_source (1.0.0)
|
44
|
-
minitest (5.
|
43
|
+
minitest (5.15.0)
|
45
44
|
nenv (0.3.0)
|
46
|
-
notiffany (0.1.
|
45
|
+
notiffany (0.1.3)
|
47
46
|
nenv (~> 0.1)
|
48
47
|
shellany (~> 0.0)
|
49
|
-
|
48
|
+
nxt_registry (0.3.10)
|
49
|
+
activesupport
|
50
|
+
pry (0.13.1)
|
50
51
|
coderay (~> 1.1)
|
51
52
|
method_source (~> 1.0)
|
52
53
|
pry-byebug (3.9.0)
|
53
54
|
byebug (~> 11.0)
|
54
55
|
pry (~> 0.13.0)
|
55
|
-
rake (13.0.
|
56
|
-
rb-fsevent (0.
|
57
|
-
rb-inotify (0.10.
|
56
|
+
rake (13.0.6)
|
57
|
+
rb-fsevent (0.11.1)
|
58
|
+
rb-inotify (0.10.1)
|
58
59
|
ffi (~> 1.0)
|
59
|
-
rspec (3.
|
60
|
-
rspec-core (~> 3.
|
61
|
-
rspec-expectations (~> 3.
|
62
|
-
rspec-mocks (~> 3.
|
63
|
-
rspec-core (3.
|
64
|
-
rspec-support (~> 3.
|
65
|
-
rspec-expectations (3.
|
60
|
+
rspec (3.11.0)
|
61
|
+
rspec-core (~> 3.11.0)
|
62
|
+
rspec-expectations (~> 3.11.0)
|
63
|
+
rspec-mocks (~> 3.11.0)
|
64
|
+
rspec-core (3.11.0)
|
65
|
+
rspec-support (~> 3.11.0)
|
66
|
+
rspec-expectations (3.11.0)
|
66
67
|
diff-lcs (>= 1.2.0, < 2.0)
|
67
|
-
rspec-support (~> 3.
|
68
|
-
rspec-mocks (3.
|
68
|
+
rspec-support (~> 3.11.0)
|
69
|
+
rspec-mocks (3.11.1)
|
69
70
|
diff-lcs (>= 1.2.0, < 2.0)
|
70
|
-
rspec-support (~> 3.
|
71
|
-
rspec-support (3.
|
72
|
-
rspec_junit_formatter (0.
|
71
|
+
rspec-support (~> 3.11.0)
|
72
|
+
rspec-support (3.11.0)
|
73
|
+
rspec_junit_formatter (0.5.1)
|
73
74
|
rspec-core (>= 2, < 4, != 2.12.0)
|
74
|
-
ruby_dep (1.5.0)
|
75
75
|
shellany (0.0.1)
|
76
|
-
thor (
|
77
|
-
|
78
|
-
|
79
|
-
thread_safe (~> 0.1)
|
80
|
-
zeitwerk (2.4.0)
|
76
|
+
thor (1.2.1)
|
77
|
+
tzinfo (2.0.4)
|
78
|
+
concurrent-ruby (~> 1.0)
|
81
79
|
|
82
80
|
PLATFORMS
|
83
81
|
ruby
|