buildbox 0.3.9 → 0.3.9.1

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: 2342efcf6dbbfc591fbabea8d86e81f261fb06b6
4
- data.tar.gz: 316d7a8726e2376bbeb0a54eb615d66c5bc18294
3
+ metadata.gz: 24043ce2077ac39aa6d5a6205291bef303eee5b7
4
+ data.tar.gz: fac6040beba83e33006d18b7aa3da0a1bfcac0db
5
5
  SHA512:
6
- metadata.gz: 3c6ccad33be924b0c2893cff55fa5f33e7ce3d766a15baac6ec57f27cd81f6dc58d1e90e3b8f76a5b6cd1640a426b8abd2ec900cfa773fd2fe087c1108793fba
7
- data.tar.gz: 4f9022099235838076447e9f19aa6e2c3ea448905444e7ce272e48ff4204f149fd98edde99addcce6b0c65abd828f530c0f6aeb2b31827af469400f8de40f4f9
6
+ metadata.gz: 9c72ff89331bfb556082c0a9c73867b6598f84fa3a8ecfe14f746648b965ca6ae968d8062f21363aa458e382179ff505c68f769673f88fabddfa8cb0a9541a13
7
+ data.tar.gz: 38ddcbd216f2c29d1af27e300ee9abf37119239f1333b3a9a88af10e2db6e9150ab76608a1c3af62e82df10f6180663e03fc5e7bee424ba8b0cf0508ae7719e8
@@ -32,7 +32,7 @@ module Buildbox
32
32
  private
33
33
 
34
34
  def scheduled_builds
35
- agent = @api.agent(@access_token, hostname)
35
+ agent = @api.agent(@access_token, :hostname => hostname, :version => Buildbox::VERSION)
36
36
  @api.scheduled_builds agent
37
37
  rescue Buildbox::API::AgentNotFoundError
38
38
  warn "Agent `#{@access_token}` does not exist"
@@ -35,8 +35,8 @@ module Buildbox
35
35
  get("user")
36
36
  end
37
37
 
38
- def agent(access_token, hostname)
39
- put("agents/#{access_token}", :hostname => hostname)
38
+ def agent(access_token, options)
39
+ put("agents/#{access_token}", options)
40
40
  rescue Faraday::Error::ClientError => e
41
41
  if e.response[:status] == 404
42
42
  raise AgentNotFoundError.new(e, e.response)
@@ -1,3 +1,3 @@
1
1
  module Buildbox
2
- VERSION = "0.3.9"
2
+ VERSION = "0.3.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Pitt
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
225
  version: '0'
226
226
  requirements: []
227
227
  rubyforge_project:
228
- rubygems_version: 2.0.3
228
+ rubygems_version: 2.1.3
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: Ruby agent for buildbox