github_api 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +20 -1
- data/features/cassettes/issues/events/get.yml +139 -0
- data/features/cassettes/issues/events/list_issue.yml +71 -0
- data/features/cassettes/issues/events/list_repo.yml +222 -0
- data/features/cassettes/issues/labels/list_repo.yml +65 -0
- data/features/cassettes/issues/milestones/create.yml +55 -0
- data/features/cassettes/issues/milestones/delete.yml +46 -0
- data/features/cassettes/issues/milestones/get.yml +175 -0
- data/features/cassettes/issues/milestones/list.yml +54 -0
- data/features/cassettes/issues/milestones/update.yml +53 -0
- data/features/cassettes/repos/contents/archive.yml +43 -84
- data/features/cassettes/say/custom.yml +60 -0
- data/features/cassettes/say/random.yml +60 -0
- data/features/issues/events.feature +38 -0
- data/features/issues/labels.feature +14 -0
- data/features/issues/milestones.feature +62 -0
- data/features/say.feature +68 -0
- data/features/step_definitions/common_steps.rb +6 -0
- data/features/support/helpers.rb +4 -0
- data/lib/github_api.rb +2 -0
- data/lib/github_api/client.rb +8 -0
- data/lib/github_api/constants.rb +4 -0
- data/lib/github_api/issues.rb +74 -46
- data/lib/github_api/issues/assignees.rb +2 -1
- data/lib/github_api/issues/events.rb +3 -3
- data/lib/github_api/issues/milestones.rb +0 -1
- data/lib/github_api/rate_limit.rb +2 -0
- data/lib/github_api/result.rb +13 -0
- data/lib/github_api/say.rb +24 -0
- data/lib/github_api/scopes.rb +19 -0
- data/lib/github_api/version.rb +1 -1
- data/spec/github/git_data/git_data_spec.rb +19 -0
- data/spec/github/issues/assignees/check_spec.rb +46 -0
- data/spec/github/issues/assignees/list_spec.rb +47 -0
- data/spec/github/issues/assignees_spec.rb +0 -96
- data/spec/github/issues/create_spec.rb +60 -0
- data/spec/github/issues/edit_spec.rb +61 -0
- data/spec/github/issues/events_spec.rb +4 -4
- data/spec/github/issues/get_spec.rb +49 -0
- data/spec/github/issues/issues_spec.rb +19 -0
- data/spec/github/issues/list_spec.rb +90 -0
- data/spec/github/issues/milestones/create_spec.rb +56 -0
- data/spec/github/issues/milestones/delete_spec.rb +42 -0
- data/spec/github/issues/milestones/get_spec.rb +49 -0
- data/spec/github/issues/milestones/list_spec.rb +52 -0
- data/spec/github/issues/milestones/update_spec.rb +57 -0
- data/spec/github/issues/milestones_spec.rb +1 -276
- data/spec/github/scopes/list_spec.rb +33 -0
- data/spec/github/users/followers/follow_spec.rb +33 -0
- data/spec/github/users/followers/following_spec.rb +65 -0
- data/spec/github/users/followers/is_following_spec.rb +41 -0
- data/spec/github/users/followers/list_spec.rb +2 -8
- data/spec/github/users/followers/unfollow_spec.rb +33 -0
- data/spec/github/users/users_spec.rb +16 -0
- metadata +68 -35
- data/spec/github/git_data_spec.rb +0 -11
- data/spec/github/issues_spec.rb +0 -284
- data/spec/github/users/followers_spec.rb +0 -172
@@ -0,0 +1,65 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<BASIC_AUTH>@api.github.com/repos/peter-murach/github/labels?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.2
|
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
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Sat, 15 Dec 2012 12:43:11 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
|
+
Cache-Control:
|
38
|
+
- private, s-maxage=60, max-age=60
|
39
|
+
Last-Modified:
|
40
|
+
- Sat, 20 Oct 2007 11:24:19 GMT
|
41
|
+
X-Ratelimit-Remaining:
|
42
|
+
- '4990'
|
43
|
+
X-Content-Type-Options:
|
44
|
+
- nosniff
|
45
|
+
X-Github-Media-Type:
|
46
|
+
- github.beta
|
47
|
+
Vary:
|
48
|
+
- Accept, Authorization, Cookie
|
49
|
+
X-Ratelimit-Limit:
|
50
|
+
- '5000'
|
51
|
+
Etag:
|
52
|
+
- ! '"0d778a9f16bc19ee0d6b595ded84761d"'
|
53
|
+
Content-Encoding:
|
54
|
+
- gzip
|
55
|
+
body:
|
56
|
+
encoding: ASCII-8BIT
|
57
|
+
string: !binary |-
|
58
|
+
H4sIAAAAAAAAA62QOwvCQBCE/4pca8wmQVBSWgh2FnZicbmsuYN7cY9K8t/N
|
59
|
+
g3DBNm43szAfM88PYUYaR2pSVO0JS5KR6OQgeQjW1wDUirwTgccmZ0aBQ2s8
|
60
|
+
WAzoDio6yjjMX5C0QenhijREh0OOpgqHoMXos8TCsmBFtZl1iV3ijGLNOE63
|
61
|
+
mfFAH/xeCe+FXtEme7fYa+644h+63fTbpHKT+lmwas+b291pYDxhZtm/viyZ
|
62
|
+
GL8XAgAA
|
63
|
+
http_version: !!null
|
64
|
+
recorded_at: Sat, 15 Dec 2012 12:43:11 GMT
|
65
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<BASIC_AUTH>@api.github.com/repos/<USER>/github_api_test/milestones?access_token=<TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"title":"fix-all","state":"open","description":"fixing all issues"}'
|
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.2
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 201
|
21
|
+
message: Created
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Sat, 15 Dec 2012 11:52:52 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- 201 Created
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
X-Ratelimit-Remaining:
|
36
|
+
- '4999'
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '5000'
|
39
|
+
X-Github-Media-Type:
|
40
|
+
- github.beta
|
41
|
+
Etag:
|
42
|
+
- ! '"8099333efac8fa9ec10b1adfece9b63a"'
|
43
|
+
Location:
|
44
|
+
- https://api.github.com/repos/<USER>/github_api_test/milestones/1
|
45
|
+
Cache-Control:
|
46
|
+
- max-age=0, private, must-revalidate
|
47
|
+
Content-Length:
|
48
|
+
- '1249'
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! '{"state":"open","labels_url":"https://api.github.com/repos/<USER>/github_api_test/milestones/1/labels","url":"https://api.github.com/repos/<USER>/github_api_test/milestones/1","due_on":null,"creator":{"type":"User","gists_url":"https://api.github.com/users/<USER>/gists{/gist_id}","organizations_url":"https://api.github.com/users/<USER>/orgs","url":"https://api.github.com/users/<USER>","gravatar_id":"80cbc0fc6c03d43f495b2342b31fe4fa","followers_url":"https://api.github.com/users/<USER>/followers","following_url":"https://api.github.com/users/<USER>/following","login":"<USER>","events_url":"https://api.github.com/users/<USER>/events{/privacy}","subscriptions_url":"https://api.github.com/users/<USER>/subscriptions","repos_url":"https://api.github.com/users/<USER>/repos","avatar_url":"https://secure.gravatar.com/avatar/80cbc0fc6c03d43f495b2342b31fe4fa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png","starred_url":"https://api.github.com/users/<USER>/starred{/owner}{/repo}","id":1223156,"received_events_url":"https://api.github.com/users/<USER>/received_events"},"open_issues":0,"created_at":"2012-12-15T11:52:52Z","closed_issues":0,"title":"fix-all","number":1,"id":230459,"description":"fixing
|
52
|
+
all issues"}'
|
53
|
+
http_version: !!null
|
54
|
+
recorded_at: Sat, 15 Dec 2012 11:52:52 GMT
|
55
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: https://<BASIC_AUTH>@api.github.com/repos/<USER>/github_api_test/milestones/1?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.2
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 204
|
21
|
+
message: No Content
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Sat, 15 Dec 2012 12:06:25 GMT
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Status:
|
30
|
+
- 204 No Content
|
31
|
+
X-Content-Type-Options:
|
32
|
+
- nosniff
|
33
|
+
X-Ratelimit-Remaining:
|
34
|
+
- '4997'
|
35
|
+
X-Ratelimit-Limit:
|
36
|
+
- '5000'
|
37
|
+
X-Github-Media-Type:
|
38
|
+
- github.beta
|
39
|
+
Cache-Control:
|
40
|
+
- ''
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ''
|
44
|
+
http_version: !!null
|
45
|
+
recorded_at: Sat, 15 Dec 2012 12:06:26 GMT
|
46
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,175 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<BASIC_AUTH>@api.github.com/repos/josevalim/devise/milestones/2?access_token=<TOKEN>&state=closed
|
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.2
|
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
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Thu, 13 Dec 2012 23:13:20 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-Github-Media-Type:
|
38
|
+
- github.beta
|
39
|
+
X-Content-Type-Options:
|
40
|
+
- nosniff
|
41
|
+
X-Ratelimit-Remaining:
|
42
|
+
- '4998'
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '5000'
|
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: Thu, 13 Dec 2012 23:13:20 GMT
|
55
|
+
- request:
|
56
|
+
method: get
|
57
|
+
uri: https://<BASIC_AUTH>@api.github.com/repos/peter-murach/github/milestones/1?access_token=<TOKEN>&state=open
|
58
|
+
body:
|
59
|
+
encoding: US-ASCII
|
60
|
+
string: ''
|
61
|
+
headers:
|
62
|
+
Accept:
|
63
|
+
- application/jsonapplication/vnd.github+json;q=0.7application/vnd.github.v3.raw+json;q=0.5application/vnd.github.beta.raw+json;q=0.1
|
64
|
+
Accept-Charset:
|
65
|
+
- utf-8
|
66
|
+
User-Agent:
|
67
|
+
- Github Ruby Gem 0.8.2
|
68
|
+
Content-Type:
|
69
|
+
- application/json
|
70
|
+
Accept-Encoding:
|
71
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 404
|
75
|
+
message: Not Found
|
76
|
+
headers:
|
77
|
+
Server:
|
78
|
+
- nginx
|
79
|
+
Date:
|
80
|
+
- Thu, 13 Dec 2012 23:14:58 GMT
|
81
|
+
Content-Type:
|
82
|
+
- application/json; charset=utf-8
|
83
|
+
Transfer-Encoding:
|
84
|
+
- chunked
|
85
|
+
Connection:
|
86
|
+
- keep-alive
|
87
|
+
Status:
|
88
|
+
- 404 Not Found
|
89
|
+
X-Content-Type-Options:
|
90
|
+
- nosniff
|
91
|
+
X-Ratelimit-Limit:
|
92
|
+
- '5000'
|
93
|
+
X-Ratelimit-Remaining:
|
94
|
+
- '4997'
|
95
|
+
X-Github-Media-Type:
|
96
|
+
- github.beta
|
97
|
+
Cache-Control:
|
98
|
+
- ''
|
99
|
+
Content-Encoding:
|
100
|
+
- gzip
|
101
|
+
body:
|
102
|
+
encoding: ASCII-8BIT
|
103
|
+
string: !binary |-
|
104
|
+
H4sIAAAAAAAAA6tWyk0tLk5MT1WyUvLLL1Fwyy/NS1GqBQB8+Ys1FwAAAA==
|
105
|
+
http_version: !!null
|
106
|
+
recorded_at: Thu, 13 Dec 2012 23:14:58 GMT
|
107
|
+
- request:
|
108
|
+
method: get
|
109
|
+
uri: https://<BASIC_AUTH>@api.github.com/repos/josh/rails-behaviors/milestones/1?access_token=<TOKEN>&state=closed
|
110
|
+
body:
|
111
|
+
encoding: US-ASCII
|
112
|
+
string: ''
|
113
|
+
headers:
|
114
|
+
Accept:
|
115
|
+
- application/jsonapplication/vnd.github+json;q=0.7application/vnd.github.v3.raw+json;q=0.5application/vnd.github.beta.raw+json;q=0.1
|
116
|
+
Accept-Charset:
|
117
|
+
- utf-8
|
118
|
+
User-Agent:
|
119
|
+
- Github Ruby Gem 0.8.2
|
120
|
+
Content-Type:
|
121
|
+
- application/json
|
122
|
+
Accept-Encoding:
|
123
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
124
|
+
response:
|
125
|
+
status:
|
126
|
+
code: 200
|
127
|
+
message: OK
|
128
|
+
headers:
|
129
|
+
Server:
|
130
|
+
- nginx
|
131
|
+
Date:
|
132
|
+
- Thu, 13 Dec 2012 23:16:10 GMT
|
133
|
+
Content-Type:
|
134
|
+
- application/json; charset=utf-8
|
135
|
+
Transfer-Encoding:
|
136
|
+
- chunked
|
137
|
+
Connection:
|
138
|
+
- keep-alive
|
139
|
+
Status:
|
140
|
+
- 200 OK
|
141
|
+
Etag:
|
142
|
+
- ! '"1780d97b2b4b8ee30ca4e0e03f951d77"'
|
143
|
+
X-Content-Type-Options:
|
144
|
+
- nosniff
|
145
|
+
X-Ratelimit-Remaining:
|
146
|
+
- '4996'
|
147
|
+
Cache-Control:
|
148
|
+
- private, max-age=60, s-maxage=60
|
149
|
+
X-Ratelimit-Limit:
|
150
|
+
- '5000'
|
151
|
+
Vary:
|
152
|
+
- Accept, Authorization, Cookie
|
153
|
+
Last-Modified:
|
154
|
+
- Thu, 13 Dec 2012 18:40:01 GMT
|
155
|
+
X-Github-Media-Type:
|
156
|
+
- github.beta
|
157
|
+
Content-Encoding:
|
158
|
+
- gzip
|
159
|
+
body:
|
160
|
+
encoding: ASCII-8BIT
|
161
|
+
string: !binary |-
|
162
|
+
H4sIAAAAAAAAA5VUwY6bMBD9F0u9BWyTkLBIVW/7BbuXXpCBCXFrMPIYVlvE
|
163
|
+
v3cMSbTbQ5dISFie98aeN288scqB8lAXyrOcJULKSIooeXqRT3myz/fZT7Zb
|
164
|
+
MdaxfGL+vQcCviI4CjioQI/EhhE6j8XgDAUv3veYc656HTfaX4YyrmzLB+Ig
|
165
|
+
/2Xxwv/hUaazNca+EWBzjjvjztZd8yCbGMRunBqVV67QNd2+LCGtq6yuzskh
|
166
|
+
O4ljmqSqPB3Ph6PM0jQRRMChxMrp3mvbbb/wJxZl2SgWIR9Ud4VPvHd6VNX7
|
167
|
+
HErU+EB7FvTEw480CXwHvd1e6YIm1lXWz4UiVIOD+Cb6Yo0VyL+S/kf9/e4t
|
168
|
+
ak4MsfqtWqXjDjxXiODxg+G+Jc+6VQ0gLW6nfVxHwZDRIRFxv9ggdF/uTztm
|
169
|
+
bKM7ckKwKu1b16hO/1GPdZtYQQIkXzkakI3N5lf8xO1bB26eaFR6O7N5x7z2
|
170
|
+
JoyeiCXl7Ya2pBHM5Y7VcDcjhSn237OW3lynUGmDUQkXNWpLo9lqA+htB8jD
|
171
|
+
EbaHrtCIAyDLBb0CxiJVctvJluJ8uNIaIUo9QGGDdOtDIiORvIhTLgR94SEJ
|
172
|
+
EqdSHIhrVAnmC0ttvCtfc7H5L+Xt5/7OBAAA
|
173
|
+
http_version: !!null
|
174
|
+
recorded_at: Thu, 13 Dec 2012 23:16:10 GMT
|
175
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<BASIC_AUTH>@api.github.com/repos/peter-murach/github/milestones?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.2
|
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
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Thu, 13 Dec 2012 23:06:17 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
X-Content-Type-Options:
|
36
|
+
- nosniff
|
37
|
+
X-Ratelimit-Limit:
|
38
|
+
- '5000'
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '4999'
|
41
|
+
Content-Length:
|
42
|
+
- '2'
|
43
|
+
X-Github-Media-Type:
|
44
|
+
- github.beta
|
45
|
+
Cache-Control:
|
46
|
+
- max-age=0, private, must-revalidate
|
47
|
+
Etag:
|
48
|
+
- ! '"d751713988987e9331980363e24189ce"'
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! '[]'
|
52
|
+
http_version: !!null
|
53
|
+
recorded_at: Thu, 13 Dec 2012 23:06:17 GMT
|
54
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: patch
|
5
|
+
uri: https://<BASIC_AUTH>@api.github.com/repos/<USER>/github_api_test/milestones/1?access_token=<TOKEN>
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"state":"closed"}'
|
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.2
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Sat, 15 Dec 2012 12:02:08 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
X-Ratelimit-Remaining:
|
34
|
+
- '4998'
|
35
|
+
X-Ratelimit-Limit:
|
36
|
+
- '5000'
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0, private, must-revalidate
|
39
|
+
Etag:
|
40
|
+
- ! '"ae207bf21af972a4038be37b63dc5051"'
|
41
|
+
Content-Length:
|
42
|
+
- '1251'
|
43
|
+
X-Github-Media-Type:
|
44
|
+
- github.beta
|
45
|
+
X-Content-Type-Options:
|
46
|
+
- nosniff
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ! '{"state":"closed","labels_url":"https://api.github.com/repos/<USER>/github_api_test/milestones/1/labels","url":"https://api.github.com/repos/<USER>/github_api_test/milestones/1","due_on":null,"creator":{"type":"User","events_url":"https://api.github.com/users/<USER>/events{/privacy}","gists_url":"https://api.github.com/users/<USER>/gists{/gist_id}","received_events_url":"https://api.github.com/users/<USER>/received_events","organizations_url":"https://api.github.com/users/<USER>/orgs","url":"https://api.github.com/users/<USER>","gravatar_id":"80cbc0fc6c03d43f495b2342b31fe4fa","followers_url":"https://api.github.com/users/<USER>/followers","following_url":"https://api.github.com/users/<USER>/following","login":"<USER>","subscriptions_url":"https://api.github.com/users/<USER>/subscriptions","starred_url":"https://api.github.com/users/<USER>/starred{/owner}{/repo}","repos_url":"https://api.github.com/users/<USER>/repos","avatar_url":"https://secure.gravatar.com/avatar/80cbc0fc6c03d43f495b2342b31fe4fa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png","id":1223156},"open_issues":0,"created_at":"2012-12-15T11:52:52Z","closed_issues":0,"title":"fix-all","number":1,"id":230459,"description":"fixing
|
50
|
+
all issues"}'
|
51
|
+
http_version: !!null
|
52
|
+
recorded_at: Sat, 15 Dec 2012 12:02:08 GMT
|
53
|
+
recorded_with: VCR 2.3.0
|