github_api 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/features/error_codes.feature +1 -1
- data/lib/github_api/error.rb +25 -32
- data/lib/github_api/error/bad_request.rb +12 -0
- data/lib/github_api/error/forbidden.rb +12 -0
- data/lib/github_api/error/internal_server_error.rb +12 -0
- data/lib/github_api/error/not_found.rb +12 -0
- data/lib/github_api/error/service_error.rb +19 -0
- data/lib/github_api/error/service_unavailable.rb +12 -0
- data/lib/github_api/error/unauthorized.rb +12 -0
- data/lib/github_api/error/unprocessable_entity.rb +12 -0
- data/lib/github_api/gists.rb +1 -1
- data/lib/github_api/orgs/members.rb +2 -2
- data/lib/github_api/orgs/teams.rb +2 -2
- data/lib/github_api/pull_requests.rb +14 -7
- data/lib/github_api/pull_requests/comments.rb +19 -14
- data/lib/github_api/repos/collaborators.rb +1 -1
- data/lib/github_api/repos/watching.rb +1 -1
- data/lib/github_api/response/raise_error.rb +8 -13
- data/lib/github_api/users/followers.rb +1 -1
- data/lib/github_api/version.rb +1 -1
- data/spec/fixtures/pull_requests/comment.json +17 -0
- data/spec/fixtures/pull_requests/comments.json +19 -0
- data/spec/fixtures/pull_requests/commits.json +27 -0
- data/spec/fixtures/pull_requests/files.json +13 -0
- data/spec/fixtures/pull_requests/merge_failure.json +5 -0
- data/spec/fixtures/pull_requests/merge_success.json +5 -0
- data/spec/fixtures/pull_requests/pull_request.json +123 -0
- data/spec/fixtures/pull_requests/pull_requests.json +31 -0
- data/spec/github/authorizations_spec.rb +5 -5
- data/spec/github/events_spec.rb +8 -8
- data/spec/github/gists/comments_spec.rb +5 -5
- data/spec/github/gists_spec.rb +7 -7
- data/spec/github/git_data/blobs_spec.rb +2 -2
- data/spec/github/git_data/commits_spec.rb +2 -2
- data/spec/github/git_data/references_spec.rb +4 -4
- data/spec/github/git_data/tags_spec.rb +2 -2
- data/spec/github/git_data/trees_spec.rb +2 -2
- data/spec/github/git_data_spec.rb +0 -1
- data/spec/github/issues/comments_spec.rb +5 -5
- data/spec/github/issues/events_spec.rb +2 -2
- data/spec/github/issues/labels_spec.rb +10 -10
- data/spec/github/issues/milestones_spec.rb +5 -5
- data/spec/github/issues_spec.rb +5 -5
- data/spec/github/orgs/members_spec.rb +5 -5
- data/spec/github/orgs/teams_spec.rb +11 -11
- data/spec/github/orgs_spec.rb +3 -3
- data/spec/github/pull_requests/comments_spec.rb +265 -0
- data/spec/github/pull_requests_spec.rb +414 -0
- data/spec/github/repos/collaborators_spec.rb +3 -3
- data/spec/github/repos/commits_spec.rb +8 -8
- data/spec/github/repos/downloads_spec.rb +5 -5
- data/spec/github/repos/forks_spec.rb +2 -2
- data/spec/github/repos/hooks_spec.rb +6 -6
- data/spec/github/repos/keys_spec.rb +5 -5
- data/spec/github/repos/pub_sub_hubbub_spec.rb +2 -2
- data/spec/github/repos/watching_spec.rb +6 -6
- data/spec/github/repos_spec.rb +11 -11
- data/spec/github/users/emails_spec.rb +5 -0
- data/spec/github/users/followers_spec.rb +5 -0
- data/spec/github/users/keys_spec.rb +5 -0
- data/spec/github/users_spec.rb +2 -2
- metadata +23 -2
@@ -50,7 +50,7 @@ describe Github::Repos::Collaborators, :type => :base do
|
|
50
50
|
it "should return 404 with a message 'Not Found'" do
|
51
51
|
expect {
|
52
52
|
github.repos.collaborators user, repo
|
53
|
-
}.to raise_error(Github::
|
53
|
+
}.to raise_error(Github::Error::NotFound)
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end # collaborators
|
@@ -122,7 +122,7 @@ describe Github::Repos::Collaborators, :type => :base do
|
|
122
122
|
it "should fail to add resource" do
|
123
123
|
expect {
|
124
124
|
github.repos.add_collaborator user, repo, collaborator
|
125
|
-
}.to raise_error(Github::
|
125
|
+
}.to raise_error(Github::Error::NotFound)
|
126
126
|
end
|
127
127
|
end
|
128
128
|
end # add_collaborator
|
@@ -156,7 +156,7 @@ describe Github::Repos::Collaborators, :type => :base do
|
|
156
156
|
it "should fail to remove resource" do
|
157
157
|
expect {
|
158
158
|
github.repos.remove_collaborator user, repo, collaborator
|
159
|
-
}.to raise_error(Github::
|
159
|
+
}.to raise_error(Github::Error::NotFound)
|
160
160
|
end
|
161
161
|
end
|
162
162
|
end # remove_collaborator
|
@@ -50,7 +50,7 @@ describe Github::Repos::Commits, :type => :base do
|
|
50
50
|
it "should return 404 with a message 'Not Found'" do
|
51
51
|
expect {
|
52
52
|
github.repos.commits user, repo
|
53
|
-
}.to raise_error(Github::
|
53
|
+
}.to raise_error(Github::Error::NotFound)
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end # commits
|
@@ -96,7 +96,7 @@ describe Github::Repos::Commits, :type => :base do
|
|
96
96
|
it "should fail to retrive resource" do
|
97
97
|
expect {
|
98
98
|
github.repos.commit user, repo, sha
|
99
|
-
}.to raise_error(Github::
|
99
|
+
}.to raise_error(Github::Error::NotFound)
|
100
100
|
end
|
101
101
|
end
|
102
102
|
end # commit
|
@@ -149,7 +149,7 @@ describe Github::Repos::Commits, :type => :base do
|
|
149
149
|
it "should return 404 with a message 'Not Found'" do
|
150
150
|
expect {
|
151
151
|
github.repos.repo_comments user, repo
|
152
|
-
}.to raise_error(Github::
|
152
|
+
}.to raise_error(Github::Error::NotFound)
|
153
153
|
end
|
154
154
|
end
|
155
155
|
end # repo comments
|
@@ -205,7 +205,7 @@ describe Github::Repos::Commits, :type => :base do
|
|
205
205
|
it "should fail to retrive resource" do
|
206
206
|
expect {
|
207
207
|
github.repos.commit_comments user, repo, sha
|
208
|
-
}.to raise_error(Github::
|
208
|
+
}.to raise_error(Github::Error::NotFound)
|
209
209
|
end
|
210
210
|
end
|
211
211
|
end # commit_comments
|
@@ -251,7 +251,7 @@ describe Github::Repos::Commits, :type => :base do
|
|
251
251
|
it "should fail to retrive resource" do
|
252
252
|
expect {
|
253
253
|
github.repos.commit_comment user, repo, comment_id
|
254
|
-
}.to raise_error(Github::
|
254
|
+
}.to raise_error(Github::Error::NotFound)
|
255
255
|
end
|
256
256
|
end
|
257
257
|
end # commit_comment
|
@@ -323,7 +323,7 @@ describe Github::Repos::Commits, :type => :base do
|
|
323
323
|
it "should fail to retrieve resource" do
|
324
324
|
expect {
|
325
325
|
github.repos.create_comment user, repo, sha, inputs
|
326
|
-
}.to raise_error(Github::
|
326
|
+
}.to raise_error(Github::Error::NotFound)
|
327
327
|
end
|
328
328
|
end
|
329
329
|
end # create_comment
|
@@ -364,7 +364,7 @@ describe Github::Repos::Commits, :type => :base do
|
|
364
364
|
it "should fail to find resource" do
|
365
365
|
expect {
|
366
366
|
github.repos.delete_comment user, repo, comment_id
|
367
|
-
}.to raise_error(Github::
|
367
|
+
}.to raise_error(Github::Error::NotFound)
|
368
368
|
end
|
369
369
|
end
|
370
370
|
end # delete_comment
|
@@ -412,7 +412,7 @@ describe Github::Repos::Commits, :type => :base do
|
|
412
412
|
it "should fail to retrieve resource" do
|
413
413
|
expect {
|
414
414
|
github.repos.update_comment user, repo, comment_id, inputs
|
415
|
-
}.to raise_error(Github::
|
415
|
+
}.to raise_error(Github::Error::NotFound)
|
416
416
|
end
|
417
417
|
end
|
418
418
|
end # update_comment
|
@@ -58,7 +58,7 @@ describe Github::Repos::Downloads, :type => :base do
|
|
58
58
|
it "should return 404 with a message 'Not Found'" do
|
59
59
|
expect {
|
60
60
|
github.repos.downloads user, repo
|
61
|
-
}.to raise_error(Github::
|
61
|
+
}.to raise_error(Github::Error::NotFound)
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end # downloads
|
@@ -105,7 +105,7 @@ describe Github::Repos::Downloads, :type => :base do
|
|
105
105
|
it "should fail to retrive resource" do
|
106
106
|
expect {
|
107
107
|
github.repos.download user, repo, download_id
|
108
|
-
}.to raise_error(Github::
|
108
|
+
}.to raise_error(Github::Error::NotFound)
|
109
109
|
end
|
110
110
|
end
|
111
111
|
end # download
|
@@ -146,7 +146,7 @@ describe Github::Repos::Downloads, :type => :base do
|
|
146
146
|
it "should fail to find resource" do
|
147
147
|
expect {
|
148
148
|
github.repos.delete_download user, repo, download_id
|
149
|
-
}.to raise_error(Github::
|
149
|
+
}.to raise_error(Github::Error::NotFound)
|
150
150
|
end
|
151
151
|
end
|
152
152
|
end # delete_download
|
@@ -199,7 +199,7 @@ describe Github::Repos::Downloads, :type => :base do
|
|
199
199
|
it "should faile to retrieve resource" do
|
200
200
|
expect {
|
201
201
|
github.repos.create_download(user, repo, inputs)
|
202
|
-
}.to raise_error(Github::
|
202
|
+
}.to raise_error(Github::Error::NotFound)
|
203
203
|
end
|
204
204
|
end
|
205
205
|
end # create_download
|
@@ -234,7 +234,7 @@ describe Github::Repos::Downloads, :type => :base do
|
|
234
234
|
it "should faile to retrieve resource" do
|
235
235
|
expect {
|
236
236
|
github.repos.upload resource, file
|
237
|
-
}.to raise_error(Github::
|
237
|
+
}.to raise_error(Github::Error::NotFound)
|
238
238
|
end
|
239
239
|
|
240
240
|
end
|
@@ -55,7 +55,7 @@ describe Github::Repos::Forks, :type => :base do
|
|
55
55
|
it "should return 404 with a message 'Not Found'" do
|
56
56
|
expect {
|
57
57
|
github.repos.forks user, repo
|
58
|
-
}.to raise_error(Github::
|
58
|
+
}.to raise_error(Github::Error::NotFound)
|
59
59
|
end
|
60
60
|
end
|
61
61
|
end # forks
|
@@ -96,7 +96,7 @@ describe Github::Repos::Forks, :type => :base do
|
|
96
96
|
it "should faile to retrieve resource" do
|
97
97
|
expect {
|
98
98
|
github.repos.create_fork user, repo, inputs
|
99
|
-
}.to raise_error(Github::
|
99
|
+
}.to raise_error(Github::Error::NotFound)
|
100
100
|
end
|
101
101
|
end
|
102
102
|
end # create_fork
|
@@ -60,7 +60,7 @@ describe Github::Repos::Hooks, :type => :base do
|
|
60
60
|
it "should return 404 with a message 'Not Found'" do
|
61
61
|
expect {
|
62
62
|
github.repos.hooks user, repo
|
63
|
-
}.to raise_error(Github::
|
63
|
+
}.to raise_error(Github::Error::NotFound)
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end # hooks
|
@@ -112,7 +112,7 @@ describe Github::Repos::Hooks, :type => :base do
|
|
112
112
|
it "should fail to retrive resource" do
|
113
113
|
expect {
|
114
114
|
github.repos.hook user, repo, hook_id
|
115
|
-
}.to raise_error(Github::
|
115
|
+
}.to raise_error(Github::Error::NotFound)
|
116
116
|
end
|
117
117
|
end
|
118
118
|
end # hook
|
@@ -177,7 +177,7 @@ describe Github::Repos::Hooks, :type => :base do
|
|
177
177
|
it "should fail to retrieve resource" do
|
178
178
|
expect {
|
179
179
|
github.repos.create_hook user, repo, inputs
|
180
|
-
}.to raise_error(Github::
|
180
|
+
}.to raise_error(Github::Error::NotFound)
|
181
181
|
end
|
182
182
|
end
|
183
183
|
end # create_hook
|
@@ -255,7 +255,7 @@ describe Github::Repos::Hooks, :type => :base do
|
|
255
255
|
it "should fail to find resource" do
|
256
256
|
expect {
|
257
257
|
github.repos.edit_hook user, repo, hook_id, inputs
|
258
|
-
}.to raise_error(Github::
|
258
|
+
}.to raise_error(Github::Error::NotFound)
|
259
259
|
end
|
260
260
|
end
|
261
261
|
end # edit_hook
|
@@ -295,7 +295,7 @@ describe Github::Repos::Hooks, :type => :base do
|
|
295
295
|
it "should fail to find resource" do
|
296
296
|
expect {
|
297
297
|
github.repos.delete_hook user, repo, hook_id
|
298
|
-
}.to raise_error(Github::
|
298
|
+
}.to raise_error(Github::Error::NotFound)
|
299
299
|
end
|
300
300
|
end
|
301
301
|
end # delete_hook
|
@@ -336,7 +336,7 @@ describe Github::Repos::Hooks, :type => :base do
|
|
336
336
|
it "should fail to find resource" do
|
337
337
|
expect {
|
338
338
|
github.repos.test_hook user, repo, hook_id
|
339
|
-
}.to raise_error(Github::
|
339
|
+
}.to raise_error(Github::Error::NotFound)
|
340
340
|
end
|
341
341
|
end
|
342
342
|
end # test_hook
|
@@ -42,7 +42,7 @@ describe Github::Repos::Keys, :type => :base do
|
|
42
42
|
it "should fail to retrieve resource" do
|
43
43
|
expect {
|
44
44
|
github.repos.keys user, repo
|
45
|
-
}.to raise_error(Github::
|
45
|
+
}.to raise_error(Github::Error::NotFound)
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
@@ -83,7 +83,7 @@ describe Github::Repos::Keys, :type => :base do
|
|
83
83
|
it "should fail to retrieve resource" do
|
84
84
|
expect {
|
85
85
|
github.repos.get_key(user, repo, key_id)
|
86
|
-
}.to raise_error(Github::
|
86
|
+
}.to raise_error(Github::Error::NotFound)
|
87
87
|
end
|
88
88
|
end
|
89
89
|
end
|
@@ -129,7 +129,7 @@ describe Github::Repos::Keys, :type => :base do
|
|
129
129
|
it "should fail to retrieve resource" do
|
130
130
|
expect {
|
131
131
|
github.repos.create_key(user, repo, inputs)
|
132
|
-
}.to raise_error(Github::
|
132
|
+
}.to raise_error(Github::Error::NotFound)
|
133
133
|
end
|
134
134
|
end
|
135
135
|
end
|
@@ -165,7 +165,7 @@ describe Github::Repos::Keys, :type => :base do
|
|
165
165
|
it "should fail to retrieve resource" do
|
166
166
|
expect {
|
167
167
|
github.repos.edit_key(user, repo, key_id, inputs)
|
168
|
-
}.to raise_error(Github::
|
168
|
+
}.to raise_error(Github::Error::NotFound)
|
169
169
|
end
|
170
170
|
end
|
171
171
|
|
@@ -205,7 +205,7 @@ describe Github::Repos::Keys, :type => :base do
|
|
205
205
|
it "should fail to find resource" do
|
206
206
|
expect {
|
207
207
|
github.repos.delete_key(user, repo, key_id)
|
208
|
-
}.to raise_error(Github::
|
208
|
+
}.to raise_error(Github::Error::NotFound)
|
209
209
|
end
|
210
210
|
end
|
211
211
|
end
|
@@ -43,7 +43,7 @@ describe Github::Repos::PubSubHubbub do
|
|
43
43
|
it "should fail to subscribe to hub" do
|
44
44
|
expect {
|
45
45
|
github.repos.subscribe topic, callback
|
46
|
-
}.to raise_error(Github::
|
46
|
+
}.to raise_error(Github::Error::NotFound)
|
47
47
|
end
|
48
48
|
end
|
49
49
|
end
|
@@ -76,7 +76,7 @@ describe Github::Repos::PubSubHubbub do
|
|
76
76
|
it "should fail to subscribe to hub" do
|
77
77
|
expect {
|
78
78
|
github.repos.unsubscribe topic, callback
|
79
|
-
}.to raise_error(Github::
|
79
|
+
}.to raise_error(Github::Error::NotFound)
|
80
80
|
end
|
81
81
|
end
|
82
82
|
end
|
@@ -49,11 +49,11 @@ describe Github::Repos::Watching, :type => :base do
|
|
49
49
|
end
|
50
50
|
|
51
51
|
it "should return 404 not found message" do
|
52
|
-
|
52
|
+
expect {
|
53
|
+
github.repos.watchers(user, repo)
|
54
|
+
}.to raise_error(Github::Error::NotFound)
|
53
55
|
end
|
54
|
-
|
55
56
|
end
|
56
|
-
|
57
57
|
end
|
58
58
|
|
59
59
|
describe ":watched:" do
|
@@ -70,7 +70,7 @@ describe Github::Repos::Watching, :type => :base do
|
|
70
70
|
expect {
|
71
71
|
github.user = nil
|
72
72
|
github.repos.watched
|
73
|
-
}.to raise_error(Github::
|
73
|
+
}.to raise_error(Github::Error::Unauthorized)
|
74
74
|
end
|
75
75
|
|
76
76
|
it "should get the resource with username" do
|
@@ -183,7 +183,7 @@ describe Github::Repos::Watching, :type => :base do
|
|
183
183
|
to_return(:body => "", :status => 401, :headers => {})
|
184
184
|
expect {
|
185
185
|
github.repos.start_watching(user, repo)
|
186
|
-
}.to raise_error(Github::
|
186
|
+
}.to raise_error(Github::Error::Unauthorized)
|
187
187
|
end
|
188
188
|
end
|
189
189
|
end
|
@@ -218,7 +218,7 @@ describe Github::Repos::Watching, :type => :base do
|
|
218
218
|
to_return(:body => "", :status => 401, :headers => {})
|
219
219
|
expect {
|
220
220
|
github.repos.stop_watching(user, repo)
|
221
|
-
}.to raise_error(Github::
|
221
|
+
}.to raise_error(Github::Error::Unauthorized)
|
222
222
|
end
|
223
223
|
end
|
224
224
|
end
|
data/spec/github/repos_spec.rb
CHANGED
@@ -55,7 +55,7 @@ describe Github::Repos, :type => :base do
|
|
55
55
|
it "should fail to get resource" do
|
56
56
|
expect {
|
57
57
|
github.repos.branches user, repo
|
58
|
-
}.to raise_error(Github::
|
58
|
+
}.to raise_error(Github::Error::NotFound)
|
59
59
|
end
|
60
60
|
end
|
61
61
|
end # branches
|
@@ -113,7 +113,7 @@ describe Github::Repos, :type => :base do
|
|
113
113
|
it "should fail to get resource" do
|
114
114
|
expect {
|
115
115
|
github.repos.contributors user, repo
|
116
|
-
}.to raise_error(Github::
|
116
|
+
}.to raise_error(Github::Error::NotFound)
|
117
117
|
end
|
118
118
|
end
|
119
119
|
end # contributors
|
@@ -189,7 +189,7 @@ describe Github::Repos, :type => :base do
|
|
189
189
|
it "should faile to retrieve resource" do
|
190
190
|
expect {
|
191
191
|
github.repos.create_repo inputs
|
192
|
-
}.to raise_error(Github::
|
192
|
+
}.to raise_error(Github::Error::NotFound)
|
193
193
|
end
|
194
194
|
end
|
195
195
|
end
|
@@ -241,7 +241,7 @@ describe Github::Repos, :type => :base do
|
|
241
241
|
it "should fail to find resource" do
|
242
242
|
expect {
|
243
243
|
github.repos.edit_repo user, repo, inputs
|
244
|
-
}.to raise_error(Github::
|
244
|
+
}.to raise_error(Github::Error::NotFound)
|
245
245
|
end
|
246
246
|
end
|
247
247
|
|
@@ -293,7 +293,7 @@ describe Github::Repos, :type => :base do
|
|
293
293
|
it "should fail to get resource" do
|
294
294
|
expect {
|
295
295
|
github.repos.get_repo user, repo
|
296
|
-
}.to raise_error(Github::
|
296
|
+
}.to raise_error(Github::Error::NotFound)
|
297
297
|
end
|
298
298
|
|
299
299
|
end
|
@@ -352,7 +352,7 @@ describe Github::Repos, :type => :base do
|
|
352
352
|
it "should fail to get resource" do
|
353
353
|
expect {
|
354
354
|
github.repos.languages user, repo
|
355
|
-
}.to raise_error(Github::
|
355
|
+
}.to raise_error(Github::Error::NotFound)
|
356
356
|
end
|
357
357
|
end
|
358
358
|
end # languages
|
@@ -371,11 +371,11 @@ describe Github::Repos, :type => :base do
|
|
371
371
|
github.user, github.repo = nil, nil
|
372
372
|
end
|
373
373
|
|
374
|
-
it "
|
374
|
+
it "fails if user is unauthenticated" do
|
375
375
|
github.oauth_token = nil
|
376
376
|
stub_get("/user/repos").
|
377
377
|
to_return(:body => '', :status => 401,:headers => {:content_type => "application/json; charset=utf-8"} )
|
378
|
-
expect { github.repos.repos}.to raise_error(Github::
|
378
|
+
expect { github.repos.repos}.to raise_error(Github::Error::Unauthorized)
|
379
379
|
end
|
380
380
|
|
381
381
|
it "should get the resources" do
|
@@ -443,7 +443,7 @@ describe Github::Repos, :type => :base do
|
|
443
443
|
end
|
444
444
|
|
445
445
|
it "fail to find resources" do
|
446
|
-
expect { github.repos.repos }.to raise_error(Github::
|
446
|
+
expect { github.repos.repos }.to raise_error(Github::Error::NotFound)
|
447
447
|
end
|
448
448
|
end
|
449
449
|
end # repos
|
@@ -501,7 +501,7 @@ describe Github::Repos, :type => :base do
|
|
501
501
|
it "should fail to get resource" do
|
502
502
|
expect {
|
503
503
|
github.repos.tags user, repo
|
504
|
-
}.to raise_error(Github::
|
504
|
+
}.to raise_error(Github::Error::NotFound)
|
505
505
|
end
|
506
506
|
end
|
507
507
|
end #tags
|
@@ -559,7 +559,7 @@ describe Github::Repos, :type => :base do
|
|
559
559
|
it "should fail to get resource" do
|
560
560
|
expect {
|
561
561
|
github.repos.teams user, repo
|
562
|
-
}.to raise_error(Github::
|
562
|
+
}.to raise_error(Github::Error::NotFound)
|
563
563
|
end
|
564
564
|
end
|
565
565
|
end # teams
|
data/spec/github/users_spec.rb
CHANGED
@@ -70,7 +70,7 @@ describe Github::Users, :type => :base do
|
|
70
70
|
it "should return 404 with a message 'Not Found'" do
|
71
71
|
expect {
|
72
72
|
github.users.get_user user
|
73
|
-
}.to raise_error(Github::
|
73
|
+
}.to raise_error(Github::Error::NotFound)
|
74
74
|
end
|
75
75
|
end
|
76
76
|
end # get_user
|
@@ -129,7 +129,7 @@ describe Github::Users, :type => :base do
|
|
129
129
|
it "should fail to retrieve resource" do
|
130
130
|
expect {
|
131
131
|
github.users.update_user
|
132
|
-
}.to raise_error(Github::
|
132
|
+
}.to raise_error(Github::Error::NotFound)
|
133
133
|
end
|
134
134
|
end
|
135
135
|
end # update_comment
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: github_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.4.
|
5
|
+
version: 0.4.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Piotr Murach
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-02-
|
13
|
+
date: 2012-02-25 00:00:00 +00:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -227,6 +227,14 @@ files:
|
|
227
227
|
- lib/github_api/core_ext/array.rb
|
228
228
|
- lib/github_api/core_ext/hash.rb
|
229
229
|
- lib/github_api/deprecation.rb
|
230
|
+
- lib/github_api/error/bad_request.rb
|
231
|
+
- lib/github_api/error/forbidden.rb
|
232
|
+
- lib/github_api/error/internal_server_error.rb
|
233
|
+
- lib/github_api/error/not_found.rb
|
234
|
+
- lib/github_api/error/service_error.rb
|
235
|
+
- lib/github_api/error/service_unavailable.rb
|
236
|
+
- lib/github_api/error/unauthorized.rb
|
237
|
+
- lib/github_api/error/unprocessable_entity.rb
|
230
238
|
- lib/github_api/error.rb
|
231
239
|
- lib/github_api/events.rb
|
232
240
|
- lib/github_api/filter.rb
|
@@ -312,6 +320,14 @@ files:
|
|
312
320
|
- spec/fixtures/orgs/team.json
|
313
321
|
- spec/fixtures/orgs/team_repos.json
|
314
322
|
- spec/fixtures/orgs/teams.json
|
323
|
+
- spec/fixtures/pull_requests/comment.json
|
324
|
+
- spec/fixtures/pull_requests/comments.json
|
325
|
+
- spec/fixtures/pull_requests/commits.json
|
326
|
+
- spec/fixtures/pull_requests/files.json
|
327
|
+
- spec/fixtures/pull_requests/merge_failure.json
|
328
|
+
- spec/fixtures/pull_requests/merge_success.json
|
329
|
+
- spec/fixtures/pull_requests/pull_request.json
|
330
|
+
- spec/fixtures/pull_requests/pull_requests.json
|
315
331
|
- spec/fixtures/repos/branches.json
|
316
332
|
- spec/fixtures/repos/collaborators.json
|
317
333
|
- spec/fixtures/repos/commit.json
|
@@ -366,6 +382,8 @@ files:
|
|
366
382
|
- spec/github/page_iterator_spec.rb
|
367
383
|
- spec/github/page_links_spec.rb
|
368
384
|
- spec/github/paged_request_spec.rb
|
385
|
+
- spec/github/pull_requests/comments_spec.rb
|
386
|
+
- spec/github/pull_requests_spec.rb
|
369
387
|
- spec/github/repos/collaborators_spec.rb
|
370
388
|
- spec/github/repos/commits_spec.rb
|
371
389
|
- spec/github/repos/downloads_spec.rb
|
@@ -378,6 +396,9 @@ files:
|
|
378
396
|
- spec/github/request_spec.rb
|
379
397
|
- spec/github/response/helpers_spec.rb
|
380
398
|
- spec/github/result_spec.rb
|
399
|
+
- spec/github/users/emails_spec.rb
|
400
|
+
- spec/github/users/followers_spec.rb
|
401
|
+
- spec/github/users/keys_spec.rb
|
381
402
|
- spec/github/users_spec.rb
|
382
403
|
- spec/github/utils/url_spec.rb
|
383
404
|
- spec/github/validation_spec.rb
|