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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fba35bf2ef40afd0f5e13a59d8a839eabb16c32c
4
- data.tar.gz: f5b7e98763cf1b10bd8fd970637a059dcfa31e0e
3
+ metadata.gz: 67404319e0c2f1dd344c940ff02a896742add552
4
+ data.tar.gz: 2fcb6d0775b575a9121d69cac501cf4f436e2bef
5
5
  SHA512:
6
- metadata.gz: 6ae3a9c13b4b966e8be037313d4085a17d6590ebc3a5374fe5cf85e83f836a9f70ee3f4d2f22c5de390b90e58dad0fde4528ea865ca390680455a624aad5dfde
7
- data.tar.gz: 3ccece005a8fc1fde473e4900ce28db9f3ac822085df46b9af524984320a70c28d544648428901209f4714a8dd0ccba379c60fdfd4b4bf673dad6b7baf481a02
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
@@ -1,3 +1,3 @@
1
1
  module Buildkit
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
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: 0.2.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: 2015-08-07 00:00:00.000000000 Z
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.2.3
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