github_api 0.7.1 → 0.7.2
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.
- data/README.md +11 -0
- data/lib/github_api/api.rb +20 -22
- data/lib/github_api/core_ext/hash.rb +17 -0
- data/lib/github_api/events.rb +3 -3
- data/lib/github_api/git_data/blobs.rb +2 -2
- data/lib/github_api/git_data/commits.rb +2 -2
- data/lib/github_api/git_data/references.rb +5 -5
- data/lib/github_api/git_data/tags.rb +2 -2
- data/lib/github_api/git_data/trees.rb +2 -2
- data/lib/github_api/issues.rb +4 -4
- data/lib/github_api/issues/comments.rb +6 -6
- data/lib/github_api/issues/events.rb +2 -2
- data/lib/github_api/issues/labels.rb +10 -10
- data/lib/github_api/issues/milestones.rb +5 -5
- data/lib/github_api/page_iterator.rb +4 -3
- data/lib/github_api/pull_requests.rb +8 -8
- data/lib/github_api/pull_requests/comments.rb +5 -5
- data/lib/github_api/repos.rb +15 -8
- data/lib/github_api/repos/collaborators.rb +4 -4
- data/lib/github_api/repos/comments.rb +121 -0
- data/lib/github_api/repos/commits.rb +56 -177
- data/lib/github_api/repos/contents.rb +3 -0
- data/lib/github_api/repos/downloads.rb +4 -4
- data/lib/github_api/repos/forks.rb +2 -2
- data/lib/github_api/repos/hooks.rb +6 -6
- data/lib/github_api/repos/keys.rb +5 -5
- data/lib/github_api/repos/merging.rb +1 -0
- data/lib/github_api/repos/starring.rb +3 -1
- data/lib/github_api/repos/statuses.rb +2 -2
- data/lib/github_api/repos/watching.rb +1 -1
- data/lib/github_api/version.rb +1 -1
- data/spec/github/api/set_spec.rb +19 -0
- data/spec/github/repos/comments/create_spec.rb +86 -0
- data/spec/github/repos/comments/delete_spec.rb +47 -0
- data/spec/github/repos/comments/get_spec.rb +54 -0
- data/spec/github/repos/comments/list_spec.rb +120 -0
- data/spec/github/repos/comments/update_spec.rb +54 -0
- data/spec/github/repos/commits/compare_spec.rb +37 -0
- data/spec/github/repos/commits/get_spec.rb +56 -0
- data/spec/github/repos/commits/list_spec.rb +63 -0
- data/spec/github/repos/downloads/create_spec.rb +66 -0
- data/spec/github/repos/downloads/delete_spec.rb +48 -0
- data/spec/github/repos/downloads/get_spec.rb +58 -0
- data/spec/github/repos/downloads/list_spec.rb +63 -0
- data/spec/github/repos/downloads/upload_spec.rb +32 -0
- data/spec/github/repos/downloads_spec.rb +1 -233
- data/spec/github/repos_spec.rb +2 -0
- data/spec/spec_helper.rb +1 -0
- metadata +48 -34
- data/spec/github/repos/commits_spec.rb +0 -471
@@ -0,0 +1,58 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Github::Repos::Downloads, '#get' do
|
6
|
+
let(:github) { Github.new }
|
7
|
+
let(:user) { 'peter-murach' }
|
8
|
+
let(:repo) { 'github' }
|
9
|
+
let(:download_id) { 1 }
|
10
|
+
let(:request_path) { "/repos/#{user}/#{repo}/downloads/#{download_id}" }
|
11
|
+
|
12
|
+
after { reset_authentication_for(github) }
|
13
|
+
|
14
|
+
before {
|
15
|
+
stub_get(request_path).
|
16
|
+
to_return(:body => body, :status => status,
|
17
|
+
:headers => {:content_type => "application/json; charset=utf-8"})
|
18
|
+
}
|
19
|
+
|
20
|
+
context "resource found" do
|
21
|
+
let(:body) { fixture('repos/download.json') }
|
22
|
+
let(:status) { 200 }
|
23
|
+
|
24
|
+
it { should respond_to :find }
|
25
|
+
|
26
|
+
it "should fail to get resource without download id" do
|
27
|
+
expect { subject.get user, repo, nil }.to raise_error(ArgumentError)
|
28
|
+
end
|
29
|
+
|
30
|
+
it "should get the resource" do
|
31
|
+
github.repos.downloads.get user, repo, download_id
|
32
|
+
a_get(request_path).should have_been_made
|
33
|
+
end
|
34
|
+
|
35
|
+
it "should get download information" do
|
36
|
+
download = subject.get user, repo, download_id
|
37
|
+
download.id.should == download_id
|
38
|
+
download.name.should == 'new_file.jpg'
|
39
|
+
end
|
40
|
+
|
41
|
+
it "should return mash" do
|
42
|
+
download = subject.get user, repo, download_id
|
43
|
+
download.should be_a Hashie::Mash
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
context "resource not found" do
|
48
|
+
let(:body) { "" }
|
49
|
+
let(:status) { [404, "Not Found"] }
|
50
|
+
|
51
|
+
it "should fail to retrive resource" do
|
52
|
+
expect {
|
53
|
+
subject.get user, repo, download_id
|
54
|
+
}.to raise_error(Github::Error::NotFound)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end # get
|
58
|
+
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Github::Repos::Downloads, '#list' do
|
6
|
+
let(:user) { 'peter-murach' }
|
7
|
+
let(:repo) { 'github' }
|
8
|
+
let(:request_path) { "/repos/#{user}/#{repo}/downloads" }
|
9
|
+
|
10
|
+
before {
|
11
|
+
stub_get(request_path).
|
12
|
+
to_return(:body => body, :status => status,
|
13
|
+
:headers => {:content_type => "application/json; charset=utf-8"})
|
14
|
+
}
|
15
|
+
|
16
|
+
after { reset_authentication_for(subject) }
|
17
|
+
|
18
|
+
context "resource found" do
|
19
|
+
let(:body) { fixture('repos/downloads.json') }
|
20
|
+
let(:status) { 200 }
|
21
|
+
|
22
|
+
it { should respond_to :all }
|
23
|
+
|
24
|
+
it "should fail to get resource without username" do
|
25
|
+
expect { subject.list }.to raise_error(ArgumentError)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "should get the resources" do
|
29
|
+
subject.list user, repo
|
30
|
+
a_get(request_path).should have_been_made
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should return array of resources" do
|
34
|
+
downloads = subject.list user, repo
|
35
|
+
downloads.should be_an Array
|
36
|
+
downloads.should have(1).items
|
37
|
+
end
|
38
|
+
|
39
|
+
it "should be a mash type" do
|
40
|
+
downloads = subject.list user, repo
|
41
|
+
downloads.first.should be_a Hashie::Mash
|
42
|
+
end
|
43
|
+
|
44
|
+
it "should get download information" do
|
45
|
+
downloads = subject.list user, repo
|
46
|
+
downloads.first.name.should == 'new_file.jpg'
|
47
|
+
end
|
48
|
+
|
49
|
+
it "should yield to a block" do
|
50
|
+
subject.should_receive(:list).with(user, repo).and_yield('web')
|
51
|
+
subject.list(user, repo) { |param| 'web' }
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
context "resource not found" do
|
56
|
+
let(:body) { "" }
|
57
|
+
let(:status) { [404, "Not Found"] }
|
58
|
+
|
59
|
+
it "should return 404 with a message 'Not Found'" do
|
60
|
+
expect { subject.list user, repo }.to raise_error(Github::Error::NotFound)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end # list
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
require 'github_api/s3_uploader'
|
5
|
+
|
6
|
+
describe Github::Repos::Downloads do
|
7
|
+
let(:user) { 'peter-murach' }
|
8
|
+
let(:repo) { 'github' }
|
9
|
+
|
10
|
+
after { reset_authentication_for(subject) }
|
11
|
+
|
12
|
+
let(:resource) { stub(:resource) }
|
13
|
+
let(:filename) { 'filename' }
|
14
|
+
let(:res) { stub(:response, :body => 'success') }
|
15
|
+
let(:uploader) { stub(:uploader, :send => res) }
|
16
|
+
|
17
|
+
before { Github::S3Uploader.stub(:new) { uploader } }
|
18
|
+
|
19
|
+
it "should fail if resource is of incorrect type" do
|
20
|
+
expect {
|
21
|
+
subject.upload resource, nil
|
22
|
+
}.to raise_error(ArgumentError)
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should upload resource successfully" do
|
26
|
+
res = stub(:response, :body => 'success')
|
27
|
+
uploader = stub(:uploader, :send => res)
|
28
|
+
Github::S3Uploader.should_receive(:new).with(resource, filename) { uploader }
|
29
|
+
subject.upload(resource, filename).should == 'success'
|
30
|
+
end
|
31
|
+
end # upload
|
32
|
+
|
@@ -1,245 +1,13 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
|
-
require 'github_api/s3_uploader'
|
5
4
|
|
6
5
|
describe Github::Repos::Downloads do
|
7
|
-
let(:github) { Github.new }
|
8
|
-
let(:user) { 'peter-murach' }
|
9
|
-
let(:repo) { 'github' }
|
10
6
|
|
11
|
-
after { reset_authentication_for(
|
7
|
+
after { reset_authentication_for(subject) }
|
12
8
|
|
13
9
|
it { described_class::VALID_DOWNLOAD_PARAM_NAMES.should_not be_nil }
|
14
10
|
|
15
11
|
it { described_class::REQUIRED_PARAMS.should_not be_nil }
|
16
12
|
|
17
|
-
describe "#list" do
|
18
|
-
|
19
|
-
before do
|
20
|
-
stub_get("/repos/#{user}/#{repo}/downloads").
|
21
|
-
to_return(:body => body, :status => status,
|
22
|
-
:headers => {:content_type => "application/json; charset=utf-8"})
|
23
|
-
end
|
24
|
-
|
25
|
-
context "resource found" do
|
26
|
-
let(:body) { fixture('repos/downloads.json') }
|
27
|
-
let(:status) { 200 }
|
28
|
-
|
29
|
-
it { should respond_to :list }
|
30
|
-
|
31
|
-
it "should fail to get resource without username" do
|
32
|
-
expect { github.repos.downloads.list }.to raise_error(ArgumentError)
|
33
|
-
end
|
34
|
-
|
35
|
-
it "should get the resources" do
|
36
|
-
github.repos.downloads.list user, repo
|
37
|
-
a_get("/repos/#{user}/#{repo}/downloads").should have_been_made
|
38
|
-
end
|
39
|
-
|
40
|
-
it "should return array of resources" do
|
41
|
-
downloads = github.repos.downloads.list user, repo
|
42
|
-
downloads.should be_an Array
|
43
|
-
downloads.should have(1).items
|
44
|
-
end
|
45
|
-
|
46
|
-
it "should be a mash type" do
|
47
|
-
downloads = github.repos.downloads.list user, repo
|
48
|
-
downloads.first.should be_a Hashie::Mash
|
49
|
-
end
|
50
|
-
|
51
|
-
it "should get download information" do
|
52
|
-
downloads = github.repos.downloads.list user, repo
|
53
|
-
downloads.first.name.should == 'new_file.jpg'
|
54
|
-
end
|
55
|
-
|
56
|
-
it "should yield to a block" do
|
57
|
-
github.repos.downloads.should_receive(:list).
|
58
|
-
with(user, repo).and_yield('web')
|
59
|
-
github.repos.downloads.list(user, repo) { |param| 'web' }
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
context "resource not found" do
|
64
|
-
let(:body) { "" }
|
65
|
-
let(:status) { [404, "Not Found"] }
|
66
|
-
|
67
|
-
it "should return 404 with a message 'Not Found'" do
|
68
|
-
expect {
|
69
|
-
github.repos.downloads.list user, repo
|
70
|
-
}.to raise_error(Github::Error::NotFound)
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end # list
|
74
|
-
|
75
|
-
describe "#get" do
|
76
|
-
let(:download_id) { 1 }
|
77
|
-
|
78
|
-
before do
|
79
|
-
stub_get("/repos/#{user}/#{repo}/downloads/#{download_id}").
|
80
|
-
to_return(:body => body, :status => status,
|
81
|
-
:headers => {:content_type => "application/json; charset=utf-8"})
|
82
|
-
end
|
83
|
-
|
84
|
-
context "resource found" do
|
85
|
-
let(:body) { fixture('repos/download.json') }
|
86
|
-
let(:status) { 200 }
|
87
|
-
|
88
|
-
it { github.repos.downloads.should respond_to :find }
|
89
|
-
|
90
|
-
it "should fail to get resource without download id" do
|
91
|
-
expect {
|
92
|
-
github.repos.downloads.get user, repo, nil
|
93
|
-
}.to raise_error(ArgumentError)
|
94
|
-
end
|
95
|
-
|
96
|
-
it "should get the resource" do
|
97
|
-
github.repos.downloads.get user, repo, download_id
|
98
|
-
a_get("/repos/#{user}/#{repo}/downloads/#{download_id}").should have_been_made
|
99
|
-
end
|
100
|
-
|
101
|
-
it "should get download information" do
|
102
|
-
download = github.repos.downloads.get user, repo, download_id
|
103
|
-
download.id.should == download_id
|
104
|
-
download.name.should == 'new_file.jpg'
|
105
|
-
end
|
106
|
-
|
107
|
-
it "should return mash" do
|
108
|
-
download = github.repos.downloads.get user, repo, download_id
|
109
|
-
download.should be_a Hashie::Mash
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
context "resource not found" do
|
114
|
-
let(:body) { "" }
|
115
|
-
let(:status) { [404, "Not Found"] }
|
116
|
-
|
117
|
-
it "should fail to retrive resource" do
|
118
|
-
expect {
|
119
|
-
github.repos.downloads.get user, repo, download_id
|
120
|
-
}.to raise_error(Github::Error::NotFound)
|
121
|
-
end
|
122
|
-
end
|
123
|
-
end # get
|
124
|
-
|
125
|
-
describe "#delete" do
|
126
|
-
let(:download_id) { 1 }
|
127
|
-
|
128
|
-
before do
|
129
|
-
stub_delete("/repos/#{user}/#{repo}/downloads/#{download_id}").
|
130
|
-
to_return(:body => body, :status => status,
|
131
|
-
:headers => { :content_type => "application/json; charset=utf-8"})
|
132
|
-
end
|
133
|
-
|
134
|
-
context "resource deleted successfully" do
|
135
|
-
let(:body) { "" }
|
136
|
-
let(:status) { 204 }
|
137
|
-
|
138
|
-
it "should fail to delete without 'user/repo' parameters" do
|
139
|
-
expect { github.repos.downloads.delete }.to raise_error(ArgumentError)
|
140
|
-
end
|
141
|
-
|
142
|
-
it "should fail to delete resource without 'download_id'" do
|
143
|
-
expect {
|
144
|
-
github.repos.downloads.delete user, repo
|
145
|
-
}.to raise_error(ArgumentError)
|
146
|
-
end
|
147
|
-
|
148
|
-
it "should delete the resource" do
|
149
|
-
github.repos.downloads.delete user, repo, download_id
|
150
|
-
a_delete("/repos/#{user}/#{repo}/downloads/#{download_id}").should have_been_made
|
151
|
-
end
|
152
|
-
end
|
153
|
-
|
154
|
-
context "failed to delete resource" do
|
155
|
-
let(:body) { "" }
|
156
|
-
let(:status) { [404, "Not Found"] }
|
157
|
-
|
158
|
-
it "should fail to find resource" do
|
159
|
-
expect {
|
160
|
-
github.repos.downloads.delete user, repo, download_id
|
161
|
-
}.to raise_error(Github::Error::NotFound)
|
162
|
-
end
|
163
|
-
end
|
164
|
-
end # delete
|
165
|
-
|
166
|
-
describe "#create" do
|
167
|
-
let(:inputs) { {:name => 'new_file.jpg', :size => 114034, :description => "Latest release", :content_type => 'text/plain'} }
|
168
|
-
|
169
|
-
before do
|
170
|
-
stub_post("/repos/#{user}/#{repo}/downloads").with(inputs).
|
171
|
-
to_return(:body => body, :status => status,
|
172
|
-
:headers => {:content_type => "application/json; charset=utf-8"})
|
173
|
-
end
|
174
|
-
|
175
|
-
context "resouce created" do
|
176
|
-
let(:body) { fixture('repos/download_s3.json') }
|
177
|
-
let(:status) { 201}
|
178
|
-
|
179
|
-
it "should fail to create resource if 'name' input is missing" do
|
180
|
-
expect {
|
181
|
-
github.repos.downloads.create user, repo, inputs.except(:name)
|
182
|
-
}.to raise_error(Github::Error::RequiredParams)
|
183
|
-
end
|
184
|
-
|
185
|
-
it "should failt to create resource if 'size' input is missing" do
|
186
|
-
expect {
|
187
|
-
github.repos.downloads.create user, repo, inputs.except(:size)
|
188
|
-
}.to raise_error(Github::Error::RequiredParams)
|
189
|
-
end
|
190
|
-
|
191
|
-
it "should create resource successfully" do
|
192
|
-
github.repos.downloads.create user, repo, inputs
|
193
|
-
a_post("/repos/#{user}/#{repo}/downloads").with(inputs).should have_been_made
|
194
|
-
end
|
195
|
-
|
196
|
-
it "should return the resource" do
|
197
|
-
download = github.repos.downloads.create user, repo, inputs
|
198
|
-
download.should be_a Hashie::Mash
|
199
|
-
end
|
200
|
-
|
201
|
-
it "should get the download information" do
|
202
|
-
download = github.repos.downloads.create user, repo, inputs
|
203
|
-
download.name.should == 'new_file.jpg'
|
204
|
-
end
|
205
|
-
end
|
206
|
-
|
207
|
-
context "failed to create resource" do
|
208
|
-
let(:body) { "" }
|
209
|
-
let(:status) { [404, "Not Found"] }
|
210
|
-
|
211
|
-
it "should faile to retrieve resource" do
|
212
|
-
expect {
|
213
|
-
github.repos.downloads.create user, repo, inputs
|
214
|
-
}.to raise_error(Github::Error::NotFound)
|
215
|
-
end
|
216
|
-
end
|
217
|
-
end # create
|
218
|
-
|
219
|
-
describe 'upload' do
|
220
|
-
let(:resource) { stub(:resource) }
|
221
|
-
let(:filename) { 'filename' }
|
222
|
-
let(:res) { stub(:response, :body => 'success') }
|
223
|
-
let(:uploader) { stub(:uploader, :send => res) }
|
224
|
-
|
225
|
-
context 'resource uploaded' do
|
226
|
-
before do
|
227
|
-
Github::S3Uploader.stub(:new) { uploader }
|
228
|
-
end
|
229
|
-
|
230
|
-
it "should fail if resource is of incorrect type" do
|
231
|
-
expect {
|
232
|
-
github.repos.downloads.upload resource, nil
|
233
|
-
}.to raise_error(ArgumentError)
|
234
|
-
end
|
235
|
-
|
236
|
-
it "should upload resource successfully" do
|
237
|
-
res = stub(:response, :body => 'success')
|
238
|
-
uploader = stub(:uploader, :send => res)
|
239
|
-
Github::S3Uploader.should_receive(:new).with(resource, filename) { uploader }
|
240
|
-
github.repos.downloads.upload(resource, filename).should == 'success'
|
241
|
-
end
|
242
|
-
end
|
243
|
-
end # upload
|
244
|
-
|
245
13
|
end # Github::Repos::Downloads
|
data/spec/github/repos_spec.rb
CHANGED
@@ -8,6 +8,8 @@ describe Github::Repos, 'integration' do
|
|
8
8
|
|
9
9
|
its(:collaborators) { should be_a Github::Repos::Collaborators }
|
10
10
|
|
11
|
+
its(:comments) { should be_a Github::Repos::Comments }
|
12
|
+
|
11
13
|
its(:commits) { should be_a Github::Repos::Commits }
|
12
14
|
|
13
15
|
its(:downloads) { should be_a Github::Repos::Downloads }
|
data/spec/spec_helper.rb
CHANGED
@@ -92,6 +92,7 @@ OAUTH_TOKEN = 'bafec72922f31fe86aacc8aca4261117f3bd62cf'
|
|
92
92
|
|
93
93
|
def reset_authentication_for(object)
|
94
94
|
[ 'user', 'repo', 'basic_auth', 'oauth_token', 'login', 'password' ].each do |item|
|
95
|
+
Github.send("#{item}=", nil)
|
95
96
|
object.send("#{item}=", nil)
|
96
97
|
end
|
97
98
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-27 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hashie
|
16
|
-
requirement: &
|
16
|
+
requirement: &2152862440 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2152862440
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: faraday
|
27
|
-
requirement: &
|
27
|
+
requirement: &2152861940 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.8.1
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2152861940
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: multi_json
|
38
|
-
requirement: &
|
38
|
+
requirement: &2152861480 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '1.3'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2152861480
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: oauth2
|
49
|
-
requirement: &
|
49
|
+
requirement: &2152861100 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2152861100
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: nokogiri
|
60
|
-
requirement: &
|
60
|
+
requirement: &2158226040 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 1.5.2
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2158226040
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
|
-
requirement: &
|
71
|
+
requirement: &2158225540 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2158225540
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: cucumber
|
82
|
-
requirement: &
|
82
|
+
requirement: &2158225080 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *2158225080
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: webmock
|
93
|
-
requirement: &
|
93
|
+
requirement: &2158224620 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 1.8.0
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *2158224620
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: vcr
|
104
|
-
requirement: &
|
104
|
+
requirement: &2158224160 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: 2.2.0
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *2158224160
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: simplecov
|
115
|
-
requirement: &
|
115
|
+
requirement: &2158223700 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ~>
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: 0.7.1
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *2158223700
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: guard
|
126
|
-
requirement: &
|
126
|
+
requirement: &2158223320 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ! '>='
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *2158223320
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: guard-rspec
|
137
|
-
requirement: &
|
137
|
+
requirement: &2158222860 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ! '>='
|
@@ -142,10 +142,10 @@ dependencies:
|
|
142
142
|
version: '0'
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *2158222860
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: guard-cucumber
|
148
|
-
requirement: &
|
148
|
+
requirement: &2158222440 !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
151
151
|
- - ! '>='
|
@@ -153,10 +153,10 @@ dependencies:
|
|
153
153
|
version: '0'
|
154
154
|
type: :development
|
155
155
|
prerelease: false
|
156
|
-
version_requirements: *
|
156
|
+
version_requirements: *2158222440
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: rake
|
159
|
-
requirement: &
|
159
|
+
requirement: &2158222020 !ruby/object:Gem::Requirement
|
160
160
|
none: false
|
161
161
|
requirements:
|
162
162
|
- - ! '>='
|
@@ -164,10 +164,10 @@ dependencies:
|
|
164
164
|
version: '0'
|
165
165
|
type: :development
|
166
166
|
prerelease: false
|
167
|
-
version_requirements: *
|
167
|
+
version_requirements: *2158222020
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: bundler
|
170
|
-
requirement: &
|
170
|
+
requirement: &2158221600 !ruby/object:Gem::Requirement
|
171
171
|
none: false
|
172
172
|
requirements:
|
173
173
|
- - ! '>='
|
@@ -175,7 +175,7 @@ dependencies:
|
|
175
175
|
version: '0'
|
176
176
|
type: :development
|
177
177
|
prerelease: false
|
178
|
-
version_requirements: *
|
178
|
+
version_requirements: *2158221600
|
179
179
|
description: ! ' Ruby wrapper that supports all of the GitHub API v3 methods(nearly
|
180
180
|
200). It''s build in a modular way, that is, you can either instantiate the whole
|
181
181
|
api wrapper Github.new or use parts of it e.i. Github::Repos.new if working solely
|
@@ -366,6 +366,7 @@ files:
|
|
366
366
|
- lib/github_api/pull_requests.rb
|
367
367
|
- lib/github_api/rate_limit.rb
|
368
368
|
- lib/github_api/repos/collaborators.rb
|
369
|
+
- lib/github_api/repos/comments.rb
|
369
370
|
- lib/github_api/repos/commits.rb
|
370
371
|
- lib/github_api/repos/contents.rb
|
371
372
|
- lib/github_api/repos/downloads.rb
|
@@ -487,6 +488,7 @@ files:
|
|
487
488
|
- spec/fixtures/users/key.json
|
488
489
|
- spec/fixtures/users/keys.json
|
489
490
|
- spec/fixtures/users/user.json
|
491
|
+
- spec/github/api/set_spec.rb
|
490
492
|
- spec/github/api_factory_spec.rb
|
491
493
|
- spec/github/api_spec.rb
|
492
494
|
- spec/github/authorization_spec.rb
|
@@ -529,11 +531,23 @@ files:
|
|
529
531
|
- spec/github/repos/branch_spec.rb
|
530
532
|
- spec/github/repos/branches_spec.rb
|
531
533
|
- spec/github/repos/collaborators_spec.rb
|
532
|
-
- spec/github/repos/
|
534
|
+
- spec/github/repos/comments/create_spec.rb
|
535
|
+
- spec/github/repos/comments/delete_spec.rb
|
536
|
+
- spec/github/repos/comments/get_spec.rb
|
537
|
+
- spec/github/repos/comments/list_spec.rb
|
538
|
+
- spec/github/repos/comments/update_spec.rb
|
539
|
+
- spec/github/repos/commits/compare_spec.rb
|
540
|
+
- spec/github/repos/commits/get_spec.rb
|
541
|
+
- spec/github/repos/commits/list_spec.rb
|
533
542
|
- spec/github/repos/contents_spec.rb
|
534
543
|
- spec/github/repos/contributors_spec.rb
|
535
544
|
- spec/github/repos/create_spec.rb
|
536
545
|
- spec/github/repos/delete_spec.rb
|
546
|
+
- spec/github/repos/downloads/create_spec.rb
|
547
|
+
- spec/github/repos/downloads/delete_spec.rb
|
548
|
+
- spec/github/repos/downloads/get_spec.rb
|
549
|
+
- spec/github/repos/downloads/list_spec.rb
|
550
|
+
- spec/github/repos/downloads/upload_spec.rb
|
537
551
|
- spec/github/repos/downloads_spec.rb
|
538
552
|
- spec/github/repos/edit_spec.rb
|
539
553
|
- spec/github/repos/forks/create_spec.rb
|
@@ -579,7 +593,7 @@ files:
|
|
579
593
|
homepage: https://github.com/peter-murach/github
|
580
594
|
licenses: []
|
581
595
|
post_install_message: ! "\n--------------------------------------------------------------------------------\nThank
|
582
|
-
you for installing github_api-0.7.
|
596
|
+
you for installing github_api-0.7.2.\n\nFor more information: https://github.com/peter-murach/github\n--------------------------------------------------------------------------------\n
|
583
597
|
\ "
|
584
598
|
rdoc_options: []
|
585
599
|
require_paths:
|