dirty_pipeline 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/lib/dirty_pipeline/base.rb +3 -2
- data/lib/dirty_pipeline/event.rb +2 -1
- data/lib/dirty_pipeline/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1d848ae9c9559b571abc4a8561be9f7deb9d7aaa4977f5c5c7993fd698881cd
|
4
|
+
data.tar.gz: 95d0fe52b224ea34310a102cf2dd1d31cafb298cb8c9a25065b9ee41f819a238
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae206aaf6b7b7cda711467775e912dfa888f3024d4fde8e4516eab8c07a9f6d8d5e983867a415ddb9765506acb1e3a4d7cb64ec9af828bb54b2d31404c587280
|
7
|
+
data.tar.gz: 64f3e7ca995413684d0b77676c178877b893419775433faf2e855c29538feff1833f39f26671d4b9577ef29e660a9c50417f597cdada71109e51bcce36cf9631
|
data/lib/dirty_pipeline/base.rb
CHANGED
@@ -61,8 +61,9 @@ module DirtyPipeline
|
|
61
61
|
end
|
62
62
|
|
63
63
|
# FIXME operation :call - argument
|
64
|
-
def chain(*args,
|
65
|
-
|
64
|
+
def chain(*args, **kwargs)
|
65
|
+
operation = kwargs.fetch(:operation) { :call }
|
66
|
+
railway[operation] << Event.create(*args, **kwargs.merge(tx_id: @uuid))
|
66
67
|
self
|
67
68
|
end
|
68
69
|
|
data/lib/dirty_pipeline/event.rb
CHANGED
@@ -9,7 +9,8 @@ module DirtyPipeline
|
|
9
9
|
RETRY = "retry".freeze
|
10
10
|
SUCCESS = "succeeded".freeze
|
11
11
|
|
12
|
-
def self.create(transition, *args, tx_id
|
12
|
+
def self.create(transition, *args, tx_id:, **kwargs)
|
13
|
+
args << kwargs unless kwargs.empty?
|
13
14
|
new(
|
14
15
|
data: {
|
15
16
|
# FIXME: SecureRandom
|