buildkit 1.1.1 → 1.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
  SHA1:
3
- metadata.gz: 64e7a9271c0e2d717b54e94d2376bcbe9d2b0874
4
- data.tar.gz: 74bcd8f4013c4e67bc898047b277dd05632f2ff0
3
+ metadata.gz: 7a85af6bb40a281c219a2837700833cbb6f32d99
4
+ data.tar.gz: dc2cd54f37470feb90fda6c37a3ae3d8855b43bf
5
5
  SHA512:
6
- metadata.gz: 85841d9c8a376d667c05a32cf805ede8e078f1b4056d20e07069354f132d155a0e9df10d0ec62f790974120c6d556aeae75c94617b8745044d7105d4fee13789
7
- data.tar.gz: 2df8497a6f244a38fa314886ecbeae14c2a7b3033daba366495fde6e875e523b33854eeb30c2d15227c3f44daffd06cd5f9456e8275be41dadd465a8e48010ea
6
+ metadata.gz: 4df322a711ba16b8a5abe274195af31a2caff1891b57593fcb6f077a584c35d7ed28e618dbba2638672c860309990664b30f072c4e309b6d0a20053e49b6c1f1
7
+ data.tar.gz: 27c8787d3ce593c0cc038ec527d73ed7ff0dba2810b1d674f78d80ec8cd741a8f5e042f28a85eba6b97e8b4f07339851627709c7a1ff83d0a654bdbd8e1a6846
@@ -81,6 +81,18 @@ module Buildkit
81
81
  def create_build(org, pipeline, options = {})
82
82
  post("/v2/organizations/#{org}/pipelines/#{pipeline}/builds", options)
83
83
  end
84
+
85
+ # Cancel a build
86
+ #
87
+ # @param org [String] Organization slug.
88
+ # @param pipeline [String] pipeline slug.
89
+ # @param number [Integer] Build number.
90
+ # @see https://buildkite.com/docs/rest-api/builds#cancel-a-build
91
+ # @example
92
+ # Buildkit.cancel_build('my-great-org', 'great-pipeline', 42)
93
+ def cancel_build(org, pipeline, number, options = {})
94
+ put("/v2/organizations/#{org}/pipelines/#{pipeline}/builds/#{number}/cancel", options)
95
+ end
84
96
  end
85
97
  end
86
98
  end
@@ -1,3 +1,3 @@
1
1
  module Buildkit
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-19 00:00:00.000000000 Z
11
+ date: 2017-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sawyer
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.5.1
91
+ rubygems_version: 2.5.2
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Ruby toolkit for working with the Buildkite API