buildkit 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/buildkit/client/builds.rb +20 -0
- data/lib/buildkit/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67404319e0c2f1dd344c940ff02a896742add552
|
4
|
+
data.tar.gz: 2fcb6d0775b575a9121d69cac501cf4f436e2bef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a7ef856516716490af7513374f1308d987e42490e8d4e04c8d9a33cc321910fd6778f51176795d206f87584dd3bfa69d5d94e57168fd2a73f1c6228aa5125da
|
7
|
+
data.tar.gz: 698509103262ee39ffad513a6f8bf69216cbe25ad309a50c277e4fe32c246ec0ba57b1716aa6340c41f34ded8ffb2fc0b77c5fdeff866ef862e8dfa3f551ab59
|
@@ -61,6 +61,26 @@ module Buildkit
|
|
61
61
|
def rebuild(org, project, number, options = {})
|
62
62
|
put("/v1/organizations/#{org}/projects/#{project}/builds/#{number}/rebuild", options)
|
63
63
|
end
|
64
|
+
|
65
|
+
# Create a build
|
66
|
+
#
|
67
|
+
# @param org [String] Organization slug.
|
68
|
+
# @param project [String] Project slug.
|
69
|
+
# @see https://buildkite.com/docs/api/builds#create-a-build
|
70
|
+
# @example
|
71
|
+
# Buildkit.create_build('my-great-org', 'great-project', {
|
72
|
+
# commit: 'HEAD',
|
73
|
+
# branch: 'master',
|
74
|
+
# message: 'Hello, world!',
|
75
|
+
# author: {
|
76
|
+
# name: 'Liam Neeson',
|
77
|
+
# email: 'liam@evilbatmanvillans.com'
|
78
|
+
# }
|
79
|
+
# })
|
80
|
+
#
|
81
|
+
def create_build(org, project, options = {})
|
82
|
+
post("/v1/organizations/#{org}/projects/#{project}/builds", options)
|
83
|
+
end
|
64
84
|
end
|
65
85
|
end
|
66
86
|
end
|
data/lib/buildkit/version.rb
CHANGED
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: 0.
|
4
|
+
version: 0.3.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:
|
11
|
+
date: 2016-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sawyer
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.
|
89
|
+
rubygems_version: 2.4.6
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Ruby toolkit for working with the Buildkite API
|