leadlight 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +20 -18
- data/default.gems +1 -1
- data/leadlight.gemspec +24 -4
- data/lib/leadlight.rb +4 -5
- data/lib/leadlight/connection_builder.rb +29 -0
- data/lib/leadlight/errors.rb +11 -5
- data/lib/leadlight/hyperlinkable.rb +31 -10
- data/lib/leadlight/lib_ext.rb +3 -0
- data/lib/leadlight/lib_ext/faraday/README +6 -0
- data/lib/leadlight/lib_ext/faraday/adapter.rb +7 -0
- data/lib/leadlight/lib_ext/faraday/builder.rb +47 -0
- data/lib/leadlight/lib_ext/faraday/connection.rb +40 -0
- data/lib/leadlight/lib_ext/faraday/middleware.rb +7 -0
- data/lib/leadlight/link.rb +91 -4
- data/lib/leadlight/link_template.rb +13 -5
- data/lib/leadlight/null_link.rb +21 -0
- data/lib/leadlight/param_hash.rb +42 -0
- data/lib/leadlight/representation.rb +23 -3
- data/lib/leadlight/request.rb +42 -10
- data/lib/leadlight/service.rb +11 -9
- data/lib/leadlight/service_class_methods.rb +11 -3
- data/lib/leadlight/tint_helper.rb +32 -2
- data/spec/cassettes/Leadlight/authorized_GitHub_example/_user/has_the_expected_content.yml +72 -54
- data/spec/cassettes/Leadlight/authorized_GitHub_example/_user/indicates_the_expected_oath_scopes.yml +73 -55
- data/spec/cassettes/Leadlight/authorized_GitHub_example/adding_and_removing_team_members.yml +353 -265
- data/spec/cassettes/Leadlight/authorized_GitHub_example/adding_and_removing_teams.yml +75 -175
- data/spec/cassettes/Leadlight/authorized_GitHub_example/team_list/should_have_a_link_back_to_the_org.yml +196 -0
- data/spec/cassettes/Leadlight/authorized_GitHub_example/test_team/.yml +152 -108
- data/spec/cassettes/Leadlight/authorized_GitHub_example/test_team/has_a_root_link.yml +197 -0
- data/spec/cassettes/Leadlight/basic_GitHub_example/_root/.yml +15 -43
- data/spec/cassettes/Leadlight/basic_GitHub_example/_root/__location__/.yml +15 -43
- data/spec/cassettes/Leadlight/basic_GitHub_example/_root/should_be_a_204_no_content.yml +15 -43
- data/spec/cassettes/Leadlight/tinted_GitHub_example/_root/.yml +15 -43
- data/spec/cassettes/Leadlight/tinted_GitHub_example/_root/__location__/.yml +15 -43
- data/spec/cassettes/Leadlight/tinted_GitHub_example/_root/should_be_a_204_no_content.yml +15 -43
- data/spec/cassettes/Leadlight/tinted_GitHub_example/_user/has_the_expected_content.yml +35 -90
- data/spec/cassettes/Leadlight/tinted_GitHub_example/bad_links/enables_custom_error_matching.yml +25 -17
- data/spec/cassettes/Leadlight/tinted_GitHub_example/bad_links/should_raise_ResourceNotFound.yml +26 -90
- data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/.yml +57 -140
- data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/should_be_able_to_follow_next_link.yml +79 -192
- data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/should_be_enumerable.yml +279 -350
- data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/should_be_enumerable_over_page_boundaries.yml +98 -243
- data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/should_have_next_and_last_links.yml +59 -142
- data/spec/cassettes/Leadlight/tinted_GitHub_example/user_link/exists.yml +15 -43
- data/spec/cassettes/Leadlight/tinted_GitHub_example/user_link/links_to_the_expected_URL.yml +15 -43
- data/spec/leadlight/hyperlinkable_spec.rb +50 -4
- data/spec/leadlight/link_spec.rb +70 -10
- data/spec/leadlight/link_template_spec.rb +20 -4
- data/spec/leadlight/null_link_spec.rb +14 -0
- data/spec/leadlight/param_hash_spec.rb +26 -0
- data/spec/leadlight/representation_spec.rb +36 -4
- data/spec/leadlight/request_spec.rb +39 -22
- data/spec/leadlight/service_spec.rb +14 -13
- data/spec/leadlight/tint_helper_spec.rb +36 -2
- data/spec/leadlight_spec.rb +31 -17
- data/spec/support/link_matchers.rb +59 -0
- data/spec/support/misc.rb +9 -0
- metadata +49 -34
@@ -1,153 +1,197 @@
|
|
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
|
-
|
8
|
-
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
9
11
|
- <AUTH FILTERED>
|
10
|
-
Accept:
|
11
|
-
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
12
|
-
|
13
|
-
|
12
|
+
Accept:
|
13
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
14
|
+
text/plain
|
15
|
+
response:
|
16
|
+
status:
|
14
17
|
code: 204
|
15
18
|
message:
|
16
|
-
headers:
|
17
|
-
server:
|
18
|
-
- nginx/1.0.
|
19
|
-
date:
|
20
|
-
-
|
21
|
-
connection:
|
19
|
+
headers:
|
20
|
+
server:
|
21
|
+
- nginx/1.0.13
|
22
|
+
date:
|
23
|
+
- Wed, 01 Aug 2012 19:39:09 GMT
|
24
|
+
connection:
|
22
25
|
- close
|
23
|
-
status:
|
26
|
+
status:
|
24
27
|
- 204 No Content
|
25
|
-
x-
|
26
|
-
- "5000"
|
27
|
-
etag:
|
28
|
-
- "\"d41d8cd98f00b204e9800998ecf8427e\""
|
29
|
-
x-oauth-scopes:
|
28
|
+
x-oauth-scopes:
|
30
29
|
- repo
|
31
|
-
x-ratelimit-remaining:
|
32
|
-
-
|
33
|
-
|
30
|
+
x-ratelimit-remaining:
|
31
|
+
- '4977'
|
32
|
+
cache-control:
|
33
|
+
- ''
|
34
|
+
x-ratelimit-limit:
|
35
|
+
- '5000'
|
36
|
+
body:
|
37
|
+
encoding: US-ASCII
|
38
|
+
string: ''
|
34
39
|
http_version:
|
35
|
-
recorded_at:
|
36
|
-
- request:
|
40
|
+
recorded_at: Wed, 01 Aug 2012 19:38:58 GMT
|
41
|
+
- request:
|
37
42
|
method: get
|
38
43
|
uri: https://api.github.com/orgs/shiprise
|
39
|
-
body:
|
40
|
-
|
41
|
-
|
44
|
+
body:
|
45
|
+
encoding: US-ASCII
|
46
|
+
string: ''
|
47
|
+
headers:
|
48
|
+
Authorization:
|
42
49
|
- <AUTH FILTERED>
|
43
|
-
Accept:
|
44
|
-
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
45
|
-
|
46
|
-
|
50
|
+
Accept:
|
51
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
52
|
+
text/plain
|
53
|
+
response:
|
54
|
+
status:
|
47
55
|
code: 200
|
48
56
|
message:
|
49
|
-
headers:
|
50
|
-
server:
|
51
|
-
- nginx/1.0.
|
52
|
-
date:
|
53
|
-
-
|
54
|
-
content-type:
|
57
|
+
headers:
|
58
|
+
server:
|
59
|
+
- nginx/1.0.13
|
60
|
+
date:
|
61
|
+
- Wed, 01 Aug 2012 19:39:09 GMT
|
62
|
+
content-type:
|
55
63
|
- application/json; charset=utf-8
|
56
|
-
transfer-encoding:
|
64
|
+
transfer-encoding:
|
57
65
|
- chunked
|
58
|
-
connection:
|
66
|
+
connection:
|
59
67
|
- close
|
60
|
-
status:
|
68
|
+
status:
|
61
69
|
- 200 OK
|
62
|
-
|
63
|
-
- "
|
64
|
-
|
65
|
-
-
|
66
|
-
|
70
|
+
etag:
|
71
|
+
- ! '"5d02babf97893a4583b7052dec00a037"'
|
72
|
+
cache-control:
|
73
|
+
- private, max-age=60
|
74
|
+
vary:
|
75
|
+
- Accept, Authorization, Cookie
|
76
|
+
x-ratelimit-remaining:
|
77
|
+
- '4976'
|
78
|
+
last-modified:
|
79
|
+
- Fri, 27 Jul 2012 04:06:17 GMT
|
80
|
+
x-oauth-scopes:
|
67
81
|
- repo
|
68
|
-
x-ratelimit-
|
69
|
-
-
|
70
|
-
x-accepted-oauth-scopes:
|
82
|
+
x-ratelimit-limit:
|
83
|
+
- '5000'
|
84
|
+
x-accepted-oauth-scopes:
|
71
85
|
- repo
|
72
|
-
body:
|
86
|
+
body:
|
87
|
+
encoding: ASCII-8BIT
|
88
|
+
string: ! '{"private_gists":0,"followers":0,"type":"Organization","blog":"http://shiprise.net","billing_email":"avdi@shiprise.net","total_private_repos":5,"disk_usage":22816,"owned_private_repos":5,"following":0,"location":null,"collaborators":0,"login":"ShipRise","public_repos":0,"html_url":"https://github.com/ShipRise","name":"ShipRise","email":null,"avatar_url":"https://secure.gravatar.com/avatar/6dd3c12e97a46ff08c358542cae955e2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","url":"https://api.github.com/orgs/ShipRise","public_gists":0,"created_at":"2011-10-27T20:49:51Z","company":null,"id":1156570,"plan":{"private_repos":10,"space":2516582,"name":"bronze"}}'
|
73
89
|
http_version:
|
74
|
-
recorded_at:
|
75
|
-
- request:
|
90
|
+
recorded_at: Wed, 01 Aug 2012 19:38:59 GMT
|
91
|
+
- request:
|
76
92
|
method: get
|
77
93
|
uri: https://api.github.com/orgs/shiprise/teams
|
78
|
-
body:
|
79
|
-
|
80
|
-
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ''
|
97
|
+
headers:
|
98
|
+
Authorization:
|
81
99
|
- <AUTH FILTERED>
|
82
|
-
Accept:
|
83
|
-
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
84
|
-
|
85
|
-
|
100
|
+
Accept:
|
101
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
102
|
+
text/plain
|
103
|
+
response:
|
104
|
+
status:
|
86
105
|
code: 200
|
87
106
|
message:
|
88
|
-
headers:
|
89
|
-
server:
|
90
|
-
- nginx/1.0.
|
91
|
-
date:
|
92
|
-
-
|
93
|
-
content-type:
|
107
|
+
headers:
|
108
|
+
server:
|
109
|
+
- nginx/1.0.13
|
110
|
+
date:
|
111
|
+
- Wed, 01 Aug 2012 19:39:10 GMT
|
112
|
+
content-type:
|
94
113
|
- application/json; charset=utf-8
|
95
|
-
transfer-encoding:
|
114
|
+
transfer-encoding:
|
96
115
|
- chunked
|
97
|
-
connection:
|
116
|
+
connection:
|
98
117
|
- close
|
99
|
-
status:
|
118
|
+
status:
|
100
119
|
- 200 OK
|
101
|
-
x-
|
102
|
-
- "5000"
|
103
|
-
etag:
|
104
|
-
- "\"00457d8d71ef8c5f77fd729ddcc288b7\""
|
105
|
-
x-oauth-scopes:
|
120
|
+
x-accepted-oauth-scopes:
|
106
121
|
- repo
|
107
|
-
x-
|
108
|
-
- "4988"
|
109
|
-
x-accepted-oauth-scopes:
|
122
|
+
x-oauth-scopes:
|
110
123
|
- repo
|
111
|
-
|
124
|
+
last-modified:
|
125
|
+
- Mon, 09 Jul 2012 22:52:35 GMT
|
126
|
+
vary:
|
127
|
+
- Accept, Authorization, Cookie
|
128
|
+
x-ratelimit-limit:
|
129
|
+
- '5000'
|
130
|
+
cache-control:
|
131
|
+
- private, max-age=60
|
132
|
+
x-ratelimit-remaining:
|
133
|
+
- '4975'
|
134
|
+
etag:
|
135
|
+
- ! '"ae0dfae72ca6d563953a4ca8f906e03b"'
|
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"}]'
|
112
144
|
http_version:
|
113
|
-
recorded_at:
|
114
|
-
- request:
|
145
|
+
recorded_at: Wed, 01 Aug 2012 19:38:59 GMT
|
146
|
+
- request:
|
115
147
|
method: get
|
116
148
|
uri: https://api.github.com/teams/127491
|
117
|
-
body:
|
118
|
-
|
119
|
-
|
149
|
+
body:
|
150
|
+
encoding: US-ASCII
|
151
|
+
string: ''
|
152
|
+
headers:
|
153
|
+
Authorization:
|
120
154
|
- <AUTH FILTERED>
|
121
|
-
Accept:
|
122
|
-
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
123
|
-
|
124
|
-
|
155
|
+
Accept:
|
156
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
157
|
+
text/plain
|
158
|
+
response:
|
159
|
+
status:
|
125
160
|
code: 200
|
126
161
|
message:
|
127
|
-
headers:
|
128
|
-
server:
|
129
|
-
- nginx/1.0.
|
130
|
-
date:
|
131
|
-
-
|
132
|
-
content-type:
|
162
|
+
headers:
|
163
|
+
server:
|
164
|
+
- nginx/1.0.13
|
165
|
+
date:
|
166
|
+
- Wed, 01 Aug 2012 19:39:10 GMT
|
167
|
+
content-type:
|
133
168
|
- application/json; charset=utf-8
|
134
|
-
transfer-encoding:
|
169
|
+
transfer-encoding:
|
135
170
|
- chunked
|
136
|
-
connection:
|
171
|
+
connection:
|
137
172
|
- close
|
138
|
-
status:
|
173
|
+
status:
|
139
174
|
- 200 OK
|
140
|
-
|
141
|
-
-
|
142
|
-
|
143
|
-
-
|
144
|
-
|
175
|
+
vary:
|
176
|
+
- Accept, Authorization, Cookie
|
177
|
+
x-ratelimit-remaining:
|
178
|
+
- '4974'
|
179
|
+
cache-control:
|
180
|
+
- private, max-age=60
|
181
|
+
x-ratelimit-limit:
|
182
|
+
- '5000'
|
183
|
+
etag:
|
184
|
+
- ! '"7873ec2b76a99d0d68e8010119dd9e25"'
|
185
|
+
last-modified:
|
186
|
+
- Sat, 20 Oct 2007 11:24:19 GMT
|
187
|
+
x-oauth-scopes:
|
145
188
|
- repo
|
146
|
-
x-
|
147
|
-
- "4987"
|
148
|
-
x-accepted-oauth-scopes:
|
189
|
+
x-accepted-oauth-scopes:
|
149
190
|
- repo
|
150
|
-
body:
|
191
|
+
body:
|
192
|
+
encoding: ASCII-8BIT
|
193
|
+
string: ! '{"members_count":0,"url":"https://api.github.com/teams/127491","name":"Leadlight
|
194
|
+
Test Team","repos_count":0,"id":127491,"permission":"pull"}'
|
151
195
|
http_version:
|
152
|
-
recorded_at:
|
153
|
-
recorded_with: VCR 2.
|
196
|
+
recorded_at: Wed, 01 Aug 2012 19:38:59 GMT
|
197
|
+
recorded_with: VCR 2.2.4
|
@@ -0,0 +1,197 @@
|
|
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:10 GMT
|
24
|
+
connection:
|
25
|
+
- close
|
26
|
+
status:
|
27
|
+
- 204 No Content
|
28
|
+
x-oauth-scopes:
|
29
|
+
- repo
|
30
|
+
x-ratelimit-limit:
|
31
|
+
- '5000'
|
32
|
+
cache-control:
|
33
|
+
- ''
|
34
|
+
x-ratelimit-remaining:
|
35
|
+
- '4973'
|
36
|
+
body:
|
37
|
+
encoding: US-ASCII
|
38
|
+
string: ''
|
39
|
+
http_version:
|
40
|
+
recorded_at: Wed, 01 Aug 2012 19:39:00 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:10 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
|
+
vary:
|
71
|
+
- Accept, Authorization, Cookie
|
72
|
+
x-ratelimit-remaining:
|
73
|
+
- '4972'
|
74
|
+
cache-control:
|
75
|
+
- private, max-age=60
|
76
|
+
x-ratelimit-limit:
|
77
|
+
- '5000'
|
78
|
+
etag:
|
79
|
+
- ! '"5d02babf97893a4583b7052dec00a037"'
|
80
|
+
last-modified:
|
81
|
+
- Fri, 27 Jul 2012 04:06:17 GMT
|
82
|
+
x-oauth-scopes:
|
83
|
+
- repo
|
84
|
+
x-accepted-oauth-scopes:
|
85
|
+
- repo
|
86
|
+
body:
|
87
|
+
encoding: ASCII-8BIT
|
88
|
+
string: ! '{"collaborators":0,"followers":0,"type":"Organization","private_gists":0,"billing_email":"avdi@shiprise.net","public_repos":0,"disk_usage":22816,"following":0,"location":null,"total_private_repos":5,"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","login":"ShipRise","owned_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,"id":1156570,"plan":{"private_repos":10,"space":2516582,"name":"bronze"},"public_gists":0}'
|
89
|
+
http_version:
|
90
|
+
recorded_at: Wed, 01 Aug 2012 19:39:00 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:11 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
|
+
x-ratelimit-remaining:
|
121
|
+
- '4971'
|
122
|
+
x-oauth-scopes:
|
123
|
+
- repo
|
124
|
+
last-modified:
|
125
|
+
- Mon, 09 Jul 2012 22:52:35 GMT
|
126
|
+
vary:
|
127
|
+
- Accept, Authorization, Cookie
|
128
|
+
x-accepted-oauth-scopes:
|
129
|
+
- repo
|
130
|
+
cache-control:
|
131
|
+
- private, max-age=60
|
132
|
+
etag:
|
133
|
+
- ! '"ae0dfae72ca6d563953a4ca8f906e03b"'
|
134
|
+
x-ratelimit-limit:
|
135
|
+
- '5000'
|
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:39:00 GMT
|
146
|
+
- request:
|
147
|
+
method: get
|
148
|
+
uri: https://api.github.com/teams/127491
|
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:11 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
|
+
vary:
|
176
|
+
- Accept, Authorization, Cookie
|
177
|
+
etag:
|
178
|
+
- ! '"7873ec2b76a99d0d68e8010119dd9e25"'
|
179
|
+
x-accepted-oauth-scopes:
|
180
|
+
- repo
|
181
|
+
x-ratelimit-remaining:
|
182
|
+
- '4970'
|
183
|
+
x-oauth-scopes:
|
184
|
+
- repo
|
185
|
+
last-modified:
|
186
|
+
- Sat, 20 Oct 2007 11:24:19 GMT
|
187
|
+
x-ratelimit-limit:
|
188
|
+
- '5000'
|
189
|
+
cache-control:
|
190
|
+
- private, max-age=60
|
191
|
+
body:
|
192
|
+
encoding: ASCII-8BIT
|
193
|
+
string: ! '{"repos_count":0,"members_count":0,"url":"https://api.github.com/teams/127491","name":"Leadlight
|
194
|
+
Test Team","id":127491,"permission":"pull"}'
|
195
|
+
http_version:
|
196
|
+
recorded_at: Wed, 01 Aug 2012 19:39:01 GMT
|
197
|
+
recorded_with: VCR 2.2.4
|