github_api 0.5.4 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. data/README.md +3 -3
  2. data/features/cassettes/events/issue.yml +64 -32
  3. data/features/cassettes/events/network.yml +63 -32
  4. data/features/cassettes/events/org.yml +61 -31
  5. data/features/cassettes/events/performed.yml +63 -32
  6. data/features/cassettes/events/public.yml +61 -31
  7. data/features/cassettes/events/received.yml +63 -32
  8. data/features/cassettes/events/repo.yml +63 -32
  9. data/features/cassettes/gists/comments/all.yml +32 -1
  10. data/features/cassettes/gists/comments/first.yml +32 -1
  11. data/features/cassettes/gists/fork.yml +63 -31
  12. data/features/cassettes/gists/gist.yml +32 -1
  13. data/features/cassettes/gists/gists/public_all.yml +32 -1
  14. data/features/cassettes/gists/gists/starred.yml +60 -29
  15. data/features/cassettes/gists/gists/user_all.yml +87 -1
  16. data/features/cassettes/gists/star.yml +58 -27
  17. data/features/cassettes/gists/starred.yml +32 -1
  18. data/features/cassettes/gists/unstar.yml +54 -25
  19. data/features/cassettes/git_data/references/all.yml +32 -1
  20. data/features/cassettes/git_data/references/all_tags.yml +32 -1
  21. data/features/cassettes/git_data/references/one.yml +32 -1
  22. data/features/cassettes/issues/create.yml +46 -0
  23. data/features/cassettes/issues/edit.yml +44 -0
  24. data/features/cassettes/issues/get.yml +62 -0
  25. data/features/cassettes/issues/list/repo.yml +251 -0
  26. data/features/cassettes/issues/list/user.yml +44 -0
  27. data/features/cassettes/orgs/get.yml +60 -30
  28. data/features/cassettes/orgs/list/oauth_user.yml +60 -29
  29. data/features/cassettes/orgs/list/user.yml +87 -57
  30. data/features/cassettes/pagination/issues/list/first.yml +65 -33
  31. data/features/cassettes/pagination/issues/list/last.yml +66 -33
  32. data/features/cassettes/pagination/repos/commits/list.yml +32 -1
  33. data/features/cassettes/pagination/repos/commits/sha.yml +32 -1
  34. data/features/cassettes/pagination/repos/diff.yml +32 -1
  35. data/features/cassettes/pagination/repos/list.yml +32 -1
  36. data/features/cassettes/pagination/repos/per_page/first.yml +32 -1
  37. data/features/cassettes/pull_requests/get.yml +120 -0
  38. data/features/cassettes/pull_requests/list.yml +254 -0
  39. data/features/cassettes/repos/branches.yml +32 -1
  40. data/features/cassettes/repos/contents/archive.yml +95 -0
  41. data/features/cassettes/repos/contents/get.yml +226 -0
  42. data/features/cassettes/repos/contents/readme.yml +271 -0
  43. data/features/cassettes/repos/get.yml +61 -31
  44. data/features/cassettes/repos/languages.yml +61 -30
  45. data/features/cassettes/repos/list.yml +32 -1
  46. data/features/cassettes/repos/tags.yml +32 -1
  47. data/features/cassettes/search/email.yml +99 -0
  48. data/features/cassettes/search/issues.yml +180 -0
  49. data/features/cassettes/search/repos.yml +396 -0
  50. data/features/cassettes/search/users.yml +54 -0
  51. data/features/cassettes/users/emails/add.yml +61 -30
  52. data/features/cassettes/users/emails/all.yml +61 -30
  53. data/features/cassettes/users/get/oauth.yml +61 -0
  54. data/features/cassettes/users/get/user.yml +62 -0
  55. data/features/issues.feature +64 -0
  56. data/features/pull_requests.feature +27 -0
  57. data/features/repos/contents.feature +35 -0
  58. data/features/search.feature +48 -0
  59. data/features/users.feature +23 -0
  60. data/lib/github_api.rb +1 -0
  61. data/lib/github_api/api.rb +0 -15
  62. data/lib/github_api/client.rb +4 -0
  63. data/lib/github_api/constants.rb +4 -0
  64. data/lib/github_api/error.rb +1 -0
  65. data/lib/github_api/error/unknown_value.rb +18 -0
  66. data/lib/github_api/filter.rb +1 -0
  67. data/lib/github_api/gists.rb +2 -6
  68. data/lib/github_api/gists/comments.rb +2 -2
  69. data/lib/github_api/git_data/blobs.rb +1 -1
  70. data/lib/github_api/git_data/commits.rb +1 -1
  71. data/lib/github_api/git_data/references.rb +2 -2
  72. data/lib/github_api/git_data/tags.rb +1 -1
  73. data/lib/github_api/git_data/trees.rb +2 -3
  74. data/lib/github_api/issues.rb +6 -6
  75. data/lib/github_api/issues/comments.rb +2 -2
  76. data/lib/github_api/issues/labels.rb +2 -2
  77. data/lib/github_api/issues/milestones.rb +3 -3
  78. data/lib/github_api/orgs/teams.rb +4 -4
  79. data/lib/github_api/params_hash.rb +31 -0
  80. data/lib/github_api/pull_requests.rb +2 -2
  81. data/lib/github_api/pull_requests/comments.rb +2 -2
  82. data/lib/github_api/repos.rb +8 -10
  83. data/lib/github_api/repos/commits.rb +2 -2
  84. data/lib/github_api/repos/contents.rb +64 -0
  85. data/lib/github_api/repos/downloads.rb +1 -1
  86. data/lib/github_api/repos/hooks.rb +2 -2
  87. data/lib/github_api/repos/keys.rb +1 -1
  88. data/lib/github_api/result.rb +8 -0
  89. data/lib/github_api/search.rb +98 -0
  90. data/lib/github_api/users.rb +8 -6
  91. data/lib/github_api/users/emails.rb +2 -2
  92. data/lib/github_api/validations/format.rb +4 -3
  93. data/lib/github_api/validations/required.rb +5 -2
  94. data/lib/github_api/version.rb +2 -2
  95. data/spec/fixtures/repos/content.json +14 -0
  96. data/spec/fixtures/repos/readme.json +14 -0
  97. data/spec/fixtures/search/email.json +22 -0
  98. data/spec/fixtures/search/issues.json +23 -0
  99. data/spec/fixtures/search/repositories.json +29 -0
  100. data/spec/fixtures/search/users.json +24 -0
  101. data/spec/github/error/unknown_value_spec.rb +21 -0
  102. data/spec/github/repos/contents_spec.rb +65 -0
  103. data/spec/github/search_spec.rb +87 -0
  104. data/spec/github/users_spec.rb +7 -7
  105. data/spec/github/validations/format_spec.rb +6 -6
  106. data/spec/github/validations/required_spec.rb +3 -3
  107. metadata +69 -35
