buildkite-builder 4.13.0 → 4.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/buildkite/pipelines/command.rb +14 -4
- data/lib/buildkite/pipelines/steps/command.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9504240d07a0e0a6d67df962f0605f04223ca092661650d6ec33cd66c4a247e4
|
4
|
+
data.tar.gz: 529a4d744013008a3ea9d9b4dc539903c72e066fc0338bf902ce794a578b05b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33cdb63cd363da41b026e326a6761b69632eb2c50ff8d58ba290502abed45603e20e093a25242ea37f614122b0561dfc97e3bc9a38406a34438e8c370543e6d4
|
7
|
+
data.tar.gz: f751c0abc97e67b17471858204dfea376aa20648c3135c1f6d4e12f232f766a6525086b98076d35c722094b763b94155be2e41e713b40c7de74c89eaf60dc9bb
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.
|
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
|
94
|
-
|
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.
|
108
|
+
return {} unless args.last.is_a?(Hash)
|
99
109
|
|
100
|
-
args.
|
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.
|
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-
|
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.
|
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.
|