github_api 0.5.4 → 0.6.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/README.md +3 -3
- data/features/cassettes/events/issue.yml +64 -32
- data/features/cassettes/events/network.yml +63 -32
- data/features/cassettes/events/org.yml +61 -31
- data/features/cassettes/events/performed.yml +63 -32
- data/features/cassettes/events/public.yml +61 -31
- data/features/cassettes/events/received.yml +63 -32
- data/features/cassettes/events/repo.yml +63 -32
- data/features/cassettes/gists/comments/all.yml +32 -1
- data/features/cassettes/gists/comments/first.yml +32 -1
- data/features/cassettes/gists/fork.yml +63 -31
- data/features/cassettes/gists/gist.yml +32 -1
- data/features/cassettes/gists/gists/public_all.yml +32 -1
- data/features/cassettes/gists/gists/starred.yml +60 -29
- data/features/cassettes/gists/gists/user_all.yml +87 -1
- data/features/cassettes/gists/star.yml +58 -27
- data/features/cassettes/gists/starred.yml +32 -1
- data/features/cassettes/gists/unstar.yml +54 -25
- data/features/cassettes/git_data/references/all.yml +32 -1
- data/features/cassettes/git_data/references/all_tags.yml +32 -1
- data/features/cassettes/git_data/references/one.yml +32 -1
- data/features/cassettes/issues/create.yml +46 -0
- data/features/cassettes/issues/edit.yml +44 -0
- data/features/cassettes/issues/get.yml +62 -0
- data/features/cassettes/issues/list/repo.yml +251 -0
- data/features/cassettes/issues/list/user.yml +44 -0
- data/features/cassettes/orgs/get.yml +60 -30
- data/features/cassettes/orgs/list/oauth_user.yml +60 -29
- data/features/cassettes/orgs/list/user.yml +87 -57
- data/features/cassettes/pagination/issues/list/first.yml +65 -33
- data/features/cassettes/pagination/issues/list/last.yml +66 -33
- data/features/cassettes/pagination/repos/commits/list.yml +32 -1
- data/features/cassettes/pagination/repos/commits/sha.yml +32 -1
- data/features/cassettes/pagination/repos/diff.yml +32 -1
- data/features/cassettes/pagination/repos/list.yml +32 -1
- data/features/cassettes/pagination/repos/per_page/first.yml +32 -1
- data/features/cassettes/pull_requests/get.yml +120 -0
- data/features/cassettes/pull_requests/list.yml +254 -0
- data/features/cassettes/repos/branches.yml +32 -1
- data/features/cassettes/repos/contents/archive.yml +95 -0
- data/features/cassettes/repos/contents/get.yml +226 -0
- data/features/cassettes/repos/contents/readme.yml +271 -0
- data/features/cassettes/repos/get.yml +61 -31
- data/features/cassettes/repos/languages.yml +61 -30
- data/features/cassettes/repos/list.yml +32 -1
- data/features/cassettes/repos/tags.yml +32 -1
- data/features/cassettes/search/email.yml +99 -0
- data/features/cassettes/search/issues.yml +180 -0
- data/features/cassettes/search/repos.yml +396 -0
- data/features/cassettes/search/users.yml +54 -0
- data/features/cassettes/users/emails/add.yml +61 -30
- data/features/cassettes/users/emails/all.yml +61 -30
- data/features/cassettes/users/get/oauth.yml +61 -0
- data/features/cassettes/users/get/user.yml +62 -0
- data/features/issues.feature +64 -0
- data/features/pull_requests.feature +27 -0
- data/features/repos/contents.feature +35 -0
- data/features/search.feature +48 -0
- data/features/users.feature +23 -0
- data/lib/github_api.rb +1 -0
- data/lib/github_api/api.rb +0 -15
- data/lib/github_api/client.rb +4 -0
- data/lib/github_api/constants.rb +4 -0
- data/lib/github_api/error.rb +1 -0
- data/lib/github_api/error/unknown_value.rb +18 -0
- data/lib/github_api/filter.rb +1 -0
- data/lib/github_api/gists.rb +2 -6
- data/lib/github_api/gists/comments.rb +2 -2
- data/lib/github_api/git_data/blobs.rb +1 -1
- data/lib/github_api/git_data/commits.rb +1 -1
- data/lib/github_api/git_data/references.rb +2 -2
- data/lib/github_api/git_data/tags.rb +1 -1
- data/lib/github_api/git_data/trees.rb +2 -3
- data/lib/github_api/issues.rb +6 -6
- data/lib/github_api/issues/comments.rb +2 -2
- data/lib/github_api/issues/labels.rb +2 -2
- data/lib/github_api/issues/milestones.rb +3 -3
- data/lib/github_api/orgs/teams.rb +4 -4
- data/lib/github_api/params_hash.rb +31 -0
- data/lib/github_api/pull_requests.rb +2 -2
- data/lib/github_api/pull_requests/comments.rb +2 -2
- data/lib/github_api/repos.rb +8 -10
- data/lib/github_api/repos/commits.rb +2 -2
- data/lib/github_api/repos/contents.rb +64 -0
- data/lib/github_api/repos/downloads.rb +1 -1
- data/lib/github_api/repos/hooks.rb +2 -2
- data/lib/github_api/repos/keys.rb +1 -1
- data/lib/github_api/result.rb +8 -0
- data/lib/github_api/search.rb +98 -0
- data/lib/github_api/users.rb +8 -6
- data/lib/github_api/users/emails.rb +2 -2
- data/lib/github_api/validations/format.rb +4 -3
- data/lib/github_api/validations/required.rb +5 -2
- data/lib/github_api/version.rb +2 -2
- data/spec/fixtures/repos/content.json +14 -0
- data/spec/fixtures/repos/readme.json +14 -0
- data/spec/fixtures/search/email.json +22 -0
- data/spec/fixtures/search/issues.json +23 -0
- data/spec/fixtures/search/repositories.json +29 -0
- data/spec/fixtures/search/users.json +24 -0
- data/spec/github/error/unknown_value_spec.rb +21 -0
- data/spec/github/repos/contents_spec.rb +65 -0
- data/spec/github/search_spec.rb +87 -0
- data/spec/github/users_spec.rb +7 -7
- data/spec/github/validations/format_spec.rb +6 -6
- data/spec/github/validations/required_spec.rb +3 -3
- metadata +69 -35
|
@@ -71,4 +71,35 @@ http_interactions:
|
|
|
71
71
|
iQ4d9e4MAAA=
|
|
72
72
|
http_version: !!null
|
|
73
73
|
recorded_at: Mon, 07 May 2012 16:12:17 GMT
|
|
74
|
-
|
|
74
|
+
- request:
|
|
75
|
+
method: get
|
|
76
|
+
uri: https://api.github.com/gists/1738161?access_token=<TOKEN>
|
|
77
|
+
body:
|
|
78
|
+
encoding: US-ASCII
|
|
79
|
+
string: ''
|
|
80
|
+
headers:
|
|
81
|
+
Accept-Encoding:
|
|
82
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
83
|
+
Accept:
|
|
84
|
+
- ! '*/*'
|
|
85
|
+
User-Agent:
|
|
86
|
+
- Ruby
|
|
87
|
+
response:
|
|
88
|
+
status:
|
|
89
|
+
code: 500
|
|
90
|
+
message: Internal Server Error
|
|
91
|
+
headers:
|
|
92
|
+
Server:
|
|
93
|
+
- nginx/1.0.13
|
|
94
|
+
Date:
|
|
95
|
+
- Sat, 09 Jun 2012 14:59:11 GMT
|
|
96
|
+
Transfer-Encoding:
|
|
97
|
+
- chunked
|
|
98
|
+
Connection:
|
|
99
|
+
- keep-alive
|
|
100
|
+
body:
|
|
101
|
+
encoding: US-ASCII
|
|
102
|
+
string: ''
|
|
103
|
+
http_version: !!null
|
|
104
|
+
recorded_at: Sat, 09 Jun 2012 14:59:11 GMT
|
|
105
|
+
recorded_with: VCR 2.2.0
|
|
@@ -82,4 +82,35 @@ http_interactions:
|
|
|
82
82
|
string: ! '[]'
|
|
83
83
|
http_version: !!null
|
|
84
84
|
recorded_at: Wed, 16 May 2012 21:39:39 GMT
|
|
85
|
-
|
|
85
|
+
- request:
|
|
86
|
+
method: get
|
|
87
|
+
uri: https://api.github.com/gists?access_token=<TOKEN>
|
|
88
|
+
body:
|
|
89
|
+
encoding: US-ASCII
|
|
90
|
+
string: ''
|
|
91
|
+
headers:
|
|
92
|
+
Accept-Encoding:
|
|
93
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
94
|
+
Accept:
|
|
95
|
+
- ! '*/*'
|
|
96
|
+
User-Agent:
|
|
97
|
+
- Ruby
|
|
98
|
+
response:
|
|
99
|
+
status:
|
|
100
|
+
code: 500
|
|
101
|
+
message: Internal Server Error
|
|
102
|
+
headers:
|
|
103
|
+
Server:
|
|
104
|
+
- nginx/1.0.13
|
|
105
|
+
Date:
|
|
106
|
+
- Sat, 09 Jun 2012 14:59:09 GMT
|
|
107
|
+
Transfer-Encoding:
|
|
108
|
+
- chunked
|
|
109
|
+
Connection:
|
|
110
|
+
- keep-alive
|
|
111
|
+
body:
|
|
112
|
+
encoding: US-ASCII
|
|
113
|
+
string: ''
|
|
114
|
+
http_version: !!null
|
|
115
|
+
recorded_at: Sat, 09 Jun 2012 14:59:09 GMT
|
|
116
|
+
recorded_with: VCR 2.2.0
|
|
@@ -1,44 +1,75 @@
|
|
|
1
|
-
---
|
|
2
|
-
http_interactions:
|
|
3
|
-
- request:
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
4
|
method: get
|
|
5
5
|
uri: https://<BASIC_AUTH>@api.github.com/gists/starred?access_token=<TOKEN>
|
|
6
|
-
body:
|
|
6
|
+
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
|
-
string:
|
|
9
|
-
headers:
|
|
10
|
-
Accept-Encoding:
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
11
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
-
Accept:
|
|
13
|
-
-
|
|
14
|
-
User-Agent:
|
|
12
|
+
Accept:
|
|
13
|
+
- ! '*/*'
|
|
14
|
+
User-Agent:
|
|
15
15
|
- Ruby
|
|
16
|
-
response:
|
|
17
|
-
status:
|
|
16
|
+
response:
|
|
17
|
+
status:
|
|
18
18
|
code: 200
|
|
19
19
|
message: OK
|
|
20
|
-
headers:
|
|
21
|
-
Server:
|
|
20
|
+
headers:
|
|
21
|
+
Server:
|
|
22
22
|
- nginx/1.0.13
|
|
23
|
-
Date:
|
|
23
|
+
Date:
|
|
24
24
|
- Sat, 09 Jun 2012 09:34:51 GMT
|
|
25
|
-
Content-Type:
|
|
25
|
+
Content-Type:
|
|
26
26
|
- application/json; charset=utf-8
|
|
27
|
-
Connection:
|
|
27
|
+
Connection:
|
|
28
28
|
- keep-alive
|
|
29
|
-
Status:
|
|
29
|
+
Status:
|
|
30
30
|
- 200 OK
|
|
31
|
-
X-Ratelimit-Limit:
|
|
32
|
-
-
|
|
33
|
-
Etag:
|
|
34
|
-
- "
|
|
35
|
-
X-Ratelimit-Remaining:
|
|
36
|
-
-
|
|
37
|
-
Content-Length:
|
|
38
|
-
-
|
|
39
|
-
body:
|
|
31
|
+
X-Ratelimit-Limit:
|
|
32
|
+
- '5000'
|
|
33
|
+
Etag:
|
|
34
|
+
- ! '"d751713988987e9331980363e24189ce"'
|
|
35
|
+
X-Ratelimit-Remaining:
|
|
36
|
+
- '4999'
|
|
37
|
+
Content-Length:
|
|
38
|
+
- '2'
|
|
39
|
+
body:
|
|
40
40
|
encoding: US-ASCII
|
|
41
|
-
string:
|
|
42
|
-
http_version:
|
|
41
|
+
string: ! '[]'
|
|
42
|
+
http_version: !!null
|
|
43
43
|
recorded_at: Sat, 09 Jun 2012 09:34:51 GMT
|
|
44
|
+
- request:
|
|
45
|
+
method: get
|
|
46
|
+
uri: https://api.github.com/gists/starred?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: 500
|
|
60
|
+
message: Internal Server Error
|
|
61
|
+
headers:
|
|
62
|
+
Server:
|
|
63
|
+
- nginx/1.0.13
|
|
64
|
+
Date:
|
|
65
|
+
- Sat, 09 Jun 2012 14:59:10 GMT
|
|
66
|
+
Transfer-Encoding:
|
|
67
|
+
- chunked
|
|
68
|
+
Connection:
|
|
69
|
+
- keep-alive
|
|
70
|
+
body:
|
|
71
|
+
encoding: US-ASCII
|
|
72
|
+
string: ''
|
|
73
|
+
http_version: !!null
|
|
74
|
+
recorded_at: Sat, 09 Jun 2012 14:59:10 GMT
|
|
44
75
|
recorded_with: VCR 2.2.0
|
|
@@ -54,4 +54,90 @@ http_interactions:
|
|
|
54
54
|
C3kYQ7GgAwAA
|
|
55
55
|
http_version: !!null
|
|
56
56
|
recorded_at: Mon, 07 May 2012 16:12:16 GMT
|
|
57
|
-
|
|
57
|
+
- request:
|
|
58
|
+
method: get
|
|
59
|
+
uri: https://api.github.com/users/peter-murach/gists?access_token=<TOKEN>
|
|
60
|
+
body:
|
|
61
|
+
encoding: US-ASCII
|
|
62
|
+
string: ''
|
|
63
|
+
headers:
|
|
64
|
+
Accept-Encoding:
|
|
65
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
66
|
+
Accept:
|
|
67
|
+
- ! '*/*'
|
|
68
|
+
User-Agent:
|
|
69
|
+
- Ruby
|
|
70
|
+
response:
|
|
71
|
+
status:
|
|
72
|
+
code: 500
|
|
73
|
+
message: Internal Server Error
|
|
74
|
+
headers:
|
|
75
|
+
Server:
|
|
76
|
+
- nginx/1.0.13
|
|
77
|
+
Date:
|
|
78
|
+
- Sat, 09 Jun 2012 14:59:08 GMT
|
|
79
|
+
Transfer-Encoding:
|
|
80
|
+
- chunked
|
|
81
|
+
Connection:
|
|
82
|
+
- keep-alive
|
|
83
|
+
body:
|
|
84
|
+
encoding: US-ASCII
|
|
85
|
+
string: ''
|
|
86
|
+
http_version: !!null
|
|
87
|
+
recorded_at: Sat, 09 Jun 2012 14:59:09 GMT
|
|
88
|
+
- request:
|
|
89
|
+
method: get
|
|
90
|
+
uri: https://<BASIC_AUTH>@api.github.com/gists?access_token=<TOKEN>
|
|
91
|
+
body:
|
|
92
|
+
encoding: US-ASCII
|
|
93
|
+
string: ''
|
|
94
|
+
headers:
|
|
95
|
+
Accept-Encoding:
|
|
96
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
97
|
+
Accept:
|
|
98
|
+
- ! '*/*'
|
|
99
|
+
User-Agent:
|
|
100
|
+
- Ruby
|
|
101
|
+
response:
|
|
102
|
+
status:
|
|
103
|
+
code: 200
|
|
104
|
+
message: OK
|
|
105
|
+
headers:
|
|
106
|
+
Server:
|
|
107
|
+
- nginx/1.0.13
|
|
108
|
+
Date:
|
|
109
|
+
- Tue, 12 Jun 2012 13:28:55 GMT
|
|
110
|
+
Content-Type:
|
|
111
|
+
- application/json; charset=utf-8
|
|
112
|
+
Transfer-Encoding:
|
|
113
|
+
- chunked
|
|
114
|
+
Connection:
|
|
115
|
+
- keep-alive
|
|
116
|
+
Status:
|
|
117
|
+
- 200 OK
|
|
118
|
+
X-Ratelimit-Limit:
|
|
119
|
+
- '5000'
|
|
120
|
+
Etag:
|
|
121
|
+
- ! '"095ae959b7e2dcc66b9eca382124b3e7"'
|
|
122
|
+
X-Ratelimit-Remaining:
|
|
123
|
+
- '4999'
|
|
124
|
+
Content-Encoding:
|
|
125
|
+
- gzip
|
|
126
|
+
body:
|
|
127
|
+
encoding: ASCII-8BIT
|
|
128
|
+
string: !binary |-
|
|
129
|
+
H4sIAAAAAAAAA4VTu47TQBT9FcsSXWLPjB2vbQkBDR0SBRUIRdeesTOKX5oZ
|
|
130
|
+
EyBKYdplRUu3WhoQK622pYGPsVYLf8F1NkYJEqSx5nHOnHvP8X2xthemLOat
|
|
131
|
+
KuwYl6bRsevmUhsnl2bRJk5aly6LCAkItSc2Hs6bVi92BNw+/Asc78ADHwmt
|
|
132
|
+
FsqO13au4BUYUHPJUSgkaZKSLA1S4nHfy/xoljDPZ4lHM+FngMSizmWF0LJV
|
|
133
|
+
Yon7Hf2wUC1SvHbGx7fF3gHdYxIP+P2xXWB+6AgHllCCdCphXNBaGL1nwT32
|
|
134
|
+
WJaQC42LUW1/PaU+cZoqHzo+sBIaue/kYId2x54GLyhjHp0Fm4mdyULorVdo
|
|
135
|
+
/7ChTomAtW3eNAKdMOK1cZsC0JaJrWB1JDREjMG5UeLT0McvD0/A5wRSj3nh
|
|
136
|
+
jHoi4ox7ERDOgzDJtsn/kcYQoMpbbBvVn4Ba8no1aGv5Fk/o7CS8K7qCckAc
|
|
137
|
+
cDfYEBc6VbIxsh6CRHdlBUpauSitvvtsmZU0Rijr16cvfXdlPWpN/RS1FL6O
|
|
138
|
+
9+9vry9uzj723eXN1fnth+/I6Luz/t0pYvvu9OfXH333re/OsZ5UCTCCz8Gg
|
|
139
|
+
DCOUTUkwJdEzSmMaxcR/jpimTQqZ2rFRrcCMGn6U8d8ch1713lzgj1eKymB8
|
|
140
|
+
ZBySYpwqHIR/z9RuTLZTMY7Z5uVvnUEbA5cDAAA=
|
|
141
|
+
http_version: !!null
|
|
142
|
+
recorded_at: Tue, 12 Jun 2012 13:28:55 GMT
|
|
143
|
+
recorded_with: VCR 2.2.0
|
|
@@ -1,40 +1,71 @@
|
|
|
1
|
-
---
|
|
2
|
-
http_interactions:
|
|
3
|
-
- request:
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
4
|
method: put
|
|
5
5
|
uri: https://<BASIC_AUTH>@api.github.com/gists/2900588/star?access_token=<TOKEN>
|
|
6
|
-
body:
|
|
6
|
+
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
|
-
string:
|
|
9
|
-
headers:
|
|
10
|
-
Content-Length:
|
|
11
|
-
-
|
|
12
|
-
Accept:
|
|
13
|
-
-
|
|
14
|
-
User-Agent:
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Content-Length:
|
|
11
|
+
- '0'
|
|
12
|
+
Accept:
|
|
13
|
+
- ! '*/*'
|
|
14
|
+
User-Agent:
|
|
15
15
|
- Ruby
|
|
16
|
-
response:
|
|
17
|
-
status:
|
|
16
|
+
response:
|
|
17
|
+
status:
|
|
18
18
|
code: 204
|
|
19
19
|
message: No Content
|
|
20
|
-
headers:
|
|
21
|
-
Server:
|
|
20
|
+
headers:
|
|
21
|
+
Server:
|
|
22
22
|
- nginx/1.0.13
|
|
23
|
-
Date:
|
|
23
|
+
Date:
|
|
24
24
|
- Sat, 09 Jun 2012 11:16:47 GMT
|
|
25
|
-
Connection:
|
|
25
|
+
Connection:
|
|
26
26
|
- keep-alive
|
|
27
|
-
Status:
|
|
27
|
+
Status:
|
|
28
28
|
- 204 No Content
|
|
29
|
-
X-Ratelimit-Limit:
|
|
30
|
-
-
|
|
31
|
-
Etag:
|
|
32
|
-
- "
|
|
33
|
-
X-Ratelimit-Remaining:
|
|
34
|
-
-
|
|
35
|
-
body:
|
|
29
|
+
X-Ratelimit-Limit:
|
|
30
|
+
- '5000'
|
|
31
|
+
Etag:
|
|
32
|
+
- ! '"d41d8cd98f00b204e9800998ecf8427e"'
|
|
33
|
+
X-Ratelimit-Remaining:
|
|
34
|
+
- '4999'
|
|
35
|
+
body:
|
|
36
36
|
encoding: US-ASCII
|
|
37
|
-
string:
|
|
38
|
-
http_version:
|
|
37
|
+
string: ''
|
|
38
|
+
http_version: !!null
|
|
39
39
|
recorded_at: Sat, 09 Jun 2012 11:16:47 GMT
|
|
40
|
+
- request:
|
|
41
|
+
method: put
|
|
42
|
+
uri: https://api.github.com/gists/2900588/star?access_token=<TOKEN>
|
|
43
|
+
body:
|
|
44
|
+
encoding: US-ASCII
|
|
45
|
+
string: ''
|
|
46
|
+
headers:
|
|
47
|
+
Content-Length:
|
|
48
|
+
- '0'
|
|
49
|
+
Accept:
|
|
50
|
+
- ! '*/*'
|
|
51
|
+
User-Agent:
|
|
52
|
+
- Ruby
|
|
53
|
+
response:
|
|
54
|
+
status:
|
|
55
|
+
code: 500
|
|
56
|
+
message: Internal Server Error
|
|
57
|
+
headers:
|
|
58
|
+
Server:
|
|
59
|
+
- nginx/1.0.13
|
|
60
|
+
Date:
|
|
61
|
+
- Sat, 09 Jun 2012 14:59:12 GMT
|
|
62
|
+
Transfer-Encoding:
|
|
63
|
+
- chunked
|
|
64
|
+
Connection:
|
|
65
|
+
- keep-alive
|
|
66
|
+
body:
|
|
67
|
+
encoding: US-ASCII
|
|
68
|
+
string: ''
|
|
69
|
+
http_version: !!null
|
|
70
|
+
recorded_at: Sat, 09 Jun 2012 14:59:12 GMT
|
|
40
71
|
recorded_with: VCR 2.2.0
|
|
@@ -41,4 +41,35 @@ http_interactions:
|
|
|
41
41
|
string: ! '{}'
|
|
42
42
|
http_version: !!null
|
|
43
43
|
recorded_at: Mon, 07 May 2012 16:12:18 GMT
|
|
44
|
-
|
|
44
|
+
- request:
|
|
45
|
+
method: get
|
|
46
|
+
uri: https://api.github.com/gists/1738161/star?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: 500
|
|
60
|
+
message: Internal Server Error
|
|
61
|
+
headers:
|
|
62
|
+
Server:
|
|
63
|
+
- nginx/1.0.13
|
|
64
|
+
Date:
|
|
65
|
+
- Sat, 09 Jun 2012 14:59:11 GMT
|
|
66
|
+
Transfer-Encoding:
|
|
67
|
+
- chunked
|
|
68
|
+
Connection:
|
|
69
|
+
- keep-alive
|
|
70
|
+
body:
|
|
71
|
+
encoding: US-ASCII
|
|
72
|
+
string: ''
|
|
73
|
+
http_version: !!null
|
|
74
|
+
recorded_at: Sat, 09 Jun 2012 14:59:11 GMT
|
|
75
|
+
recorded_with: VCR 2.2.0
|
|
@@ -1,38 +1,67 @@
|
|
|
1
|
-
---
|
|
2
|
-
http_interactions:
|
|
3
|
-
- request:
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
4
|
method: delete
|
|
5
5
|
uri: https://<BASIC_AUTH>@api.github.com/gists/2900588/star?access_token=<TOKEN>
|
|
6
|
-
body:
|
|
6
|
+
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
|
-
string:
|
|
9
|
-
headers:
|
|
10
|
-
Accept:
|
|
11
|
-
-
|
|
12
|
-
User-Agent:
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Accept:
|
|
11
|
+
- ! '*/*'
|
|
12
|
+
User-Agent:
|
|
13
13
|
- Ruby
|
|
14
|
-
response:
|
|
15
|
-
status:
|
|
14
|
+
response:
|
|
15
|
+
status:
|
|
16
16
|
code: 204
|
|
17
17
|
message: No Content
|
|
18
|
-
headers:
|
|
19
|
-
Server:
|
|
18
|
+
headers:
|
|
19
|
+
Server:
|
|
20
20
|
- nginx/1.0.13
|
|
21
|
-
Date:
|
|
21
|
+
Date:
|
|
22
22
|
- Sat, 09 Jun 2012 11:17:39 GMT
|
|
23
|
-
Connection:
|
|
23
|
+
Connection:
|
|
24
24
|
- keep-alive
|
|
25
|
-
Status:
|
|
25
|
+
Status:
|
|
26
26
|
- 204 No Content
|
|
27
|
-
X-Ratelimit-Limit:
|
|
28
|
-
-
|
|
29
|
-
Etag:
|
|
30
|
-
- "
|
|
31
|
-
X-Ratelimit-Remaining:
|
|
32
|
-
-
|
|
33
|
-
body:
|
|
27
|
+
X-Ratelimit-Limit:
|
|
28
|
+
- '5000'
|
|
29
|
+
Etag:
|
|
30
|
+
- ! '"d41d8cd98f00b204e9800998ecf8427e"'
|
|
31
|
+
X-Ratelimit-Remaining:
|
|
32
|
+
- '4998'
|
|
33
|
+
body:
|
|
34
34
|
encoding: US-ASCII
|
|
35
|
-
string:
|
|
36
|
-
http_version:
|
|
35
|
+
string: ''
|
|
36
|
+
http_version: !!null
|
|
37
37
|
recorded_at: Sat, 09 Jun 2012 11:17:39 GMT
|
|
38
|
+
- request:
|
|
39
|
+
method: delete
|
|
40
|
+
uri: https://api.github.com/gists/2900588/star?access_token=<TOKEN>
|
|
41
|
+
body:
|
|
42
|
+
encoding: US-ASCII
|
|
43
|
+
string: ''
|
|
44
|
+
headers:
|
|
45
|
+
Accept:
|
|
46
|
+
- ! '*/*'
|
|
47
|
+
User-Agent:
|
|
48
|
+
- Ruby
|
|
49
|
+
response:
|
|
50
|
+
status:
|
|
51
|
+
code: 500
|
|
52
|
+
message: Internal Server Error
|
|
53
|
+
headers:
|
|
54
|
+
Server:
|
|
55
|
+
- nginx/1.0.13
|
|
56
|
+
Date:
|
|
57
|
+
- Sat, 09 Jun 2012 14:59:13 GMT
|
|
58
|
+
Transfer-Encoding:
|
|
59
|
+
- chunked
|
|
60
|
+
Connection:
|
|
61
|
+
- keep-alive
|
|
62
|
+
body:
|
|
63
|
+
encoding: US-ASCII
|
|
64
|
+
string: ''
|
|
65
|
+
http_version: !!null
|
|
66
|
+
recorded_at: Sat, 09 Jun 2012 14:59:13 GMT
|
|
38
67
|
recorded_with: VCR 2.2.0
|