@@ -1,48 +1,48 @@
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/events?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
  - Fri, 08 Jun 2012 21:49:53 GMT
25
- Content-Type:
25
+ Content-Type:
26
26
  - application/json; charset=utf-8
27
- Transfer-Encoding:
27
+ Transfer-Encoding:
28
28
  - chunked
29
- Connection:
29
+ Connection:
30
30
  - keep-alive
31
- Status:
31
+ Status:
32
32
  - 200 OK
33
- X-Ratelimit-Limit:
34
- - "5000"
35
- Etag:
36
- - "\"494b228080c9c2f81cf96b0a00c8df8f\""
37
- Link:
33
+ X-Ratelimit-Limit:
34
+ - '5000'
35
+ Etag:
36
+ - ! '"494b228080c9c2f81cf96b0a00c8df8f"'
37
+ Link:
38
38
  - <https://api.github.com/events?access_token=<TOKEN>&page=2>; rel="next"
39
- X-Ratelimit-Remaining:
40
- - "4995"
41
- Content-Encoding:
39
+ X-Ratelimit-Remaining:
40
+ - '4995'
41
+ Content-Encoding:
42
42
  - gzip
43
- body:
43
+ body:
44
44
  encoding: ASCII-8BIT
45
- string: !binary |
45
+ string: !binary |-
46
46
  H4sIAAAAAAAAA+19C5PbOJLmX+HUxUbvbFgS34/auR173PZ0zdoeX7v6enen
47
47
  OxwgAEp0UaSGlKqs7uj/fl8CpEg9KEqWq2YvYmeiXZIIgIlEZiKRL/zt1yvG
48
48
  l0V5dY0P92zJyo+rMru6vpotl4vqejKpJF+Vcjwt9dMxL+YT/XHiySC2Ofd9
@@ -248,7 +248,37 @@ http_interactions:
248
248
  jFce8Q6+rnGw8Qo2fsPnCjtnJBZqjE0+FfFHHSzalsQ+A9R+9+AcDErbwQNd
249
249
  PaIKklHCrXGLm7AuTFbah7wR7qjyDtJuPYIKJ90p0n6tSBKhZCZKxcOBiL4D
