leadlight 0.0.2 → 0.0.3

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.
Files changed (52) hide show
  1. data/Gemfile.lock +5 -7
  2. data/README.md +82 -0
  3. data/default.gems +1 -0
  4. data/leadlight.gemspec +16 -7
  5. data/lib/leadlight.rb +18 -62
  6. data/lib/leadlight/basic_converter.rb +18 -0
  7. data/lib/leadlight/codec.rb +2 -0
  8. data/lib/leadlight/entity.rb +1 -0
  9. data/lib/leadlight/errors.rb +10 -2
  10. data/lib/leadlight/header_helpers.rb +11 -0
  11. data/lib/leadlight/hyperlinkable.rb +1 -1
  12. data/lib/leadlight/representation.rb +19 -1
  13. data/lib/leadlight/request.rb +44 -11
  14. data/lib/leadlight/service.rb +4 -9
  15. data/lib/leadlight/service_class_methods.rb +69 -0
  16. data/lib/leadlight/service_middleware.rb +2 -14
  17. data/lib/leadlight/tint.rb +6 -2
  18. data/lib/leadlight/tint_helper.rb +27 -4
  19. data/lib/leadlight/type_map.rb +101 -0
  20. data/spec/cassettes/Leadlight/authorized_GitHub_example/_user/has_the_expected_content.yml +8 -8
  21. data/spec/cassettes/Leadlight/authorized_GitHub_example/_user/indicates_the_expected_oath_scopes.yml +8 -8
  22. data/spec/cassettes/Leadlight/authorized_GitHub_example/adding_and_removing_team_members.yml +273 -284
  23. data/spec/cassettes/Leadlight/authorized_GitHub_example/{adding_and_removing_team_members/.yml → adding_and_removing_teams.yml} +57 -84
  24. data/spec/cassettes/Leadlight/authorized_GitHub_example/test_team/.yml +111 -117
  25. data/spec/cassettes/Leadlight/basic_GitHub_example/_root/.yml +58 -25
  26. data/spec/cassettes/Leadlight/basic_GitHub_example/_root/__location__/.yml +58 -25
  27. data/spec/cassettes/Leadlight/basic_GitHub_example/_root/should_be_a_204_no_content.yml +58 -25
  28. data/spec/cassettes/Leadlight/tinted_GitHub_example/_root/.yml +58 -25
  29. data/spec/cassettes/Leadlight/tinted_GitHub_example/_root/__location__/.yml +58 -25
  30. data/spec/cassettes/Leadlight/tinted_GitHub_example/_root/should_be_a_204_no_content.yml +58 -25
  31. data/spec/cassettes/Leadlight/tinted_GitHub_example/_user/has_the_expected_content.yml +122 -50
  32. data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/.yml +190 -77
  33. data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/should_be_able_to_follow_next_link.yml +260 -104
  34. data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/should_be_enumerable.yml +616 -212
  35. data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/should_be_enumerable_over_page_boundaries.yml +331 -131
  36. data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/should_have_next_and_last_links.yml +190 -77
  37. data/spec/cassettes/Leadlight/tinted_GitHub_example/user_link/exists.yml +58 -25
  38. data/spec/cassettes/Leadlight/tinted_GitHub_example/user_link/links_to_the_expected_URL.yml +58 -25
  39. data/spec/leadlight/hyperlinkable_spec.rb +3 -1
  40. data/spec/leadlight/link_template_spec.rb +2 -1
  41. data/spec/leadlight/request_spec.rb +44 -21
  42. data/spec/leadlight/service_middleware_spec.rb +9 -46
  43. data/spec/leadlight/service_spec.rb +30 -24
  44. data/spec/leadlight/tint_helper_spec.rb +67 -1
  45. data/spec/leadlight/tint_spec.rb +69 -0
  46. data/spec/leadlight/type_map_spec.rb +127 -0
  47. data/spec/leadlight_spec.rb +102 -51
  48. data/spec/support/credentials.rb +10 -2
  49. data/spec/support/vcr.rb +1 -1
  50. metadata +61 -32
  51. data/lib/leadlight/type.rb +0 -71
  52. data/spec/leadlight/type_spec.rb +0 -137
