teamcity_ruby 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. data/lib/teamcity_ruby/vcs_root.rb +10 -4
  2. data/lib/teamcity_ruby/version.rb +1 -1
  3. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_build_step_added_to_it.yml +103 -103
  4. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_build_trigger_added_to_it.yml +93 -93
  5. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_vcs_root_attached_to_it_with_specific_checkout_rules.yml +106 -106
  6. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_settings_definitions.yml +104 -104
  7. data/spec/cassettes/TeamcityRuby_BuildConfiguration/fetches_a_specific_build_configuration_by_id.yml +80 -80
  8. data/spec/cassettes/TeamcityRuby_BuildConfiguration/lists_all_build_configurations.yml +116 -116
  9. data/spec/cassettes/TeamcityRuby_Project/creates_a_project_copying_its_settings_from_a_source_project.yml +93 -93
  10. data/spec/cassettes/TeamcityRuby_Project/creates_a_project_with_a_parent_project.yml +48 -48
  11. data/spec/cassettes/TeamcityRuby_Project/destroys_a_specific_project.yml +64 -64
  12. data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_id_locator.yml +64 -64
  13. data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_name_locator.yml +56 -56
  14. data/spec/cassettes/TeamcityRuby_Project/lists_all_projects_including_root_built_in_on_TeamCity_.yml +68 -68
  15. data/spec/cassettes/TeamcityRuby_VcsRoot/lists_all_vcs_roots.yml +50 -50
  16. data/spec/teamcity_ruby/vcs_root_spec.rb +21 -0
  17. metadata +3 -3
@@ -16,28 +16,28 @@ http_interactions:
16
16
  code: 200
17
17
  message: OK
18
18
  headers:
19
- Date:
20
- - Fri, 23 May 2014 04:53:06 GMT
21
- Server:
22
- - Apache-Coyote/1.1
23
19
  Cache-Control:
24
20
  - no-cache
25
21
  - no-store
26
- Pragma:
27
- - no-cache
28
- Transfer-Encoding:
29
- - chunked
30
- Content-Type:
31
- - application/json
32
22
  Set-Cookie:
33
23
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
34
- - TCSESSIONID=2997C1402B294F3F584186A786BFDB56; Path=/; HttpOnly
24
+ - TCSESSIONID=92E11DFE580861E3D734DE415A844731; Path=/; HttpOnly
35
25
  Expires:
36
26
  - Thu, 01 Jan 1970 00:00:00 GMT
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Server:
30
+ - Apache-Coyote/1.1
31
+ Pragma:
32
+ - no-cache
33
+ Date:
34
+ - Fri, 23 May 2014 05:17:09 GMT
35
+ Content-Type:
36
+ - application/json
37
37
  body:
38
38
  string: "{\"project\":[{\"id\":\"_Root\",\"name\":\"<Root project>\",\"href\":\"/httpAuth/app/rest/projects/id:_Root\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=_Root\"},{\"id\":\"SampleProject\",\"name\":\"Sample Project\",\"href\":\"/httpAuth/app/rest/projects/id:SampleProject\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=SampleProject\",\"parentProjectId\":\"_Root\"}]}"
39
39
  http_version:
40
- recorded_at: Fri, 23 May 2014 04:53:07 GMT
40
+ recorded_at: Fri, 23 May 2014 05:17:09 GMT
41
41
  - request:
42
42
  method: delete
43
43
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:_Root
@@ -53,31 +53,31 @@ http_interactions:
53
53
  code: 403
54
54
  message: Forbidden
55
55
  headers:
56
- Date:
57
- - Fri, 23 May 2014 04:53:06 GMT
58
- Server:
59
- - Apache-Coyote/1.1
60
56
  Cache-Control:
61
57
  - no-cache
62
58
  - no-store
63
- Pragma:
64
- - no-cache
65
- Transfer-Encoding:
66
- - chunked
67
- Content-Type:
68
- - text/plain
69
59
  Set-Cookie:
70
60
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
71
- - TCSESSIONID=50177E4D648333B40333ACB3FED2D542; Path=/; HttpOnly
61
+ - TCSESSIONID=D1707138DBFCFD7A269BE91BBD3186C4; Path=/; HttpOnly
72
62
  Expires:
73
63
  - Thu, 01 Jan 1970 00:00:00 GMT
