buildkite-builder 4.13.0 → 4.15.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: 29628663afd1243c3f86484f6e12509f783eca9a5825e38229da91f8ac713464
4
- data.tar.gz: f629d53b2bfd9d1acbd9d4348908e05c77f30ddfae70bd6dcd2ed3467312035d
3
+ metadata.gz: 9504240d07a0e0a6d67df962f0605f04223ca092661650d6ec33cd66c4a247e4
4
+ data.tar.gz: 529a4d744013008a3ea9d9b4dc539903c72e066fc0338bf902ce794a578b05b9
5
5
  SHA512:
6
- metadata.gz: 61c45377515885c07bcae93a405fbac61a5889bad48707cab82942631516653067068ecc93707d631d0fd0e03f945f2a1c5f3a041ad2900f43daa6110c148558
7
- data.tar.gz: 6b76a007e8aec0c2179cedd14751d202cb60f3dd6dc70a1619e14c404e4f8c39d3e540f083f3ddc2c57e521022e7af6a8ed25c0b8532f68eff10459454656a6a
6
+ metadata.gz: 33cdb63cd363da41b026e326a6761b69632eb2c50ff8d58ba290502abed45603e20e093a25242ea37f614122b0561dfc97e3bc9a38406a34438e8c370543e6d4
7
+ data.tar.gz: f751c0abc97e67b17471858204dfea376aa20648c3135c1f6d4e12f232f766a6525086b98076d35c722094b763b94155be2e41e713b40c7de74c89eaf60dc9bb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.13.0
1
+ 4.15.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
@@ -25,6 +25,7 @@ module Buildkite
25
25
  attribute :timeout_in_minutes
26
26
  attribute :plugins, append: true
27
27
  attribute :priority
28
+ attribute :cancel_on_build_failing
28
29
  end
29
30
  end
30
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.13.0
4
+ version: 4.15.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-11-05 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.19
179
179
  signing_key:
180
180
  specification_version: 4
181
181
  summary: A gem for programmatically creating Buildkite pipelines.