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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ffbda6ae8e3766f7b89a38105a771fa383425a60
4
- data.tar.gz: a0b6b89b975d340521df2da08c3c9f2e04114786
3
+ metadata.gz: fba35bf2ef40afd0f5e13a59d8a839eabb16c32c
4
+ data.tar.gz: f5b7e98763cf1b10bd8fd970637a059dcfa31e0e
5
5
  SHA512:
6
- metadata.gz: 8ce9490791b9bb2e5d43e661f631c67388f971c70f7656b76294d8738f5b5fac1b6885ec228b83bf0171aa5a46e2d94661cf7845023094dc8314fbf2fa2cd7ac
7
- data.tar.gz: 63711776362b51b3d4a571d8bd4e6b921b289f408ee33038ce95b9f257994af3cbbc23f0fb9a0499e7e693f1b217140cd845375da8e6a1ac4b199c5d3c266712
6
+ metadata.gz: 6ae3a9c13b4b966e8be037313d4085a17d6590ebc3a5374fe5cf85e83f836a9f70ee3f4d2f22c5de390b90e58dad0fde4528ea865ca390680455a624aad5dfde
7
+ data.tar.gz: 3ccece005a8fc1fde473e4900ce28db9f3ac822085df46b9af524984320a70c28d544648428901209f4714a8dd0ccba379c60fdfd4b4bf673dad6b7baf481a02
@@ -0,0 +1,6 @@
1
+ sudo: false
2
+ before_install: gem install bundler
3
+ rvm:
4
+ - '2.1'
5
+ - '2.2'
6
+
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:
@@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.required_ruby_version = '>= 2.0'
22
22
 
23
23
  spec.add_dependency 'sawyer', '~> 0.6.0'
24
- spec.add_development_dependency 'bundler', '~> 1.9'
24
+ spec.add_development_dependency 'bundler'
25
25
  end
@@ -37,7 +37,7 @@ module Buildkit
37
37
  get("/v1/organizations/#{org}/projects/#{project}/builds", options)
38
38
  end
39
39
 
40
- # List builds for a project
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.project_builds('my-great-org', 'great-project', 42)
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
@@ -1,3 +1,3 @@
1
1
  module Buildkit
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.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.1.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-04-30 00:00:00.000000000 Z
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: '1.9'
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: '1.9'
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.4.6
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