go_api_client 0.0.8 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -39
- data/.rvmrc +1 -0
- data/Gemfile.lock +12 -2
- data/Rakefile +8 -9
- data/go_api_client.gemspec +5 -2
- data/lib/go_api_client/atom/author.rb +25 -1
- data/lib/go_api_client/atom/entry.rb +9 -3
- data/lib/go_api_client/atom/feed.rb +19 -14
- data/lib/go_api_client/atom/feed_page.rb +49 -0
- data/lib/go_api_client/atom.rb +1 -0
- data/lib/go_api_client/commit.rb +30 -0
- data/lib/go_api_client/helpers/simple_attribute_support.rb +11 -0
- data/lib/go_api_client/helpers.rb +1 -0
- data/lib/go_api_client/http_fetcher.rb +41 -0
- data/lib/go_api_client/job.rb +56 -10
- data/lib/go_api_client/pipeline.rb +36 -12
- data/lib/go_api_client/stage.rb +43 -14
- data/lib/go_api_client/user.rb +36 -0
- data/lib/go_api_client/version.rb +7 -1
- data/lib/go_api_client.rb +45 -12
- data/test/fixtures/building/job_1.xml +41 -0
- data/test/fixtures/building/job_2.xml +43 -0
- data/test/fixtures/building/job_3.xml +40 -0
- data/test/fixtures/building/job_4.xml +40 -0
- data/test/fixtures/building/pipeline_1.xml +45 -0
- data/test/fixtures/building/pipeline_2.xml +39 -0
- data/test/fixtures/building/pipeline_3.xml +71 -0
- data/test/fixtures/building/stages.xml +180 -0
- data/test/fixtures/building/stages_1.xml +16 -0
- data/test/fixtures/building/stages_2.xml +16 -0
- data/test/fixtures/building/stages_3.xml +16 -0
- data/test/fixtures/building/stages_4.xml +16 -0
- data/test/fixtures/jobs_1.xml +3 -3
- data/test/fixtures/jobs_with_no_properties.xml +42 -0
- data/test/fixtures/ordering/go/api/jobs/1.xml +29 -0
- data/test/fixtures/ordering/go/api/jobs/10.xml +31 -0
- data/test/fixtures/ordering/go/api/jobs/2.xml +29 -0
- data/test/fixtures/ordering/go/api/jobs/3.xml +29 -0
- data/test/fixtures/ordering/go/api/jobs/4.xml +29 -0
- data/test/fixtures/ordering/go/api/jobs/5.xml +29 -0
- data/test/fixtures/ordering/go/api/jobs/6.xml +29 -0
- data/test/fixtures/ordering/go/api/jobs/7.xml +31 -0
- data/test/fixtures/ordering/go/api/jobs/8.xml +31 -0
- data/test/fixtures/ordering/go/api/jobs/9.xml +31 -0
- data/test/fixtures/ordering/go/api/pipelines/defaultPipeline/1.xml +31 -0
- data/test/fixtures/ordering/go/api/pipelines/defaultPipeline/2.xml +26 -0
- data/test/fixtures/ordering/go/api/pipelines/defaultPipeline/3.xml +26 -0
- data/test/fixtures/ordering/go/api/pipelines/defaultPipeline/4.xml +27 -0
- data/test/fixtures/ordering/go/api/pipelines/defaultPipeline/5.xml +33 -0
- data/test/fixtures/ordering/go/api/pipelines/defaultPipeline/stages.xml +255 -0
- data/test/fixtures/ordering/go/api/stages/1.xml +14 -0
- data/test/fixtures/ordering/go/api/stages/10.xml +14 -0
- data/test/fixtures/ordering/go/api/stages/2.xml +14 -0
- data/test/fixtures/ordering/go/api/stages/3.xml +14 -0
- data/test/fixtures/ordering/go/api/stages/4.xml +14 -0
- data/test/fixtures/ordering/go/api/stages/5.xml +14 -0
- data/test/fixtures/ordering/go/api/stages/6.xml +14 -0
- data/test/fixtures/ordering/go/api/stages/7.xml +14 -0
- data/test/fixtures/ordering/go/api/stages/8.xml +14 -0
- data/test/fixtures/ordering/go/api/stages/9.xml +14 -0
- data/test/fixtures/pagination/stages.xml +636 -0
- data/test/fixtures/pagination/stages_before_7916973.xml +615 -0
- data/test/fixtures/pagination/stages_before_7959831.xml +615 -0
- data/test/fixtures/pipelines_1.xml +8 -1
- data/test/fixtures/stages.xml +1 -1
- data/test/go_api_client/atom/author_test.rb +27 -0
- data/test/go_api_client/atom/entry_test.rb +27 -0
- data/test/go_api_client/atom/feed_page_test.rb +41 -0
- data/test/go_api_client/atom/feed_test.rb +25 -0
- data/test/go_api_client/building_test.rb +38 -0
- data/test/go_api_client/commit_test.rb +38 -0
- data/test/go_api_client/job_test.rb +42 -0
- data/test/go_api_client/pipeline_test.rb +63 -16
- data/test/go_api_client/stage_test.rb +48 -14
- data/test/go_api_client/user_test.rb +27 -0
- data/test/test_helper.rb +19 -3
- metadata +173 -10
- data/bin/go_api_client +0 -3
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
|
4
|
+
version: 0.3.0
|
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:
|
14
|
+
date: 2013-02-16 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: webmock
|
18
|
-
requirement:
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,10 +23,63 @@ dependencies:
|
|
23
23
|
version: '0'
|
24
24
|
type: :development
|
25
25
|
prerelease: false
|
26
|
-
version_requirements:
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - ! '>='
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '0'
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: simplecov
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
35
|
+
none: false
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rake
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
type: :development
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
|
+
requirements:
|
61
|
+
- - ! '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
name: test-unit
|
66
|
+
requirement: !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ! '>='
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
72
|
+
type: :development
|
73
|
+
prerelease: false
|
74
|
+
version_requirements: !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
27
80
|
- !ruby/object:Gem::Dependency
|
28
81
|
name: nokogiri
|
29
|
-
requirement:
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
30
83
|
none: false
|
31
84
|
requirements:
|
32
85
|
- - ! '>='
|
@@ -34,45 +87,105 @@ dependencies:
|
|
34
87
|
version: '0'
|
35
88
|
type: :runtime
|
36
89
|
prerelease: false
|
37
|
-
version_requirements:
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
92
|
+
requirements:
|
93
|
+
- - ! '>='
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
38
96
|
description: This gem parses atom feed generated by the Go Continuous Integration
|
39
97
|
server and provides an OO representation of the pipelines and stages.
|
40
98
|
email:
|
41
99
|
- hyfather@gmail.com
|
42
100
|
- KetanPadegaonkar@gmail.com
|
43
101
|
- shishir.das@gmail.com
|
44
|
-
executables:
|
45
|
-
- go_api_client
|
102
|
+
executables: []
|
46
103
|
extensions: []
|
47
104
|
extra_rdoc_files: []
|
48
105
|
files:
|
49
106
|
- .gitignore
|
107
|
+
- .rvmrc
|
50
108
|
- Gemfile
|
51
109
|
- Gemfile.lock
|
52
110
|
- README.textile
|
53
111
|
- Rakefile
|
54
|
-
- bin/go_api_client
|
55
112
|
- go_api_client.gemspec
|
56
113
|
- lib/go_api_client.rb
|
57
114
|
- lib/go_api_client/atom.rb
|
58
115
|
- lib/go_api_client/atom/author.rb
|
59
116
|
- lib/go_api_client/atom/entry.rb
|
60
117
|
- lib/go_api_client/atom/feed.rb
|
118
|
+
- lib/go_api_client/atom/feed_page.rb
|
119
|
+
- lib/go_api_client/commit.rb
|
120
|
+
- lib/go_api_client/helpers.rb
|
121
|
+
- lib/go_api_client/helpers/simple_attribute_support.rb
|
122
|
+
- lib/go_api_client/http_fetcher.rb
|
61
123
|
- lib/go_api_client/job.rb
|
62
124
|
- lib/go_api_client/pipeline.rb
|
63
125
|
- lib/go_api_client/stage.rb
|
126
|
+
- lib/go_api_client/user.rb
|
64
127
|
- lib/go_api_client/version.rb
|
128
|
+
- test/fixtures/building/job_1.xml
|
129
|
+
- test/fixtures/building/job_2.xml
|
130
|
+
- test/fixtures/building/job_3.xml
|
131
|
+
- test/fixtures/building/job_4.xml
|
132
|
+
- test/fixtures/building/pipeline_1.xml
|
133
|
+
- test/fixtures/building/pipeline_2.xml
|
134
|
+
- test/fixtures/building/pipeline_3.xml
|
135
|
+
- test/fixtures/building/stages.xml
|
136
|
+
- test/fixtures/building/stages_1.xml
|
137
|
+
- test/fixtures/building/stages_2.xml
|
138
|
+
- test/fixtures/building/stages_3.xml
|
139
|
+
- test/fixtures/building/stages_4.xml
|
65
140
|
- test/fixtures/job_1_console.log.txt
|
66
141
|
- test/fixtures/job_2_console.log.txt
|
67
142
|
- test/fixtures/jobs_1.xml
|
68
143
|
- test/fixtures/jobs_2.xml
|
144
|
+
- test/fixtures/jobs_with_no_properties.xml
|
145
|
+
- test/fixtures/ordering/go/api/jobs/1.xml
|
146
|
+
- test/fixtures/ordering/go/api/jobs/10.xml
|
147
|
+
- test/fixtures/ordering/go/api/jobs/2.xml
|
148
|
+
- test/fixtures/ordering/go/api/jobs/3.xml
|
149
|
+
- test/fixtures/ordering/go/api/jobs/4.xml
|
150
|
+
- test/fixtures/ordering/go/api/jobs/5.xml
|
151
|
+
- test/fixtures/ordering/go/api/jobs/6.xml
|
152
|
+
- test/fixtures/ordering/go/api/jobs/7.xml
|
153
|
+
- test/fixtures/ordering/go/api/jobs/8.xml
|
154
|
+
- test/fixtures/ordering/go/api/jobs/9.xml
|
155
|
+
- test/fixtures/ordering/go/api/pipelines/defaultPipeline/1.xml
|
156
|
+
- test/fixtures/ordering/go/api/pipelines/defaultPipeline/2.xml
|
157
|
+
- test/fixtures/ordering/go/api/pipelines/defaultPipeline/3.xml
|
158
|
+
- test/fixtures/ordering/go/api/pipelines/defaultPipeline/4.xml
|
159
|
+
- test/fixtures/ordering/go/api/pipelines/defaultPipeline/5.xml
|
160
|
+
- test/fixtures/ordering/go/api/pipelines/defaultPipeline/stages.xml
|
161
|
+
- test/fixtures/ordering/go/api/stages/1.xml
|
162
|
+
- test/fixtures/ordering/go/api/stages/10.xml
|
163
|
+
- test/fixtures/ordering/go/api/stages/2.xml
|
164
|
+
- test/fixtures/ordering/go/api/stages/3.xml
|
165
|
+
- test/fixtures/ordering/go/api/stages/4.xml
|
166
|
+
- test/fixtures/ordering/go/api/stages/5.xml
|
167
|
+
- test/fixtures/ordering/go/api/stages/6.xml
|
168
|
+
- test/fixtures/ordering/go/api/stages/7.xml
|
169
|
+
- test/fixtures/ordering/go/api/stages/8.xml
|
170
|
+
- test/fixtures/ordering/go/api/stages/9.xml
|
171
|
+
- test/fixtures/pagination/stages.xml
|
172
|
+
- test/fixtures/pagination/stages_before_7916973.xml
|
173
|
+
- test/fixtures/pagination/stages_before_7959831.xml
|
69
174
|
- test/fixtures/pipelines_1.xml
|
70
175
|
- test/fixtures/stages.xml
|
71
176
|
- test/fixtures/stages_1.xml
|
72
177
|
- test/fixtures/stages_2.xml
|
73
178
|
- test/fixtures/stages_empty.xml
|
179
|
+
- test/go_api_client/atom/author_test.rb
|
180
|
+
- test/go_api_client/atom/entry_test.rb
|
181
|
+
- test/go_api_client/atom/feed_page_test.rb
|
182
|
+
- test/go_api_client/atom/feed_test.rb
|
183
|
+
- test/go_api_client/building_test.rb
|
184
|
+
- test/go_api_client/commit_test.rb
|
185
|
+
- test/go_api_client/job_test.rb
|
74
186
|
- test/go_api_client/pipeline_test.rb
|
75
187
|
- test/go_api_client/stage_test.rb
|
188
|
+
- test/go_api_client/user_test.rb
|
76
189
|
- test/test_helper.rb
|
77
190
|
homepage: https://github.com/ThoughtWorksInc/go-api-client
|
78
191
|
licenses: []
|
@@ -94,20 +207,70 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
207
|
version: '0'
|
95
208
|
requirements: []
|
96
209
|
rubyforge_project: go_api_client
|
97
|
-
rubygems_version: 1.8.
|
210
|
+
rubygems_version: 1.8.25
|
98
211
|
signing_key:
|
99
212
|
specification_version: 3
|
100
213
|
summary: Client to parse Go CI atom feed
|
101
214
|
test_files:
|
215
|
+
- test/fixtures/building/job_1.xml
|
216
|
+
- test/fixtures/building/job_2.xml
|
217
|
+
- test/fixtures/building/job_3.xml
|
218
|
+
- test/fixtures/building/job_4.xml
|
219
|
+
- test/fixtures/building/pipeline_1.xml
|
220
|
+
- test/fixtures/building/pipeline_2.xml
|
221
|
+
- test/fixtures/building/pipeline_3.xml
|
222
|
+
- test/fixtures/building/stages.xml
|
223
|
+
- test/fixtures/building/stages_1.xml
|
224
|
+
- test/fixtures/building/stages_2.xml
|
225
|
+
- test/fixtures/building/stages_3.xml
|
226
|
+
- test/fixtures/building/stages_4.xml
|
102
227
|
- test/fixtures/job_1_console.log.txt
|
103
228
|
- test/fixtures/job_2_console.log.txt
|
104
229
|
- test/fixtures/jobs_1.xml
|
105
230
|
- test/fixtures/jobs_2.xml
|
231
|
+
- test/fixtures/jobs_with_no_properties.xml
|
232
|
+
- test/fixtures/ordering/go/api/jobs/1.xml
|
233
|
+
- test/fixtures/ordering/go/api/jobs/10.xml
|
234
|
+
- test/fixtures/ordering/go/api/jobs/2.xml
|
235
|
+
- test/fixtures/ordering/go/api/jobs/3.xml
|
236
|
+
- test/fixtures/ordering/go/api/jobs/4.xml
|
237
|
+
- test/fixtures/ordering/go/api/jobs/5.xml
|
238
|
+
- test/fixtures/ordering/go/api/jobs/6.xml
|
239
|
+
- test/fixtures/ordering/go/api/jobs/7.xml
|
240
|
+
- test/fixtures/ordering/go/api/jobs/8.xml
|
241
|
+
- test/fixtures/ordering/go/api/jobs/9.xml
|
242
|
+
- test/fixtures/ordering/go/api/pipelines/defaultPipeline/1.xml
|
243
|
+
- test/fixtures/ordering/go/api/pipelines/defaultPipeline/2.xml
|
244
|
+
- test/fixtures/ordering/go/api/pipelines/defaultPipeline/3.xml
|
245
|
+
- test/fixtures/ordering/go/api/pipelines/defaultPipeline/4.xml
|
246
|
+
- test/fixtures/ordering/go/api/pipelines/defaultPipeline/5.xml
|
247
|
+
- test/fixtures/ordering/go/api/pipelines/defaultPipeline/stages.xml
|
248
|
+
- test/fixtures/ordering/go/api/stages/1.xml
|
249
|
+
- test/fixtures/ordering/go/api/stages/10.xml
|
250
|
+
- test/fixtures/ordering/go/api/stages/2.xml
|
251
|
+
- test/fixtures/ordering/go/api/stages/3.xml
|
252
|
+
- test/fixtures/ordering/go/api/stages/4.xml
|
253
|
+
- test/fixtures/ordering/go/api/stages/5.xml
|
254
|
+
- test/fixtures/ordering/go/api/stages/6.xml
|
255
|
+
- test/fixtures/ordering/go/api/stages/7.xml
|
256
|
+
- test/fixtures/ordering/go/api/stages/8.xml
|
257
|
+
- test/fixtures/ordering/go/api/stages/9.xml
|
258
|
+
- test/fixtures/pagination/stages.xml
|
259
|
+
- test/fixtures/pagination/stages_before_7916973.xml
|
260
|
+
- test/fixtures/pagination/stages_before_7959831.xml
|
106
261
|
- test/fixtures/pipelines_1.xml
|
107
262
|
- test/fixtures/stages.xml
|
108
263
|
- test/fixtures/stages_1.xml
|
109
264
|
- test/fixtures/stages_2.xml
|
110
265
|
- test/fixtures/stages_empty.xml
|
266
|
+
- test/go_api_client/atom/author_test.rb
|
267
|
+
- test/go_api_client/atom/entry_test.rb
|
268
|
+
- test/go_api_client/atom/feed_page_test.rb
|
269
|
+
- test/go_api_client/atom/feed_test.rb
|
270
|
+
- test/go_api_client/building_test.rb
|
271
|
+
- test/go_api_client/commit_test.rb
|
272
|
+
- test/go_api_client/job_test.rb
|
111
273
|
- test/go_api_client/pipeline_test.rb
|
112
274
|
- test/go_api_client/stage_test.rb
|
275
|
+
- test/go_api_client/user_test.rb
|
113
276
|
- test/test_helper.rb
|
data/bin/go_api_client
DELETED