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 +4 -4
- data/VERSION +1 -1
- data/lib/buildkite/pipelines/command.rb +14 -4
- 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: b5923c5f95763c4d556739cd69e8fbaaca8b30dca4b72b965c5f0f7de90db04c
|
4
|
+
data.tar.gz: d30926eee81204d1c4dd794e3c4aa9704658e6e0000a45f8d86b9192307f0abf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e3406ad9f2ebe7c929bfd5e26b230ee1495e7cfef47188501f9d7a02ce3444c494a6f61f40b0aaa6889543f85ca6e66b1184de207f6cb4e179a261b185d2024
|
7
|
+
data.tar.gz: d3ea6a57c7f128adc317b6d439e4ecf849d6f77e123b82e3854a932f70aac99e4b2f21efb6e4c018a5e26acd0ab7fe0dd6b8cfe1d0f82c1c176820e10bd458b4
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.
|
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
|
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.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-
|
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.
|
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.
|