buildkite-builder 1.3.0 → 1.3.1

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: 6684f24ab3c156884bcd3055fbddbb7831afa03be9e0b0b2056fbedef023084b
4
- data.tar.gz: 64753e7a15224a0b3c161335cfbc9046ecbaa5e015692ace78001eeef550eea3
3
+ metadata.gz: 669f98cc6170037177ae0c80008c0a39909cf9467d333eab77c81d97bb26d94d
4
+ data.tar.gz: 2574e9e06b8140029edde690bd588f1171417810056f53fcc57225a061c8cbed
5
5
  SHA512:
6
- metadata.gz: 21b7f849f79acd215f260644f75767143bb10f2eeab88e0edee7c3728024f128b12f421ddd632ed4163fc0501f44051bc065594906d28643642839be934ac152
7
- data.tar.gz: 5bfe120d20cb914525c61dba9ddec9b298058e6ccb01a5b6a4a55cccc95cff1fa993753cf65ba1041615d9adcb735ffb4545c7a58987a004cc3638b11d4eeba3
6
+ metadata.gz: 64284b828cd1af1768b1354af0bddf2505c203124797117d74af8fce6d59e9342dc4668dc84a462d4569da00a6628006f773cda753c90782ff718a712c9d1413
7
+ data.tar.gz: d97d496f48f63060aa769d07952c648f4ed31303c070164b8e8754ce761bba9475f60b2bcf1bc7bdd1b96e7e008658a4823f0dda56b976974b20060a8ae6249e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.3.1
2
+ * Expose `data` from `StepContext` to `Step`
3
+
1
4
  ## 1.3.0
2
5
  * Add ability for step to store data in step context
3
6
  * Move `upload` from `BuildKite::Builder::Commands::Run` to `BuildKite::Builder::Context`
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.1
@@ -1,11 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "forwardable"
4
+
3
5
  module Buildkite
4
6
  module Pipelines
5
7
  module Steps
6
8
  class Abstract
9
+ extend Forwardable
7
10
  include Attributes
8
11
 
12
+ def_delegator :@context, :data
13
+
9
14
  attr_reader :pipeline
10
15
  attr_reader :template
11
16
 
@@ -16,10 +21,10 @@ module Buildkite
16
21
  def initialize(pipeline, template = nil, **args, &block)
17
22
  @pipeline = pipeline
18
23
  @template = template
19
- context = StepContext.new(self, **args)
24
+ @context = StepContext.new(self, **args)
20
25
 
21
- instance_exec(context, &template) if template
22
- instance_exec(context, &block) if block_given?
26
+ instance_exec(@context, &template) if template
27
+ instance_exec(@context, &block) if block_given?
23
28
  end
24
29
  end
25
30
  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: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ngan Pham