250
250
  pibiwp//H5kk+OuTkQAA
251
-
252
- http_version:
251
+ http_version: !!null
253
252
  recorded_at: Fri, 08 Jun 2012 21:49:53 GMT
253
+ - request:
254
+ method: get
255
+ uri: https://api.github.com/events?access_token=<TOKEN>
256
+ body:
257
+ encoding: US-ASCII
258
+ string: ''
259
+ headers:
260
+ Accept-Encoding:
261
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
262
+ Accept:
263
+ - ! '*/*'
264
+ User-Agent:
265
+ - Ruby
266
+ response:
267
+ status:
268
+ code: 500
269
+ message: Internal Server Error
270
+ headers:
271
+ Server:
272
+ - nginx/1.0.13
273
+ Date:
274
+ - Sat, 09 Jun 2012 14:59:03 GMT
275
+ Transfer-Encoding:
276
+ - chunked
277
+ Connection:
278
+ - keep-alive
279
+ body:
280
+ encoding: US-ASCII
281
+ string: ''
282
+ http_version: !!null
283
+ recorded_at: Sat, 09 Jun 2012 14:59:03 GMT
254
284
  recorded_with: VCR 2.2.0
@@ -1,48 +1,49 @@
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/users/josevalim/received_events?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
  - Fri, 08 Jun 2012 21:52:16 GMT
25
- Content-Type:
25
+ Content-Type:
26
26
  - application/json; charset=utf-8
27
- Transfer-Encoding:
27
+ Transfer-Encoding:
28
28
  - chunked
29
- Connection:
29
+ Connection:
30
30
  - keep-alive
31
- Status:
31
+ Status:
32
32
  - 200 OK
33
- X-Ratelimit-Limit:
34
- - "5000"
35
- Etag:
36
- - "\"944bbf398b229c0428e2a56dcd3d05cf\""
37
- Link:
38
- - <https://api.github.com/users/josevalim/received_events?access_token=<TOKEN>&page=2>; rel="next"
39
- X-Ratelimit-Remaining:
40
- - "4990"
41
- Content-Encoding:
33
+ X-Ratelimit-Limit:
34
+ - '5000'
35
+ Etag:
36
+ - ! '"944bbf398b229c0428e2a56dcd3d05cf"'
37
+ Link:
38
+ - <https://api.github.com/users/josevalim/received_events?access_token=<TOKEN>&page=2>;
39
+ rel="next"
40
+ X-Ratelimit-Remaining:
41
+ - '4990'
42
+ Content-Encoding:
42
43
  - gzip
43
- body:
44
+ body:
44
45
  encoding: ASCII-8BIT
45
- string: !binary |
46
+ string: !binary |-
46
47
  H4sIAAAAAAAAA+19e5/bRpbdV8G2k0j2NEm8H8yOx7Is20ok25G0Y28sp1UA
47
48
  CmxYfC1AqsXxz/vF8l8+Wc69VQDBbhIgu9kjeYaesSWSQKFQj1v3ce65P/92
48
49
  JpLFrDgb/nY2KsQ7sRDFRZ6eDc98M4wd23fN1MwSYUZB7Jpx4gs7TESaeNnZ
@@ -385,7 +386,37 @@ http_interactions:
385
386
  JlYSmBmwhnYkogi1W2IK+rSe4iqWMiqQzDTVxzTKVDZAW/VPh7rxu3p2TybC
386
387
  2o3/I5G1bIEY1dSMUKQLKmd6F2wPOLlXs5JKaQH6lryNYZ31xLKgQCLTNKI6
387
388
  J0j3a2TezsvRB7r+zKICN4EP1bpjZdjg+ER455f/DylDOQ8iPwEA
388
-
389
- http_version:
389
+ http_version: !!null
390
390
  recorded_at: Fri, 08 Jun 2012 21:52:16 GMT
391
+ - request:
392
+ method: get
393
+ uri: https://api.github.com/users/josevalim/received_events?access_token=<TOKEN>
394
+ body:
395
+ encoding: US-ASCII
396
+ string: ''
397
+ headers:
398
+ Accept-Encoding:
399
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
400
+ Accept:
401
+ - ! '*/*'
402
+ User-Agent:
403
+ - Ruby
404
+ response:
405
+ status:
406
+ code: 500
407
+ message: Internal Server Error
408
+ headers:
409
+ Server:
410
+ - nginx/1.0.13
411
+ Date:
412
+ - Sat, 09 Jun 2012 14:59:07 GMT
413
+ Transfer-Encoding:
414
+ - chunked
415
+ Connection:
416
+ - keep-alive
417
+ body:
418
+ encoding: US-ASCII
419
+ string: ''
420
+ http_version: !!null
421
+ recorded_at: Sat, 09 Jun 2012 14:59:07 GMT
391
422
  recorded_with: VCR 2.2.0
