go_api_client 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- go_api_client (0.0.6)
4
+ go_api_client (0.0.7)
5
5
  nokogiri
6
6
 
7
7
  GEM
@@ -1,8 +1,9 @@
1
1
  require 'nokogiri'
2
- require "open-uri"
2
+ require 'open-uri'
3
+ require 'net/http'
3
4
 
4
- require "go_api_client/version"
5
- require "go_api_client/atom"
5
+ require 'go_api_client/version'
6
+ require 'go_api_client/atom'
6
7
  require 'go_api_client/pipeline.rb'
7
8
  require 'go_api_client/stage.rb'
8
9
  require 'go_api_client/job.rb'
@@ -17,4 +18,10 @@ module GoApiClient
17
18
  end
18
19
  pipelines.values
19
20
  end
21
+
22
+ def self.schedule_pipeline(host)
23
+ uri = URI("http://#{host}:8153/go/api/pipelines/defaultPipeline/schedule")
24
+ Net::HTTP.post_form(uri, {})
25
+ end
20
26
  end
27
+
@@ -1,3 +1,3 @@
1
1
  module GoApiClient
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: go_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-03-07 00:00:00.000000000Z
14
+ date: 2012-03-13 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: webmock
18
- requirement: &70210519943860 !ruby/object:Gem::Requirement
18
+ requirement: &70114427939400 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: '0'
24
24
  type: :development
25
25
  prerelease: false
26
- version_requirements: *70210519943860
26
+ version_requirements: *70114427939400
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
- requirement: &70210519941940 !ruby/object:Gem::Requirement
29
+ requirement: &70114427938960 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *70210519941940
37
+ version_requirements: *70114427938960
38
38
  description: This gem parses atom feed generated by the Go Continuous Integration
39
39
  server and provides an OO representation of the pipelines and stages.
40
40
  email: