buildkite-builder 4.12.0 → 4.14.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: e40fd3ec4f371c13cad5700538634f7d150faafb1c215b8a0576506e800eef24
4
- data.tar.gz: 33eb2f1d354bd0e3e894e7f359e46e0a182684c7a572138a0a05d9e93acddc7a
3
+ metadata.gz: b5923c5f95763c4d556739cd69e8fbaaca8b30dca4b72b965c5f0f7de90db04c
4
+ data.tar.gz: d30926eee81204d1c4dd794e3c4aa9704658e6e0000a45f8d86b9192307f0abf
5
5
  SHA512:
6
- metadata.gz: 5181eeffdd237c3caf52d991f1901b89cfdb4e72fd119b5c38fa28749ffe68040bc57f075c0d96368c8e99b602d59c85e46012fdff8d6d5f77116121976ee6d3
7
- data.tar.gz: 22fbbe3a987660c67321b570d5d02f0f78e917f6b73ef30bef02658d71bccc582e7425ad486f384c78bb8c6b5fd7befdb854def059a2c6b75e1c98a175b592fc
6
+ metadata.gz: 0e3406ad9f2ebe7c929bfd5e26b230ee1495e7cfef47188501f9d7a02ce3444c494a6f61f40b0aaa6889543f85ca6e66b1184de207f6cb4e179a261b185d2024
7
+ data.tar.gz: d3ea6a57c7f128adc317b6d439e4ecf849d6f77e123b82e3854a932f70aac99e4b2f21efb6e4c018a5e26acd0ab7fe0dd6b8cfe1d0f82c1c176820e10bd458b4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 4.13.0
2
+ * Public send keys for wait step.
3
+
1
4
  ### 4.12.0
2
5
  * Ensure depends_on does not copy by reference.
3
6
  * Add StepCollection#move to help with moving steps around in the pipeline.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.12.0
1
+ 4.14.0
@@ -60,7 +60,7 @@ module Buildkite
60
60
  context.extensions.find(Steps).build_step(Pipelines::Steps::Wait, nil, &block).tap do |step|
61
61
  step.wait(nil)
62
62
  attributes.each do |key, value|
63
- step.set(key, value)
63
+ step.public_send(key, value)
64
64
  end
65
65
  end
66
66
  end
@@ -90,14 +90,24 @@ module Buildkite
90
90
 
91
91
  def to_a
92
92
  command = [BIN_PATH, @command, @subcommand]
93
- command.concat(@options.to_a.flatten)
94
- command.concat(@args)
93
+ # The `artifact` command has a different order of options and arguments:
94
+ # `buildkite-agent artifact upload [options] <file> <destination>`,
95
+ # `buildkite-agent artifact download [options] <file>`,
96
+ # `buildkite-agent artifact search [options] <query>`,
97
+ # so we need to handle it separately.
98
+ if @command == 'artifact'
99
+ command.concat(@options.to_a.flatten)
100
+ command.concat(@args)
101
+ else
102
+ command.concat(@args)
103
+ command.concat(@options.to_a.flatten)
104
+ end
95
105
  end
96
106
 
97
107
  def extract_options(args)
98
- return {} unless args.first.is_a?(Hash)
108
+ return {} unless args.last.is_a?(Hash)
99
109
 
100
- args.shift.tap do |options|
110
+ args.pop.tap do |options|
101
111
  options.transform_keys! do |key|
102
112
  "--#{key.to_s.tr('_', '-')}"
103
113
  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.12.0
4
+ version: 4.14.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-09-04 00:00:00.000000000 Z
12
+ date: 2024-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rainbow
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  - !ruby/object:Gem::Version
176
176
  version: '0'
177
177
  requirements: []
178
- rubygems_version: 3.5.0
178
+ rubygems_version: 3.5.9
179
179
  signing_key:
180
180
  specification_version: 4
181
181
  summary: A gem for programmatically creating Buildkite pipelines.