@@ -18,7 +18,7 @@ http_interactions:
18
18
  server:
19
19
  - nginx/1.0.4
20
20
  date:
21
- - Mon, 09 Jan 2012 02:45:30 GMT
21
+ - Mon, 16 Jan 2012 04:50:22 GMT
22
22
  connection:
23
23
  - close
24
24
  status:
@@ -30,13 +30,13 @@ http_interactions:
30
30
  x-oauth-scopes:
31
31
  - repo
32
32
  x-ratelimit-remaining:
33
- - '4992'
33
+ - '4985'
34
34
  body: ''
35
35
  http_version: !!null
36
- recorded_at: Mon, 09 Jan 2012 02:45:29 GMT
36
+ recorded_at: Mon, 16 Jan 2012 04:50:22 GMT
37
37
  - request:
38
38
  method: get
39
- uri: https://api.github.com/users/leadlight-test
39
+ uri: https://api.github.com/orgs/shiprise
40
40
  body: ''
41
41
  headers:
42
42
  Authorization:
@@ -52,7 +52,7 @@ http_interactions:
52
52
  server:
53
53
  - nginx/1.0.4
54
54
  date:
55
- - Mon, 09 Jan 2012 02:45:31 GMT
55
+ - Mon, 16 Jan 2012 04:50:22 GMT
56
56
  content-type:
57
57
  - application/json; charset=utf-8
58
58
  transfer-encoding:
@@ -64,55 +64,24 @@ http_interactions:
64
64
  x-ratelimit-limit:
65
65
  - '5000'
66
66
  etag:
67
- - ! '"8ce4bb5ff9ed333a4d60218c9cef1f4d"'
67
+ - ! '"08a3c9cddbbd6fe2819b345e19634c09"'
68
68
  x-oauth-scopes:
69
69
  - repo
70
70
  x-ratelimit-remaining:
71
- - '4991'
71
+ - '4984'
72
72
  x-accepted-oauth-scopes:
73
- - user
74
- body: ! '{"type":"User","avatar_url":"https://secure.gravatar.com/avatar/71a3f4f0d28bcb9c10fe96bbfce8fef8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","followers":0,"gravatar_id":"71a3f4f0d28bcb9c10fe96bbfce8fef8","created_at":"2012-01-09T02:38:20Z","login":"leadlight-test","html_url":"https://github.com/leadlight-test","following":0,"public_gists":0,"url":"https://api.github.com/users/leadlight-test","id":1314019,"public_repos":0}'
75
- http_version: !!null
76
- recorded_at: Mon, 09 Jan 2012 02:45:29 GMT
77
- - request:
78
- method: get
79
- uri: https://api.github.com/
80
- body: ''
81
- headers:
82
- Authorization:
83
- - <AUTH FILTERED>
84
- Accept:
85
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
86
- text/plain
87
- response:
88
- status:
89
- code: 204
90
- message: !!null
91
- headers:
92
- server:
93
- - nginx/1.0.4
94
- date:
95
- - Mon, 09 Jan 2012 02:45:56 GMT
96
- connection:
97
- - close
98
- status:
99
- - 204 No Content
100
- x-ratelimit-limit:
101
- - '5000'
102
- etag:
103
- - ! '"d41d8cd98f00b204e9800998ecf8427e"'
104
- x-oauth-scopes:
105
73
  - repo
106
- x-ratelimit-remaining:
107
- - '4990'
108
- body: ''
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}'
109
76
  http_version: !!null
110
- recorded_at: Mon, 09 Jan 2012 02:45:54 GMT
77
+ recorded_at: Mon, 16 Jan 2012 04:50:22 GMT
111
78
  - request:
