github_api 0.6.5 → 0.7.0
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/features/cassettes/{repos → issues}/assignees/ckeck.yml +0 -0
- data/features/cassettes/{repos → issues}/assignees/ckeck_not.yml +0 -0
- data/features/cassettes/{repos → issues}/assignees/list.yml +0 -0
- data/features/cassettes/repos/starring/list.yml +98 -0
- data/features/cassettes/repos/starring/star.yml +48 -0
- data/features/cassettes/repos/starring/starred.yml +195 -0
- data/features/cassettes/repos/starring/starring.yml +56 -0
- data/features/cassettes/repos/starring/unstar.yml +46 -0
- data/features/cassettes/repos/statuses/create.yml +52 -0
- data/features/cassettes/repos/statuses/list.yml +64 -0
- data/features/cassettes/repos/watching/list.yml +76 -0
- data/features/cassettes/repos/watching/unwatch.yml +46 -0
- data/features/cassettes/repos/watching/watch.yml +48 -0
- data/features/cassettes/repos/watching/watched.yml +166 -0
- data/features/cassettes/repos/watching/watching.yml +56 -0
- data/features/{repos → issues}/assignees.feature +5 -5
- data/features/repos/starring.feature +50 -0
- data/features/repos/statuses.feature +27 -0
- data/features/repos/watching.feature +50 -0
- data/lib/github_api/error/service_error.rb +5 -2
- data/lib/github_api/issues.rb +6 -0
- data/lib/github_api/{repos → issues}/assignees.rb +2 -2
- data/lib/github_api/jsonable.rb +17 -0
- data/lib/github_api/orgs/teams.rb +45 -45
- data/lib/github_api/repos.rb +23 -11
- data/lib/github_api/repos/commits.rb +4 -3
- data/lib/github_api/repos/merging.rb +40 -0
- data/lib/github_api/repos/starring.rb +97 -0
- data/lib/github_api/repos/statuses.rb +64 -0
- data/lib/github_api/repos/watching.rb +16 -13
- data/lib/github_api/response.rb +1 -0
- data/lib/github_api/response/jsonize.rb +4 -5
- data/lib/github_api/version.rb +2 -2
- data/spec/fixtures/repos/merge.json +48 -0
- data/spec/fixtures/repos/stargazers.json +9 -0
- data/spec/fixtures/repos/starred.json +34 -0
- data/spec/fixtures/repos/status.json +16 -0
- data/spec/fixtures/repos/statuses.json +18 -0
- data/spec/github/{repos → issues}/assignees_spec.rb +2 -2
- data/spec/github/repos/merging_spec.rb +71 -0
- data/spec/github/repos/starring_spec.rb +203 -0
- data/spec/github/repos/statuses_spec.rb +124 -0
- data/spec/github/repos/watching_spec.rb +37 -35
- metadata +66 -39
@@ -9,64 +9,64 @@ describe Github::Repos::Watching do
|
|
9
9
|
|
10
10
|
after { github.user, github.repo, github.oauth_token = nil, nil, nil }
|
11
11
|
|
12
|
-
describe "
|
12
|
+
describe "#list" do
|
13
13
|
before do
|
14
|
-
stub_get("/repos/#{user}/#{repo}/
|
14
|
+
stub_get("/repos/#{user}/#{repo}/subscribers").
|
15
15
|
to_return(:body => fixture("repos/watchers.json"),
|
16
16
|
:status => 200, :headers => {})
|
17
17
|
end
|
18
18
|
|
19
19
|
it "should fail to get resource without username" do
|
20
20
|
expect {
|
21
|
-
github.repos.watching.
|
21
|
+
github.repos.watching.list
|
22
22
|
}.to raise_error(ArgumentError)
|
23
23
|
end
|
24
24
|
|
25
25
|
it "should yield iterator if block given" do
|
26
|
-
github.repos.watching.should_receive(:
|
26
|
+
github.repos.watching.should_receive(:list).
|
27
27
|
with(user, repo).and_yield('github')
|
28
|
-
github.repos.watching.
|
28
|
+
github.repos.watching.list(user, repo) { |param| 'github' }
|
29
29
|
end
|
30
30
|
|
31
31
|
it "should get the resources" do
|
32
|
-
github.repos.watching.
|
33
|
-
a_get("/repos/#{user}/#{repo}/
|
32
|
+
github.repos.watching.list user, repo
|
33
|
+
a_get("/repos/#{user}/#{repo}/subscribers").should have_been_made
|
34
34
|
end
|
35
35
|
|
36
36
|
it "should return array of resources" do
|
37
|
-
watchers = github.repos.watching.
|
37
|
+
watchers = github.repos.watching.list user, repo
|
38
38
|
watchers.should be_an Array
|
39
39
|
watchers.should have(1).items
|
40
40
|
end
|
41
41
|
|
42
42
|
it "should return result of mash type" do
|
43
|
-
watchers = github.repos.watching.
|
43
|
+
watchers = github.repos.watching.list user, repo
|
44
44
|
watchers.first.should be_a Hashie::Mash
|
45
45
|
end
|
46
46
|
|
47
47
|
it "should get watcher information" do
|
48
|
-
watchers = github.repos.watching.
|
48
|
+
watchers = github.repos.watching.list user, repo
|
49
49
|
watchers.first.login.should == 'octocat'
|
50
50
|
end
|
51
51
|
|
52
52
|
context "fail to find resource" do
|
53
53
|
before do
|
54
|
-
stub_get("/repos/#{user}/#{repo}/
|
54
|
+
stub_get("/repos/#{user}/#{repo}/subscribers").
|
55
55
|
to_return(:body => "", :status => 404)
|
56
56
|
end
|
57
57
|
|
58
58
|
it "should return 404 not found message" do
|
59
59
|
expect {
|
60
|
-
github.repos.watching.
|
60
|
+
github.repos.watching.list user, repo
|
61
61
|
}.to raise_error(Github::Error::NotFound)
|
62
62
|
end
|
63
63
|
end
|
64
|
-
end
|
64
|
+
end # list
|
65
65
|
|
66
66
|
describe "#watched" do
|
67
67
|
context "if user unauthenticated" do
|
68
68
|
it "should fail to get resource without username " do
|
69
|
-
stub_get("/user/
|
69
|
+
stub_get("/user/subscriptions").
|
70
70
|
to_return(:body => '', :status => 401, :headers => {})
|
71
71
|
expect {
|
72
72
|
github.repos.watching.watched
|
@@ -74,24 +74,25 @@ describe Github::Repos::Watching do
|
|
74
74
|
end
|
75
75
|
|
76
76
|
it "should get the resource with username" do
|
77
|
-
stub_get("/users/#{user}/
|
77
|
+
stub_get("/users/#{user}/subscriptions").
|
78
78
|
to_return(:body => fixture("repos/watched.json"), :status => 200, :headers => {})
|
79
79
|
github.repos.watching.watched :user => user
|
80
|
-
a_get("/users/#{user}/
|
80
|
+
a_get("/users/#{user}/subscriptions").should have_been_made
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
84
|
context "if user authenticated" do
|
85
85
|
before do
|
86
86
|
github.oauth_token = OAUTH_TOKEN
|
87
|
-
stub_get("/user/
|
87
|
+
stub_get("/user/subscriptions").
|
88
88
|
with(:query => {:access_token => OAUTH_TOKEN}).
|
89
89
|
to_return(:body => fixture("repos/watched.json"), :status => 200, :headers => {})
|
90
90
|
end
|
91
91
|
|
92
92
|
it "should get the resources" do
|
93
93
|
github.repos.watching.watched
|
94
|
-
a_get("/user/
|
94
|
+
a_get("/user/subscriptions").
|
95
|
+
with(:query => {:access_token => OAUTH_TOKEN}).
|
95
96
|
should have_been_made
|
96
97
|
end
|
97
98
|
|
@@ -113,7 +114,7 @@ describe Github::Repos::Watching do
|
|
113
114
|
context "with username ane reponame passed" do
|
114
115
|
context "this repo is being watched by the user"
|
115
116
|
before do
|
116
|
-
stub_get("/user/
|
117
|
+
stub_get("/user/subscriptions/#{user}/#{repo}").
|
117
118
|
to_return(:body => "", :status => 404,
|
118
119
|
:headers => {:user_agent => github.user_agent})
|
119
120
|
end
|
@@ -124,8 +125,9 @@ describe Github::Repos::Watching do
|
|
124
125
|
end
|
125
126
|
|
126
127
|
it "should return true if resoure found" do
|
127
|
-
stub_get("/user/
|
128
|
-
to_return(:body => "", :status => 200,
|
128
|
+
stub_get("/user/subscriptions/#{user}/#{repo}").
|
129
|
+
to_return(:body => "", :status => 200,
|
130
|
+
:headers => {:user_agent => github.user_agent})
|
129
131
|
watching = github.repos.watching.watching? user, repo
|
130
132
|
watching.should be_true
|
131
133
|
end
|
@@ -140,19 +142,19 @@ describe Github::Repos::Watching do
|
|
140
142
|
end
|
141
143
|
end # watching?
|
142
144
|
|
143
|
-
describe "
|
145
|
+
describe "#watch" do
|
144
146
|
context "user authenticated" do
|
145
147
|
context "with correct information" do
|
146
148
|
before do
|
147
149
|
github.oauth_token = OAUTH_TOKEN
|
148
|
-
stub_put("/user/
|
150
|
+
stub_put("/user/subscriptions/#{user}/#{repo}").
|
149
151
|
with(:query => {:access_token => OAUTH_TOKEN}).
|
150
152
|
to_return(:body => "", :status => 204, :headers => {})
|
151
153
|
end
|
152
154
|
|
153
155
|
it "should successfully watch a repo" do
|
154
|
-
github.repos.watching.
|
155
|
-
a_put("/user/
|
156
|
+
github.repos.watching.watch user, repo
|
157
|
+
a_put("/user/subscriptions/#{user}/#{repo}").
|
156
158
|
with(:query => {:access_token => OAUTH_TOKEN}).
|
157
159
|
should have_been_made
|
158
160
|
end
|
@@ -161,27 +163,27 @@ describe Github::Repos::Watching do
|
|
161
163
|
|
162
164
|
context "user unauthenticated" do
|
163
165
|
it "should fail" do
|
164
|
-
stub_put("/user/
|
166
|
+
stub_put("/user/subscriptions/#{user}/#{repo}").
|
165
167
|
to_return(:body => "", :status => 401, :headers => {})
|
166
168
|
expect {
|
167
|
-
github.repos.watching.
|
169
|
+
github.repos.watching.watch user, repo
|
168
170
|
}.to raise_error(Github::Error::Unauthorized)
|
169
171
|
end
|
170
172
|
end
|
171
|
-
end #
|
173
|
+
end # watch
|
172
174
|
|
173
|
-
describe "
|
175
|
+
describe "#unwatch" do
|
174
176
|
context "user authenticated" do
|
175
177
|
context "with correct information" do
|
176
178
|
before do
|
177
179
|
github.oauth_token = OAUTH_TOKEN
|
178
|
-
stub_delete("/user/
|
180
|
+
stub_delete("/user/subscriptions/#{user}/#{repo}?access_token=#{OAUTH_TOKEN}").
|
179
181
|
to_return(:body => "", :status => 204, :headers => {})
|
180
182
|
end
|
181
183
|
|
182
184
|
it "should successfully watch a repo" do
|
183
|
-
github.repos.watching.
|
184
|
-
a_delete("/user/
|
185
|
+
github.repos.watching.unwatch user, repo
|
186
|
+
a_delete("/user/subscriptions/#{user}/#{repo}?access_token=#{OAUTH_TOKEN}").
|
185
187
|
should have_been_made
|
186
188
|
end
|
187
189
|
end
|
@@ -189,13 +191,13 @@ describe Github::Repos::Watching do
|
|
189
191
|
|
190
192
|
context "user unauthenticated" do
|
191
193
|
it "should fail" do
|
192
|
-
stub_delete("/user/
|
194
|
+
stub_delete("/user/subscriptions/#{user}/#{repo}").
|
193
195
|
to_return(:body => "", :status => 401, :headers => {})
|
194
196
|
expect {
|
195
|
-
github.repos.watching.
|
197
|
+
github.repos.watching.unwatch user, repo
|
196
198
|
}.to raise_error(Github::Error::Unauthorized)
|
197
199
|
end
|
198
200
|
end
|
199
|
-
end #
|
201
|
+
end # unwatch
|
200
202
|
|
201
203
|
end # Github::Respos::Watching
|
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.
|
4
|
+
version: 0.7.0
|
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-
|
12
|
+
date: 2012-09-09 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hashie
|
16
|
-
requirement: &
|
16
|
+
requirement: &2153404820 !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: *2153404820
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: faraday
|
27
|
-
requirement: &
|
27
|
+
requirement: &2153420680 !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: *2153420680
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: multi_json
|
38
|
-
requirement: &
|
38
|
+
requirement: &2153420220 !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: *2153420220
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: oauth2
|
49
|
-
requirement: &
|
49
|
+
requirement: &2153419840 !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: *2153419840
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: nokogiri
|
60
|
-
requirement: &
|
60
|
+
requirement: &2153419300 !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: *2153419300
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
|
-
requirement: &
|
71
|
+
requirement: &2153418800 !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: *2153418800
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: cucumber
|
82
|
-
requirement: &
|
82
|
+
requirement: &2153418340 !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: *2153418340
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: webmock
|
93
|
-
requirement: &
|
93
|
+
requirement: &2153417880 !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: *2153417880
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: vcr
|
104
|
-
requirement: &
|
104
|
+
requirement: &2153417420 !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: *2153417420
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: simplecov
|
115
|
-
requirement: &
|
115
|
+
requirement: &2153416960 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ~>
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: 0.6.1
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *2153416960
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: guard
|
126
|
-
requirement: &
|
126
|
+
requirement: &2153416580 !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: *2153416580
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: guard-rspec
|
137
|
-
requirement: &
|
137
|
+
requirement: &2153416120 !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: *2153416120
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: guard-cucumber
|
148
|
-
requirement: &
|
148
|
+
requirement: &2153415700 !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: *2153415700
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: rake
|
159
|
-
requirement: &
|
159
|
+
requirement: &2153415280 !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: *2153415280
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: bundler
|
170
|
-
requirement: &
|
170
|
+
requirement: &2153414860 !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: *2153414860
|
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
|
@@ -210,6 +210,9 @@ files:
|
|
210
210
|
- features/cassettes/git_data/references/all_tags.yml
|
211
211
|
- features/cassettes/git_data/references/one.yml
|
212
212
|
- features/cassettes/git_data/tags/get.yml
|
213
|
+
- features/cassettes/issues/assignees/ckeck.yml
|
214
|
+
- features/cassettes/issues/assignees/ckeck_not.yml
|
215
|
+
- features/cassettes/issues/assignees/list.yml
|
213
216
|
- features/cassettes/issues/create.yml
|
214
217
|
- features/cassettes/issues/edit.yml
|
215
218
|
- features/cassettes/issues/get.yml
|
@@ -236,9 +239,6 @@ files:
|
|
236
239
|
- features/cassettes/pagination/repos/per_page/first.yml
|
237
240
|
- features/cassettes/pull_requests/get.yml
|
238
241
|
- features/cassettes/pull_requests/list.yml
|
239
|
-
- features/cassettes/repos/assignees/ckeck.yml
|
240
|
-
- features/cassettes/repos/assignees/ckeck_not.yml
|
241
|
-
- features/cassettes/repos/assignees/list.yml
|
242
242
|
- features/cassettes/repos/branch.yml
|
243
243
|
- features/cassettes/repos/branches.yml
|
244
244
|
- features/cassettes/repos/contents/archive.yml
|
@@ -248,8 +248,20 @@ files:
|
|
248
248
|
- features/cassettes/repos/get.yml
|
249
249
|
- features/cassettes/repos/languages.yml
|
250
250
|
- features/cassettes/repos/list.yml
|
251
|
+
- features/cassettes/repos/starring/list.yml
|
252
|
+
- features/cassettes/repos/starring/star.yml
|
253
|
+
- features/cassettes/repos/starring/starred.yml
|
254
|
+
- features/cassettes/repos/starring/starring.yml
|
255
|
+
- features/cassettes/repos/starring/unstar.yml
|
256
|
+
- features/cassettes/repos/statuses/create.yml
|
257
|
+
- features/cassettes/repos/statuses/list.yml
|
251
258
|
- features/cassettes/repos/tags.yml
|
252
259
|
- features/cassettes/repos/teams.yml
|
260
|
+
- features/cassettes/repos/watching/list.yml
|
261
|
+
- features/cassettes/repos/watching/unwatch.yml
|
262
|
+
- features/cassettes/repos/watching/watch.yml
|
263
|
+
- features/cassettes/repos/watching/watched.yml
|
264
|
+
- features/cassettes/repos/watching/watching.yml
|
253
265
|
- features/cassettes/search/email.yml
|
254
266
|
- features/cassettes/search/issues.yml
|
255
267
|
- features/cassettes/search/repos.yml
|
@@ -267,6 +279,7 @@ files:
|
|
267
279
|
- features/git_data/references.feature
|
268
280
|
- features/git_data/tags.feature
|
269
281
|
- features/github_api.feature
|
282
|
+
- features/issues/assignees.feature
|
270
283
|
- features/issues.feature
|
271
284
|
- features/markdown.feature
|
272
285
|
- features/options.feature
|
@@ -274,8 +287,10 @@ files:
|
|
274
287
|
- features/pagination.feature
|
275
288
|
- features/pull_requests.feature
|
276
289
|
- features/README.rdoc
|
277
|
-
- features/repos/assignees.feature
|
278
290
|
- features/repos/contents.feature
|
291
|
+
- features/repos/starring.feature
|
292
|
+
- features/repos/statuses.feature
|
293
|
+
- features/repos/watching.feature
|
279
294
|
- features/repos.feature
|
280
295
|
- features/search.feature
|
281
296
|
- features/settings.yml
|
@@ -328,11 +343,13 @@ files:
|
|
328
343
|
- lib/github_api/git_data/tags.rb
|
329
344
|
- lib/github_api/git_data/trees.rb
|
330
345
|
- lib/github_api/git_data.rb
|
346
|
+
- lib/github_api/issues/assignees.rb
|
331
347
|
- lib/github_api/issues/comments.rb
|
332
348
|
- lib/github_api/issues/events.rb
|
333
349
|
- lib/github_api/issues/labels.rb
|
334
350
|
- lib/github_api/issues/milestones.rb
|
335
351
|
- lib/github_api/issues.rb
|
352
|
+
- lib/github_api/jsonable.rb
|
336
353
|
- lib/github_api/markdown.rb
|
337
354
|
- lib/github_api/mime_type.rb
|
338
355
|
- lib/github_api/normalizer.rb
|
@@ -348,7 +365,6 @@ files:
|
|
348
365
|
- lib/github_api/pull_requests/comments.rb
|
349
366
|
- lib/github_api/pull_requests.rb
|
350
367
|
- lib/github_api/rate_limit.rb
|
351
|
-
- lib/github_api/repos/assignees.rb
|
352
368
|
- lib/github_api/repos/collaborators.rb
|
353
369
|
- lib/github_api/repos/commits.rb
|
354
370
|
- lib/github_api/repos/contents.rb
|
@@ -356,7 +372,10 @@ files:
|
|
356
372
|
- lib/github_api/repos/forks.rb
|
357
373
|
- lib/github_api/repos/hooks.rb
|
358
374
|
- lib/github_api/repos/keys.rb
|
375
|
+
- lib/github_api/repos/merging.rb
|
359
376
|
- lib/github_api/repos/pub_sub_hubbub.rb
|
377
|
+
- lib/github_api/repos/starring.rb
|
378
|
+
- lib/github_api/repos/statuses.rb
|
360
379
|
- lib/github_api/repos/watching.rb
|
361
380
|
- lib/github_api/repos.rb
|
362
381
|
- lib/github_api/request/basic_auth.rb
|
@@ -445,10 +464,15 @@ files:
|
|
445
464
|
- spec/fixtures/repos/key.json
|
446
465
|
- spec/fixtures/repos/keys.json
|
447
466
|
- spec/fixtures/repos/languages.json
|
467
|
+
- spec/fixtures/repos/merge.json
|
448
468
|
- spec/fixtures/repos/readme.json
|
449
469
|
- spec/fixtures/repos/repo.json
|
450
470
|
- spec/fixtures/repos/repo_comments.json
|
451
471
|
- spec/fixtures/repos/repos.json
|
472
|
+
- spec/fixtures/repos/stargazers.json
|
473
|
+
- spec/fixtures/repos/starred.json
|
474
|
+
- spec/fixtures/repos/status.json
|
475
|
+
- spec/fixtures/repos/statuses.json
|
452
476
|
- spec/fixtures/repos/tags.json
|
453
477
|
- spec/fixtures/repos/teams.json
|
454
478
|
- spec/fixtures/repos/watched.json
|
@@ -484,6 +508,7 @@ files:
|
|
484
508
|
- spec/github/git_data/tags_spec.rb
|
485
509
|
- spec/github/git_data/trees_spec.rb
|
486
510
|
- spec/github/git_data_spec.rb
|
511
|
+
- spec/github/issues/assignees_spec.rb
|
487
512
|
- spec/github/issues/comments_spec.rb
|
488
513
|
- spec/github/issues/events_spec.rb
|
489
514
|
- spec/github/issues/labels_spec.rb
|
@@ -500,7 +525,6 @@ files:
|
|
500
525
|
- spec/github/parameter_filter_spec.rb
|
501
526
|
- spec/github/pull_requests/comments_spec.rb
|
502
527
|
- spec/github/pull_requests_spec.rb
|
503
|
-
- spec/github/repos/assignees_spec.rb
|
504
528
|
- spec/github/repos/collaborators_spec.rb
|
505
529
|
- spec/github/repos/commits_spec.rb
|
506
530
|
- spec/github/repos/contents_spec.rb
|
@@ -508,7 +532,10 @@ files:
|
|
508
532
|
- spec/github/repos/forks_spec.rb
|
509
533
|
- spec/github/repos/hooks_spec.rb
|
510
534
|
- spec/github/repos/keys_spec.rb
|
535
|
+
- spec/github/repos/merging_spec.rb
|
511
536
|
- spec/github/repos/pub_sub_hubbub_spec.rb
|
537
|
+
- spec/github/repos/starring_spec.rb
|
538
|
+
- spec/github/repos/statuses_spec.rb
|
512
539
|
- spec/github/repos/watching_spec.rb
|
513
540
|
- spec/github/repos_spec.rb
|
514
541
|
- spec/github/request/jsonize_spec.rb
|
@@ -539,7 +566,7 @@ files:
|
|
539
566
|
homepage: https://github.com/peter-murach/github
|
540
567
|
licenses: []
|
541
568
|
post_install_message: ! "\n--------------------------------------------------------------------------------\nThank
|
542
|
-
you for installing github_api-0.
|
569
|
+
you for installing github_api-0.7.0.\n\n*NOTE*: Version 0.5.0 introduces breaking
|
543
570
|
changes to the way github api is queried.\nThe interface has been rewritten to be
|
544
571
|
more consistent with REST verbs that\ninteract with GitHub hypermedia resources.
|
545
572
|
Thus, to list resources 'list' or 'all'\nverbs are used, to retrieve individual
|