github_api 0.8.8 → 0.8.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -1
- data/features/cassettes/orgs/members/list.yml +139 -0
- data/features/cassettes/orgs/members/list_public.yml +140 -0
- data/features/cassettes/orgs/members/member_false.yml +52 -0
- data/features/cassettes/orgs/members/member_public_false.yml +55 -0
- data/features/cassettes/orgs/members/member_public_true.yml +48 -0
- data/features/orgs/members.feature +57 -0
- data/lib/github_api/connection.rb +4 -4
- data/lib/github_api/orgs/members.rb +28 -35
- data/lib/github_api/orgs/teams.rb +14 -13
- data/lib/github_api/version.rb +1 -1
- data/spec/github/gists/create_spec.rb +64 -0
- data/spec/github/gists/delete_spec.rb +31 -0
- data/spec/github/gists/edit_spec.rb +60 -0
- data/spec/github/gists/fork_spec.rb +41 -0
- data/spec/github/gists/get_spec.rb +47 -0
- data/spec/github/gists/gists_spec.rb +7 -0
- data/spec/github/gists/is_starred_spec.rb +42 -0
- data/spec/github/gists/list_spec.rb +78 -0
- data/spec/github/gists/star_spec.rb +30 -0
- data/spec/github/gists/starred_spec.rb +44 -0
- data/spec/github/gists/unstar_spec.rb +30 -0
- data/spec/github/orgs/members/conceal_spec.rb +35 -0
- data/spec/github/orgs/members/delete_spec.rb +33 -0
- data/spec/github/orgs/members/list_spec.rb +82 -0
- data/spec/github/orgs/members/member_spec.rb +65 -0
- data/spec/github/orgs/members/publicize_spec.rb +35 -0
- data/spec/github/orgs/members_spec.rb +0 -277
- data/spec/github/orgs/teams/add_member_spec.rb +38 -0
- data/spec/github/orgs/teams/add_repo_spec.rb +39 -0
- data/spec/github/orgs/teams/create_spec.rb +58 -0
- data/spec/github/orgs/teams/delete_spec.rb +36 -0
- data/spec/github/orgs/teams/edit_spec.rb +57 -0
- data/spec/github/orgs/teams/get_spec.rb +45 -0
- data/spec/github/orgs/teams/list_members_spec.rb +49 -0
- data/spec/github/orgs/teams/list_repos_spec.rb +49 -0
- data/spec/github/orgs/teams/list_spec.rb +49 -0
- data/spec/github/orgs/teams/remove_member_spec.rb +40 -0
- data/spec/github/orgs/teams/remove_repo_spec.rb +40 -0
- data/spec/github/orgs/teams/team_member_spec.rb +40 -0
- data/spec/github/orgs/teams/team_repo_spec.rb +43 -0
- data/spec/github/orgs/teams_spec.rb +2 -566
- metadata +67 -33
- data/spec/github/gists_spec.rb +0 -470
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# GithubAPI
|
2
|
-
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/github_api.png)](http://badge.fury.io/rb/github_api)[![Build Status](https://secure.travis-ci.org/peter-murach/github.png?branch=master)][travis] [![Dependency Status](https://gemnasium.com/peter-murach/github.png?travis)][gemnasium] [![Code Climate](https://codeclimate.com/badge.png)][codeclimate]
|
3
4
|
|
4
5
|
[travis]: http://travis-ci.org/peter-murach/github
|
5
6
|
[gemnasium]: https://gemnasium.com/peter-murach/github
|
@@ -0,0 +1,139 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<BASIC_AUTH>@api.github.com/orgs/rails/members?access_token=<TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/jsonapplication/vnd.github+json;q=0.7application/vnd.github.v3.raw+json;q=0.5application/vnd.github.beta.raw+json;q=0.1
|
12
|
+
Accept-Charset:
|
13
|
+
- utf-8
|
14
|
+
User-Agent:
|
15
|
+
- Github Ruby Gem 0.8.8
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- GitHub.com
|
27
|
+
Date:
|
28
|
+
- Mon, 21 Jan 2013 22:11:51 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
Etag:
|
38
|
+
- ! '"fe0d504ebbedc6e3be3223ec7599b616"'
|
39
|
+
Cache-Control:
|
40
|
+
- private, s-maxage=60, max-age=60
|
41
|
+
X-Github-Media-Type:
|
42
|
+
- github.beta
|
43
|
+
X-Ratelimit-Remaining:
|
44
|
+
- '4999'
|
45
|
+
Vary:
|
46
|
+
- Accept, Authorization, Cookie
|
47
|
+
Last-Modified:
|
48
|
+
- Mon, 21 Jan 2013 21:42:19 GMT
|
49
|
+
X-Ratelimit-Limit:
|
50
|
+
- '5000'
|
51
|
+
X-Content-Type-Options:
|
52
|
+
- nosniff
|
53
|
+
Content-Encoding:
|
54
|
+
- gzip
|
55
|
+
body:
|
56
|
+
encoding: ASCII-8BIT
|
57
|
+
string: !binary |-
|
58
|
+
H4sIAAAAAAAAA83dS2/kuBEH8O8yQG67Y0p8iQsEuQQ5JEAui1wSBAuKpGzZ
|
59
|
+
7W6ju+3Z2cF895RaL9JywCmVDrrsDnan/iZL/rVelPo/3z5dv76ET798+tcl
|
60
|
+
nD/99OkcXGjfgv8tvIXj9fLb6/kA//Phen25/HJ3Z1/az/ft9eG1/uxOz3ev
|
61
|
+
UHO5+/LV2evl7l0lZN23F1TC7e9/u+v+9Vvrv0NCczocTl/ghyDGMdVA/Q+P
|
62
|
+
vhvt2b7Zqz3Dj4YZi7IqlLY8OF2WXNbW6KJQpSmFMKViBgrQHeoLvt29nNs3
|
63
|
+
677OE2yP9+gJQg2M4fJaX9y5fbm2pyOmSUldlwMTP8NW/+GG3Q0V3+5OX47h
|
64
|
+
/P0bbP+XUzelw+m+PUIH+18L+A9DW9PoS3Cv5/B5bPrt16n/i3e51v/F/3n6
|
65
|
+
fSxF9Tl8tk/22bafj+F6Zy+XcL1Ev6R/Kv/WPtv7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+UY5BL5xSo5v0mws39zm
|
128
|
+
2BnfqC9YvlFpzLe7AbrNNfFfv4TwV4rcPoCItg9Ber0VLajaSjaiKCzciGqU
|
129
|
+
hNXQroT3ggv4Io2irJjFreXox0VVGs9uJdA+gmBzCMixHHuKFZnr+s5E9t3A
|
130
|
+
Yuyr0nvESpttLk29tY/2qw+k9/NPGUSOUw5S5Fi3QGkKeC4+VJWvlO8exa3g
|
131
|
+
LeBVwQsOd54Yc7iz12l0VJfvprmS5pRC0Dln5IBGLcYazW2EnRmdeoJlOhWm
|
132
|
+
d5Hhi3S3eSj3/rWFpwHb+1cL15Epu840iGg2DUPCTYoXejX3UldSwvstmiCd
|
133
|
+
5ELCq4jh1nFl4OKTwn0VYzpOKuGPZr3ScRpFwPwuKCf6fe+xrHNbZ2es0+5g
|
134
|
+
bafVCXDFzEZvF2/OJw/LRCi0xwgi6jEGyXkoW0CGh4kMvDscHgyUtRJOwfcZ
|
135
|
+
w2mthTVccD/IIr/FeBwblXA6x5V4xxAC2ykiB3buLpZqrv87ozp2BIt0rIt5
|
136
|
+
VoIJJb7/939sMAzK5ooAAA==
|
137
|
+
http_version: !!null
|
138
|
+
recorded_at: Mon, 21 Jan 2013 22:11:51 GMT
|
139
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,140 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<BASIC_AUTH>@api.github.com/orgs/rails/public_members?access_token=<TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/jsonapplication/vnd.github+json;q=0.7application/vnd.github.v3.raw+json;q=0.5application/vnd.github.beta.raw+json;q=0.1
|
12
|
+
Accept-Charset:
|
13
|
+
- utf-8
|
14
|
+
User-Agent:
|
15
|
+
- Github Ruby Gem 0.8.8
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- GitHub.com
|
27
|
+
Date:
|
28
|
+
- Mon, 21 Jan 2013 22:12:55 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
X-Ratelimit-Remaining:
|
38
|
+
- '4998'
|
39
|
+
X-Ratelimit-Limit:
|
40
|
+
- '5000'
|
41
|
+
Last-Modified:
|
42
|
+
- Mon, 21 Jan 2013 21:42:19 GMT
|
43
|
+
Vary:
|
44
|
+
- Accept, Authorization, Cookie
|
45
|
+
X-Content-Type-Options:
|
46
|
+
- nosniff
|
47
|
+
X-Github-Media-Type:
|
48
|
+
- github.beta
|
49
|
+
Etag:
|
50
|
+
- ! '"fe0d504ebbedc6e3be3223ec7599b616"'
|
51
|
+
Cache-Control:
|
52
|
+
- private, s-maxage=60, max-age=60
|
53
|
+
Content-Encoding:
|
54
|
+
- gzip
|
55
|
+
body:
|
56
|
+
encoding: ASCII-8BIT
|
57
|
+
string: !binary |-
|
58
|
+
H4sIAAAAAAAAA73dW2/kthUH8O+yQN+StSjexABBX4o+tEBfgr60KAKKpGx5
|
59
|
+
xzPGzNi7m0W+e4+uQ40WUniOlKcsAvPvQ4o/UxeO5r/fPly/voYPP3349yWc
|
60
|
+
P/zw4bG+XC+/vp0P8L+ertfXy08PD/a1/vhYX5/eyo/u9PLwBj95ebAv9np5
|
61
|
+
8/ahbfGt/c+vtf8dMqrT4XD6DD+UlDO2goSE39/UfLbv9mrP8Ouhaq2s1rqq
|
62
|
+
iqziWel5yU0Wci2dCyqXpYMG5+BC/R78r+E9HBO7e9d27G59fER0F1pBw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dWXh4PgO76D1W6a1UKtT7
|
125
|
+
TmOt3nIIXG8hS2Lj0U5BG5W4ndtbKJLu2gzZny68tUck2Y1nH5Vv84KjTwdb
|
126
|
+
HutP5AU2zkolHLWdIc45d3DT2GUsDyW8GdvAFawtMtj9q+D2k0N+OcwlLpfK
|
127
|
+
eN51LOQ4iUA5jlnCPB33FM6TQrcDHcciSa/Nl/1J51oXKRuG7+YiEfUvn0P4
|
128
|
+
G1VzF5LIuG0082sLWQnGLLzGvlISbhq7HLYnCngHEsuLzCK/n7grkAg37iVS
|
129
|
+
bBeBp9q1XzA6DGoCzr6mzVR2eUiOa4d/f46MK21SPA5ziwjxGo4+wDeo0d8h
|
130
|
+
GCUlkry1nLms4FvWcg2vHrPGVZV0sPuQFaUN8D3OsMYG5Au1o1KJOGedRgqN
|
131
|
+
cvBMo5AFq5PRTgAbl7iZ2igUSXdthuxPl7M85bX3k8lH1Vu/nNwZvrLdUdfS
|
132
|
+
6y0pVe/YcqbXFPD1pwYu+0NZGcHhS9TAbKY9fHGMab7MCXcDKiqVqve+01i9
|
133
|
+
txyC3lvIkt54tFP0RiVup/cWitS7NkP21yt5wjaoydQj2n2vn+1XH8ifzxlz
|
134
|
+
Et0O7eZqGdwwDkXhC+Wbr14r4C1oBeOMw7eeZplD3pAayySavesuUuyYgvc6
|
135
|
+
RixojcY4weqtuM2kjpFYpytzYn+n8LwiZynrbDThiFI/f3X2Sv6Ma5+SqLRr
|
136
|
+
NTMq8oIpbXlwzTeQyNIaeLSjYKO/ECaHLw/Arax9iUShk44iffYZeJ19wILN
|
137
|
+
cWQTZA5lbeayD0SqXJsF+6tMATnOrpbj//4PKJY3gOaKAAA=
|
138
|
+
http_version: !!null
|
139
|
+
recorded_at: Mon, 21 Jan 2013 22:12:56 GMT
|
140
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<BASIC_AUTH>@api.github.com/orgs/rails/members/drogus?access_token=<TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/jsonapplication/vnd.github+json;q=0.7application/vnd.github.v3.raw+json;q=0.5application/vnd.github.beta.raw+json;q=0.1
|
12
|
+
Accept-Charset:
|
13
|
+
- utf-8
|
14
|
+
User-Agent:
|
15
|
+
- Github Ruby Gem 0.8.8
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 302
|
23
|
+
message: Found
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- GitHub.com
|
27
|
+
Date:
|
28
|
+
- Mon, 21 Jan 2013 22:39:19 GMT
|
29
|
+
Content-Type:
|
30
|
+
- text/html;charset=utf-8
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Status:
|
34
|
+
- 302 Found
|
35
|
+
Content-Length:
|
36
|
+
- '0'
|
37
|
+
X-Content-Type-Options:
|
38
|
+
- nosniff
|
39
|
+
Location:
|
40
|
+
- https://api.github.com/orgs/rails/public_members/drogus
|
41
|
+
X-Ratelimit-Limit:
|
42
|
+
- '5000'
|
43
|
+
X-Ratelimit-Remaining:
|
44
|
+
- '4983'
|
45
|
+
Cache-Control:
|
46
|
+
- ''
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
http_version: !!null
|
51
|
+
recorded_at: Mon, 21 Jan 2013 22:39:20 GMT
|
52
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<BASIC_AUTH>@api.github.com/orgs/rails/public_members/peter-murach?access_token=<TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/jsonapplication/vnd.github+json;q=0.7application/vnd.github.v3.raw+json;q=0.5application/vnd.github.beta.raw+json;q=0.1
|
12
|
+
Accept-Charset:
|
13
|
+
- utf-8
|
14
|
+
User-Agent:
|
15
|
+
- Github Ruby Gem 0.8.8
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 404
|
23
|
+
message: Not Found
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- GitHub.com
|
27
|
+
Date:
|
28
|
+
- Mon, 21 Jan 2013 22:38:41 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 404 Not Found
|
37
|
+
X-Content-Type-Options:
|
38
|
+
- nosniff
|
39
|
+
X-Ratelimit-Limit:
|
40
|
+
- '5000'
|
41
|
+
X-Github-Media-Type:
|
42
|
+
- github.beta
|
43
|
+
X-Ratelimit-Remaining:
|
44
|
+
- '4984'
|
45
|
+
Cache-Control:
|
46
|
+
- ''
|
47
|
+
Content-Encoding:
|
48
|
+
- gzip
|
49
|
+
body:
|
50
|
+
encoding: ASCII-8BIT
|
51
|
+
string: !binary |-
|
52
|
+
H4sIAAAAAAAAA6tWyk0tLk5MT1WyUvLLL1Fwyy/NS1GqBQB8+Ys1FwAAAA==
|
53
|
+
http_version: !!null
|
54
|
+
recorded_at: Mon, 21 Jan 2013 22:38:41 GMT
|
55
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<BASIC_AUTH>@api.github.com/orgs/rails/public_members/drogus?access_token=<TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/jsonapplication/vnd.github+json;q=0.7application/vnd.github.v3.raw+json;q=0.5application/vnd.github.beta.raw+json;q=0.1
|
12
|
+
Accept-Charset:
|
13
|
+
- utf-8
|
14
|
+
User-Agent:
|
15
|
+
- Github Ruby Gem 0.8.8
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 204
|
23
|
+
message: No Content
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- GitHub.com
|
27
|
+
Date:
|
28
|
+
- Mon, 21 Jan 2013 22:38:17 GMT
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- 204 No Content
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
X-Github-Media-Type:
|
36
|
+
- github.beta
|
37
|
+
Cache-Control:
|
38
|
+
- ''
|
39
|
+
X-Ratelimit-Limit:
|
40
|
+
- '5000'
|
41
|
+
X-Ratelimit-Remaining:
|
42
|
+
- '4985'
|
43
|
+
body:
|
44
|
+
encoding: US-ASCII
|
45
|
+
string: ''
|
46
|
+
http_version: !!null
|
47
|
+
recorded_at: Mon, 21 Jan 2013 22:38:17 GMT
|
48
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,57 @@
|
|
1
|
+
Feature: Members API
|
2
|
+
|
3
|
+
Background:
|
4
|
+
Given I have "Github::Orgs::Members" instance
|
5
|
+
|
6
|
+
Scenario: List
|
7
|
+
|
8
|
+
Given I want to list resources with the following params:
|
9
|
+
| org |
|
10
|
+
| rails |
|
11
|
+
When I make request within a cassette named "orgs/members/list"
|
12
|
+
Then the response status should be 200
|
13
|
+
And the response type should be JSON
|
14
|
+
And the response should not be empty
|
15
|
+
|
16
|
+
Scenario: List Public
|
17
|
+
|
18
|
+
Given I want to list resources with the following params:
|
19
|
+
| org |
|
20
|
+
| rails |
|
21
|
+
And I pass the following request options:
|
22
|
+
| public |
|
23
|
+
| true |
|
24
|
+
When I make request within a cassette named "orgs/members/list_public"
|
25
|
+
Then the response status should be 200
|
26
|
+
And the response type should be JSON
|
27
|
+
And the response should not be empty
|
28
|
+
|
29
|
+
# Scenario: Check if member of organization (302)
|
30
|
+
#
|
31
|
+
# Given I want to member? resource with the following params:
|
32
|
+
# | org | member |
|
33
|
+
# | rails | drogus |
|
34
|
+
# When I make request within a cassette named "orgs/members/member_false"
|
35
|
+
# Then the response should be false
|
36
|
+
|
37
|
+
Scenario: Check if public member of organization (404)
|
38
|
+
|
39
|
+
Given I want to member? resource with the following params:
|
40
|
+
| org | member |
|
41
|
+
| rails | peter-murach |
|
42
|
+
And I pass the following request options:
|
43
|
+
| public |
|
44
|
+
| true |
|
45
|
+
When I make request within a cassette named "orgs/members/member_public_false"
|
46
|
+
Then the response should be false
|
47
|
+
|
48
|
+
Scenario: Check if public member of organization (204)
|
49
|
+
|
50
|
+
Given I want to member? resource with the following params:
|
51
|
+
| org | member |
|
52
|
+
| rails | drogus |
|
53
|
+
And I pass the following request options:
|
54
|
+
| public |
|
55
|
+
| true |
|
56
|
+
When I make request within a cassette named "orgs/members/member_public_true"
|
57
|
+
Then the response should be true
|