112
- method: get
113
- uri: https://api.github.com/orgs/shiprise
114
- body: ''
79
+ method: post
80
+ uri: https://api.github.com/orgs/shiprise/teams
81
+ body: ! '{"name":"Leadlight Ephemeral Team","permission":"pull"}'
115
82
  headers:
83
+ Content-Type:
84
+ - application/json
116
85
  Authorization:
117
86
  - <AUTH FILTERED>
118
87
  Accept:
@@ -120,34 +89,37 @@ http_interactions:
120
89
  text/plain
121
90
  response:
122
91
  status:
123
- code: 200
92
+ code: 201
124
93
  message: !!null
125
94
  headers:
126
95
  server:
127
96
  - nginx/1.0.4
128
97
  date:
129
- - Mon, 09 Jan 2012 02:45:56 GMT
98
+ - Mon, 16 Jan 2012 04:50:23 GMT
130
99
  content-type:
131
100
  - application/json; charset=utf-8
132
- transfer-encoding:
133
- - chunked
134
101
  connection:
135
102
  - close
136
103
  status:
137
- - 200 OK
104
+ - 201 Created
138
105
  x-ratelimit-limit:
139
106
  - '5000'
140
107
  etag:
141
- - ! '"579e84143fd3758c78b8b2effe8ba5dc"'
108
+ - ! '"054dbeddef24cd45b014dc0fcdb45654"'
109
+ location:
110
+ - https://api.github.com/teams/130176
142
111
  x-oauth-scopes:
143
112
  - repo
144
113
  x-ratelimit-remaining:
145
- - '4989'
114
+ - '4983'
146
115
  x-accepted-oauth-scopes:
147
116
  - repo
148
- body: ! '{"type":"Organization","location":null,"private_gists":0,"public_repos":0,"company":null,"email":"avdi@shiprise.net","followers":0,"blog":"http://shiprise.net","html_url":"https://github.com/ShipRise","created_at":"2011-10-27T20:49:51Z","login":"ShipRise","disk_usage":552,"collaborators":0,"billing_email":"avdi@shiprise.net","avatar_url":"https://secure.gravatar.com/avatar/6dd3c12e97a46ff08c358542cae955e2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","plan":{"private_repos":10,"space":2516582,"name":"bronze"},"total_private_repos":1,"following":0,"name":"ShipRise","owned_private_repos":1,"url":"https://api.github.com/orgs/ShipRise","id":1156570,"public_gists":0}'
117
+ content-length:
118
+ - '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}'
149
121
  http_version: !!null
150
- recorded_at: Mon, 09 Jan 2012 02:45:54 GMT
122
+ recorded_at: Mon, 16 Jan 2012 04:50:22 GMT
151
123
  - request:
152
124
  method: get
153
125
  uri: https://api.github.com/orgs/shiprise/teams
@@ -166,7 +138,7 @@ http_interactions:
166
138
  server:
167
139
  - nginx/1.0.4
168
140
  date:
169
- - Mon, 09 Jan 2012 02:45:56 GMT
141
+ - Mon, 16 Jan 2012 04:50:23 GMT
170
142
  content-type:
171
143
  - application/json; charset=utf-8
172
144
  transfer-encoding:
@@ -178,20 +150,21 @@ http_interactions:
178
150
  x-ratelimit-limit:
179
151
  - '5000'
180
152
  etag:
181
- - ! '"7bacecfddc356d3ba366ba12652db603"'
153
+ - ! '"8dd1b70061636cf5ebaaca6448460331"'
182
154
  x-oauth-scopes:
183
155
  - repo
184
156
  x-ratelimit-remaining:
185
- - '4988'
157
+ - '4982'
186
158
  x-accepted-oauth-scopes:
187
159
  - repo
188
- body: ! '[{"name":"BitBindery Development","url":"https://api.github.com/teams/111894","id":111894},{"name":"Leadlight
189
- Test Team","url":"https://api.github.com/teams/127491","id":127491},{"name":"Owners","url":"https://api.github.com/teams/104018","id":104018}]'
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}]'
190
163
  http_version: !!null
