buildkit 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/README.md +3 -0
- data/buildkit.gemspec +1 -1
- data/lib/buildkit/client/builds.rb +14 -2
- data/lib/buildkit/version.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fba35bf2ef40afd0f5e13a59d8a839eabb16c32c
|
4
|
+
data.tar.gz: f5b7e98763cf1b10bd8fd970637a059dcfa31e0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ae3a9c13b4b966e8be037313d4085a17d6590ebc3a5374fe5cf85e83f836a9f70ee3f4d2f22c5de390b90e58dad0fde4528ea865ca390680455a624aad5dfde
|
7
|
+
data.tar.gz: 3ccece005a8fc1fde473e4900ce28db9f3ac822085df46b9af524984320a70c28d544648428901209f4714a8dd0ccba379c60fdfd4b4bf673dad6b7baf481a02
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
|
3
3
|
Ruby toolkit for the Buildkite API.
|
4
4
|
|
5
|
+
[![Build Status](https://secure.travis-ci.org/Shopify/buildkit.png)](http://travis-ci.org/Shopify/buildkit)
|
6
|
+
[![Gem Version](https://badge.fury.io/rb/buildkit.png)](http://badge.fury.io/rb/buildkit)
|
7
|
+
|
5
8
|
## Installation
|
6
9
|
|
7
10
|
Add this line to your application's Gemfile:
|
data/buildkit.gemspec
CHANGED
@@ -37,7 +37,7 @@ module Buildkit
|
|
37
37
|
get("/v1/organizations/#{org}/projects/#{project}/builds", options)
|
38
38
|
end
|
39
39
|
|
40
|
-
#
|
40
|
+
# Get a build
|
41
41
|
#
|
42
42
|
# @param org [String] Organization slug.
|
43
43
|
# @param project [String] Project slug.
|
@@ -45,10 +45,22 @@ module Buildkit
|
|
45
45
|
# @return [Sawyer::Resource] Hash representing Buildkite build.
|
46
46
|
# @see https://buildkite.com/docs/api/builds#get-a-build
|
47
47
|
# @example
|
48
|
-
# Buildkit.
|
48
|
+
# Buildkit.build('my-great-org', 'great-project', 42)
|
49
49
|
def build(org, project, number, options = {})
|
50
50
|
get("/v1/organizations/#{org}/projects/#{project}/builds/#{number}", options)
|
51
51
|
end
|
52
|
+
|
53
|
+
# Rebuild a build
|
54
|
+
#
|
55
|
+
# @param org [String] Organization slug.
|
56
|
+
# @param project [String] Project slug.
|
57
|
+
# @param number [Integer] Build number.
|
58
|
+
# @see https://buildkite.com/docs/api/builds#rebuild-a-build
|
59
|
+
# @example
|
60
|
+
# Buildkit.rebuild('my-great-org', 'great-project', 42)
|
61
|
+
def rebuild(org, project, number, options = {})
|
62
|
+
put("/v1/organizations/#{org}/projects/#{project}/builds/#{number}/rebuild", options)
|
63
|
+
end
|
52
64
|
end
|
53
65
|
end
|
54
66
|
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.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: 2015-
|
11
|
+
date: 2015-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sawyer
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
description:
|
42
42
|
email:
|
43
43
|
- jean.boussier@shopify.com
|
@@ -49,6 +49,7 @@ files:
|
|
49
49
|
- ".rspec"
|
50
50
|
- ".rubocop.yml"
|
51
51
|
- ".rubocop_todo.yml"
|
52
|
+
- ".travis.yml"
|
52
53
|
- Gemfile
|
53
54
|
- LICENSE.txt
|
54
55
|
- README.md
|
@@ -85,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
86
|
version: '0'
|
86
87
|
requirements: []
|
87
88
|
rubyforge_project:
|
88
|
-
rubygems_version: 2.
|
89
|
+
rubygems_version: 2.2.3
|
89
90
|
signing_key:
|
90
91
|
specification_version: 4
|
91
92
|
summary: Ruby toolkit for working with the Buildkite API
|