leadlight 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/Gemfile.lock +20 -18
  2. data/default.gems +1 -1
  3. data/leadlight.gemspec +24 -4
  4. data/lib/leadlight.rb +4 -5
  5. data/lib/leadlight/connection_builder.rb +29 -0
  6. data/lib/leadlight/errors.rb +11 -5
  7. data/lib/leadlight/hyperlinkable.rb +31 -10
  8. data/lib/leadlight/lib_ext.rb +3 -0
  9. data/lib/leadlight/lib_ext/faraday/README +6 -0
  10. data/lib/leadlight/lib_ext/faraday/adapter.rb +7 -0
  11. data/lib/leadlight/lib_ext/faraday/builder.rb +47 -0
  12. data/lib/leadlight/lib_ext/faraday/connection.rb +40 -0
  13. data/lib/leadlight/lib_ext/faraday/middleware.rb +7 -0
  14. data/lib/leadlight/link.rb +91 -4
  15. data/lib/leadlight/link_template.rb +13 -5
  16. data/lib/leadlight/null_link.rb +21 -0
  17. data/lib/leadlight/param_hash.rb +42 -0
  18. data/lib/leadlight/representation.rb +23 -3
  19. data/lib/leadlight/request.rb +42 -10
  20. data/lib/leadlight/service.rb +11 -9
  21. data/lib/leadlight/service_class_methods.rb +11 -3
  22. data/lib/leadlight/tint_helper.rb +32 -2
  23. data/spec/cassettes/Leadlight/authorized_GitHub_example/_user/has_the_expected_content.yml +72 -54
  24. data/spec/cassettes/Leadlight/authorized_GitHub_example/_user/indicates_the_expected_oath_scopes.yml +73 -55
  25. data/spec/cassettes/Leadlight/authorized_GitHub_example/adding_and_removing_team_members.yml +353 -265
  26. data/spec/cassettes/Leadlight/authorized_GitHub_example/adding_and_removing_teams.yml +75 -175
  27. data/spec/cassettes/Leadlight/authorized_GitHub_example/team_list/should_have_a_link_back_to_the_org.yml +196 -0
  28. data/spec/cassettes/Leadlight/authorized_GitHub_example/test_team/.yml +152 -108
  29. data/spec/cassettes/Leadlight/authorized_GitHub_example/test_team/has_a_root_link.yml +197 -0
  30. data/spec/cassettes/Leadlight/basic_GitHub_example/_root/.yml +15 -43
  31. data/spec/cassettes/Leadlight/basic_GitHub_example/_root/__location__/.yml +15 -43
  32. data/spec/cassettes/Leadlight/basic_GitHub_example/_root/should_be_a_204_no_content.yml +15 -43
  33. data/spec/cassettes/Leadlight/tinted_GitHub_example/_root/.yml +15 -43
  34. data/spec/cassettes/Leadlight/tinted_GitHub_example/_root/__location__/.yml +15 -43
  35. data/spec/cassettes/Leadlight/tinted_GitHub_example/_root/should_be_a_204_no_content.yml +15 -43
  36. data/spec/cassettes/Leadlight/tinted_GitHub_example/_user/has_the_expected_content.yml +35 -90
  37. data/spec/cassettes/Leadlight/tinted_GitHub_example/bad_links/enables_custom_error_matching.yml +25 -17
  38. data/spec/cassettes/Leadlight/tinted_GitHub_example/bad_links/should_raise_ResourceNotFound.yml +26 -90
  39. data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/.yml +57 -140
  40. data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/should_be_able_to_follow_next_link.yml +79 -192
  41. data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/should_be_enumerable.yml +279 -350
  42. data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/should_be_enumerable_over_page_boundaries.yml +98 -243
  43. data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/should_have_next_and_last_links.yml +59 -142
  44. data/spec/cassettes/Leadlight/tinted_GitHub_example/user_link/exists.yml +15 -43
  45. data/spec/cassettes/Leadlight/tinted_GitHub_example/user_link/links_to_the_expected_URL.yml +15 -43
  46. data/spec/leadlight/hyperlinkable_spec.rb +50 -4
  47. data/spec/leadlight/link_spec.rb +70 -10
  48. data/spec/leadlight/link_template_spec.rb +20 -4
  49. data/spec/leadlight/null_link_spec.rb +14 -0
  50. data/spec/leadlight/param_hash_spec.rb +26 -0
  51. data/spec/leadlight/representation_spec.rb +36 -4
  52. data/spec/leadlight/request_spec.rb +39 -22
  53. data/spec/leadlight/service_spec.rb +14 -13
  54. data/spec/leadlight/tint_helper_spec.rb +36 -2
  55. data/spec/leadlight_spec.rb +31 -17
  56. data/spec/support/link_matchers.rb +59 -0
  57. data/spec/support/misc.rb +9 -0
  58. metadata +49 -34
