buildkite-builder 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/lib/buildkite/builder/extensions/lib.rb +15 -0
- data/lib/buildkite/builder/extensions.rb +1 -0
- data/lib/buildkite/builder/pipeline.rb +1 -0
- data/lib/buildkite/builder.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa814669915f68e9320907c458b3e71fb6583e03722ec13af9e091f7b602e9c8
|
4
|
+
data.tar.gz: 15ba5f61fbf4c6547bcc01fc8cafab9b5d4e8e5a391c549ebc236f5723f82499
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d40812d9c6457031445ca6a67749519fe5df7fa37f8d386acc77009da93f1b7f864117bc975d87db6ba17375b0e8145eba301a788ad69ab7099b319027d19d8
|
7
|
+
data.tar.gz: 44e89a2b59f846f8c5d8d1e2538c0039baf312bbd8ed043bff00ce124930f247094f4dde9af53d3a18dfd8943109d5eb83ed6e587042ed62f158ba7b14adaee1
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.2.0
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Buildkite
|
2
|
+
module Builder
|
3
|
+
module Extensions
|
4
|
+
class Lib < Extension
|
5
|
+
def prepare
|
6
|
+
lib_dir = Buildkite::Builder.root.join(Buildkite::Builder::BUILDKITE_DIRECTORY_NAME, 'lib')
|
7
|
+
|
8
|
+
if lib_dir.directory? && !$LOAD_PATH.include?(lib_dir)
|
9
|
+
$LOAD_PATH.unshift(lib_dir)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -4,6 +4,7 @@ module Buildkite
|
|
4
4
|
module Builder
|
5
5
|
module Extensions
|
6
6
|
autoload :Env, File.expand_path('extensions/env', __dir__)
|
7
|
+
autoload :Lib, File.expand_path('extensions/lib', __dir__)
|
7
8
|
autoload :Notify, File.expand_path('extensions/notify', __dir__)
|
8
9
|
autoload :Steps, File.expand_path('extensions/steps', __dir__)
|
9
10
|
autoload :Use, File.expand_path('extensions/use', __dir__)
|
data/lib/buildkite/builder.rb
CHANGED
@@ -46,7 +46,7 @@ module Buildkite
|
|
46
46
|
|
47
47
|
def find_buildkite_directory(start_path)
|
48
48
|
path = Pathname.new(start_path)
|
49
|
-
until path.join(BUILDKITE_DIRECTORY_NAME).
|
49
|
+
until path.join(BUILDKITE_DIRECTORY_NAME).directory?
|
50
50
|
raise "Unable to find #{BUILDKITE_DIRECTORY_NAME} from #{start_path}" if path == path.parent
|
51
51
|
|
52
52
|
path = path.parent
|
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: 2.
|
4
|
+
version: 2.2.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: 2021-08-
|
12
|
+
date: 2021-08-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rainbow
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- lib/buildkite/builder/extension_manager.rb
|
127
127
|
- lib/buildkite/builder/extensions.rb
|
128
128
|
- lib/buildkite/builder/extensions/env.rb
|
129
|
+
- lib/buildkite/builder/extensions/lib.rb
|
129
130
|
- lib/buildkite/builder/extensions/notify.rb
|
130
131
|
- lib/buildkite/builder/extensions/steps.rb
|
131
132
|
- lib/buildkite/builder/extensions/use.rb
|