github_api 0.5.3 → 0.5.4

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.
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<BASIC_AUTH>@api.github.com/users/wycats/events/orgs/rails?access_token=<TOKEN>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 404
19
+ message: Not Found
20
+ headers:
21
+ Server:
22
+ - nginx/1.0.13
23
+ Date:
24
+ - Fri, 08 Jun 2012 21:54:43 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Status:
32
+ - 404 Not Found
33
+ X-Ratelimit-Limit:
34
+ - "5000"
35
+ Etag:
36
+ - "\"e66a7a6c91e2c26803f3f49feb7a883f\""
37
+ X-Ratelimit-Remaining:
38
+ - "4987"
39
+ Content-Encoding:
40
+ - gzip
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: !binary |
44
+ H4sIAAAAAAAAA6tWyk0tLk5MT1WyUvLLL1Fwyy/NS1GqBQB8+Ys1FwAAAA==
45
+
46
+ http_version:
47
+ recorded_at: Fri, 08 Jun 2012 21:54:44 GMT
48
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://<BASIC_AUTH>@api.github.com/gists/2900588/fork?access_token=<TOKEN>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Content-Length:
11
+ - "0"
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 201
19
+ message: Created
20
+ headers:
21
+ Server:
22
+ - nginx/1.0.13
23
+ Date:
24
+ - Sat, 09 Jun 2012 11:19:05 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Connection:
28
+ - keep-alive
29
+ Status:
30
+ - 201 Created
31
+ X-Ratelimit-Limit:
32
+ - "5000"
33
+ Etag:
34
+ - "\"2aff62ec12336f5e052d64d210bbada4\""
35
+ Location:
36
+ - https://api.github.com/gists/2900601
37
+ X-Ratelimit-Remaining:
38
+ - "4997"
39
+ Content-Length:
40
+ - "917"
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: "{\"files\":{\"gistfile1.md\":{\"type\":\"text/plain\",\"raw_url\":\"https://gist.github.com/raw/2900601/9b41849b4d87a4d0ac3238513e9d2d39a0dd68bf/gistfile1.md\",\"language\":\"Markdown\",\"size\":1578,\"filename\":\"gistfile1.md\"}},\"description\":\"kaminari gem \xE3\x81\xA7 twitter \xE9\xA2\xA8\xE3\x81\xAE AutoPagerize \xE3\x81\x8C\xE7\xB0\xA1\xE5\x8D\x98\xE3\x81\xAB\xE5\xAE\x9F\xE7\x8F\xBE\xE3\x81\xA7\xE3\x81\x8D\xE3\x82\x8B\xE3\x81\xAE\xE3\x81\x8B\xE8\xAA\xBF\xE3\x81\xB9\xE3\x81\x9F\",\"created_at\":\"2012-06-09T11:19:04Z\",\"public\":true,\"updated_at\":\"2012-06-09T11:19:04Z\",\"url\":\"https://api.github.com/gists/2900601\",\"comments\":0,\"git_pull_url\":\"git://gist.github.com/2900601.git\",\"git_push_url\":\"git@gist.github.com:2900601.git\",\"html_url\":\"https://gist.github.com/2900601\",\"id\":\"2900601\",\"user\":{\"url\":\"https://api.github.com/users/<USER>\",\"avatar_url\":\"https://secure.gravatar.com/avatar/80cbc0fc6c03d43f495b2342b31fe4fa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png\",\"gravatar_id\":\"80cbc0fc6c03d43f495b2342b31fe4fa\",\"id\":1223156,\"login\":\"<USER>\"}}"
44
+ http_version:
45
+ recorded_at: Sat, 09 Jun 2012 11:19:05 GMT
46
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<BASIC_AUTH>@api.github.com/gists/starred?access_token=<TOKEN>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.0.13
23
+ Date:
24
+ - Sat, 09 Jun 2012 09:34:51 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Connection:
28
+ - keep-alive
29
+ Status:
30
+ - 200 OK
31
+ X-Ratelimit-Limit:
32
+ - "5000"
33
+ Etag:
34
+ - "\"d751713988987e9331980363e24189ce\""
35
+ X-Ratelimit-Remaining:
36
+ - "4999"
37
+ Content-Length:
38
+ - "2"
39
+ body:
40
+ encoding: US-ASCII
41
+ string: "[]"
42
+ http_version:
43
+ recorded_at: Sat, 09 Jun 2012 09:34:51 GMT
44
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://<BASIC_AUTH>@api.github.com/gists/2900588/star?access_token=<TOKEN>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Content-Length:
11
+ - "0"
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 204
19
+ message: No Content
20
+ headers:
21
+ Server:
22
+ - nginx/1.0.13
23
+ Date:
24
+ - Sat, 09 Jun 2012 11:16:47 GMT
25
+ Connection:
26
+ - keep-alive
27
+ Status:
28
+ - 204 No Content
29
+ X-Ratelimit-Limit:
30
+ - "5000"
31
+ Etag:
32
+ - "\"d41d8cd98f00b204e9800998ecf8427e\""
33
+ X-Ratelimit-Remaining:
34
+ - "4999"
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ""
38
+ http_version:
39
+ recorded_at: Sat, 09 Jun 2012 11:16:47 GMT
40
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://<BASIC_AUTH>@api.github.com/gists/2900588/star?access_token=<TOKEN>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ User-Agent:
13
+ - Ruby
14
+ response:
15
+ status:
16
+ code: 204
17
+ message: No Content
18
+ headers:
19
+ Server:
20
+ - nginx/1.0.13
21
+ Date:
22
+ - Sat, 09 Jun 2012 11:17:39 GMT
23
+ Connection:
24
+ - keep-alive
25
+ Status:
26
+ - 204 No Content
27
+ X-Ratelimit-Limit:
28
+ - "5000"
29
+ Etag:
30
+ - "\"d41d8cd98f00b204e9800998ecf8427e\""
31
+ X-Ratelimit-Remaining:
32
+ - "4998"
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ""
36
+ http_version:
37
+ recorded_at: Sat, 09 Jun 2012 11:17:39 GMT
38
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<BASIC_AUTH>@api.github.com/orgs/github?access_token=<TOKEN>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.0.13
23
+ Date:
24
+ - Sat, 09 Jun 2012 11:40:15 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Status:
32
+ - 200 OK
33
+ X-Ratelimit-Limit:
34
+ - "5000"
35
+ Etag:
36
+ - "\"41b3d78c36ddac34fd8b8917a4c33283\""
37
+ X-Ratelimit-Remaining:
38
+ - "4991"
39
+ Content-Encoding:
40
+ - gzip
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: !binary |
44
+ H4sIAAAAAAAAA22Ry07DMBBFf6WyxC5NnGcbSwgQUmHHAlZsqonjpBaJbfkB
45
+ Koh/Z0JaWhA7e+b4zp3rD2JCM0i+tcJoR1hZRcTvjSCMPNgelHwHL7UiEWkG
46
+ 3WN1571xLEl66XehibkeE2h08EggIBUicwsLYgQ5YMEFY7T116c32ORWgBft
47
+ FjwSGaXrJS2XafpEC5avWJ4+I3Pw1kvn0RuNSKeHQb8Ji7dqVaKIHg2oPWEq
48
+ DMPkgM92GXkEtdhYUFw6rqPF7Q3K7fw4bIOdLP2zxo/teYhUuC6OVDBOadxJ
49
+ fx8aFIFX8GD/yDjBgxVxb+fuHMs3mFQpzYp1XXVZneY0r9Ky4W3RrYC2vGtW
50
+ xVV7eTQDCMYihhfA4GIlfALOCe/iU3AX2UaO0AuHh+O08/NS297FBr1H5Pem
51
+ YOSZTjJxh09EVLaE1XVaf34BHPSdgxACAAA=
52
+
53
+ http_version:
54
+ recorded_at: Sat, 09 Jun 2012 11:40:15 GMT
55
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<BASIC_AUTH>@api.github.com/user/orgs?access_token=<TOKEN>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.0.13
23
+ Date:
24
+ - Sat, 09 Jun 2012 11:40:14 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Connection:
28
+ - keep-alive
29
+ Status:
30
+ - 200 OK
31
+ X-Ratelimit-Limit:
32
+ - "5000"
33
+ Etag:
34
+ - "\"d751713988987e9331980363e24189ce\""
35
+ X-Ratelimit-Remaining:
36
+ - "4992"
37
+ Content-Length:
38
+ - "2"
39
+ body:
40
+ encoding: US-ASCII
41
+ string: "[]"
42
+ http_version:
43
+ recorded_at: Sat, 09 Jun 2012 11:40:14 GMT
44
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,104 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<BASIC_AUTH>@api.github.com/user/orgs?access_token=<TOKEN>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.0.13
23
+ Date:
24
+ - Sat, 09 Jun 2012 11:40:14 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Connection:
28
+ - keep-alive
29
+ Status:
30
+ - 200 OK
31
+ X-Ratelimit-Limit:
32
+ - "5000"
33
+ Etag:
34
+ - "\"d751713988987e9331980363e24189ce\""
35
+ X-Ratelimit-Remaining:
36
+ - "4993"
37
+ Content-Length:
38
+ - "2"
39
+ body:
40
+ encoding: US-ASCII
41
+ string: "[]"
42
+ http_version:
43
+ recorded_at: Sat, 09 Jun 2012 11:40:14 GMT
44
+ - request:
45
+ method: get
46
+ uri: https://<BASIC_AUTH>@api.github.com/users/wycats/orgs?access_token=<TOKEN>
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ""
50
+ headers:
51
+ Accept-Encoding:
52
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
53
+ Accept:
54
+ - "*/*"
55
+ User-Agent:
56
+ - Ruby
57
+ response:
58
+ status:
59
+ code: 200
60
+ message: OK
61
+ headers:
62
+ Server:
63
+ - nginx/1.0.13
64
+ Date:
65
+ - Sat, 09 Jun 2012 11:46:00 GMT
66
+ Content-Type:
67
+ - application/json; charset=utf-8
68
+ Transfer-Encoding:
69
+ - chunked
70
+ Connection:
71
+ - keep-alive
72
+ Status:
73
+ - 200 OK
74
+ X-Ratelimit-Limit:
75
+ - "5000"
76
+ Etag:
77
+ - "\"e4c0ca9168a29d6b77a5ebf65285b8e4\""
78
+ X-Ratelimit-Remaining:
79
+ - "4990"
80
+ Content-Encoding:
81
+ - gzip
82
+ body:
83
+ encoding: ASCII-8BIT
84
+ string: !binary |
85
+ H4sIAAAAAAAAA82Wy4rcMBBF/6Uhu5luqar0GgjZ5SdCCCWp1OOZfsV2B0KY
86
+ f48mbbedZbxxwAvBFbKO6qp0v/za8A/uuf12bQ+bp81z31+6p92uk3RtZbtv
87
+ b+o2nY+723CHqmBgFQQQxaMNOedii0SKolD5T/njuAoD+a1s+ZWP3GxP0u+4
88
+ 66Tvtvumf77G91U/wOfmyHvp6mD823z8eG733fZy2m8eNn9vkS/NbJ3d+7xd
89
+ y82hqzObvHkiAHzYHM775lTBbsrbw7/z2qBsQe2YHGIhdCEqmxAAghQFZU3e
90
+ l+9XaX8OwE5pgol40JYgQ4q+JPAqmEimCHOOGpEdByvGqjWRE7eH52vmEdq6
91
+ QBP0XV2C7dlaii6ZxB6JC4oTChnZaquUhzWx22tsTs11NHf1oyM3s/coL+Fm
92
+ CpCKNqZC+vqRMS7F4mLORKGseqP3V27zUGs02pOdoG/aEmIw6KxXRE4DGue8
93
+ q72rWEY2mJK1a1a6rz236R5TM1BbDH7eySZ9CbmXily0SmQoJshOPFBxKoCr
94
+ xaa8Jvle+ng5Dtg+VDfObvYgLmF2JWZwATShB/ba+cBR2CUKzgZY1d8TcLB1
95
+ g2Zy97uyhDaGXMjrP62afBEbBFUttDXEyoVV3ys+RmlfxiamNdVWEybkUV6C
96
+ XeuLiBkiZwxKPEMNKMUIFNKlnuyaxpa/sWv3QTvLJqO8BLtYjTWOKO1rDlPV
97
+ 2M5rBYq0Vzq4Iv8B9iPnfD7di17pDc5yykA/zlpyCLomMkXFKwieYvAYJBhl
98
+ IUqw2iOueQh9c8jSnIeuptEYb/Rk+VFegl1DiRaDmutznaPimta8JCvKWOsi
99
+ rppX+vMrN/mObbH60s+wB3kJNpCyWICLTo5UUMlwPVMoxlsRALNmtaVtXmfp
100
+ VNeHtT4yE/ddf/v6G59sY197DQAA
101
+
102
+ http_version:
103
+ recorded_at: Sat, 09 Jun 2012 11:46:01 GMT
104
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,73 @@
1
+ Feature: Events API
2
+
3
+ Background:
4
+ Given I have "Github::Events" instance
5
+
6
+ Scenario: Public
7
+
8
+ Given I want public resources
9
+ When I make request within a cassette named "events/public"
10
+ Then the response status should be 200
11
+ And the response type should be JSON
12
+ And the response should not be empty
13
+
14
+ Scenario: Repository
15
+
16
+ Given I want repository resources with the following params:
17
+ | user | repo |
18
+ | wycats | thor |
19
+ When I make request within a cassette named "events/repo"
20
+ Then the response status should be 200
21
+ And the response type should be JSON
22
+ And the response should not be empty
23
+
24
+ Scenario: Issue
25
+
26
+ Given I want issue resources with the following params:
27
+ | user | repo |
28
+ | wycats | thor |
29
+ When I make request within a cassette named "events/issue"
30
+ Then the response status should be 200
31
+ And the response type should be JSON
32
+ And the response should not be empty
33
+
34
+ Scenario: Network
35
+
36
+ Given I want network resources with the following params:
37
+ | user | repo |
38
+ | wycats | thor |
39
+ When I make request within a cassette named "events/network"
40
+ Then the response status should be 200
41
+ And the response type should be JSON
42
+ And the response should not be empty
43
+
44
+ Scenario: Organization
45
+
46
+ Given I want org resources with the following params:
47
+ | org |
48
+ | rails |
49
+ When I make request within a cassette named "events/org"
50
+ Then the response status should be 200
51
+ And the response type should be JSON
52
+ And the response should not be empty
53
+
54
+ Scenario: Received
55
+
56
+ Given I want received resources with the following params:
57
+ | user |
58
+ | josevalim |
59
+ When I make request within a cassette named "events/received"
60
+ Then the response status should be 200
61
+ And the response type should be JSON
62
+ And the response should not be empty
63
+
64
+ Scenario: Performed
65
+
66
+ Given I want performed resources with the following params:
67
+ | user |
68
+ | josevalim |
69
+ When I make request within a cassette named "events/performed"
70
+ Then the response status should be 200
71
+ And the response type should be JSON
72
+ And the response should not be empty
73
+