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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d44cfaa1fb0918cbce5275f04811600f667e9bcc539958cfd65e286f2dddb59
4
- data.tar.gz: e0effe290c5f599d0f3cf692060768f0407a73e8c51f697be216fb2ada6d1df6
3
+ metadata.gz: f1d848ae9c9559b571abc4a8561be9f7deb9d7aaa4977f5c5c7993fd698881cd
4
+ data.tar.gz: 95d0fe52b224ea34310a102cf2dd1d31cafb298cb8c9a25065b9ee41f819a238
5
5
  SHA512:
6
- metadata.gz: 9b44e2e14d5f1fd3b1b56ea9f6b567d585be488144d1beaf7aa38a47fa9fdb2ac986aef90c0a3f902ccfeacc069937ecec6b0f30b3866c9ef3aaa2760223dc6a
7
- data.tar.gz: 3f7e985850e7cf8404c33d3855b314486ced5c64a28f7cb7cc3b97327fb616d85769cd854d3a2e98c4db615afb3c54b08492c338f8472a3148272b72794daf78
6
+ metadata.gz: ae206aaf6b7b7cda711467775e912dfa888f3024d4fde8e4516eab8c07a9f6d8d5e983867a415ddb9765506acb1e3a4d7cb64ec9af828bb54b2d31404c587280
7
+ data.tar.gz: 64f3e7ca995413684d0b77676c178877b893419775433faf2e855c29538feff1833f39f26671d4b9577ef29e660a9c50417f597cdada71109e51bcce36cf9631
@@ -61,8 +61,9 @@ module DirtyPipeline
61
61
  end
62
62
 
63
63
  # FIXME operation :call - argument
64
- def chain(*args, operation: :call)
65
- railway[operation] << Event.create(*args, tx_id: @uuid)
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module DirtyPipeline
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dirty_pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Dolganov