191
- recorded_at: Mon, 09 Jan 2012 02:45:55 GMT
164
+ recorded_at: Mon, 16 Jan 2012 04:50:23 GMT
192
165
  - request:
193
166
  method: get
194
- uri: https://api.github.com/teams/127491
167
+ uri: https://api.github.com/teams/130176
195
168
  body: ''
196
169
  headers:
197
170
  Authorization:
@@ -207,7 +180,7 @@ http_interactions:
207
180
  server:
208
181
  - nginx/1.0.4
209
182
  date:
210
- - Mon, 09 Jan 2012 04:06:24 GMT
183
+ - Mon, 16 Jan 2012 04:50:23 GMT
211
184
  content-type:
212
185
  - application/json; charset=utf-8
213
186
  transfer-encoding:
@@ -219,20 +192,20 @@ http_interactions:
219
192
  x-ratelimit-limit:
220
193
  - '5000'
221
194
  etag:
222
- - ! '"bc0707fd773571a735b3c0805a49d86c"'
195
+ - ! '"ceecc29b7574f9776b0e76cc4946fd42"'
223
196
  x-oauth-scopes:
224
197
  - repo
225
198
  x-ratelimit-remaining:
226
- - '4965'
199
+ - '4981'
227
200
  x-accepted-oauth-scopes:
228
201
  - repo
229
- body: ! '{"members_count":0,"repos_count":0,"permission":"pull","name":"Leadlight
230
- Test Team","url":"https://api.github.com/teams/127491","id":127491}'
202
+ body: ! '{"members_count":0,"repos_count":0,"url":"https://api.github.com/teams/130176","permission":"pull","name":"Leadlight
203
+ Ephemeral Team","id":130176}'
231
204
  http_version: !!null
232
- recorded_at: Mon, 09 Jan 2012 04:06:22 GMT
205
+ recorded_at: Mon, 16 Jan 2012 04:50:23 GMT
233
206
  - request:
234
- method: put
235
- uri: https://api.github.com/teams/127491/members/leadlight-test
207
+ method: delete
208
+ uri: https://api.github.com/teams/130176
236
209
  body: ''
237
210
  headers:
238
211
  Authorization:
@@ -248,7 +221,7 @@ http_interactions:
248
221
  server:
249
222
  - nginx/1.0.4
250
223
  date:
251
- - Mon, 09 Jan 2012 04:06:24 GMT
224
+ - Mon, 16 Jan 2012 04:50:41 GMT
252
225
  connection:
253
226
  - close
254
227
  status:
@@ -260,15 +233,15 @@ http_interactions:
260
233
  x-oauth-scopes:
261
234
  - repo
262
235
  x-ratelimit-remaining:
263
- - '4964'
236
+ - '4980'
264
237
  x-accepted-oauth-scopes:
265
238
  - repo
266
239
  body: ''
267
240
  http_version: !!null
268
- recorded_at: Mon, 09 Jan 2012 04:06:23 GMT
241
+ recorded_at: Mon, 16 Jan 2012 04:50:41 GMT
269
242
  - request:
270
- method: get
271
- uri: https://api.github.com/teams/127491/members
243
+ method: delete
244
+ uri: https://api.github.com/orgs/shiprise/teams
272
245
  body: ''
273
246
  headers:
274
247
  Authorization:
@@ -278,32 +251,32 @@ http_interactions:
278
251
  text/plain
279
252
  response:
280
253
  status:
281
- code: 200
254
+ code: 404
282
255
  message: !!null
283
256
  headers:
284
257
  server:
285
258
  - nginx/1.0.4
286
259
  date:
287
- - Mon, 09 Jan 2012 04:23:51 GMT
260
+ - Mon, 16 Jan 2012 04:52:55 GMT
288
261
  content-type:
289
262
  - application/json; charset=utf-8
290
- transfer-encoding:
291
- - chunked
292
263
  connection:
293
264
  - close
294
265
  status:
295
- - 200 OK
266
+ - 404 Not Found
296
267
  x-ratelimit-limit:
297
268
  - '5000'
298
269
  etag:
299
- - ! '"1718600bae7832df12f90aa6c7fbc89a"'
270
+ - ! '"e66a7a6c91e2c26803f3f49feb7a883f"'
300
271
  x-oauth-scopes:
301
272
  - repo
302
273
  x-ratelimit-remaining:
303
- - '4962'
274
+ - '4979'
304
275
  x-accepted-oauth-scopes:
305
276
  - repo
306
- body: ! '[{"avatar_url":"https://secure.gravatar.com/avatar/71a3f4f0d28bcb9c10fe96bbfce8fef8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leadlight-test","gravatar_id":"71a3f4f0d28bcb9c10fe96bbfce8fef8","url":"https://api.github.com/users/leadlight-test","id":1314019}]'
277
+ content-length:
278
+ - '23'
279
+ body: ! '{"message":"Not Found"}'
307
280
  http_version: !!null
308
- recorded_at: Mon, 09 Jan 2012 04:23:49 GMT
281
+ recorded_at: Mon, 16 Jan 2012 04:52:55 GMT
309
282
  recorded_with: VCR 2.0.0.rc1
@@ -1,159 +1,153 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: get
5
5
  uri: https://api.github.com/
6
- body: ''
7
- headers:
8
- Authorization:
6
+ body: ""
7
+ headers:
8
+ Authorization:
9
9
  - <AUTH FILTERED>
10
- Accept:
11
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
12
- text/plain
13
- response:
14
- status:
10
+ Accept:
11
+ - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html, text/plain
12
+ response:
13
+ status:
15
14
  code: 204
16
- message: !!null
17
- headers:
18
- server:
15
+ message:
16
+ headers:
17
+ server:
19
18
  - nginx/1.0.4
20
- date:
21
- - Mon, 09 Jan 2012 02:31:57 GMT
22
- connection:
19
+ date:
20
+ - Sun, 15 Jan 2012 19:38:46 GMT
21
+ connection:
23
22
  - close
24
- status:
23
+ status:
25
24
  - 204 No Content
26
- x-ratelimit-limit:
27
- - '5000'
28
- etag:
29
- - ! '"d41d8cd98f00b204e9800998ecf8427e"'
30
- x-oauth-scopes:
25
+ x-ratelimit-limit:
26
+ - "5000"
27
+ etag:
28
+ - "\"d41d8cd98f00b204e9800998ecf8427e\""
29
+ x-oauth-scopes:
31
30
  - repo
32
- x-ratelimit-remaining:
33
- - '4995'
34
- body: ''
35
- http_version: !!null
36
- recorded_at: Mon, 09 Jan 2012 02:31:55 GMT
37
- - request:
31
+ x-ratelimit-remaining:
32
+ - "4990"
33
+ body: ""
34
+ http_version:
35
+ recorded_at: Sun, 15 Jan 2012 19:38:46 GMT
36
+ - request:
38
37
  method: get
39
38
  uri: https://api.github.com/orgs/shiprise
40
- body: ''
41
- headers:
42
- Authorization:
39
+ body: ""
40
+ headers:
41
+ Authorization:
43
42
  - <AUTH FILTERED>
44
- Accept:
45
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
46
- text/plain
47
- response:
48
- status:
43
+ Accept:
44
+ - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html, text/plain
45
+ response:
46
+ status:
49
47
  code: 200
50
- message: !!null
51
- headers:
52
- server:
48
+ message:
49
+ headers:
50
+ server:
53
51
  - nginx/1.0.4
54
- date:
55
- - Mon, 09 Jan 2012 02:31:57 GMT
56
- content-type:
52
+ date:
53
+ - Sun, 15 Jan 2012 19:38:46 GMT
54
+ content-type:
57
55
  - application/json; charset=utf-8
