leadlight 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +5 -7
- data/README.md +82 -0
- data/default.gems +1 -0
- data/leadlight.gemspec +16 -7
- data/lib/leadlight.rb +18 -62
- data/lib/leadlight/basic_converter.rb +18 -0
- data/lib/leadlight/codec.rb +2 -0
- data/lib/leadlight/entity.rb +1 -0
- data/lib/leadlight/errors.rb +10 -2
- data/lib/leadlight/header_helpers.rb +11 -0
- data/lib/leadlight/hyperlinkable.rb +1 -1
- data/lib/leadlight/representation.rb +19 -1
- data/lib/leadlight/request.rb +44 -11
- data/lib/leadlight/service.rb +4 -9
- data/lib/leadlight/service_class_methods.rb +69 -0
- data/lib/leadlight/service_middleware.rb +2 -14
- data/lib/leadlight/tint.rb +6 -2
- data/lib/leadlight/tint_helper.rb +27 -4
- data/lib/leadlight/type_map.rb +101 -0
- data/spec/cassettes/Leadlight/authorized_GitHub_example/_user/has_the_expected_content.yml +8 -8
- data/spec/cassettes/Leadlight/authorized_GitHub_example/_user/indicates_the_expected_oath_scopes.yml +8 -8
- data/spec/cassettes/Leadlight/authorized_GitHub_example/adding_and_removing_team_members.yml +273 -284
- data/spec/cassettes/Leadlight/authorized_GitHub_example/{adding_and_removing_team_members/.yml → adding_and_removing_teams.yml} +57 -84
- data/spec/cassettes/Leadlight/authorized_GitHub_example/test_team/.yml +111 -117
- data/spec/cassettes/Leadlight/basic_GitHub_example/_root/.yml +58 -25
- data/spec/cassettes/Leadlight/basic_GitHub_example/_root/__location__/.yml +58 -25
- data/spec/cassettes/Leadlight/basic_GitHub_example/_root/should_be_a_204_no_content.yml +58 -25
- data/spec/cassettes/Leadlight/tinted_GitHub_example/_root/.yml +58 -25
- data/spec/cassettes/Leadlight/tinted_GitHub_example/_root/__location__/.yml +58 -25
- data/spec/cassettes/Leadlight/tinted_GitHub_example/_root/should_be_a_204_no_content.yml +58 -25
- data/spec/cassettes/Leadlight/tinted_GitHub_example/_user/has_the_expected_content.yml +122 -50
- data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/.yml +190 -77
- data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/should_be_able_to_follow_next_link.yml +260 -104
- data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/should_be_enumerable.yml +616 -212
- data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/should_be_enumerable_over_page_boundaries.yml +331 -131
- data/spec/cassettes/Leadlight/tinted_GitHub_example/user_followers/should_have_next_and_last_links.yml +190 -77
- data/spec/cassettes/Leadlight/tinted_GitHub_example/user_link/exists.yml +58 -25
- data/spec/cassettes/Leadlight/tinted_GitHub_example/user_link/links_to_the_expected_URL.yml +58 -25
- data/spec/leadlight/hyperlinkable_spec.rb +3 -1
- data/spec/leadlight/link_template_spec.rb +2 -1
- data/spec/leadlight/request_spec.rb +44 -21
- data/spec/leadlight/service_middleware_spec.rb +9 -46
- data/spec/leadlight/service_spec.rb +30 -24
- data/spec/leadlight/tint_helper_spec.rb +67 -1
- data/spec/leadlight/tint_spec.rb +69 -0
- data/spec/leadlight/type_map_spec.rb +127 -0
- data/spec/leadlight_spec.rb +102 -51
- data/spec/support/credentials.rb +10 -2
- data/spec/support/vcr.rb +1 -1
- metadata +61 -32
- data/lib/leadlight/type.rb +0 -71
- data/spec/leadlight/type_spec.rb +0 -137
@@ -1,100 +1,213 @@
|
|
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
|
-
Accept:
|
9
|
-
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
10
|
-
|
11
|
-
|
6
|
+
body: ''
|
7
|
+
headers:
|
8
|
+
Accept:
|
9
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
10
|
+
text/plain
|
11
|
+
response:
|
12
|
+
status:
|
12
13
|
code: 204
|
13
|
-
message:
|
14
|
-
headers:
|
15
|
-
server:
|
14
|
+
message: !!null
|
15
|
+
headers:
|
16
|
+
server:
|
16
17
|
- nginx/1.0.4
|
17
|
-
date:
|
18
|
-
-
|
19
|
-
connection:
|
18
|
+
date:
|
19
|
+
- Sun, 15 Jan 2012 19:38:36 GMT
|
20
|
+
connection:
|
20
21
|
- close
|
21
|
-
status:
|
22
|
+
status:
|
22
23
|
- 204 No Content
|
23
|
-
x-ratelimit-limit:
|
24
|
-
-
|
25
|
-
etag:
|
26
|
-
- "
|
27
|
-
x-ratelimit-remaining:
|
28
|
-
-
|
29
|
-
body:
|
30
|
-
http_version:
|
31
|
-
recorded_at:
|
32
|
-
- request:
|
24
|
+
x-ratelimit-limit:
|
25
|
+
- '5000'
|
26
|
+
etag:
|
27
|
+
- ! '"d41d8cd98f00b204e9800998ecf8427e"'
|
28
|
+
x-ratelimit-remaining:
|
29
|
+
- '4986'
|
30
|
+
body: ''
|
31
|
+
http_version: !!null
|
32
|
+
recorded_at: Sun, 15 Jan 2012 19:38:36 GMT
|
33
|
+
- request:
|
33
34
|
method: get
|
34
35
|
uri: https://api.github.com/users/avdi
|
35
|
-
body:
|
36
|
-
headers:
|
37
|
-
Accept:
|
38
|
-
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
39
|
-
|
40
|
-
|
36
|
+
body: ''
|
37
|
+
headers:
|
38
|
+
Accept:
|
39
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
40
|
+
text/plain
|
41
|
+
response:
|
42
|
+
status:
|
41
43
|
code: 200
|
42
|
-
message:
|
43
|
-
headers:
|
44
|
-
server:
|
44
|
+
message: !!null
|
45
|
+
headers:
|
46
|
+
server:
|
45
47
|
- nginx/1.0.4
|
46
|
-
date:
|
47
|
-
-
|
48
|
-
content-type:
|
48
|
+
date:
|
49
|
+
- Sun, 15 Jan 2012 19:38:36 GMT
|
50
|
+
content-type:
|
49
51
|
- application/json; charset=utf-8
|
50
|
-
transfer-encoding:
|
52
|
+
transfer-encoding:
|
51
53
|
- chunked
|
52
|
-
connection:
|
54
|
+
connection:
|
53
55
|
- close
|
54
|
-
status:
|
56
|
+
status:
|
55
57
|
- 200 OK
|
56
|
-
x-ratelimit-limit:
|
57
|
-
-
|
58
|
-
etag:
|
59
|
-
- "
|
60
|
-
x-ratelimit-remaining:
|
61
|
-
-
|
62
|
-
body:
|
63
|
-
|
64
|
-
|
65
|
-
|
58
|
+
x-ratelimit-limit:
|
59
|
+
- '5000'
|
60
|
+
etag:
|
61
|
+
- ! '"4062a9125e6f2d265be5d9e2059bb611"'
|
62
|
+
x-ratelimit-remaining:
|
63
|
+
- '4985'
|
64
|
+
body: ! '{"type":"User","public_gists":72,"created_at":"2008-02-26T19:54:34Z","email":"avdi@avdi.org","bio":null,"avatar_url":"https://secure.gravatar.com/avatar/4dea430d31b993abaf41cd9b54f8128d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/avdi","login":"avdi","followers":181,"following":33,"html_url":"https://github.com/avdi","name":"Avdi
|
65
|
+
Grimm","location":"Pennsylvania, USA","id":982,"public_repos":61,"company":"ShipRise","blog":"http://avdi.org/devblog/","hireable":false,"gravatar_id":"4dea430d31b993abaf41cd9b54f8128d"}'
|
66
|
+
http_version: !!null
|
67
|
+
recorded_at: Sun, 15 Jan 2012 19:38:36 GMT
|
68
|
+
- request:
|
66
69
|
method: get
|
67
70
|
uri: https://api.github.com/users/avdi/followers
|
68
|
-
body:
|
69
|
-
headers:
|
70
|
-
Accept:
|
71
|
-
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
72
|
-
|
73
|
-
|
71
|
+
body: ''
|
72
|
+
headers:
|
73
|
+
Accept:
|
74
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
75
|
+
text/plain
|
76
|
+
response:
|
77
|
+
status:
|
74
78
|
code: 200
|
75
|
-
message:
|
76
|
-
headers:
|
77
|
-
server:
|
79
|
+
message: !!null
|
80
|
+
headers:
|
81
|
+
server:
|
78
82
|
- nginx/1.0.4
|
79
|
-
date:
|
80
|
-
-
|
81
|
-
content-type:
|
83
|
+
date:
|
84
|
+
- Sun, 15 Jan 2012 19:38:36 GMT
|
85
|
+
content-type:
|
82
86
|
- application/json; charset=utf-8
|
83
|
-
transfer-encoding:
|
87
|
+
transfer-encoding:
|
84
88
|
- chunked
|
85
|
-
connection:
|
89
|
+
connection:
|
86
90
|
- close
|
87
|
-
status:
|
91
|
+
status:
|
88
92
|
- 200 OK
|
89
|
-
x-ratelimit-limit:
|
90
|
-
-
|
91
|
-
etag:
|
92
|
-
- "
|
93
|
-
link:
|
94
|
-
- <https://api.github.com/users/avdi/followers?page=2>; rel="next", <https://api.github.com/users/avdi/followers?page=
|
95
|
-
|
96
|
-
-
|
97
|
-
|
98
|
-
|
99
|
-
|
93
|
+
x-ratelimit-limit:
|
94
|
+
- '5000'
|
95
|
+
etag:
|
96
|
+
- ! '"eb01c45aa06961b3a983448c80d7ddfe"'
|
97
|
+
link:
|
98
|
+
- <https://api.github.com/users/avdi/followers?page=2>; rel="next", <https://api.github.com/users/avdi/followers?page=7>;
|
99
|
+
rel="last"
|
100
|
+
x-ratelimit-remaining:
|
101
|
+
- '4984'
|
102
|
+
body: ! '[{"url":"https://api.github.com/users/cypher","login":"cypher","gravatar_id":"0176d9564601b43d75aff59f2cceed88","id":978,"avatar_url":"https://secure.gravatar.com/avatar/0176d9564601b43d75aff59f2cceed88?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/tim","login":"tim","gravatar_id":"515a6f36db0157b7cf83f3b0368e9941","id":2856,"avatar_url":"https://secure.gravatar.com/avatar/515a6f36db0157b7cf83f3b0368e9941?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/SebastianRose","login":"SebastianRose","gravatar_id":"75bcdfe5499e68879fda2957572170ad","id":23090,"avatar_url":"https://secure.gravatar.com/avatar/75bcdfe5499e68879fda2957572170ad?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/cola-zero","login":"cola-zero","gravatar_id":"e46e70d2689dfa229dac7ba0dc9f34e4","id":9118,"avatar_url":"https://secure.gravatar.com/avatar/e46e70d2689dfa229dac7ba0dc9f34e4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/janfri","login":"janfri","gravatar_id":"4c2cadf461b9c15ebf5726577b51e611","id":854,"avatar_url":"https://secure.gravatar.com/avatar/4c2cadf461b9c15ebf5726577b51e611?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/nevans","login":"nevans","gravatar_id":"dfaba90dcff3238dc9770e270232b4a1","id":6142,"avatar_url":"https://secure.gravatar.com/avatar/dfaba90dcff3238dc9770e270232b4a1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/TreyE","login":"TreyE","gravatar_id":"2b405e0fc139db9b768cfab467955e04","id":38384,"avatar_url":"https://secure.gravatar.com/avatar/2b405e0fc139db9b768cfab467955e04?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/aaalex","login":"aaalex","gravatar_id":"aad77082a3f5b51259532217aadf450a","id":11762,"avatar_url":"https://secure.gravatar.com/avatar/aad77082a3f5b51259532217aadf450a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/beppu","login":"beppu","gravatar_id":"32093c41c663ea62b17d66dab11b789f","id":4425,"avatar_url":"https://secure.gravatar.com/avatar/32093c41c663ea62b17d66dab11b789f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/jdallien","login":"jdallien","gravatar_id":"490dc3575b1c341a84e89cba6305faf9","id":17927,"avatar_url":"https://secure.gravatar.com/avatar/490dc3575b1c341a84e89cba6305faf9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/arn","login":"arn","gravatar_id":"17faa52c4ce95a86ac34b4d3010ea56d","id":6053,"avatar_url":"https://secure.gravatar.com/avatar/17faa52c4ce95a86ac34b4d3010ea56d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/llimllib","login":"llimllib","gravatar_id":"aa7c1350d93036592f58f165318044db","id":7150,"avatar_url":"https://secure.gravatar.com/avatar/aa7c1350d93036592f58f165318044db?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/jtrupiano","login":"jtrupiano","gravatar_id":"63d809dbf4d44297f73caad307972ec5","id":12331,"avatar_url":"https://secure.gravatar.com/avatar/63d809dbf4d44297f73caad307972ec5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/lmarburger","login":"lmarburger","gravatar_id":"f027637a680a05254c6f721f8ab57392","id":23582,"avatar_url":"https://secure.gravatar.com/avatar/f027637a680a05254c6f721f8ab57392?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/lfaren","login":"lfaren","gravatar_id":"5f76cc23c75e77aa30ff1ac1fbf1ec54","id":142776,"avatar_url":"https://secure.gravatar.com/avatar/5f76cc23c75e77aa30ff1ac1fbf1ec54?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/slaney","login":"slaney","gravatar_id":"3f4de376ba800ba092d9e1e332ede421","id":5012,"avatar_url":"https://secure.gravatar.com/avatar/3f4de376ba800ba092d9e1e332ede421?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/stevenhaddox","login":"stevenhaddox","gravatar_id":"1fdf54b0ccb88bb46f99b6d9352302dc","id":58004,"avatar_url":"https://secure.gravatar.com/avatar/1fdf54b0ccb88bb46f99b6d9352302dc?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/stonegao","login":"stonegao","gravatar_id":"dca772bde69d5a9f39a62ee79b122f0b","id":42081,"avatar_url":"https://secure.gravatar.com/avatar/dca772bde69d5a9f39a62ee79b122f0b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/riethmayer","login":"riethmayer","gravatar_id":"788dec4942d6108c2cfb3ff2a9fb37ca","id":67637,"avatar_url":"https://secure.gravatar.com/avatar/788dec4942d6108c2cfb3ff2a9fb37ca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/natebunnyfield","login":"natebunnyfield","gravatar_id":"ed5c8e9a67490816384ff83e9d0e0a42","id":94285,"avatar_url":"https://secure.gravatar.com/avatar/ed5c8e9a67490816384ff83e9d0e0a42?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/nerdEd","login":"nerdEd","gravatar_id":"cf491f57897e7f31122ca6d03d6a49e4","id":1726,"avatar_url":"https://secure.gravatar.com/avatar/cf491f57897e7f31122ca6d03d6a49e4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/jamesdaniels","login":"jamesdaniels","gravatar_id":"3538353e7f9c08efddaabff15c9c6480","id":44975,"avatar_url":"https://secure.gravatar.com/avatar/3538353e7f9c08efddaabff15c9c6480?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/jkamenik","login":"jkamenik","gravatar_id":"d5cdad8cf459a2f3660d374e72eccf4b","id":165914,"avatar_url":"https://secure.gravatar.com/avatar/d5cdad8cf459a2f3660d374e72eccf4b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/mnelson","login":"mnelson","gravatar_id":"58dac781cb69c3342f0a73c8936cf48b","id":51276,"avatar_url":"https://secure.gravatar.com/avatar/58dac781cb69c3342f0a73c8936cf48b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/devreq","login":"devreq","gravatar_id":"7ea1a46afc3c483ef7ae7b6503b41793","id":230532,"avatar_url":"https://secure.gravatar.com/avatar/7ea1a46afc3c483ef7ae7b6503b41793?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/flipsasser","login":"flipsasser","gravatar_id":"ffca7d80230ae1f99914b74853bf06bb","id":8594,"avatar_url":"https://secure.gravatar.com/avatar/ffca7d80230ae1f99914b74853bf06bb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/abachman","login":"abachman","gravatar_id":"939848268c73b4049f90ee0703df7c68","id":13002,"avatar_url":"https://secure.gravatar.com/avatar/939848268c73b4049f90ee0703df7c68?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/pjb3","login":"pjb3","gravatar_id":"6661ef9d747db3af8896cd94959d717d","id":726,"avatar_url":"https://secure.gravatar.com/avatar/6661ef9d747db3af8896cd94959d717d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/arcterex","login":"arcterex","gravatar_id":"5bc3ee98b5a5bd0cd936554de2bdc232","id":70160,"avatar_url":"https://secure.gravatar.com/avatar/5bc3ee98b5a5bd0cd936554de2bdc232?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},{"url":"https://api.github.com/users/atmos","login":"atmos","gravatar_id":"a86224d72ce21cd9f5bee6784d4b06c7","id":38,"avatar_url":"https://secure.gravatar.com/avatar/a86224d72ce21cd9f5bee6784d4b06c7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"}]'
|
103
|
+
http_version: !!null
|
104
|
+
recorded_at: Sun, 15 Jan 2012 19:38:37 GMT
|
105
|
+
- request:
|
106
|
+
method: get
|
107
|
+
uri: https://api.github.com/
|
108
|
+
body: 'null'
|
109
|
+
headers:
|
110
|
+
Content-Type:
|
111
|
+
- application/json
|
112
|
+
Accept:
|
113
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
114
|
+
text/plain
|
115
|
+
response:
|
116
|
+
status:
|
117
|
+
code: 204
|
118
|
+
message: !!null
|
119
|
+
headers:
|
120
|
+
server:
|
121
|
+
- nginx/1.0.4
|
122
|
+
date:
|
123
|
+
- Mon, 16 Jan 2012 02:45:56 GMT
|
124
|
+
connection:
|
125
|
+
- close
|
126
|
+
status:
|
127
|
+
- 204 No Content
|
128
|
+
x-ratelimit-limit:
|
129
|
+
- '5000'
|
130
|
+
etag:
|
131
|
+
- ! '"d41d8cd98f00b204e9800998ecf8427e"'
|
132
|
+
x-ratelimit-remaining:
|
133
|
+
- '4986'
|
134
|
+
body: ''
|
135
|
+
http_version: !!null
|
136
|
+
recorded_at: Mon, 16 Jan 2012 02:45:56 GMT
|
137
|
+
- request:
|
138
|
+
method: get
|
139
|
+
uri: https://api.github.com/users/avdi
|
140
|
+
body: 'null'
|
141
|
+
headers:
|
142
|
+
Content-Type:
|
143
|
+
- application/json
|
144
|
+
Accept:
|
145
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
146
|
+
text/plain
|
147
|
+
response:
|
148
|
+
status:
|
149
|
+
code: 200
|
150
|
+
message: !!null
|
151
|
+
headers:
|
152
|
+
server:
|
153
|
+
- nginx/1.0.4
|
154
|
+
date:
|
155
|
+
- Mon, 16 Jan 2012 02:45:57 GMT
|
156
|
+
content-type:
|
157
|
+
- application/json; charset=utf-8
|
158
|
+
transfer-encoding:
|
159
|
+
- chunked
|
160
|
+
connection:
|
161
|
+
- close
|
162
|
+
status:
|
163
|
+
- 200 OK
|
164
|
+
x-ratelimit-limit:
|
165
|
+
- '5000'
|
166
|
+
etag:
|
167
|
+
- ! '"74395e5a689da4f1481dfb8c8730df12"'
|
168
|
+
x-ratelimit-remaining:
|
169
|
+
- '4985'
|
170
|
+
body: ! '{"type":"User","created_at":"2008-02-26T19:54:34Z","email":"avdi@avdi.org","url":"https://api.github.com/users/avdi","avatar_url":"https://secure.gravatar.com/avatar/4dea430d31b993abaf41cd9b54f8128d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"avdi","public_repos":61,"hireable":false,"followers":182,"following":33,"bio":null,"blog":"http://avdi.org/devblog/","public_gists":72,"name":"Avdi
|
171
|
+
Grimm","location":"Pennsylvania, USA","id":982,"html_url":"https://github.com/avdi","company":"ShipRise","gravatar_id":"4dea430d31b993abaf41cd9b54f8128d"}'
|
172
|
+
http_version: !!null
|
173
|
+
recorded_at: Mon, 16 Jan 2012 02:45:57 GMT
|
174
|
+
- request:
|
175
|
+
method: get
|
176
|
+
uri: https://api.github.com/users/avdi/followers
|
177
|
+
body: 'null'
|
178
|
+
headers:
|
179
|
+
Content-Type:
|
180
|
+
- application/json
|
181
|
+
Accept:
|
182
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
183
|
+
text/plain
|
184
|
+
response:
|
185
|
+
status:
|
186
|
+
code: 200
|
187
|
+
message: !!null
|
188
|
+
headers:
|
189
|
+
server:
|
190
|
+
- nginx/1.0.4
|
191
|
+
date:
|
192
|
+
- Mon, 16 Jan 2012 02:45:57 GMT
|
193
|
+
content-type:
|
194
|
+
- application/json; charset=utf-8
|
195
|
+
transfer-encoding:
|
196
|
+
- chunked
|
197
|
+
connection:
|
198
|
+
- close
|
199
|
+
status:
|
200
|
+
- 200 OK
|
201
|
+
x-ratelimit-limit:
|
202
|
+
- '5000'
|
203
|
+
etag:
|
204
|
+
- ! '"ab1c482b0624d57d2f13a64ed9ea0eb9"'
|
205
|
+
link:
|
206
|
+
- <https://api.github.com/users/avdi/followers?page=2>; rel="next", <https://api.github.com/users/avdi/followers?page=7>;
|
207
|
+
rel="last"
|
208
|
+
x-ratelimit-remaining:
|
209
|
+
- '4984'
|
210
|
+
body: ! '[{"avatar_url":"https://secure.gravatar.com/avatar/0176d9564601b43d75aff59f2cceed88?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/cypher","login":"cypher","gravatar_id":"0176d9564601b43d75aff59f2cceed88","id":978},{"avatar_url":"https://secure.gravatar.com/avatar/515a6f36db0157b7cf83f3b0368e9941?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/tim","login":"tim","gravatar_id":"515a6f36db0157b7cf83f3b0368e9941","id":2856},{"avatar_url":"https://secure.gravatar.com/avatar/75bcdfe5499e68879fda2957572170ad?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/SebastianRose","login":"SebastianRose","gravatar_id":"75bcdfe5499e68879fda2957572170ad","id":23090},{"avatar_url":"https://secure.gravatar.com/avatar/e46e70d2689dfa229dac7ba0dc9f34e4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/cola-zero","login":"cola-zero","gravatar_id":"e46e70d2689dfa229dac7ba0dc9f34e4","id":9118},{"avatar_url":"https://secure.gravatar.com/avatar/4c2cadf461b9c15ebf5726577b51e611?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/janfri","login":"janfri","gravatar_id":"4c2cadf461b9c15ebf5726577b51e611","id":854},{"avatar_url":"https://secure.gravatar.com/avatar/dfaba90dcff3238dc9770e270232b4a1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/nevans","login":"nevans","gravatar_id":"dfaba90dcff3238dc9770e270232b4a1","id":6142},{"avatar_url":"https://secure.gravatar.com/avatar/2b405e0fc139db9b768cfab467955e04?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/TreyE","login":"TreyE","gravatar_id":"2b405e0fc139db9b768cfab467955e04","id":38384},{"avatar_url":"https://secure.gravatar.com/avatar/aad77082a3f5b51259532217aadf450a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/aaalex","login":"aaalex","gravatar_id":"aad77082a3f5b51259532217aadf450a","id":11762},{"avatar_url":"https://secure.gravatar.com/avatar/32093c41c663ea62b17d66dab11b789f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/beppu","login":"beppu","gravatar_id":"32093c41c663ea62b17d66dab11b789f","id":4425},{"avatar_url":"https://secure.gravatar.com/avatar/490dc3575b1c341a84e89cba6305faf9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jdallien","login":"jdallien","gravatar_id":"490dc3575b1c341a84e89cba6305faf9","id":17927},{"avatar_url":"https://secure.gravatar.com/avatar/17faa52c4ce95a86ac34b4d3010ea56d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/arn","login":"arn","gravatar_id":"17faa52c4ce95a86ac34b4d3010ea56d","id":6053},{"avatar_url":"https://secure.gravatar.com/avatar/aa7c1350d93036592f58f165318044db?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/llimllib","login":"llimllib","gravatar_id":"aa7c1350d93036592f58f165318044db","id":7150},{"avatar_url":"https://secure.gravatar.com/avatar/63d809dbf4d44297f73caad307972ec5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jtrupiano","login":"jtrupiano","gravatar_id":"63d809dbf4d44297f73caad307972ec5","id":12331},{"avatar_url":"https://secure.gravatar.com/avatar/f027637a680a05254c6f721f8ab57392?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/lmarburger","login":"lmarburger","gravatar_id":"f027637a680a05254c6f721f8ab57392","id":23582},{"avatar_url":"https://secure.gravatar.com/avatar/5f76cc23c75e77aa30ff1ac1fbf1ec54?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/lfaren","login":"lfaren","gravatar_id":"5f76cc23c75e77aa30ff1ac1fbf1ec54","id":142776},{"avatar_url":"https://secure.gravatar.com/avatar/3f4de376ba800ba092d9e1e332ede421?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/slaney","login":"slaney","gravatar_id":"3f4de376ba800ba092d9e1e332ede421","id":5012},{"avatar_url":"https://secure.gravatar.com/avatar/1fdf54b0ccb88bb46f99b6d9352302dc?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/stevenhaddox","login":"stevenhaddox","gravatar_id":"1fdf54b0ccb88bb46f99b6d9352302dc","id":58004},{"avatar_url":"https://secure.gravatar.com/avatar/dca772bde69d5a9f39a62ee79b122f0b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/stonegao","login":"stonegao","gravatar_id":"dca772bde69d5a9f39a62ee79b122f0b","id":42081},{"avatar_url":"https://secure.gravatar.com/avatar/788dec4942d6108c2cfb3ff2a9fb37ca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/riethmayer","login":"riethmayer","gravatar_id":"788dec4942d6108c2cfb3ff2a9fb37ca","id":67637},{"avatar_url":"https://secure.gravatar.com/avatar/ed5c8e9a67490816384ff83e9d0e0a42?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/natebunnyfield","login":"natebunnyfield","gravatar_id":"ed5c8e9a67490816384ff83e9d0e0a42","id":94285},{"avatar_url":"https://secure.gravatar.com/avatar/cf491f57897e7f31122ca6d03d6a49e4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/nerdEd","login":"nerdEd","gravatar_id":"cf491f57897e7f31122ca6d03d6a49e4","id":1726},{"avatar_url":"https://secure.gravatar.com/avatar/3538353e7f9c08efddaabff15c9c6480?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jamesdaniels","login":"jamesdaniels","gravatar_id":"3538353e7f9c08efddaabff15c9c6480","id":44975},{"avatar_url":"https://secure.gravatar.com/avatar/d5cdad8cf459a2f3660d374e72eccf4b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jkamenik","login":"jkamenik","gravatar_id":"d5cdad8cf459a2f3660d374e72eccf4b","id":165914},{"avatar_url":"https://secure.gravatar.com/avatar/58dac781cb69c3342f0a73c8936cf48b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/mnelson","login":"mnelson","gravatar_id":"58dac781cb69c3342f0a73c8936cf48b","id":51276},{"avatar_url":"https://secure.gravatar.com/avatar/7ea1a46afc3c483ef7ae7b6503b41793?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/devreq","login":"devreq","gravatar_id":"7ea1a46afc3c483ef7ae7b6503b41793","id":230532},{"avatar_url":"https://secure.gravatar.com/avatar/ffca7d80230ae1f99914b74853bf06bb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/flipsasser","login":"flipsasser","gravatar_id":"ffca7d80230ae1f99914b74853bf06bb","id":8594},{"avatar_url":"https://secure.gravatar.com/avatar/939848268c73b4049f90ee0703df7c68?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/abachman","login":"abachman","gravatar_id":"939848268c73b4049f90ee0703df7c68","id":13002},{"avatar_url":"https://secure.gravatar.com/avatar/6661ef9d747db3af8896cd94959d717d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/pjb3","login":"pjb3","gravatar_id":"6661ef9d747db3af8896cd94959d717d","id":726},{"avatar_url":"https://secure.gravatar.com/avatar/5bc3ee98b5a5bd0cd936554de2bdc232?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/arcterex","login":"arcterex","gravatar_id":"5bc3ee98b5a5bd0cd936554de2bdc232","id":70160},{"avatar_url":"https://secure.gravatar.com/avatar/a86224d72ce21cd9f5bee6784d4b06c7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atmos","login":"atmos","gravatar_id":"a86224d72ce21cd9f5bee6784d4b06c7","id":38}]'
|
211
|
+
http_version: !!null
|
212
|
+
recorded_at: Mon, 16 Jan 2012 02:45:57 GMT
|
100
213
|
recorded_with: VCR 2.0.0.rc1
|
@@ -1,32 +1,65 @@
|
|
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
|
-
Accept:
|
9
|
-
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
10
|
-
|
11
|
-
|
6
|
+
body: ''
|
7
|
+
headers:
|
8
|
+
Accept:
|
9
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
10
|
+
text/plain
|
11
|
+
response:
|
12
|
+
status:
|
12
13
|
code: 204
|
13
|
-
message:
|
14
|
-
headers:
|
15
|
-
server:
|
14
|
+
message: !!null
|
15
|
+
headers:
|
16
|
+
server:
|
16
17
|
- nginx/1.0.4
|
17
|
-
date:
|
18
|
-
-
|
19
|
-
connection:
|
18
|
+
date:
|
19
|
+
- Sun, 15 Jan 2012 19:38:33 GMT
|
20
|
+
connection:
|
20
21
|
- close
|
21
|
-
status:
|
22
|
+
status:
|
22
23
|
- 204 No Content
|
23
|
-
x-ratelimit-limit:
|
24
|
-
-
|
25
|
-
etag:
|
26
|
-
- "
|
27
|
-
x-ratelimit-remaining:
|
28
|
-
-
|
29
|
-
body:
|
30
|
-
http_version:
|
31
|
-
recorded_at:
|
24
|
+
x-ratelimit-limit:
|
25
|
+
- '5000'
|
26
|
+
etag:
|
27
|
+
- ! '"d41d8cd98f00b204e9800998ecf8427e"'
|
28
|
+
x-ratelimit-remaining:
|
29
|
+
- '4993'
|
30
|
+
body: ''
|
31
|
+
http_version: !!null
|
32
|
+
recorded_at: Sun, 15 Jan 2012 19:38:33 GMT
|
33
|
+
- request:
|
34
|
+
method: get
|
35
|
+
uri: https://api.github.com/
|
36
|
+
body: 'null'
|
37
|
+
headers:
|
38
|
+
Content-Type:
|
39
|
+
- application/json
|
40
|
+
Accept:
|
41
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
42
|
+
text/plain
|
43
|
+
response:
|
44
|
+
status:
|
45
|
+
code: 204
|
46
|
+
message: !!null
|
47
|
+
headers:
|
48
|
+
server:
|
49
|
+
- nginx/1.0.4
|
50
|
+
date:
|
51
|
+
- Mon, 16 Jan 2012 02:45:54 GMT
|
52
|
+
connection:
|
53
|
+
- close
|
54
|
+
status:
|
55
|
+
- 204 No Content
|
56
|
+
x-ratelimit-limit:
|
57
|
+
- '5000'
|
58
|
+
etag:
|
59
|
+
- ! '"d41d8cd98f00b204e9800998ecf8427e"'
|
60
|
+
x-ratelimit-remaining:
|
61
|
+
- '4993'
|
62
|
+
body: ''
|
63
|
+
http_version: !!null
|
64
|
+
recorded_at: Mon, 16 Jan 2012 02:45:54 GMT
|
32
65
|
recorded_with: VCR 2.0.0.rc1
|
@@ -1,32 +1,65 @@
|
|
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
|
-
Accept:
|
9
|
-
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
10
|
-
|
11
|
-
|
6
|
+
body: ''
|
7
|
+
headers:
|
8
|
+
Accept:
|
9
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
10
|
+
text/plain
|
11
|
+
response:
|
12
|
+
status:
|
12
13
|
code: 204
|
13
|
-
message:
|
14
|
-
headers:
|
15
|
-
server:
|
14
|
+
message: !!null
|
15
|
+
headers:
|
16
|
+
server:
|
16
17
|
- nginx/1.0.4
|
17
|
-
date:
|
18
|
-
-
|
19
|
-
connection:
|
18
|
+
date:
|
19
|
+
- Sun, 15 Jan 2012 19:38:34 GMT
|
20
|
+
connection:
|
20
21
|
- close
|
21
|
-
status:
|
22
|
+
status:
|
22
23
|
- 204 No Content
|
23
|
-
x-ratelimit-limit:
|
24
|
-
-
|
25
|
-
etag:
|
26
|
-
- "
|
27
|
-
x-ratelimit-remaining:
|
28
|
-
-
|
29
|
-
body:
|
30
|
-
http_version:
|
31
|
-
recorded_at:
|
24
|
+
x-ratelimit-limit:
|
25
|
+
- '5000'
|
26
|
+
etag:
|
27
|
+
- ! '"d41d8cd98f00b204e9800998ecf8427e"'
|
28
|
+
x-ratelimit-remaining:
|
29
|
+
- '4992'
|
30
|
+
body: ''
|
31
|
+
http_version: !!null
|
32
|
+
recorded_at: Sun, 15 Jan 2012 19:38:34 GMT
|
33
|
+
- request:
|
34
|
+
method: get
|
35
|
+
uri: https://api.github.com/
|
36
|
+
body: 'null'
|
37
|
+
headers:
|
38
|
+
Content-Type:
|
39
|
+
- application/json
|
40
|
+
Accept:
|
41
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
42
|
+
text/plain
|
43
|
+
response:
|
44
|
+
status:
|
45
|
+
code: 204
|
46
|
+
message: !!null
|
47
|
+
headers:
|
48
|
+
server:
|
49
|
+
- nginx/1.0.4
|
50
|
+
date:
|
51
|
+
- Mon, 16 Jan 2012 02:45:54 GMT
|
52
|
+
connection:
|
53
|
+
- close
|
54
|
+
status:
|
55
|
+
- 204 No Content
|
56
|
+
x-ratelimit-limit:
|
57
|
+
- '5000'
|
58
|
+
etag:
|
59
|
+
- ! '"d41d8cd98f00b204e9800998ecf8427e"'
|
60
|
+
x-ratelimit-remaining:
|
61
|
+
- '4992'
|
62
|
+
body: ''
|
63
|
+
http_version: !!null
|
64
|
+
recorded_at: Mon, 16 Jan 2012 02:45:54 GMT
|
32
65
|
recorded_with: VCR 2.0.0.rc1
|