@@ -1,48 +1,49 @@
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/repos/wycats/thor/events?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
  - Fri, 08 Jun 2012 21:49:54 GMT
25
- Content-Type:
25
+ Content-Type:
26
26
  - application/json; charset=utf-8
27
- Transfer-Encoding:
27
+ Transfer-Encoding:
28
28
  - chunked
29
- Connection:
29
+ Connection:
30
30
  - keep-alive
31
- Status:
31
+ Status:
32
32
  - 200 OK
33
- X-Ratelimit-Limit:
34
- - "5000"
35
- Etag:
36
- - "\"c6b26b8836cee8b7b1598d3cd18d1bcd\""
37
- Link:
38
- - <https://api.github.com/repos/wycats/thor/events?access_token=<TOKEN>&page=2>; rel="next"
39
- X-Ratelimit-Remaining:
40
- - "4994"
41
- Content-Encoding:
33
+ X-Ratelimit-Limit:
34
+ - '5000'
35
+ Etag:
36
+ - ! '"c6b26b8836cee8b7b1598d3cd18d1bcd"'
37
+ Link:
38
+ - <https://api.github.com/repos/wycats/thor/events?access_token=<TOKEN>&page=2>;
39
+ rel="next"
40
+ X-Ratelimit-Remaining:
41
+ - '4994'
42
+ Content-Encoding:
42
43
  - gzip
43
- body:
44
+ body:
44
45
  encoding: ASCII-8BIT
45
- string: !binary |
46
+ string: !binary |-
46
47
  H4sIAAAAAAAAA9VbXYvjyBX9K40h5GW6Xd8fgpAEspunkDwYAlmWpT5tbXdb
47
48
  xpJnMjvsf99TdtvWhrZE+yFC0DN0U+VrWffo1rnnXP/wbeFC1+wX1bfFeu8+
48
49
  u87tf6rjolpYk6ymPikZiYiUcxK19Iw6arNOni8+Ld62H/Yv2L/pul1bLZdt
@@ -97,7 +98,37 @@ http_interactions:
97
98
  pd5epvoE4z3v+LI6FwhQo45fynu/DGCoyKIVgFA8WAZiiFwEATYIMsgoydzH
98
99
  TEVEHY+E+nu6gbGQk0IAU537tTvEcyEQOPD6ftH6umEmOMAwNhO3jwO2IhAI
99
100
  AYWCgx9/A50bvOD8PQAA
100
-
101
- http_version:
101
+ http_version: !!null
102
102
  recorded_at: Fri, 08 Jun 2012 21:49:54 GMT
103
+ - request:
104
+ method: get
105
+ uri: https://api.github.com/repos/wycats/thor/events?access_token=<TOKEN>
106
+ body:
107
+ encoding: US-ASCII
108
+ string: ''
109
+ headers:
110
+ Accept-Encoding:
111
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
112
+ Accept:
113
+ - ! '*/*'
114
+ User-Agent:
115
+ - Ruby
116
+ response:
117
+ status:
118
+ code: 500
119
+ message: Internal Server Error
120
+ headers:
121
+ Server:
122
+ - nginx/1.0.13
123
+ Date:
124
+ - Sat, 09 Jun 2012 14:59:04 GMT
125
+ Transfer-Encoding:
126
+ - chunked
127
+ Connection:
128
+ - keep-alive
129
+ body:
130
+ encoding: US-ASCII
131
+ string: ''
132
+ http_version: !!null
133
+ recorded_at: Sat, 09 Jun 2012 14:59:04 GMT
103
134
  recorded_with: VCR 2.2.0
@@ -127,4 +127,35 @@ http_interactions:
127
127
  jtuP1waxnf4fbvT/boK43na7uK716df/AznfKYunNAAA
128
128
  http_version: !!null
129
129
  recorded_at: Mon, 07 May 2012 16:12:18 GMT
