teamcity 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/Rakefile +15 -0
- data/lib/teamcity/client.rb +1 -0
- data/lib/teamcity/client/build_queue.rb +25 -0
- data/lib/teamcity/version.rb +1 -1
- data/teamcity.gemspec +8 -1
- metadata +106 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d021dfb3a2415c3c26f7545de036e299914d390f
|
4
|
+
data.tar.gz: 2714df521f88d4dcba80b36acd5afa08530902ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03bc6bac52d05ba5e06d82e3f5eb3463ebcbb81263c51d7257960bfd072ce92c79fc6ae64b2f0cc51195c3a004f46b74b57fd4444d587447db51e2eb45818229
|
7
|
+
data.tar.gz: 0c7190a381b9345e32e99a87d341e8c414842afc6ed018038b701dbcf63c32a528b68679e0fd143f01eadcaab23e7951bb83b7a88203fdff3f61b75d9ac74e9d
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# The TeamCity Ruby Gem [![Gem Version](https://badge.fury.io/rb/teamcity
|
1
|
+
# The TeamCity Ruby Gem [![Gem Version](https://badge.fury.io/rb/teamcity.png)](http://badge.fury.io/rb/teamcity)
|
2
2
|
[![Build Status](https://travis-ci.org/jperry/teamcity-ruby-client.png?branch=master)](https://travis-ci.org/jperry/teamcity-ruby-client.png?branch=master) [![Code Climate](https://codeclimate.com/github/jperry/teamcity-ruby-client.png)](https://codeclimate.com/github/jperry/teamcity-ruby-client) [![Dependency Status](https://gemnasium.com/jperry/teamcity-ruby-client.png)](https://gemnasium.com/jperry/teamcity-ruby-client)
|
3
3
|
|
4
4
|
Ruby wrapper for the TeamCity Rest API
|
data/Rakefile
CHANGED
@@ -1 +1,16 @@
|
|
1
1
|
require 'bundler/gem_tasks'
|
2
|
+
require 'rspec/core/rake_task'
|
3
|
+
require 'yard'
|
4
|
+
require 'yard/rake/yardoc_task'
|
5
|
+
|
6
|
+
RSpec::Core::RakeTask.new(:spec)
|
7
|
+
|
8
|
+
task :default => :spec
|
9
|
+
|
10
|
+
YARD::Rake::YardocTask.new do |yardoc|
|
11
|
+
yardoc.name = 'yard'
|
12
|
+
yardoc.options = ['--verbose']
|
13
|
+
yardoc.files = [
|
14
|
+
'lib/**/*.rb'
|
15
|
+
]
|
16
|
+
end
|
data/lib/teamcity/client.rb
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
module TeamCity
|
2
|
+
class Client
|
3
|
+
# Defines methods related to build types (or build configurations)
|
4
|
+
module BuildQueue
|
5
|
+
# HTTP GET
|
6
|
+
|
7
|
+
# Triggering Build https://confluence.jetbrains.com/display/TCD10/REST+API#RESTAPI-TriggeringaBuild
|
8
|
+
#
|
9
|
+
# @return [Array<Hashie::Mash>, nil]
|
10
|
+
def create_buildqueue(buildtype_id, options = {}, &block)
|
11
|
+
attributes = options.merge({
|
12
|
+
buildType: {
|
13
|
+
id: buildtype_id
|
14
|
+
}
|
15
|
+
})
|
16
|
+
|
17
|
+
builder = TeamCity::ElementBuilder.new(attributes, &block)
|
18
|
+
|
19
|
+
post("buildQueue", content_type: :json) do |req|
|
20
|
+
req.body = builder.to_request_body
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/lib/teamcity/version.rb
CHANGED
data/teamcity.gemspec
CHANGED
@@ -19,7 +19,14 @@ Gem::Specification.new do |gem|
|
|
19
19
|
gem.require_paths = ['lib']
|
20
20
|
|
21
21
|
# Dependencies
|
22
|
-
gem.add_development_dependency('
|
22
|
+
gem.add_development_dependency('rspec', '~> 2.14.1')
|
23
|
+
gem.add_development_dependency('webmock', '~> 1.8.0')
|
24
|
+
gem.add_development_dependency('rake', '~> 10.0.3')
|
25
|
+
gem.add_development_dependency('pry', '~> 0.9.12')
|
26
|
+
gem.add_development_dependency('vcr', '~> 2.4.0')
|
27
|
+
gem.add_development_dependency('yard', '~> 0.8.5.2')
|
28
|
+
gem.add_development_dependency('redcarpet', '~> 2.2.2')
|
29
|
+
gem.add_development_dependency('guard-rspec', '~> 4.0.2')
|
23
30
|
gem.add_runtime_dependency('faraday', '~> 0.12.0')
|
24
31
|
gem.add_runtime_dependency('faraday_middleware')
|
25
32
|
gem.add_runtime_dependency('hashie', '>= 2.0')
|
metadata
CHANGED
@@ -1,29 +1,127 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teamcity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Perry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.14.1
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.14.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: webmock
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.8.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.8.0
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: rake
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
16
44
|
requirements:
|
17
|
-
- - "
|
45
|
+
- - "~>"
|
18
46
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
47
|
+
version: 10.0.3
|
20
48
|
type: :development
|
21
49
|
prerelease: false
|
22
50
|
version_requirements: !ruby/object:Gem::Requirement
|
23
51
|
requirements:
|
24
|
-
- - "
|
52
|
+
- - "~>"
|
25
53
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
54
|
+
version: 10.0.3
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.9.12
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.9.12
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: vcr
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.4.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.4.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: yard
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.8.5.2
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.8.5.2
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: redcarpet
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 2.2.2
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 2.2.2
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: guard-rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 4.0.2
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 4.0.2
|
27
125
|
- !ruby/object:Gem::Dependency
|
28
126
|
name: faraday
|
29
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,6 +184,7 @@ files:
|
|
86
184
|
- lib/teamcity.rb
|
87
185
|
- lib/teamcity/api.rb
|
88
186
|
- lib/teamcity/client.rb
|
187
|
+
- lib/teamcity/client/build_queue.rb
|
89
188
|
- lib/teamcity/client/build_types.rb
|
90
189
|
- lib/teamcity/client/builds.rb
|
91
190
|
- lib/teamcity/client/common.rb
|
@@ -342,3 +441,4 @@ test_files:
|
|
342
441
|
- spec/teamcity/headers_spec.rb
|
343
442
|
- spec/teamcity/version_spec.rb
|
344
443
|
- spec/teamcity_spec.rb
|
444
|
+
has_rdoc:
|