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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3eb6aff20afed3470c00122396362dd62f95df00
4
- data.tar.gz: b5d2158d34685fb4f82ca754655b83cdfb580f7e
3
+ metadata.gz: d021dfb3a2415c3c26f7545de036e299914d390f
4
+ data.tar.gz: 2714df521f88d4dcba80b36acd5afa08530902ac
5
5
  SHA512:
6
- metadata.gz: a48358a4caea06e7ab6eb82d8e2dddbec89daa79aa3f363a63852e766b84fb616f8990f42cd0ede01e52ba56015412d7918da5d7775c08b4747b196e76c371f2
7
- data.tar.gz: 126c66120c7a280b5e09746f0b302aac979e48421f3f443591b1fa3acaec56fe4d2dcea62a8146e06737823746c88b1395c862c63eced9b5fcd530eacb9c5730
6
+ metadata.gz: 03bc6bac52d05ba5e06d82e3f5eb3463ebcbb81263c51d7257960bfd072ce92c79fc6ae64b2f0cc51195c3a004f46b74b57fd4444d587447db51e2eb45818229
7
+ data.tar.gz: 0c7190a381b9345e32e99a87d341e8c414842afc6ed018038b701dbcf63c32a528b68679e0fd143f01eadcaab23e7951bb83b7a88203fdff3f61b75d9ac74e9d
data/.gitignore CHANGED
@@ -17,3 +17,4 @@ test/version_tmp
17
17
  tmp
18
18
  .idea
19
19
  .ruby-version
20
+ vendor/bundle
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.3.2 (Jul 8, 20017)
2
+
3
+ * Added ability to triggering build
4
+
1
5
  ## 1.3.1 (Jun 4, 20014)
2
6
 
3
7
  * Dependencies
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # The TeamCity Ruby Gem [![Gem Version](https://badge.fury.io/rb/teamcity-ruby-client.png)](http://badge.fury.io/rb/teamcity-ruby-client)
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
@@ -8,6 +8,7 @@ module TeamCity
8
8
 
9
9
  include TeamCity::Client::Projects
10
10
  include TeamCity::Client::BuildTypes
11
+ include TeamCity::Client::BuildQueue
11
12
  include TeamCity::Client::Builds
12
13
  include TeamCity::Client::Common
13
14
  include TeamCity::Client::VCSRoots
@@ -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
@@ -1,3 +1,3 @@
1
1
  module TeamCity
2
- VERSION = '1.3.1'
2
+ VERSION = '1.3.2'
3
3
  end
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('rake')
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.1
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-07 00:00:00.000000000 Z
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: '0'
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: '0'
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: