buildkite-builder 4.6.0 → 4.8.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: 4bf8325879836987ca1d33d9822e1c2aaf315843c7ee2b99e5791378a893c767
4
- data.tar.gz: 2e9edbde3a0db277878a8f307ef0e1975a4dde99c396e87a3ecb1b9b2673b405
3
+ metadata.gz: 3e3127a8c8bdc29da817147bd3d2761ba1f0d4eefd46b782d4135b828163c0aa
4
+ data.tar.gz: 29c93f19e0310268abc128cecc7eaa5bf0bf8cd371fdcdc129605c917811c5d3
5
5
  SHA512:
6
- metadata.gz: bb4cf5652a702e0d030350db16c0447d72cd2000a6cb32fa4f1a89d00c38cc0e5820661ca1fb67de8abe4a56b177172a4a806a4d05ff954744a01dcd2ec56c32
7
- data.tar.gz: c04110b0ca0f550a4a2be480f9aecde71566358fb9d638a4a0c96d1c503c3de6272a75b78083bb21b60d81a3fc12d4440c80445e5a0f9d41bbae5ea4a130ee30
6
+ metadata.gz: f6f36a66be812ab6b84a02b0042dee091b6a5099474e112a372e21d3dba3d5c1d4a2a9b6832801bcb29395898b9518e459f91ca1cc7788a05c34c3b2052229cb
7
+ data.tar.gz: 9b346edd951f0d2b6a10023394320fb0e974b05a0729eff50d1e8f2c41c188c0ca46d141f9e37924ff9cfb13e8c9f0925c722dcc017f19952515f050bc135815
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ### 4.8.0
2
+ * Move `BUILDKITE_BUILDER_PIPELINE_PATH` override as part of command abstract.
3
+
4
+ ### 4.7.0
5
+ * Remove warning of method redefined.
6
+
1
7
  ### 4.6.0
2
8
  * Remove `capture` concept on `Buildkite::Pipelines::Command#run` and replaced with `Buildkite::Pipelines::Command::Result` object to represent `Open3.capture3` result.
3
9
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.6.0
1
+ 4.8.0
@@ -81,6 +81,7 @@ module Buildkite
81
81
 
82
82
  def pipeline_path
83
83
  @pipeline_path ||=
84
+ find_root_by_env_path ||
84
85
  find_root_by_main_pipeline ||
85
86
  find_root_by_multi_pipeline
86
87
  end
@@ -103,6 +104,13 @@ module Buildkite
103
104
  end
104
105
  end
105
106
  end
107
+
108
+ def find_root_by_env_path
109
+ if ENV['BUILDKITE_BUILDER_PIPELINE_PATH']
110
+ path = Pathname.new(ENV['BUILDKITE_BUILDER_PIPELINE_PATH'])
111
+ path.absolute? ? path : Builder.root.join(path)
112
+ end
113
+ end
106
114
  end
107
115
  end
108
116
  end
@@ -23,19 +23,6 @@ module Buildkite
23
23
  Pipeline.new(pipeline_path, logger: log).upload
24
24
  end
25
25
  end
26
-
27
- private
28
-
29
- def pipeline_path
30
- pipeline_path_override || super
31
- end
32
-
33
- def pipeline_path_override
34
- if ENV['BUILDKITE_BUILDER_PIPELINE_PATH']
35
- path = Pathname.new(ENV['BUILDKITE_BUILDER_PIPELINE_PATH'])
36
- path.absolute? ? path : Builder.root.join(path)
37
- end
38
- end
39
26
  end
40
27
  end
41
28
  end
@@ -4,8 +4,6 @@ module Buildkite
4
4
  module Builder
5
5
  class Extension
6
6
  class << self
7
- attr_reader :dsl
8
-
9
7
  def dsl(&block)
10
8
  @dsl = Module.new(&block) if block_given?
11
9
  @dsl
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.6.0
4
+ version: 4.8.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: 2023-12-12 00:00:00.000000000 Z
12
+ date: 2024-01-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rainbow
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  - !ruby/object:Gem::Version
175
175
  version: '0'
176
176
  requirements: []
177
- rubygems_version: 3.3.13
177
+ rubygems_version: 3.5.3
178
178
  signing_key:
179
179
  specification_version: 4
180
180
  summary: A gem for programmatically creating Buildkite pipelines.