ductwork 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2029d11f63583fd4b5cb774bf3c249b30f933700852ea286c56ae9f6262aa584
4
- data.tar.gz: 5c32000bd3409f54af3fc43aac6296e7fad458d8ae74336b4edb84310b22bf2a
3
+ metadata.gz: fa46e2bcceb2e5b715fe534c205e5138c9a5d12f7d6d7deae1c50a21fc88d64a
4
+ data.tar.gz: d1f86f72deb8ffe8f2749034534dedc246bda3e4ca148907a9b637e939e722c5
5
5
  SHA512:
6
- metadata.gz: 543e4ab981017a51580b7b3a2a750bbd52a1de313ec27556d1cbb72045b2f6a8fbe743e15585cc56e2682914f0040c91b31a1328be86097f1c08b0dadfcdc73a
7
- data.tar.gz: 88da2d0dfa602e6850aacbe4fa20a256606eff5084b4d13826a0b715bf46a6a611dc39b4afa13cda35160a66bbf8226b45fc2e618a06178b023632ff98c6c35a
6
+ metadata.gz: 3c34cfc05a930ea4e689e2544233db2a264c406799556c10b1d79bd3b56e3a12d726646a6be915b967117fede8f0d1e6554b727b4166e5e3482cedbe2f6b292e
7
+ data.tar.gz: 7d7a0266b00cb26c40e2ef4e0010c05c4085711402693ce8057a0486febf776a936d5c2c302c7dfc075d25fad9d385335df7665d62e7d5ef18750ff7e102711c
data/CHANGELOG-PRO.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Ductwork Pro Changelog
2
2
 
3
+ ## [0.5.0]
4
+
5
+ - feat: enqueue jobs in batches when expanding and support starting delays
6
+
3
7
  ## [0.4.0]
4
8
 
5
9
  - feat: release pipeline or job claim if not finished by shutdown timeout - this is basically the same as what happens when a step times out except we don't restart the thread because we're shutting down
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Ductwork Changelog
2
2
 
3
+ ## [0.22.0]
4
+
5
+ - feat: add optional `to` keyword argument to `chain` transition - this makes the DSL a bit more aligned
6
+
3
7
  ## [0.21.0]
4
8
 
5
9
  - feat: enqueue jobs in batches when expanding - this marks a major performance improvement
data/README.md CHANGED
@@ -103,7 +103,7 @@ class EnrichUserDataPipeline < Ductwork::Pipeline
103
103
  .divide(to: [FetchDataFromSourceA, # Split into parallel branches
104
104
  FetchDataFromSourceB])
105
105
  .combine(into: CollateUserData) # Merge branches back together
106
- .chain(UpdateUserData) # Sequential processing
106
+ .chain(to: UpdateUserData) # Sequential processing
107
107
  .collapse(into: ReportSuccess) # Gather expanded steps
108
108
  end
109
109
  end
@@ -30,7 +30,8 @@ module Ductwork
30
30
  self
31
31
  end
32
32
 
33
- def chain(klass)
33
+ def chain(klass = nil, to: nil)
34
+ klass ||= to
34
35
  validate_classes!(klass)
35
36
  validate_definition_started!(action: "chaining")
36
37
  add_edge_to_last_nodes(klass, type: :chain)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ductwork
4
- VERSION = "0.21.0"
4
+ VERSION = "0.22.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ductwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Ewing