ruby_tfs 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.md +7 -0
- data/README.md +55 -0
- data/Rakefile +8 -0
- data/lib/tfs/builds.rb +29 -0
- data/lib/tfs/changesets.rb +13 -0
- data/lib/tfs/class_helpers.rb +19 -0
- data/lib/tfs/client.rb +53 -0
- data/lib/tfs/configuration.rb +78 -0
- data/lib/tfs/projects.rb +19 -0
- data/lib/tfs/query_engine.rb +103 -0
- data/lib/tfs/queryable.rb +42 -0
- data/lib/tfs/work_items.rb +42 -0
- data/lib/tfs.rb +30 -0
- data/ruby_tfs.gemspec +23 -0
- data/spec/fixtures/cassettes/builds.yml +405 -0
- data/spec/fixtures/cassettes/changeset_queries.yml +374 -0
- data/spec/fixtures/cassettes/changesets.yml +237 -0
- data/spec/fixtures/cassettes/project_workitems_queries.yml +793 -0
- data/spec/fixtures/cassettes/projects.yml +210 -0
- data/spec/fixtures/cassettes/workitems.yml +2037 -0
- data/spec/spec_helper.rb +27 -0
- data/spec/tfs/builds_spec.rb +34 -0
- data/spec/tfs/changesets_spec.rb +34 -0
- data/spec/tfs/client_spec.rb +62 -0
- data/spec/tfs/projects_spec.rb +35 -0
- data/spec/tfs/query_engine_spec.rb +37 -0
- data/spec/tfs/work_items_spec.rb +68 -0
- data/spec/tfs_spec.rb +25 -0
- metadata +123 -0
@@ -0,0 +1,210 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://snd%5Cplukevdh_cp:garbage@codeplexodata.cloudapp.net/TFS29/Projects()?$top=50
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- private
|
23
|
+
Content-Length:
|
24
|
+
- '2453'
|
25
|
+
Content-Type:
|
26
|
+
- application/atom+xml;charset=utf-8
|
27
|
+
Expires:
|
28
|
+
- Wed, 06 Mar 2013 00:34:41 GMT
|
29
|
+
Vary:
|
30
|
+
- ! '*'
|
31
|
+
Server:
|
32
|
+
- Microsoft-IIS/7.0
|
33
|
+
Dataserviceversion:
|
34
|
+
- 2.0;
|
35
|
+
X-Aspnet-Version:
|
36
|
+
- 4.0.30319
|
37
|
+
X-Powered-By:
|
38
|
+
- ASP.NET
|
39
|
+
Date:
|
40
|
+
- Wed, 06 Mar 2013 00:34:11 GMT
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ! "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\r\n<feed
|
44
|
+
xml:base=\"https://codeplexodata.cloudapp.net/TFS29/\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
45
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
46
|
+
xmlns=\"http://www.w3.org/2005/Atom\">\r\n <title type=\"text\">Projects</title>\r\n
|
47
|
+
\ <id>https://codeplexodata.cloudapp.net/TFS29/Projects()/</id>\r\n <updated>2013-03-06T00:34:11Z</updated>\r\n
|
48
|
+
\ <link rel=\"self\" title=\"Projects\" href=\"Projects\" />\r\n <entry>\r\n
|
49
|
+
\ <id>https://codeplexodata.cloudapp.net/TFS29/Projects('rubytfs')</id>\r\n
|
50
|
+
\ <title type=\"text\">rubytfs</title>\r\n <updated>2013-03-06T00:34:11Z</updated>\r\n
|
51
|
+
\ <author>\r\n <name />\r\n </author>\r\n <link rel=\"edit\"
|
52
|
+
title=\"Project\" href=\"Projects('rubytfs')\" />\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Changesets\"
|
53
|
+
type=\"application/atom+xml;type=feed\" title=\"Changesets\" href=\"Projects('rubytfs')/Changesets\"
|
54
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Builds\"
|
55
|
+
type=\"application/atom+xml;type=feed\" title=\"Builds\" href=\"Projects('rubytfs')/Builds\"
|
56
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/BuildDefinitions\"
|
57
|
+
type=\"application/atom+xml;type=feed\" title=\"BuildDefinitions\" href=\"Projects('rubytfs')/BuildDefinitions\"
|
58
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/WorkItems\"
|
59
|
+
type=\"application/atom+xml;type=feed\" title=\"WorkItems\" href=\"Projects('rubytfs')/WorkItems\"
|
60
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Queries\"
|
61
|
+
type=\"application/atom+xml;type=feed\" title=\"Queries\" href=\"Projects('rubytfs')/Queries\"
|
62
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Branches\"
|
63
|
+
type=\"application/atom+xml;type=feed\" title=\"Branches\" href=\"Projects('rubytfs')/Branches\"
|
64
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/AreaPaths\"
|
65
|
+
type=\"application/atom+xml;type=feed\" title=\"AreaPaths\" href=\"Projects('rubytfs')/AreaPaths\"
|
66
|
+
/>\r\n <category term=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project\"
|
67
|
+
scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\" />\r\n
|
68
|
+
\ <content type=\"application/xml\">\r\n <m:properties>\r\n <d:Name>rubytfs</d:Name>\r\n
|
69
|
+
\ <d:Collection>https://tfs.codeplex.com/tfs/TFS29</d:Collection>\r\n
|
70
|
+
\ </m:properties>\r\n </content>\r\n </entry>\r\n</feed>"
|
71
|
+
http_version:
|
72
|
+
recorded_at: Wed, 06 Mar 2013 00:34:11 GMT
|
73
|
+
- request:
|
74
|
+
method: get
|
75
|
+
uri: https://snd%5Cplukevdh_cp:garbage@codeplexodata.cloudapp.net/TFS29/Projects('rubytfs')
|
76
|
+
body:
|
77
|
+
encoding: US-ASCII
|
78
|
+
string: ''
|
79
|
+
headers:
|
80
|
+
Accept:
|
81
|
+
- ! '*/*; q=0.5, application/xml'
|
82
|
+
Accept-Encoding:
|
83
|
+
- gzip, deflate
|
84
|
+
User-Agent:
|
85
|
+
- Ruby
|
86
|
+
response:
|
87
|
+
status:
|
88
|
+
code: 200
|
89
|
+
message: OK
|
90
|
+
headers:
|
91
|
+
Cache-Control:
|
92
|
+
- private
|
93
|
+
Content-Length:
|
94
|
+
- '2187'
|
95
|
+
Content-Type:
|
96
|
+
- application/atom+xml;charset=utf-8
|
97
|
+
Expires:
|
98
|
+
- Wed, 06 Mar 2013 00:34:42 GMT
|
99
|
+
Vary:
|
100
|
+
- ! '*'
|
101
|
+
Server:
|
102
|
+
- Microsoft-IIS/7.0
|
103
|
+
Dataserviceversion:
|
104
|
+
- 1.0;
|
105
|
+
X-Aspnet-Version:
|
106
|
+
- 4.0.30319
|
107
|
+
X-Powered-By:
|
108
|
+
- ASP.NET
|
109
|
+
Date:
|
110
|
+
- Wed, 06 Mar 2013 00:34:12 GMT
|
111
|
+
body:
|
112
|
+
encoding: US-ASCII
|
113
|
+
string: ! "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\r\n<entry
|
114
|
+
xml:base=\"https://codeplexodata.cloudapp.net/TFS29/\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
115
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
116
|
+
xmlns=\"http://www.w3.org/2005/Atom\">\r\n <id>https://codeplexodata.cloudapp.net/TFS29/Projects('rubytfs')</id>\r\n
|
117
|
+
\ <title type=\"text\">rubytfs</title>\r\n <updated>2013-03-06T00:34:12Z</updated>\r\n
|
118
|
+
\ <author>\r\n <name />\r\n </author>\r\n <link rel=\"edit\" title=\"Project\"
|
119
|
+
href=\"Projects('rubytfs')\" />\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Changesets\"
|
120
|
+
type=\"application/atom+xml;type=feed\" title=\"Changesets\" href=\"Projects('rubytfs')/Changesets\"
|
121
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Builds\"
|
122
|
+
type=\"application/atom+xml;type=feed\" title=\"Builds\" href=\"Projects('rubytfs')/Builds\"
|
123
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/BuildDefinitions\"
|
124
|
+
type=\"application/atom+xml;type=feed\" title=\"BuildDefinitions\" href=\"Projects('rubytfs')/BuildDefinitions\"
|
125
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/WorkItems\"
|
126
|
+
type=\"application/atom+xml;type=feed\" title=\"WorkItems\" href=\"Projects('rubytfs')/WorkItems\"
|
127
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Queries\"
|
128
|
+
type=\"application/atom+xml;type=feed\" title=\"Queries\" href=\"Projects('rubytfs')/Queries\"
|
129
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Branches\"
|
130
|
+
type=\"application/atom+xml;type=feed\" title=\"Branches\" href=\"Projects('rubytfs')/Branches\"
|
131
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/AreaPaths\"
|
132
|
+
type=\"application/atom+xml;type=feed\" title=\"AreaPaths\" href=\"Projects('rubytfs')/AreaPaths\"
|
133
|
+
/>\r\n <category term=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project\"
|
134
|
+
scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\" />\r\n
|
135
|
+
\ <content type=\"application/xml\">\r\n <m:properties>\r\n <d:Name>rubytfs</d:Name>\r\n
|
136
|
+
\ <d:Collection>https://tfs.codeplex.com/tfs/TFS29</d:Collection>\r\n
|
137
|
+
\ </m:properties>\r\n </content>\r\n</entry>"
|
138
|
+
http_version:
|
139
|
+
recorded_at: Wed, 06 Mar 2013 00:34:12 GMT
|
140
|
+
- request:
|
141
|
+
method: get
|
142
|
+
uri: https://snd%5Cplukevdh_cp:garbage@codeplexodata.cloudapp.net/TFS29/Projects()?$filter=startswith(Name,'rubytfs')
|
143
|
+
body:
|
144
|
+
encoding: US-ASCII
|
145
|
+
string: ''
|
146
|
+
headers:
|
147
|
+
Accept:
|
148
|
+
- ! '*/*; q=0.5, application/xml'
|
149
|
+
Accept-Encoding:
|
150
|
+
- gzip, deflate
|
151
|
+
User-Agent:
|
152
|
+
- Ruby
|
153
|
+
response:
|
154
|
+
status:
|
155
|
+
code: 200
|
156
|
+
message: OK
|
157
|
+
headers:
|
158
|
+
Cache-Control:
|
159
|
+
- private
|
160
|
+
Content-Length:
|
161
|
+
- '2453'
|
162
|
+
Content-Type:
|
163
|
+
- application/atom+xml;charset=utf-8
|
164
|
+
Expires:
|
165
|
+
- Wed, 06 Mar 2013 00:34:42 GMT
|
166
|
+
Vary:
|
167
|
+
- ! '*'
|
168
|
+
Server:
|
169
|
+
- Microsoft-IIS/7.0
|
170
|
+
Dataserviceversion:
|
171
|
+
- 2.0;
|
172
|
+
X-Aspnet-Version:
|
173
|
+
- 4.0.30319
|
174
|
+
X-Powered-By:
|
175
|
+
- ASP.NET
|
176
|
+
Date:
|
177
|
+
- Wed, 06 Mar 2013 00:34:13 GMT
|
178
|
+
body:
|
179
|
+
encoding: US-ASCII
|
180
|
+
string: ! "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\r\n<feed
|
181
|
+
xml:base=\"https://codeplexodata.cloudapp.net/TFS29/\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
|
182
|
+
xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
|
183
|
+
xmlns=\"http://www.w3.org/2005/Atom\">\r\n <title type=\"text\">Projects</title>\r\n
|
184
|
+
\ <id>https://codeplexodata.cloudapp.net/TFS29/Projects()/</id>\r\n <updated>2013-03-06T00:34:13Z</updated>\r\n
|
185
|
+
\ <link rel=\"self\" title=\"Projects\" href=\"Projects\" />\r\n <entry>\r\n
|
186
|
+
\ <id>https://codeplexodata.cloudapp.net/TFS29/Projects('rubytfs')</id>\r\n
|
187
|
+
\ <title type=\"text\">rubytfs</title>\r\n <updated>2013-03-06T00:34:13Z</updated>\r\n
|
188
|
+
\ <author>\r\n <name />\r\n </author>\r\n <link rel=\"edit\"
|
189
|
+
title=\"Project\" href=\"Projects('rubytfs')\" />\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Changesets\"
|
190
|
+
type=\"application/atom+xml;type=feed\" title=\"Changesets\" href=\"Projects('rubytfs')/Changesets\"
|
191
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Builds\"
|
192
|
+
type=\"application/atom+xml;type=feed\" title=\"Builds\" href=\"Projects('rubytfs')/Builds\"
|
193
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/BuildDefinitions\"
|
194
|
+
type=\"application/atom+xml;type=feed\" title=\"BuildDefinitions\" href=\"Projects('rubytfs')/BuildDefinitions\"
|
195
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/WorkItems\"
|
196
|
+
type=\"application/atom+xml;type=feed\" title=\"WorkItems\" href=\"Projects('rubytfs')/WorkItems\"
|
197
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Queries\"
|
198
|
+
type=\"application/atom+xml;type=feed\" title=\"Queries\" href=\"Projects('rubytfs')/Queries\"
|
199
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Branches\"
|
200
|
+
type=\"application/atom+xml;type=feed\" title=\"Branches\" href=\"Projects('rubytfs')/Branches\"
|
201
|
+
/>\r\n <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/AreaPaths\"
|
202
|
+
type=\"application/atom+xml;type=feed\" title=\"AreaPaths\" href=\"Projects('rubytfs')/AreaPaths\"
|
203
|
+
/>\r\n <category term=\"Microsoft.Samples.DPE.ODataTFS.Model.Entities.Project\"
|
204
|
+
scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\" />\r\n
|
205
|
+
\ <content type=\"application/xml\">\r\n <m:properties>\r\n <d:Name>rubytfs</d:Name>\r\n
|
206
|
+
\ <d:Collection>https://tfs.codeplex.com/tfs/TFS29</d:Collection>\r\n
|
207
|
+
\ </m:properties>\r\n </content>\r\n </entry>\r\n</feed>"
|
208
|
+
http_version:
|
209
|
+
recorded_at: Wed, 06 Mar 2013 00:34:13 GMT
|
210
|
+
recorded_with: VCR 2.4.0
|