buildkite-builder 4.10.0 → 4.11.0

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: 94696619a839dad23bed66b944ffe3c2f2385de643b8317ce208199de31ece04
4
- data.tar.gz: e2064c6ed12d991a98cfc04749c7da87e01a83f26f82aa8c14af1482448792f7
3
+ metadata.gz: 16971fd66d90b28ddc6242ac41275185d63ecc496c79b4f5af13474c1a6419b2
4
+ data.tar.gz: fbb56291ff4451358b61a4fdb3f4179f56927a52257191282cbeed5a1677f4ae
5
5
  SHA512:
6
- metadata.gz: f7c62bfcf1f853f058c53e252676c83a7da26683568a65b9bd0e6608b525af4b1cf1633b5984226d64682fcc6b69c15c2e88fa86058c647d07979d3a69081903
7
- data.tar.gz: dfbc7a611c89fcba1987bf99330a643ff7f0929d070d34095e56bba5fcccb2ee1547176b3732c7e534b95793fbe4334004eb95306631a72ee5b625e57a631a2e
6
+ metadata.gz: 80f48524307f8b7de0160c1c7a8c8f3f93aee430bc73bf8c75ad81719342b7fff76f1d37e3b352b58f06c74f32d2e50fba38ee9f4d961373fbf0ad3aeedb1bb3
7
+ data.tar.gz: eab2a8c7aad231f58a66964058b39b08347018cb24dcb9aa6d6368cf657c673c94bb00653ba4bb89a4f53c918284200db0c6c196c449acceb5d32061c626e222
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 4.11.0
2
+ * Allow skipping group traversal for StepCollection#each.
3
+
1
4
  ### 4.10.0
2
5
  * Update Buildkite pipelines to use Ruby 3.3 (#116)
3
6
  * Add priority field on command steps (#117)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.10.0
1
+ 4.11.0
@@ -16,7 +16,7 @@ module Buildkite
16
16
  @steps = []
17
17
  end
18
18
 
19
- def each(*types, &block)
19
+ def each(*types, traverse_groups: true, &block)
20
20
  types = types.flatten
21
21
  types.map! { |type| STEP_TYPES.values.include?(type) ? type : STEP_TYPES.fetch(type) }
22
22
  types = STEP_TYPES.values if types.empty?
@@ -25,7 +25,7 @@ module Buildkite
25
25
  if types.any? { |step_type| step.is_a?(step_type) }
26
26
  matches << step
27
27
  end
28
- if step.is_a?(Pipelines::Steps::Group)
28
+ if step.is_a?(Pipelines::Steps::Group) && traverse_groups
29
29
  step.steps.each(types) { |step| matches << step }
30
30
  end
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildkite-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.10.0
4
+ version: 4.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ngan Pham
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-08-28 00:00:00.000000000 Z
12
+ date: 2024-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rainbow