@@ -3,7 +3,9 @@ http_interactions:
3
3
  - request:
4
4
  method: get
5
5
  uri: https://api.github.com/
6
- body: ''
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
7
9
  headers:
8
10
  Authorization:
9
11
  - <AUTH FILTERED>
@@ -13,31 +15,35 @@ http_interactions:
13
15
  response:
14
16
  status:
15
17
  code: 204
16
- message: !!null
18
+ message:
17
19
  headers:
18
20
  server:
19
- - nginx/1.0.4
21
+ - nginx/1.0.13
20
22
  date:
21
- - Mon, 16 Jan 2012 04:50:22 GMT
23
+ - Wed, 01 Aug 2012 19:38:55 GMT
22
24
  connection:
23
25
  - close
24
26
  status:
25
27
  - 204 No Content
26
- x-ratelimit-limit:
27
- - '5000'
28
- etag:
29
- - ! '"d41d8cd98f00b204e9800998ecf8427e"'
30
28
  x-oauth-scopes:
31
29
  - repo
32
30
  x-ratelimit-remaining:
33
- - '4985'
34
- body: ''
35
- http_version: !!null
36
- recorded_at: Mon, 16 Jan 2012 04:50:22 GMT
31
+ - '4999'
32
+ cache-control:
33
+ - ''
34
+ x-ratelimit-limit:
35
+ - '5000'
36
+ body:
37
+ encoding: US-ASCII
38
+ string: ''
39
+ http_version:
40
+ recorded_at: Wed, 01 Aug 2012 19:38:44 GMT
37
41
  - request:
38
42
  method: get
39
43
  uri: https://api.github.com/orgs/shiprise
40
- body: ''
44
+ body:
45
+ encoding: US-ASCII
46
+ string: ''
41
47
  headers:
42
48
  Authorization:
43
49
  - <AUTH FILTERED>
@@ -47,12 +53,12 @@ http_interactions:
47
53
  response:
48
54
  status:
49
55
  code: 200
50
- message: !!null
56
+ message:
51
57
  headers:
52
58
  server:
53
- - nginx/1.0.4
59
+ - nginx/1.0.13
54
60
  date:
55
- - Mon, 16 Jan 2012 04:50:22 GMT
61
+ - Wed, 01 Aug 2012 19:38:55 GMT
56
62
  content-type:
57
63
  - application/json; charset=utf-8
58
64
  transfer-encoding:
@@ -61,24 +67,33 @@ http_interactions:
61
67
  - close
62
68
  status:
63
69
  - 200 OK
64
- x-ratelimit-limit:
65
- - '5000'
66
- etag:
67
- - ! '"08a3c9cddbbd6fe2819b345e19634c09"'
68
70
  x-oauth-scopes:
69
71
  - repo
70
- x-ratelimit-remaining:
71
- - '4984'
72
72
  x-accepted-oauth-scopes:
73
73
  - repo