64
+ Transfer-Encoding:
65
+ - chunked
66
+ Server:
67
+ - Apache-Coyote/1.1
68
+ Pragma:
69
+ - no-cache
70
+ Date:
71
+ - Fri, 23 May 2014 05:17:09 GMT
72
+ Content-Type:
73
+ - text/plain
74
74
  body:
75
75
  string: |-
76
76
  Error has occurred during request processing (Forbidden).
77
77
  Error: jetbrains.buildServer.serverSide.auth.AccessDeniedException: Root project cannot be removed
78
78
  Access denied. Check the user has enough permissions to perform the operation.
79
79
  http_version:
80
- recorded_at: Fri, 23 May 2014 04:53:07 GMT
80
+ recorded_at: Fri, 23 May 2014 05:17:09 GMT
81
81
  - request:
82
82
  method: delete
83
83
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject
@@ -93,24 +93,24 @@ http_interactions:
93
93
  code: 204
94
94
  message: No Content
95
95
  headers:
96
- Date:
97
- - Fri, 23 May 2014 04:53:06 GMT
98
- Server:
99
- - Apache-Coyote/1.1
100
96
  Cache-Control:
101
97
  - no-cache
102
98
  - no-store
103
- Pragma:
104
- - no-cache
105
99
  Set-Cookie:
106
100
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
107
- - TCSESSIONID=8540C5940A1477BC721897162D4136C2; Path=/; HttpOnly
101
+ - TCSESSIONID=09CECB0D08B8BEF13C071CA954DF8EDD; Path=/; HttpOnly
108
102
  Expires:
109
103
  - Thu, 01 Jan 1970 00:00:00 GMT
104
+ Server:
105
+ - Apache-Coyote/1.1
106
+ Pragma:
107
+ - no-cache
108
+ Date:
109
+ - Fri, 23 May 2014 05:17:09 GMT
110
110
  body:
111
111
  string: ""
112
112
  http_version:
113
- recorded_at: Fri, 23 May 2014 04:53:07 GMT
113
+ recorded_at: Fri, 23 May 2014 05:17:09 GMT
114
114
  - request:
115
115
  method: post
116
116
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
@@ -126,28 +126,28 @@ http_interactions:
126
126
  code: 200
127
127
  message: OK
128
128
  headers:
129
- Date:
130
- - Fri, 23 May 2014 04:53:06 GMT
131
- Server:
132
- - Apache-Coyote/1.1
133
129
  Cache-Control:
134
130
  - no-cache
135
131
  - no-store
136
- Pragma:
137
- - no-cache
138
- Transfer-Encoding:
139
- - chunked
140
- Content-Type:
141
- - application/json
142
132
  Set-Cookie:
143
133
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
144
- - TCSESSIONID=A271CCE0CA07E37234F94A38F5FAE758; Path=/; HttpOnly
134
+ - TCSESSIONID=BD792D7B325D3F9EBDDF3DA52366302E; Path=/; HttpOnly
145
135
  Expires:
146
136
  - Thu, 01 Jan 1970 00:00:00 GMT
137
+ Transfer-Encoding:
138
+ - chunked
139
+ Server:
140
+ - Apache-Coyote/1.1
141
+ Pragma:
142
+ - no-cache
143
+ Date:
144
+ - Fri, 23 May 2014 05:17:09 GMT
145
+ Content-Type:
146
+ - application/json
147
147
  body:
148
148
  string: "{\"id\":\"Project1\",\"name\":\"Project 1\",\"href\":\"/httpAuth/app/rest/projects/id:Project1\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=Project1\",\"parentProjectId\":\"_Root\"}"
149
149
  http_version:
150
- recorded_at: Fri, 23 May 2014 04:53:07 GMT
150
+ recorded_at: Fri, 23 May 2014 05:17:09 GMT
151
151
  - request:
152
152
  method: post
153
153
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
@@ -163,28 +163,28 @@ http_interactions:
163
163
  code: 200
164
164
  message: OK
165
165
  headers:
166
- Date:
167
- - Fri, 23 May 2014 04:53:06 GMT
168
- Server:
169
- - Apache-Coyote/1.1
170
166
  Cache-Control:
171
167
  - no-cache
172
168
  - no-store
173
- Pragma:
174
- - no-cache
175
- Transfer-Encoding:
176
- - chunked
177
- Content-Type:
178
- - application/json
179
169
  Set-Cookie:
