buildkite-builder 4.13.0 → 4.14.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: 29628663afd1243c3f86484f6e12509f783eca9a5825e38229da91f8ac713464
4
- data.tar.gz: f629d53b2bfd9d1acbd9d4348908e05c77f30ddfae70bd6dcd2ed3467312035d
3
+ metadata.gz: b5923c5f95763c4d556739cd69e8fbaaca8b30dca4b72b965c5f0f7de90db04c
4
+ data.tar.gz: d30926eee81204d1c4dd794e3c4aa9704658e6e0000a45f8d86b9192307f0abf
5
5
  SHA512:
6
- metadata.gz: 61c45377515885c07bcae93a405fbac61a5889bad48707cab82942631516653067068ecc93707d631d0fd0e03f945f2a1c5f3a041ad2900f43daa6110c148558
7
- data.tar.gz: 6b76a007e8aec0c2179cedd14751d202cb60f3dd6dc70a1619e14c404e4f8c39d3e540f083f3ddc2c57e521022e7af6a8ed25c0b8532f68eff10459454656a6a
6
+ metadata.gz: 0e3406ad9f2ebe7c929bfd5e26b230ee1495e7cfef47188501f9d7a02ce3444c494a6f61f40b0aaa6889543f85ca6e66b1184de207f6cb4e179a261b185d2024
7
+ data.tar.gz: d3ea6a57c7f128adc317b6d439e4ecf849d6f77e123b82e3854a932f70aac99e4b2f21efb6e4c018a5e26acd0ab7fe0dd6b8cfe1d0f82c1c176820e10bd458b4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.13.0
1
+ 4.14.0
@@ -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.13.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.