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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1796ef4fc73c74c399a7eb271092baee5b0101e3c06598c8d837d1fd031876e2
4
- data.tar.gz: c384d20a194cf13a8dff4e1057a1b07b777201fd717f1d75496d88ec04d7fbff
3
+ metadata.gz: fa814669915f68e9320907c458b3e71fb6583e03722ec13af9e091f7b602e9c8
4
+ data.tar.gz: 15ba5f61fbf4c6547bcc01fc8cafab9b5d4e8e5a391c549ebc236f5723f82499
5
5
  SHA512:
6
- metadata.gz: cc19aa8d8c3af6f4fbbd0bd892d56f41243649b8b384e38f7391d8e198950704bc515530c022c231eb7d4368a7bed0f74fa0f4bab3c020813bf045b67a4d1062
7
- data.tar.gz: e414869940fbb417e06192a7fdd48049d38564c00f1283a8110c2521462ce736ec890c7275c03c386b619ae718b654a4ac2cbbf460cb1f1dfd86cefb4e871b2c
6
+ metadata.gz: 4d40812d9c6457031445ca6a67749519fe5df7fa37f8d386acc77009da93f1b7f864117bc975d87db6ba17375b0e8145eba301a788ad69ab7099b319027d19d8
7
+ data.tar.gz: 44e89a2b59f846f8c5d8d1e2538c0039baf312bbd8ed043bff00ce124930f247094f4dde9af53d3a18dfd8943109d5eb83ed6e587042ed62f158ba7b14adaee1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 2.1.0
2
+ * Add `.buildkite/lib` directory to $LOAD_PATH if it exists.
3
+
1
4
  ## 2.1.0
2
5
  * Fix a bug introduced in 2.0.0 where artifacts were being uploaded before extensions had a chance to do work.
3
6
  * Remove `SortedSet` dependency.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
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__)
@@ -33,6 +33,7 @@ module Buildkite
33
33
  @data = Data.new
34
34
 
35
35
  use(Extensions::Use)
36
+ use(Extensions::Lib)
36
37
  use(Extensions::Env)
37
38
  use(Extensions::Notify)
38
39
  use(Extensions::Steps)
@@ -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).exist? && path.join(BUILDKITE_DIRECTORY_NAME).directory?
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.1.0
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-27 00:00:00.000000000 Z
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