180
170
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
181
- - TCSESSIONID=A3001065BC337B801362D0241DE6C5B8; Path=/; HttpOnly
171
+ - TCSESSIONID=B5F4EFFB6893365837D77A50E105CEE5; Path=/; HttpOnly
182
172
  Expires:
183
173
  - Thu, 01 Jan 1970 00:00:00 GMT
174
+ Transfer-Encoding:
175
+ - chunked
176
+ Server:
177
+ - Apache-Coyote/1.1
178
+ Pragma:
179
+ - no-cache
180
+ Date:
181
+ - Fri, 23 May 2014 05:17:09 GMT
182
+ Content-Type:
183
+ - application/json
184
184
  body:
185
185
  string: "{\"id\":\"Project2\",\"name\":\"Project 2\",\"href\":\"/httpAuth/app/rest/projects/id:Project2\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=Project2\",\"parentProjectId\":\"_Root\"}"
186
186
  http_version:
187
- recorded_at: Fri, 23 May 2014 04:53:07 GMT
187
+ recorded_at: Fri, 23 May 2014 05:17:10 GMT
188
188
  - request:
189
189
  method: get
190
190
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
@@ -200,25 +200,25 @@ http_interactions:
200
200
  code: 200
201
201
  message: OK
202
202
  headers:
203
- Date:
204
- - Fri, 23 May 2014 04:53:06 GMT
205
- Server:
206
- - Apache-Coyote/1.1
207
203
  Cache-Control:
208
204
  - no-cache
209
205
  - no-store
210
- Pragma:
211
- - no-cache
212
- Transfer-Encoding:
213
- - chunked
214
- Content-Type:
215
- - application/json
216
206
  Set-Cookie:
217
207
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
218
- - TCSESSIONID=47B76534E4B5872AE74F51B1591E6E33; Path=/; HttpOnly
208
+ - TCSESSIONID=8329868C744909D61DA819AA1766B525; Path=/; HttpOnly
219
209
  Expires:
220
210
  - Thu, 01 Jan 1970 00:00:00 GMT
211
+ Transfer-Encoding:
212
+ - chunked
213
+ Server:
214
+ - Apache-Coyote/1.1
215
+ Pragma:
216
+ - no-cache
217
+ Date:
218
+ - Fri, 23 May 2014 05:17:09 GMT
219
+ Content-Type:
220
+ - application/json
221
221
  body:
222
222
  string: "{\"project\":[{\"id\":\"_Root\",\"name\":\"<Root project>\",\"href\":\"/httpAuth/app/rest/projects/id:_Root\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=_Root\"},{\"id\":\"Project1\",\"name\":\"Project 1\",\"href\":\"/httpAuth/app/rest/projects/id:Project1\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=Project1\",\"parentProjectId\":\"_Root\"},{\"id\":\"Project2\",\"name\":\"Project 2\",\"href\":\"/httpAuth/app/rest/projects/id:Project2\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=Project2\",\"parentProjectId\":\"_Root\"}]}"
223
223
  http_version:
224
- recorded_at: Fri, 23 May 2014 04:53:07 GMT
224
+ recorded_at: Fri, 23 May 2014 05:17:10 GMT
@@ -16,33 +16,33 @@ http_interactions:
16
16
  code: 200
17
17
  message: OK
18
18
  headers:
19
- Date:
20
- - Fri, 23 May 2014 04:53:07 GMT
21
- Server:
22
- - Apache-Coyote/1.1
23
19
  Cache-Control:
24
20
  - no-cache
25
21
  - no-store
26
- Pragma:
27
- - no-cache
28
- Transfer-Encoding:
29
- - chunked
30
- Content-Type:
31
- - application/json
32
22
  Set-Cookie:
33
23
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
34
- - TCSESSIONID=45AFE5FCE6EA36BB3D6095A763B795AB; Path=/; HttpOnly
24
+ - TCSESSIONID=575DBEDCF15CD87110CECC4B31FCE259; Path=/; HttpOnly
35
25
  Expires:
36
26
  - Thu, 01 Jan 1970 00:00:00 GMT
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Server:
30
+ - Apache-Coyote/1.1
31
+ Pragma:
32
+ - no-cache
33
+ Date:
34
+ - Fri, 23 May 2014 05:17:10 GMT
35
+ Content-Type:
36
+ - application/json
37
37
  body:
38
38
  string: "{\"count\":0,\"vcs-root\":[]}"
39
39
  http_version:
40
- recorded_at: Fri, 23 May 2014 04:53:08 GMT
40
+ recorded_at: Fri, 23 May 2014 05:17:10 GMT
41
41
  - request:
42
42
  method: post
43
43
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
44
44
  body:
45
- string: "{\"projectLocator\":\"id:_Root\",\"properties\":{\"property\":[{\"value\":\"git@example.com/repo.git\",\"name\":\"url\"}]},\"vcsName\":\"jetbrains.git\",\"name\":\"VCS Root 1\"}"
45
+ string: "{\"vcsName\":\"jetbrains.git\",\"name\":\"VCS Root 1\",\"projectLocator\":\"id:_Root\",\"properties\":{\"property\":[{\"value\":\"git@example.com/repo.git\",\"name\":\"url\"}]}}"
46
46
  headers:
47
47
  Accept:
48
48
  - application/json
@@ -53,33 +53,33 @@ http_interactions:
53
53
  code: 200
54
54
  message: OK
55
55
  headers:
56
- Date:
57
- - Fri, 23 May 2014 04:53:07 GMT
58
- Server:
59
- - Apache-Coyote/1.1
60
56
  Cache-Control:
61
57
  - no-cache
62
58
  - no-store
63
- Pragma:
64
- - no-cache
65
- Transfer-Encoding:
66
- - chunked
67
- Content-Type:
68
- - application/json
69
59
  Set-Cookie:
70
60
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
71
- - TCSESSIONID=065B037F5F28A92BA7BB92F6399519C8; Path=/; HttpOnly
61
+ - TCSESSIONID=1902A96CC6F3D43CAF03A94C19BA35C6; Path=/; HttpOnly
72
62
  Expires:
73
63
  - Thu, 01 Jan 1970 00:00:00 GMT
64
+ Transfer-Encoding:
65
+ - chunked
66
+ Server:
67
+ - Apache-Coyote/1.1
68
+ Pragma:
69
+ - no-cache
70
+ Date:
71
+ - Fri, 23 May 2014 05:17:10 GMT
72
+ Content-Type:
73
+ - application/json
74
74
  body:
75
75
  string: "{\"id\":\"Root_VcsRoot1\",\"name\":\"VCS Root 1\",\"vcsName\":\"jetbrains.git\",\"status\":\"NOT_MONITORED\",\"lastChecked\":\"20140523T040300+0000\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_VcsRoot1\",\"project\":{\"id\":\"_Root\",\"name\":\"<Root project>\",\"href\":\"/httpAuth/app/rest/projects/id:_Root\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=_Root\"},\"properties\":{\"property\":[{\"name\":\"url\",\"value\":\"git@example.com/repo.git\"}]},\"vcsRootInstances\":{\"href\":\"/httpAuth/app/rest/vcs-root-instances?locator=vcsRoot:(id:Root_VcsRoot1)\"}}"
76
76
  http_version:
77
- recorded_at: Fri, 23 May 2014 04:53:08 GMT
77
+ recorded_at: Fri, 23 May 2014 05:17:10 GMT
78
78
  - request:
79
79
  method: post
80
80
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
81
81
  body:
82
- string: "{\"projectLocator\":\"id:_Root\",\"properties\":{\"property\":[{\"value\":\"git@example.com/repo.git\",\"name\":\"url\"}]},\"vcsName\":\"jetbrains.git\",\"name\":\"VCS Root 2\"}"
82
+ string: "{\"vcsName\":\"jetbrains.git\",\"name\":\"VCS Root 2\",\"projectLocator\":\"id:_Root\",\"properties\":{\"property\":[{\"value\":\"git@example.com/repo.git\",\"name\":\"url\"}]}}"
83
83
  headers:
84
84
  Accept:
85
85
  - application/json
@@ -90,28 +90,28 @@ http_interactions:
90
90
  code: 200
91
91
  message: OK
92
92
  headers:
93
- Date:
94
- - Fri, 23 May 2014 04:53:07 GMT
95
- Server:
96
- - Apache-Coyote/1.1
97
93
  Cache-Control:
98
94
  - no-cache
99
95
  - no-store
100
- Pragma:
101
- - no-cache
102
- Transfer-Encoding:
103
- - chunked
104
- Content-Type:
105
- - application/json
106
96
  Set-Cookie:
107
97
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
108
- - TCSESSIONID=9F077A67942AAFFF2BEC48E0456DC8FF; Path=/; HttpOnly
98
+ - TCSESSIONID=01C779C3D166124BC2CD16DDA007F4B7; Path=/; HttpOnly
109
99
  Expires:
110
100
  - Thu, 01 Jan 1970 00:00:00 GMT
101
+ Transfer-Encoding:
102
+ - chunked
103
+ Server:
104
+ - Apache-Coyote/1.1
105
+ Pragma:
106
+ - no-cache
107
+ Date:
108
+ - Fri, 23 May 2014 05:17:10 GMT
109
+ Content-Type:
110
+ - application/json
111
111
  body:
112
112
  string: "{\"id\":\"Root_VcsRoot2\",\"name\":\"VCS Root 2\",\"vcsName\":\"jetbrains.git\",\"status\":\"NOT_MONITORED\",\"lastChecked\":\"20140523T040300+0000\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_VcsRoot2\",\"project\":{\"id\":\"_Root\",\"name\":\"<Root project>\",\"href\":\"/httpAuth/app/rest/projects/id:_Root\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=_Root\"},\"properties\":{\"property\":[{\"name\":\"url\",\"value\":\"git@example.com/repo.git\"}]},\"vcsRootInstances\":{\"href\":\"/httpAuth/app/rest/vcs-root-instances?locator=vcsRoot:(id:Root_VcsRoot2)\"}}"
113
113
  http_version:
114
- recorded_at: Fri, 23 May 2014 04:53:08 GMT
114
+ recorded_at: Fri, 23 May 2014 05:17:10 GMT
115
115
  - request:
116
116
  method: get
117
117
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
@@ -127,25 +127,25 @@ http_interactions:
127
127
  code: 200
128
128
  message: OK
129
129
  headers:
130
- Date:
131
- - Fri, 23 May 2014 04:53:07 GMT
132
- Server:
133
- - Apache-Coyote/1.1
134
130
  Cache-Control:
135
131
  - no-cache
136
132
  - no-store
137
- Pragma:
138
- - no-cache
139
- Transfer-Encoding:
140
- - chunked
141
- Content-Type:
142
- - application/json
143
133
  Set-Cookie:
144
134
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
145
- - TCSESSIONID=A50625E111F6039D1CD2D55A1D606FAB; Path=/; HttpOnly
135
+ - TCSESSIONID=3EDBF45CA7566777F3C9C3BF4F410CDB; Path=/; HttpOnly
146
136
  Expires:
147
137
  - Thu, 01 Jan 1970 00:00:00 GMT
138
+ Transfer-Encoding:
139
+ - chunked
140
+ Server:
141
+ - Apache-Coyote/1.1
142
+ Pragma:
143
+ - no-cache
144
+ Date:
145
+ - Fri, 23 May 2014 05:17:10 GMT
146
+ Content-Type:
147
+ - application/json
148
148
  body:
149
149
  string: "{\"count\":2,\"vcs-root\":[{\"id\":\"Root_VcsRoot1\",\"name\":\"VCS Root 1\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_VcsRoot1\"},{\"id\":\"Root_VcsRoot2\",\"name\":\"VCS Root 2\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_VcsRoot2\"}]}"
150
150
  http_version:
151
- recorded_at: Fri, 23 May 2014 04:53:08 GMT
151
+ recorded_at: Fri, 23 May 2014 05:17:10 GMT
@@ -17,5 +17,26 @@ module TeamcityRuby
17
17
 
18
18
  VcsRoot.all.map(&:name).should == vcs_root_names
19
19
  end
20
+
21
+ it "sets git as default vcs type" do
22
+ vcs_root = VcsRoot.create(:name => "Sample") do |vcs_root|
23
+ vcs_root['url'] = 'git@example.com/repo.git'
24
+ end
25
+ vcs_root.vcs_type.should == "jetbrains.git"
26
+ end
27
+
28
+ it "accepts vcs type as plain string" do
29
+ vcs_root = VcsRoot.create(:name => "Sample", :vcs_type => "svn") do |vcs_root|
30
+ vcs_root['url'] = 'svn.example.com/repo'
31
+ end
32
+ vcs_root.vcs_type.should == "svn"
33
+ end
34
+
35
+ it "accepts vcs type as symbol" do
36
+ vcs_root = VcsRoot.create(:name => "Sample", :vcs_type => :svn) do |vcs_root|
37
+ vcs_root['url'] = 'svn.example.com/repo'
38
+ end
39
+ vcs_root.vcs_type.should == "svn"
40
+ end
20
41
  end
21
42
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamcity_ruby
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jefferson Girao