74
- body: ! '{"type":"Organization","collaborators":0,"created_at":"2011-10-27T20:49:51Z","email":"avdi@shiprise.net","url":"https://api.github.com/orgs/ShipRise","login":"ShipRise","plan":{"space":2516582,"private_repos":10,"name":"bronze"},"followers":0,"blog":"http://shiprise.net","total_private_repos":1,"public_repos":0,"following":0,"billing_email":"avdi@shiprise.net","owned_private_repos":1,"disk_usage":552,"public_gists":0,"html_url":"https://github.com/ShipRise","name":"Leadlight
75
- Ephemeral Team","avatar_url":"https://secure.gravatar.com/avatar/6dd3c12e97a46ff08c358542cae955e2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","location":null,"id":1156570,"private_gists":0,"company":null}'
76
- http_version: !!null
77
- recorded_at: Mon, 16 Jan 2012 04:50:22 GMT
74
+ etag:
75
+ - ! '"5d02babf97893a4583b7052dec00a037"'
76
+ x-ratelimit-remaining:
77
+ - '4998'
78
+ last-modified:
79
+ - Fri, 27 Jul 2012 04:06:17 GMT
80
+ cache-control:
81
+ - private, max-age=60
82
+ vary:
83
+ - Accept, Authorization, Cookie
84
+ x-ratelimit-limit:
85
+ - '5000'
86
+ body:
87
+ encoding: ASCII-8BIT
88
+ string: ! '{"disk_usage":22816,"public_repos":0,"type":"Organization","login":"ShipRise","private_gists":0,"following":0,"location":null,"email":null,"created_at":"2011-10-27T20:49:51Z","avatar_url":"https://secure.gravatar.com/avatar/6dd3c12e97a46ff08c358542cae955e2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","blog":"http://shiprise.net","total_private_repos":5,"html_url":"https://github.com/ShipRise","company":null,"owned_private_repos":5,"collaborators":0,"plan":{"space":2516582,"name":"bronze","private_repos":10},"followers":0,"name":"ShipRise","url":"https://api.github.com/orgs/ShipRise","billing_email":"avdi@shiprise.net","id":1156570,"public_gists":0}'
89
+ http_version:
90
+ recorded_at: Wed, 01 Aug 2012 19:38:45 GMT
78
91
  - request:
79
92
  method: post
80
93
  uri: https://api.github.com/orgs/shiprise/teams
81
- body: ! '{"name":"Leadlight Ephemeral Team","permission":"pull"}'
94
+ body:
95
+ encoding: UTF-8
96
+ string: ! '{"name":"Leadlight Ephemeral Team","permission":"pull"}'
82
97
  headers:
83
98
  Content-Type:
84
99
  - application/json
@@ -90,123 +105,46 @@ http_interactions:
90
105
  response:
91
106
  status:
92
107
  code: 201
93
- message: !!null
108
+ message:
94
109
  headers:
95
110
  server:
96
- - nginx/1.0.4
111
+ - nginx/1.0.13
97
112
  date:
98
- - Mon, 16 Jan 2012 04:50:23 GMT
113
+ - Wed, 01 Aug 2012 19:38:56 GMT
99
114
  content-type:
100
115
  - application/json; charset=utf-8
101
116
  connection:
102
117
  - close
103
118
  status:
104
119
  - 201 Created
105
- x-ratelimit-limit:
106
- - '5000'
107
- etag:
108
- - ! '"054dbeddef24cd45b014dc0fcdb45654"'
109
- location:
110
- - https://api.github.com/teams/130176
111
- x-oauth-scopes:
112
- - repo
113
- x-ratelimit-remaining:
114
- - '4983'
115
120
  x-accepted-oauth-scopes:
116
121
  - repo
122
+ x-oauth-scopes:
123
+ - repo
117
124
  content-length:
118
125
  - '145'
119
- body: ! '{"url":"https://api.github.com/teams/130176","name":"Leadlight Ephemeral
120
- Team","permission":"pull","members_count":0,"repos_count":0,"id":130176}'
121
- http_version: !!null
122
- recorded_at: Mon, 16 Jan 2012 04:50:22 GMT
123
- - request:
124
- method: get
125
- uri: https://api.github.com/orgs/shiprise/teams
126
- body: ''
127
- headers:
128
- Authorization:
129
- - <AUTH FILTERED>
130
- Accept:
131
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
132
- text/plain
133
- response:
134
- status:
135
- code: 200
136
- message: !!null
137
- headers:
138
- server:
139
- - nginx/1.0.4
140
- date:
141
- - Mon, 16 Jan 2012 04:50:23 GMT
142
- content-type:
143
- - application/json; charset=utf-8
144
- transfer-encoding:
145
- - chunked
146
- connection:
147
- - close
148
- status:
149
- - 200 OK
126
+ location:
127
+ - https://api.github.com/teams/221852
150
128
  x-ratelimit-limit:
151
129
  - '5000'
152
- etag:
153
- - ! '"8dd1b70061636cf5ebaaca6448460331"'
154
- x-oauth-scopes:
155
- - repo
130
+ cache-control:
131
+ - max-age=0, private, must-revalidate
156
132
  x-ratelimit-remaining:
157
- - '4982'
158
- x-accepted-oauth-scopes:
159
- - repo
160
- body: ! '[{"url":"https://api.github.com/teams/111894","name":"BitBindery Development","id":111894},{"url":"https://api.github.com/teams/130176","name":"Leadlight
161
- Ephemeral Team","id":130176},{"url":"https://api.github.com/teams/127491","name":"Leadlight
162
- Test Team","id":127491},{"url":"https://api.github.com/teams/104018","name":"Owners","id":104018}]'
163
- http_version: !!null
164
- recorded_at: Mon, 16 Jan 2012 04:50:23 GMT
165
- - request:
166
- method: get
167
- uri: https://api.github.com/teams/130176
168
- body: ''
169
- headers:
170
- Authorization:
171
- - <AUTH FILTERED>
172
- Accept:
173
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
174
- text/plain
175
- response:
176
- status:
177
- code: 200
178
- message: !!null
179
- headers:
180
- server:
181
- - nginx/1.0.4
182
- date:
183
- - Mon, 16 Jan 2012 04:50:23 GMT
184
- content-type:
185
- - application/json; charset=utf-8
186
- transfer-encoding:
187
- - chunked
188
- connection:
189
- - close
190
- status:
191
- - 200 OK
192
- x-ratelimit-limit:
193
- - '5000'
133
+ - '4997'
194
134
  etag:
195
- - ! '"ceecc29b7574f9776b0e76cc4946fd42"'
196
- x-oauth-scopes:
197
- - repo
198
- x-ratelimit-remaining:
199
- - '4981'
200
- x-accepted-oauth-scopes:
201
- - repo
202
- body: ! '{"members_count":0,"repos_count":0,"url":"https://api.github.com/teams/130176","permission":"pull","name":"Leadlight
203
- Ephemeral Team","id":130176}'
204
- http_version: !!null
205
- recorded_at: Mon, 16 Jan 2012 04:50:23 GMT
135
+ - ! '"0f4b70cba58d59944bdab4af3b41a24f"'
136
+ body:
137
+ encoding: US-ASCII
138
+ string: ! '{"repos_count":0,"members_count":0,"url":"https://api.github.com/teams/221852","name":"Leadlight
139
+ Ephemeral Team","id":221852,"permission":"pull"}'
140
+ http_version:
141
+ recorded_at: Wed, 01 Aug 2012 19:38:45 GMT
206
142
  - request:
207
143
  method: delete
208
- uri: https://api.github.com/teams/130176
209
- body: ''
144
+ uri: https://api.github.com/teams/221852
145
+ body:
146
+ encoding: US-ASCII
147
+ string: ''
210
148
  headers:
211
149
  Authorization:
212
150
  - <AUTH FILTERED>
@@ -216,67 +154,29 @@ http_interactions:
216
154
  response:
217
155
  status:
218
156
  code: 204
219
- message: !!null
157
+ message:
220
158
  headers:
221
159
  server:
222
- - nginx/1.0.4
160
+ - nginx/1.0.13
223
161
  date:
224
- - Mon, 16 Jan 2012 04:50:41 GMT
162
+ - Wed, 01 Aug 2012 19:38:56 GMT
225
163
  connection:
226
164
  - close
227
165
  status:
228
166
  - 204 No Content
229
- x-ratelimit-limit:
230
- - '5000'
231
- etag:
232
- - ! '"d41d8cd98f00b204e9800998ecf8427e"'
233
167
  x-oauth-scopes:
234
168
  - repo
235
169
  x-ratelimit-remaining:
236
- - '4980'
170
+ - '4996'
237
171
  x-accepted-oauth-scopes:
238
172
  - repo
239
- body: ''
240
- http_version: !!null
241
- recorded_at: Mon, 16 Jan 2012 04:50:41 GMT
242
- - request:
243
- method: delete
244
- uri: https://api.github.com/orgs/shiprise/teams
245
- body: ''
246
- headers:
247
- Authorization:
248
- - <AUTH FILTERED>
249
- Accept:
250
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
251
- text/plain
252
- response:
253
- status:
254
- code: 404
255
- message: !!null
256
- headers:
257
- server:
258
- - nginx/1.0.4
259
- date:
260
- - Mon, 16 Jan 2012 04:52:55 GMT
261
- content-type:
262
- - application/json; charset=utf-8
263
- connection:
264
- - close
265
- status:
266
- - 404 Not Found
173
+ cache-control:
174
+ - ''
267
175
  x-ratelimit-limit:
268
176
  - '5000'
269
- etag:
270
- - ! '"e66a7a6c91e2c26803f3f49feb7a883f"'
271
- x-oauth-scopes:
272
- - repo
273
- x-ratelimit-remaining:
274
- - '4979'
275
- x-accepted-oauth-scopes:
276
- - repo
277
- content-length:
278
- - '23'
279
- body: ! '{"message":"Not Found"}'
280
- http_version: !!null
281
- recorded_at: Mon, 16 Jan 2012 04:52:55 GMT
282
- recorded_with: VCR 2.0.0.rc1
177
+ body:
178
+ encoding: US-ASCII
179
+ string: ''
180
+ http_version:
181
+ recorded_at: Wed, 01 Aug 2012 19:38:45 GMT
182
+ recorded_with: VCR 2.2.4
@@ -0,0 +1,196 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.github.com/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - <AUTH FILTERED>
12
+ Accept:
13
+ - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
14
+ text/plain
15
+ response:
16
+ status:
17
+ code: 204
18
+ message:
19
+ headers:
20
+ server:
21
+ - nginx/1.0.13
22
+ date:
23
+ - Wed, 01 Aug 2012 19:39:08 GMT
24
+ connection:
25
+ - close
26
+ status:
27
+ - 204 No Content
28
+ cache-control:
29
+ - ''
30
+ x-ratelimit-remaining:
31
+ - '4981'
32
+ x-ratelimit-limit:
33
+ - '5000'
34
+ x-oauth-scopes:
35
+ - repo
36
+ body:
37
+ encoding: US-ASCII
38
+ string: ''
39
+ http_version:
40
+ recorded_at: Wed, 01 Aug 2012 19:38:57 GMT
41
+ - request:
42
+ method: get
43
+ uri: https://api.github.com/orgs/shiprise
44
+ body:
45
+ encoding: US-ASCII
46
+ string: ''
47
+ headers:
48
+ Authorization:
49
+ - <AUTH FILTERED>
50
+ Accept:
51
+ - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
52
+ text/plain
53
+ response:
54
+ status:
55
+ code: 200
56
+ message:
57
+ headers:
58
+ server:
59
+ - nginx/1.0.13
60
+ date:
61
+ - Wed, 01 Aug 2012 19:39:08 GMT
62
+ content-type:
63
+ - application/json; charset=utf-8
64
+ transfer-encoding:
65
+ - chunked
66
+ connection:
67
+ - close
68
+ status:
69
+ - 200 OK
70
+ etag:
71
+ - ! '"5d02babf97893a4583b7052dec00a037"'
72
+ x-accepted-oauth-scopes:
73
+ - repo
74
+ vary:
75
+ - Accept, Authorization, Cookie
76
+ cache-control:
77
+ - private, max-age=60
78
+ x-ratelimit-limit:
79
+ - '5000'
80
+ x-ratelimit-remaining:
81
+ - '4980'
82
+ last-modified:
83
+ - Fri, 27 Jul 2012 04:06:17 GMT
84
+ x-oauth-scopes:
85
+ - repo
86
+ body:
87
+ encoding: ASCII-8BIT
88
+ string: ! '{"disk_usage":22816,"type":"Organization","login":"ShipRise","collaborators":0,"following":0,"location":null,"email":null,"avatar_url":"https://secure.gravatar.com/avatar/6dd3c12e97a46ff08c358542cae955e2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","public_gists":0,"created_at":"2011-10-27T20:49:51Z","private_gists":0,"blog":"http://shiprise.net","html_url":"https://github.com/ShipRise","total_private_repos":5,"company":null,"plan":{"space":2516582,"name":"bronze","private_repos":10},"public_repos":0,"owned_private_repos":5,"followers":0,"name":"ShipRise","url":"https://api.github.com/orgs/ShipRise","billing_email":"avdi@shiprise.net","id":1156570}'
89
+ http_version:
90
+ recorded_at: Wed, 01 Aug 2012 19:38:58 GMT
91
+ - request:
92
+ method: get
93
+ uri: https://api.github.com/orgs/shiprise/teams
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ''
97
+ headers:
98
+ Authorization:
99
+ - <AUTH FILTERED>
100
+ Accept:
101
+ - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
102
+ text/plain
103
+ response:
104
+ status:
105
+ code: 200
106
+ message:
107
+ headers:
108
+ server:
109
+ - nginx/1.0.13
110
+ date:
111
+ - Wed, 01 Aug 2012 19:39:09 GMT
112
+ content-type:
113
+ - application/json; charset=utf-8
114
+ transfer-encoding:
115
+ - chunked
116
+ connection:
117
+ - close
118
+ status:
119
+ - 200 OK
120
+ etag:
121
+ - ! '"ae0dfae72ca6d563953a4ca8f906e03b"'
122
+ x-oauth-scopes:
123
+ - repo
124
+ vary:
125
+ - Accept, Authorization, Cookie
126
+ x-ratelimit-limit:
127
+ - '5000'
128
+ last-modified:
129
+ - Mon, 09 Jul 2012 22:52:35 GMT
130
+ x-ratelimit-remaining:
131
+ - '4979'
132
+ cache-control:
133
+ - private, max-age=60
134
+ x-accepted-oauth-scopes:
135
+ - repo
136
+ body:
137
+ encoding: ASCII-8BIT
138
+ string: ! '[{"url":"https://api.github.com/teams/111894","name":"BitBindery
139
+ Development","id":111894,"permission":"push"},{"url":"https://api.github.com/teams/210238","name":"BitBindery
140
+ Test Team","id":210238,"permission":"pull"},{"url":"https://api.github.com/teams/127491","name":"Leadlight
141
+ Test Team","id":127491,"permission":"pull"},{"url":"https://api.github.com/teams/176711","name":"Objects
142
+ on Rails Readers","id":176711,"permission":"pull"},{"url":"https://api.github.com/teams/104018","name":"Owners","id":104018,"permission":"admin"},{"url":"https://api.github.com/teams/154780","name":"Publishing","id":154780,"permission":"push"},{"url":"https://api.github.com/teams/148656","name":"ShipRise
143
+ Internal","id":148656,"permission":"pull"}]'
144
+ http_version:
145
+ recorded_at: Wed, 01 Aug 2012 19:38:58 GMT
146
+ - request:
147
+ method: get
148
+ uri: https://api.github.com/orgs/shiprise
149
+ body:
150
+ encoding: US-ASCII
151
+ string: ''
152
+ headers:
153
+ Authorization:
154
+ - <AUTH FILTERED>
155
+ Accept:
156
+ - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
157
+ text/plain
158
+ response:
159
+ status:
160
+ code: 200
161
+ message:
162
+ headers:
163
+ server:
164
+ - nginx/1.0.13
165
+ date:
166
+ - Wed, 01 Aug 2012 19:39:09 GMT
167
+ content-type:
168
+ - application/json; charset=utf-8
169
+ transfer-encoding:
170
+ - chunked
171
+ connection:
172
+ - close
173
+ status:
174
+ - 200 OK
175
+ x-ratelimit-limit:
176
+ - '5000'
177
+ x-oauth-scopes:
178
+ - repo
179
+ last-modified:
180
+ - Fri, 27 Jul 2012 04:06:17 GMT
181
+ cache-control:
182
+ - private, max-age=60
183
+ x-ratelimit-remaining:
184
+ - '4978'
185
+ etag:
186
+ - ! '"5d02babf97893a4583b7052dec00a037"'
187
+ x-accepted-oauth-scopes:
188
+ - repo
189
+ vary:
190
+ - Accept, Authorization, Cookie
191
+ body:
192
+ encoding: ASCII-8BIT
193
+ string: ! '{"followers":0,"type":"Organization","billing_email":"avdi@shiprise.net","collaborators":0,"disk_usage":22816,"following":0,"location":null,"public_gists":0,"public_repos":0,"avatar_url":"https://secure.gravatar.com/avatar/6dd3c12e97a46ff08c358542cae955e2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","private_gists":0,"login":"ShipRise","total_private_repos":5,"html_url":"https://github.com/ShipRise","name":"ShipRise","email":null,"url":"https://api.github.com/orgs/ShipRise","created_at":"2011-10-27T20:49:51Z","company":null,"blog":"http://shiprise.net","id":1156570,"owned_private_repos":5,"plan":{"private_repos":10,"space":2516582,"name":"bronze"}}'
194
+ http_version:
195
+ recorded_at: Wed, 01 Aug 2012 19:38:58 GMT
196
+ recorded_with: VCR 2.2.4