58
- transfer-encoding:
56
+ transfer-encoding:
59
57
  - chunked
60
- connection:
58
+ connection:
61
59
  - close
62
- status:
60
+ status:
63
61
  - 200 OK
64
- x-ratelimit-limit:
65
- - '5000'
66
- etag:
67
- - ! '"b2cc0895af15b91bc02f3a4d02d7b181"'
68
- x-oauth-scopes:
62
+ x-ratelimit-limit:
63
+ - "5000"
64
+ etag:
65
+ - "\"7af429e044ae12cbc1a71285d496b944\""
66
+ x-oauth-scopes:
69
67
  - repo
70
- x-ratelimit-remaining:
71
- - '4994'
72
- x-accepted-oauth-scopes:
68
+ x-ratelimit-remaining:
69
+ - "4989"
70
+ x-accepted-oauth-scopes:
73
71
  - repo
74
- body: ! '{"total_private_repos":1,"type":"Organization","blog":"http://shiprise.net","location":null,"company":null,"email":"avdi@shiprise.net","owned_private_repos":1,"followers":0,"created_at":"2011-10-27T20:49:51Z","login":"ShipRise","disk_usage":552,"billing_email":"avdi@shiprise.net","public_repos":0,"collaborators":0,"plan":{"space":2516582,"name":"bronze","private_repos":10},"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,"following":0,"html_url":"https://github.com/ShipRise","name":"ShipRise","private_gists":0,"url":"https://api.github.com/orgs/ShipRise","id":1156570}'
75
- http_version: !!null
76
- recorded_at: Mon, 09 Jan 2012 02:31:55 GMT
77
- - request:
72
+ body: "{\"collaborators\":0,\"type\":\"Organization\",\"created_at\":\"2011-10-27T20:49:51Z\",\"email\":\"avdi@shiprise.net\",\"avatar_url\":\"https://secure.gravatar.com/avatar/6dd3c12e97a46ff08c358542cae955e2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png\",\"public_repos\":0,\"url\":\"https://api.github.com/orgs/ShipRise\",\"login\":\"ShipRise\",\"followers\":0,\"following\":0,\"total_private_repos\":1,\"billing_email\":\"avdi@shiprise.net\",\"blog\":\"http://shiprise.net\",\"owned_private_repos\":1,\"public_gists\":0,\"name\":\"ShipRise\",\"disk_usage\":552,\"plan\":{\"space\":2516582,\"private_repos\":10,\"name\":\"bronze\"},\"location\":null,\"id\":1156570,\"private_gists\":0,\"html_url\":\"https://github.com/ShipRise\",\"company\":null}"
73
+ http_version:
74
+ recorded_at: Sun, 15 Jan 2012 19:38:46 GMT
75
+ - request:
78
76
  method: get
79
77
  uri: https://api.github.com/orgs/shiprise/teams
80
- body: ''
81
- headers:
82
- Authorization:
78
+ body: ""
79
+ headers:
80
+ Authorization:
83
81
  - <AUTH FILTERED>
84
- Accept:
85
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
86
- text/plain
87
- response:
88
- status:
82
+ Accept:
83
+ - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html, text/plain
84
+ response:
85
+ status:
89
86
  code: 200
90
- message: !!null
91
- headers:
92
- server:
87
+ message:
88
+ headers:
89
+ server:
93
90
  - nginx/1.0.4
94
- date:
95
- - Mon, 09 Jan 2012 02:31:57 GMT
96
- content-type:
91
+ date:
92
+ - Sun, 15 Jan 2012 19:38:46 GMT
93
+ content-type:
97
94
  - application/json; charset=utf-8
98
- transfer-encoding:
95
+ transfer-encoding:
99
96
  - chunked
100
- connection:
97
+ connection:
101
98
  - close
102
- status:
99
+ status:
103
100
  - 200 OK
