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 +4 -4
- data/lib/buildbox/agent.rb +1 -1
- data/lib/buildbox/api.rb +2 -2
- data/lib/buildbox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24043ce2077ac39aa6d5a6205291bef303eee5b7
|
4
|
+
data.tar.gz: fac6040beba83e33006d18b7aa3da0a1bfcac0db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c72ff89331bfb556082c0a9c73867b6598f84fa3a8ecfe14f746648b965ca6ae968d8062f21363aa458e382179ff505c68f769673f88fabddfa8cb0a9541a13
|
7
|
+
data.tar.gz: 38ddcbd216f2c29d1af27e300ee9abf37119239f1333b3a9a88af10e2db6e9150ab76608a1c3af62e82df10f6180663e03fc5e7bee424ba8b0cf0508ae7719e8
|
data/lib/buildbox/agent.rb
CHANGED
@@ -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"
|
data/lib/buildbox/api.rb
CHANGED
@@ -35,8 +35,8 @@ module Buildbox
|
|
35
35
|
get("user")
|
36
36
|
end
|
37
37
|
|
38
|
-
def agent(access_token,
|
39
|
-
put("agents/#{access_token}",
|
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)
|
data/lib/buildbox/version.rb
CHANGED
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.
|
228
|
+
rubygems_version: 2.1.3
|
229
229
|
signing_key:
|
230
230
|
specification_version: 4
|
231
231
|
summary: Ruby agent for buildbox
|