130
- recorded_with: VCR 2.1.1
130
+ - request:
131
+ method: get
132
+ uri: https://api.github.com/gists/999390/comments?access_token=<TOKEN>
133
+ body:
134
+ encoding: US-ASCII
135
+ string: ''
136
+ headers:
137
+ Accept-Encoding:
138
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
139
+ Accept:
140
+ - ! '*/*'
141
+ User-Agent:
142
+ - Ruby
143
+ response:
144
+ status:
145
+ code: 500
146
+ message: Internal Server Error
147
+ headers:
148
+ Server:
149
+ - nginx/1.0.13
150
+ Date:
151
+ - Sat, 09 Jun 2012 14:59:15 GMT
152
+ Transfer-Encoding:
153
+ - chunked
154
+ Connection:
155
+ - keep-alive
156
+ body:
157
+ encoding: US-ASCII
158
+ string: ''
159
+ http_version: !!null
160
+ recorded_at: Sat, 09 Jun 2012 14:59:15 GMT
161
+ recorded_with: VCR 2.2.0
@@ -52,4 +52,35 @@ http_interactions:
52
52
  P9rlDjbvnfzUkv/+p9chBpYePid1gdV1c9v+tv0cv70DEWRpa6ICAAA=
53
53
  http_version: !!null
54
54
  recorded_at: Mon, 07 May 2012 16:12:19 GMT
55
- recorded_with: VCR 2.1.1
55
+ - request:
56
+ method: get
57
+ uri: https://api.github.com/gists/comments/33469?access_token=<TOKEN>
58
+ body:
59
+ encoding: US-ASCII
60
+ string: ''
61
+ headers:
62
+ Accept-Encoding:
63
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
64
+ Accept:
65
+ - ! '*/*'
66
+ User-Agent:
67
+ - Ruby
68
+ response:
69
+ status:
70
+ code: 500
71
+ message: Internal Server Error
72
+ headers:
73
+ Server:
74
+ - nginx/1.0.13
75
+ Date:
76
+ - Sat, 09 Jun 2012 14:59:15 GMT
77
+ Transfer-Encoding:
78
+ - chunked
79
+ Connection:
80
+ - keep-alive
81
+ body:
82
+ encoding: US-ASCII
83
+ string: ''
84
+ http_version: !!null
85
+ recorded_at: Sat, 09 Jun 2012 14:59:15 GMT
86
+ recorded_with: VCR 2.2.0
@@ -1,46 +1,78 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: post
5
5
  uri: https://<BASIC_AUTH>@api.github.com/gists/2900588/fork?access_token=<TOKEN>
6
- body:
6
+ body:
7
7
  encoding: US-ASCII
8
- string: ""
9
- headers:
10
- Content-Length:
11
- - "0"
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: 201
19
19
  message: Created
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:19:05 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
  - 201 Created
31
- X-Ratelimit-Limit:
32
- - "5000"
33
- Etag:
34
- - "\"2aff62ec12336f5e052d64d210bbada4\""
35
- Location:
31
+ X-Ratelimit-Limit:
32
+ - '5000'
33
+ Etag:
34
+ - ! '"2aff62ec12336f5e052d64d210bbada4"'
35
+ Location:
36
36
  - https://api.github.com/gists/2900601
37
- X-Ratelimit-Remaining:
38
- - "4997"
39
- Content-Length:
40
- - "917"
41
- body:
37
+ X-Ratelimit-Remaining:
38
+ - '4997'
39
+ Content-Length:
40
+ - '917'
41
+ body:
42
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:
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
44
+ gem ã\x81§ twitter 風ã\x81® AutoPagerize ã\x81\x8Cç°¡å\x8D\x98ã\x81«å®\x9Fç\x8F¾ã\x81§ã\x81\x8Dã\x82\x8Bã\x81®ã\x81\x8B調ã\x81¹ã\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>\"}}"
45
+ http_version: !!null
45
46
  recorded_at: Sat, 09 Jun 2012 11:19:05 GMT
47
+ - request:
48
+ method: post
49
+ uri: https://api.github.com/gists/2900588/fork?access_token=<TOKEN>
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ Content-Length:
55
+ - '0'
56
+ Accept:
57
+ - ! '*/*'
58
+ User-Agent:
59
+ - Ruby
60
+ response:
61
+ status:
62
+ code: 500
63
+ message: Internal Server Error
64
+ headers:
65
+ Server:
66
+ - nginx/1.0.13
67
+ Date:
68
+ - Sat, 09 Jun 2012 14:59:14 GMT
69
+ Transfer-Encoding:
70
+ - chunked
71
+ Connection:
72
+ - keep-alive
73
+ body:
74
+ encoding: US-ASCII
75
+ string: ''
76
+ http_version: !!null
77
+ recorded_at: Sat, 09 Jun 2012 14:59:14 GMT
46
78
  recorded_with: VCR 2.2.0