104
- x-ratelimit-limit:
105
- - '5000'
106
- etag:
107
- - ! '"7bacecfddc356d3ba366ba12652db603"'
108
- x-oauth-scopes:
101
+ x-ratelimit-limit:
102
+ - "5000"
103
+ etag:
104
+ - "\"00457d8d71ef8c5f77fd729ddcc288b7\""
105
+ x-oauth-scopes:
109
106
  - repo
110
- x-ratelimit-remaining:
111
- - '4993'
112
- x-accepted-oauth-scopes:
107
+ x-ratelimit-remaining:
108
+ - "4988"
109
+ x-accepted-oauth-scopes:
113
110
  - repo
114
- body: ! '[{"name":"BitBindery Development","url":"https://api.github.com/teams/111894","id":111894},{"name":"Leadlight
115
- Test Team","url":"https://api.github.com/teams/127491","id":127491},{"name":"Owners","url":"https://api.github.com/teams/104018","id":104018}]'
116
- http_version: !!null
117
- recorded_at: Mon, 09 Jan 2012 02:31:56 GMT
118
- - request:
111
+ body: "[{\"url\":\"https://api.github.com/teams/111894\",\"name\":\"BitBindery Development\",\"id\":111894},{\"url\":\"https://api.github.com/teams/127491\",\"name\":\"Leadlight Test Team\",\"id\":127491},{\"url\":\"https://api.github.com/teams/104018\",\"name\":\"Owners\",\"id\":104018}]"
112
+ http_version:
113
+ recorded_at: Sun, 15 Jan 2012 19:38:46 GMT
114
+ - request:
119
115
  method: get
120
116
  uri: https://api.github.com/teams/127491
121
- body: ''
122
- headers:
123
- Authorization:
117
+ body: ""
118
+ headers:
119
+ Authorization:
124
120
  - <AUTH FILTERED>
125
- Accept:
126
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
127
- text/plain
128
- response:
129
- status:
121
+ Accept:
122
+ - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html, text/plain
123
+ response:
124
+ status:
130
125
  code: 200
131
- message: !!null
132
- headers:
133
- server:
126
+ message:
127
+ headers:
128
+ server:
134
129
  - nginx/1.0.4
135
- date:
136
- - Mon, 09 Jan 2012 04:18:16 GMT
137
- content-type:
130
+ date:
131
+ - Sun, 15 Jan 2012 19:38:47 GMT
132
+ content-type:
138
133
  - application/json; charset=utf-8
139
- transfer-encoding:
134
+ transfer-encoding:
140
135
  - chunked
141
- connection:
136
+ connection:
142
137
  - close
143
- status:
138
+ status:
144
139
  - 200 OK
145
- x-ratelimit-limit:
146
- - '5000'
147
- etag:
148
- - ! '"1defd6f3beb5e83cdf62db4afe841bd5"'
149
- x-oauth-scopes:
140
+ x-ratelimit-limit:
141
+ - "5000"
142
+ etag:
143
+ - "\"bf758b4f06b0f92ee4712bfdfd9a06b2\""
144
+ x-oauth-scopes:
150
145
  - repo
151
- x-ratelimit-remaining:
152
- - '4963'
153
- x-accepted-oauth-scopes:
146
+ x-ratelimit-remaining:
147
+ - "4987"
148
+ x-accepted-oauth-scopes:
154
149
  - repo
155
- body: ! '{"repos_count":0,"permission":"pull","members_count":1,"name":"Leadlight
156
- Test Team","url":"https://api.github.com/teams/127491","id":127491}'
157
- http_version: !!null
158
- recorded_at: Mon, 09 Jan 2012 04:18:14 GMT
150
+ body: "{\"url\":\"https://api.github.com/teams/127491\",\"members_count\":0,\"repos_count\":0,\"permission\":\"pull\",\"name\":\"Leadlight Test Team\",\"id\":127491}"
151
+ http_version:
152
+ recorded_at: Sun, 15 Jan 2012 19:38:47 GMT
159
153
  recorded_with: VCR 2.0.0.rc1