red5 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/README.md +55 -1
- data/Rakefile +3 -1
- data/lib/red_5.rb +19 -0
- data/lib/red_5/exceptions/red_5_exception.rb +9 -0
- data/lib/red_5/helpers.rb +8 -0
- data/lib/red_5/models/entities.rb +54 -0
- data/lib/{red5 → red_5/models}/films.rb +1 -1
- data/lib/{red5 → red_5/models}/people.rb +1 -1
- data/lib/{red5 → red_5/models}/planets.rb +1 -1
- data/lib/{red5 → red_5/models}/species.rb +1 -1
- data/lib/{red5 → red_5/models}/starships.rb +1 -1
- data/lib/{red5 → red_5/models}/vehicles.rb +1 -1
- data/lib/{red5 → red_5}/root.rb +1 -1
- data/lib/red_5/version.rb +3 -0
- data/red5.gemspec +4 -1
- data/spec/cassettes/Failure/404s/raises_an_exception_on_a_ludicrous_request.yml +96 -0
- data/spec/cassettes/Failure/404s/raises_an_exception_on_a_non-existent_thing.yml +96 -0
- data/spec/cassettes/Failure/Non-existent_attributes/raises_an_exception_on_a_bogus_lookup.yml +101 -0
- data/spec/cassettes/Red5_Films/finds_a_particular_film.yml +111 -0
- data/spec/cassettes/Red5_Films/has_OpenStruct-type_lookups.yml +111 -0
- data/spec/cassettes/Red5_Films/returns_a_film.yml +111 -0
- data/spec/cassettes/Red5_People/fetches_the_species_for_a_person.yml +155 -0
- data/spec/cassettes/{Red_5_People/should_find_a_person.yml → Red5_People/finds_a_particular_person.yml} +13 -13
- data/spec/cassettes/Red5_People/has_an_id.yml +101 -0
- data/spec/cassettes/Red5_People/returns_a_person.yml +101 -0
- data/spec/cassettes/{Red_5_Planets/should_find_a_planet.yml → Red5_Planets/finds_a_planet.yml} +18 -18
- data/spec/cassettes/Red5_Species/fetches_the_homeworld_for_a_species.yml +157 -0
- data/spec/cassettes/Red5_Species/finds_a_homeworld_for_a_species.yml +101 -0
- data/spec/cassettes/Red5_Species/finds_a_species.yml +101 -0
- data/spec/cassettes/Red5_Starships/Failure/raises_an_exception_on_a_ludicrous_request.yml +96 -0
- data/spec/cassettes/Red5_Starships/Failure/raises_an_exception_on_a_non-existent_thing.yml +96 -0
- data/spec/cassettes/Red5_Starships/finds_a_starship.yml +102 -0
- data/spec/cassettes/Red5_Vehicles/finds_a_vehicle.yml +102 -0
- data/spec/cassettes/Red_5_Films/finds_a_particular_film.yml +111 -0
- data/spec/cassettes/Red_5_Films/returns_a_film.yml +111 -0
- data/spec/cassettes/Red_5_People/fetches_the_species_for_a_person.yml +155 -0
- data/spec/cassettes/Red_5_People/finds_a_particular_person.yml +101 -0
- data/spec/cassettes/Red_5_People/gets_the_species_for_a_person.yml +252 -0
- data/spec/cassettes/Red_5_People/has_an_id.yml +101 -0
- data/spec/cassettes/Red_5_People/returns_a_person.yml +101 -0
- data/spec/cassettes/Red_5_Species/fetches_the_homeworld_for_a_species.yml +157 -0
- data/spec/cassettes/Red_5_Species/finds_a_homeworld_for_a_species.yml +101 -0
- data/spec/cassettes/Red_5_Species/gets_the_homeworld_for_a_species.yml +157 -0
- data/spec/cassettes/Red_5_Starships/Failure/raises_an_exception_on_a_non-existent_thing.yml +96 -0
- data/spec/failure_spec.rb +31 -0
- data/spec/models/films_spec.rb +15 -0
- data/spec/models/people_spec.rb +25 -0
- data/spec/models/planets_spec.rb +10 -0
- data/spec/models/species_spec.rb +20 -0
- data/spec/models/starships_spec.rb +10 -0
- data/spec/models/vehicles_spec.rb +10 -0
- data/spec/red5_spec.rb +2 -45
- data/spec/spec_helper.rb +1 -1
- metadata +129 -17
- data/lib/red5.rb +0 -14
- data/lib/red5/entities.rb +0 -9
- data/lib/red5/version.rb +0 -3
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
message: MOVED PERMANENTLY
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Tue, 23 Dec 2014 13:54:05 GMT
|
23
23
|
Content-Type:
|
24
24
|
- text/html; charset=utf-8
|
25
25
|
Transfer-Encoding:
|
@@ -27,23 +27,23 @@ http_interactions:
|
|
27
27
|
Connection:
|
28
28
|
- keep-alive
|
29
29
|
Set-Cookie:
|
30
|
-
- __cfduid=
|
31
|
-
|
32
|
-
X-Frame-Options:
|
33
|
-
- SAMEORIGIN
|
30
|
+
- __cfduid=dd36b0aacf86043d75c9f7318b3e16fd71419342845; expires=Wed, 23-Dec-15
|
31
|
+
13:54:05 GMT; path=/; domain=.swapi.co; HttpOnly
|
34
32
|
Location:
|
35
33
|
- http://swapi.co/api/people/7/
|
34
|
+
X-Frame-Options:
|
35
|
+
- SAMEORIGIN
|
36
36
|
Via:
|
37
37
|
- 1.1 vegur
|
38
38
|
Server:
|
39
39
|
- cloudflare-nginx
|
40
40
|
Cf-Ray:
|
41
|
-
-
|
41
|
+
- 19d50c918cd30a78-LHR
|
42
42
|
body:
|
43
43
|
encoding: UTF-8
|
44
44
|
string: ''
|
45
45
|
http_version:
|
46
|
-
recorded_at:
|
46
|
+
recorded_at: Tue, 23 Dec 2014 13:54:05 GMT
|
47
47
|
- request:
|
48
48
|
method: get
|
49
49
|
uri: http://swapi.co/api/people/7/
|
@@ -56,7 +56,7 @@ http_interactions:
|
|
56
56
|
Accept-Encoding:
|
57
57
|
- gzip, deflate
|
58
58
|
Cookie:
|
59
|
-
- __cfduid=
|
59
|
+
- __cfduid=dd36b0aacf86043d75c9f7318b3e16fd71419342845; domain=.swapi.co
|
60
60
|
User-Agent:
|
61
61
|
- Ruby
|
62
62
|
response:
|
@@ -65,17 +65,17 @@ http_interactions:
|
|
65
65
|
message: OK
|
66
66
|
headers:
|
67
67
|
Date:
|
68
|
-
-
|
68
|
+
- Tue, 23 Dec 2014 13:54:06 GMT
|
69
69
|
Content-Type:
|
70
70
|
- application/json
|
71
71
|
Transfer-Encoding:
|
72
72
|
- chunked
|
73
73
|
Connection:
|
74
74
|
- keep-alive
|
75
|
-
Allow:
|
76
|
-
- GET, HEAD, OPTIONS
|
77
75
|
X-Frame-Options:
|
78
76
|
- SAMEORIGIN
|
77
|
+
Allow:
|
78
|
+
- GET, HEAD, OPTIONS
|
79
79
|
Vary:
|
80
80
|
- Accept, Cookie
|
81
81
|
Via:
|
@@ -83,7 +83,7 @@ http_interactions:
|
|
83
83
|
Server:
|
84
84
|
- cloudflare-nginx
|
85
85
|
Cf-Ray:
|
86
|
-
-
|
86
|
+
- 19d50c925d860a78-LHR
|
87
87
|
Content-Encoding:
|
88
88
|
- gzip
|
89
89
|
body:
|
@@ -97,5 +97,5 @@ http_interactions:
|
|
97
97
|
VFCDEOKxzOdgfmu12NYgoZOtqNZwd9WmaG+NAX2wyDvO3j8AAAD//wMAbdOz
|
98
98
|
O88BAAA=
|
99
99
|
http_version:
|
100
|
-
recorded_at:
|
100
|
+
recorded_at: Tue, 23 Dec 2014 13:54:06 GMT
|
101
101
|
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,101 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://swapi.co/api/people/13
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 301
|
19
|
+
message: MOVED PERMANENTLY
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Tue, 23 Dec 2014 13:54:05 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/html; charset=utf-8
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Set-Cookie:
|
30
|
+
- __cfduid=dd36b0aacf86043d75c9f7318b3e16fd71419342845; expires=Wed, 23-Dec-15
|
31
|
+
13:54:05 GMT; path=/; domain=.swapi.co; HttpOnly
|
32
|
+
Location:
|
33
|
+
- http://swapi.co/api/people/13/
|
34
|
+
X-Frame-Options:
|
35
|
+
- SAMEORIGIN
|
36
|
+
Via:
|
37
|
+
- 1.1 vegur
|
38
|
+
Server:
|
39
|
+
- cloudflare-nginx
|
40
|
+
Cf-Ray:
|
41
|
+
- 19d50c8d6d060a78-LHR
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: ''
|
45
|
+
http_version:
|
46
|
+
recorded_at: Tue, 23 Dec 2014 13:54:05 GMT
|
47
|
+
- request:
|
48
|
+
method: get
|
49
|
+
uri: http://swapi.co/api/people/13/
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ''
|
53
|
+
headers:
|
54
|
+
Accept:
|
55
|
+
- "*/*; q=0.5, application/xml"
|
56
|
+
Accept-Encoding:
|
57
|
+
- gzip, deflate
|
58
|
+
Cookie:
|
59
|
+
- __cfduid=dd36b0aacf86043d75c9f7318b3e16fd71419342845; domain=.swapi.co
|
60
|
+
User-Agent:
|
61
|
+
- Ruby
|
62
|
+
response:
|
63
|
+
status:
|
64
|
+
code: 200
|
65
|
+
message: OK
|
66
|
+
headers:
|
67
|
+
Date:
|
68
|
+
- Tue, 23 Dec 2014 13:54:05 GMT
|
69
|
+
Content-Type:
|
70
|
+
- application/json
|
71
|
+
Transfer-Encoding:
|
72
|
+
- chunked
|
73
|
+
Connection:
|
74
|
+
- keep-alive
|
75
|
+
X-Frame-Options:
|
76
|
+
- SAMEORIGIN
|
77
|
+
Allow:
|
78
|
+
- GET, HEAD, OPTIONS
|
79
|
+
Vary:
|
80
|
+
- Accept, Cookie
|
81
|
+
Via:
|
82
|
+
- 1.1 vegur
|
83
|
+
Server:
|
84
|
+
- cloudflare-nginx
|
85
|
+
Cf-Ray:
|
86
|
+
- 19d50c8e1d150a78-LHR
|
87
|
+
Content-Encoding:
|
88
|
+
- gzip
|
89
|
+
body:
|
90
|
+
encoding: ASCII-8BIT
|
91
|
+
string: !binary |-
|
92
|
+
H4sIAAAAAAAAA3yRwW7CMAyG36XnQWJTuq1HeAUu2zShkHokIk2qNF2Fpr37
|
93
|
+
HGCgSSunyN//xXKcr8Krloq6WBsad0prVTwUhuzeJIaIT1y2qu+5AMCcKRu3
|
94
|
+
OrgQGe1iGD3D/mD9FQ7+4M+YjnRT3UCMdjYmsz2SygylXK1emO7JN5RJq1y2
|
95
|
+
TGhpDNE1jExKXS1EP6rOznUQfIjOKU+pF1AKtj+sa3nAt3/VUygge9Mx3o8X
|
96
|
+
9+NKFO+8g460pck5LnHuxfInGavdtP2bC3g+N08q9sZ2kxeuggA5Ne3NQTx1
|
97
|
+
1ZFUorxklFDOAGcgN1DVJdblci6rSkr5mv+xsX81lBuEGh7rpZwvFnjRhuim
|
98
|
+
/otC50gAP/77BwAA//8DAMsml4pyAgAA
|
99
|
+
http_version:
|
100
|
+
recorded_at: Tue, 23 Dec 2014 13:54:05 GMT
|
101
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,101 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://swapi.co/api/people/1
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 301
|
19
|
+
message: MOVED PERMANENTLY
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Tue, 23 Dec 2014 13:54:06 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/html; charset=utf-8
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Set-Cookie:
|
30
|
+
- __cfduid=d2b9e36c0a1c1167db94336e1b9a0d5581419342846; expires=Wed, 23-Dec-15
|
31
|
+
13:54:06 GMT; path=/; domain=.swapi.co; HttpOnly
|
32
|
+
Location:
|
33
|
+
- http://swapi.co/api/people/1/
|
34
|
+
X-Frame-Options:
|
35
|
+
- SAMEORIGIN
|
36
|
+
Via:
|
37
|
+
- 1.1 vegur
|
38
|
+
Server:
|
39
|
+
- cloudflare-nginx
|
40
|
+
Cf-Ray:
|
41
|
+
- 19d50c957d6c0a78-LHR
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: ''
|
45
|
+
http_version:
|
46
|
+
recorded_at: Tue, 23 Dec 2014 13:54:06 GMT
|
47
|
+
- request:
|
48
|
+
method: get
|
49
|
+
uri: http://swapi.co/api/people/1/
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ''
|
53
|
+
headers:
|
54
|
+
Accept:
|
55
|
+
- "*/*; q=0.5, application/xml"
|
56
|
+
Accept-Encoding:
|
57
|
+
- gzip, deflate
|
58
|
+
Cookie:
|
59
|
+
- __cfduid=d2b9e36c0a1c1167db94336e1b9a0d5581419342846; domain=.swapi.co
|
60
|
+
User-Agent:
|
61
|
+
- Ruby
|
62
|
+
response:
|
63
|
+
status:
|
64
|
+
code: 200
|
65
|
+
message: OK
|
66
|
+
headers:
|
67
|
+
Date:
|
68
|
+
- Tue, 23 Dec 2014 13:54:07 GMT
|
69
|
+
Content-Type:
|
70
|
+
- application/json
|
71
|
+
Transfer-Encoding:
|
72
|
+
- chunked
|
73
|
+
Connection:
|
74
|
+
- keep-alive
|
75
|
+
X-Frame-Options:
|
76
|
+
- SAMEORIGIN
|
77
|
+
Allow:
|
78
|
+
- GET, HEAD, OPTIONS
|
79
|
+
Vary:
|
80
|
+
- Accept, Cookie
|
81
|
+
Via:
|
82
|
+
- 1.1 vegur
|
83
|
+
Server:
|
84
|
+
- cloudflare-nginx
|
85
|
+
Cf-Ray:
|
86
|
+
- 19d50c963cf10a78-LHR
|
87
|
+
Content-Encoding:
|
88
|
+
- gzip
|
89
|
+
body:
|
90
|
+
encoding: ASCII-8BIT
|
91
|
+
string: !binary |-
|
92
|
+
H4sIAAAAAAAAAwAAAP//fJHLTsMwEEV/BWVN40dexMuu2dENIFS5ybS24sSR
|
93
|
+
4xBFiH9nnEIBqenKmnOPR2PPR9TJFiIRPY4N3D018yRNAy66jxTok/KYsIJj
|
94
|
+
2cphwKIoQiS121fWWIfkYGxXIxwa3V3gEQ1kMMMfbwREB+282s8gA2PldvuM
|
95
|
+
8ARdDQG00gRJ2RYm60yNSHnfC0KGSfY6rizBg/RGduAHwgjKR21aHO31qrmE
|
96
|
+
Z2895rfj5Hack+gNn99DpSHMgcU7KF2Zpbp68ScnLF3rfVESeu7vpRuU7ld7
|
97
|
+
XgTCVt/z63C+dK0cSA/hmzll6YbxDS13LBEZFRmL8zSllL6ERdb6v8bpjjPB
|
98
|
+
CpHl8UPJvrXRmbWNge0NhEV8fgEAAP//AwCEcYkzcwIAAA==
|
99
|
+
http_version:
|
100
|
+
recorded_at: Tue, 23 Dec 2014 13:54:07 GMT
|
101
|
+
recorded_with: VCR 2.9.3
|
data/spec/cassettes/{Red_5_Planets/should_find_a_planet.yml → Red5_Planets/finds_a_planet.yml}
RENAMED
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
message: MOVED PERMANENTLY
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Tue, 23 Dec 2014 13:53:59 GMT
|
23
23
|
Content-Type:
|
24
24
|
- text/html; charset=utf-8
|
25
25
|
Transfer-Encoding:
|
@@ -27,23 +27,23 @@ http_interactions:
|
|
27
27
|
Connection:
|
28
28
|
- keep-alive
|
29
29
|
Set-Cookie:
|
30
|
-
- __cfduid=
|
31
|
-
|
32
|
-
X-Frame-Options:
|
33
|
-
- SAMEORIGIN
|
30
|
+
- __cfduid=dbcca3d2bd2c55b5676abb84adcfec1251419342839; expires=Wed, 23-Dec-15
|
31
|
+
13:53:59 GMT; path=/; domain=.swapi.co; HttpOnly
|
34
32
|
Location:
|
35
33
|
- http://swapi.co/api/planets/2/
|
34
|
+
X-Frame-Options:
|
35
|
+
- SAMEORIGIN
|
36
36
|
Via:
|
37
37
|
- 1.1 vegur
|
38
38
|
Server:
|
39
39
|
- cloudflare-nginx
|
40
40
|
Cf-Ray:
|
41
|
-
-
|
41
|
+
- 19d50c69fd4f0a72-LHR
|
42
42
|
body:
|
43
43
|
encoding: UTF-8
|
44
44
|
string: ''
|
45
45
|
http_version:
|
46
|
-
recorded_at:
|
46
|
+
recorded_at: Tue, 23 Dec 2014 13:53:59 GMT
|
47
47
|
- request:
|
48
48
|
method: get
|
49
49
|
uri: http://swapi.co/api/planets/2/
|
@@ -56,7 +56,7 @@ http_interactions:
|
|
56
56
|
Accept-Encoding:
|
57
57
|
- gzip, deflate
|
58
58
|
Cookie:
|
59
|
-
- __cfduid=
|
59
|
+
- __cfduid=dbcca3d2bd2c55b5676abb84adcfec1251419342839; domain=.swapi.co
|
60
60
|
User-Agent:
|
61
61
|
- Ruby
|
62
62
|
response:
|
@@ -65,7 +65,7 @@ http_interactions:
|
|
65
65
|
message: OK
|
66
66
|
headers:
|
67
67
|
Date:
|
68
|
-
-
|
68
|
+
- Tue, 23 Dec 2014 13:54:00 GMT
|
69
69
|
Content-Type:
|
70
70
|
- application/json
|
71
71
|
Transfer-Encoding:
|
@@ -83,19 +83,19 @@ http_interactions:
|
|
83
83
|
Server:
|
84
84
|
- cloudflare-nginx
|
85
85
|
Cf-Ray:
|
86
|
-
-
|
86
|
+
- 19d50c6b37730a78-LHR
|
87
87
|
Content-Encoding:
|
88
88
|
- gzip
|
89
89
|
body:
|
90
90
|
encoding: ASCII-8BIT
|
91
91
|
string: !binary |-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
92
|
+
H4sIAAAAAAAAA4SQ3U7EIBCFX2XDdXeBblsrd77DXmnMZiyzSkKBwNSNMb67
|
93
|
+
QzfGmLjKDeScjzM/7yLAjMKIO28xAwTRiBwJyMVwTJhdtGy2HcsxPzkC/63u
|
94
|
+
hypbxwGEmQXd9kqxNHk3A9VUwpnx+m7Ec4ZXR2+V2xSCYCFblvlrBhdYZqAU
|
95
|
+
z0ZpNnNcArFcmChLPsGExzNcynS1Ropp8WubtT/1dWr7WJzFQEWYB/FClIyU
|
96
|
+
5QzJ7aYo+ZIJY/Ioe8nwH/4w/gOMWorHRpycn6/WWk2pryVd7GHNmTLygOu6
|
97
|
+
le62ut1qddDa7HvTjbvu5pbHu+cctO4n1qpDq0w/Gs3YuoqKLdkz81vRxDtG
|
98
|
+
KrKV4uMTAAD//wMAMgUgfwACAAA=
|
99
99
|
http_version:
|
100
|
-
recorded_at:
|
100
|
+
recorded_at: Tue, 23 Dec 2014 13:54:00 GMT
|
101
101
|
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,157 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://swapi.co/api/species/3
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 301
|
19
|
+
message: MOVED PERMANENTLY
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Tue, 23 Dec 2014 13:54:00 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/html; charset=utf-8
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Set-Cookie:
|
30
|
+
- __cfduid=dbbf96403b90ea3808d31e8ba1266eb0d1419342840; expires=Wed, 23-Dec-15
|
31
|
+
13:54:00 GMT; path=/; domain=.swapi.co; HttpOnly
|
32
|
+
Location:
|
33
|
+
- http://swapi.co/api/species/3/
|
34
|
+
X-Frame-Options:
|
35
|
+
- SAMEORIGIN
|
36
|
+
Via:
|
37
|
+
- 1.1 vegur
|
38
|
+
Server:
|
39
|
+
- cloudflare-nginx
|
40
|
+
Cf-Ray:
|
41
|
+
- 19d50c6ed7f50a78-LHR
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: ''
|
45
|
+
http_version:
|
46
|
+
recorded_at: Tue, 23 Dec 2014 13:54:00 GMT
|
47
|
+
- request:
|
48
|
+
method: get
|
49
|
+
uri: http://swapi.co/api/species/3/
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ''
|
53
|
+
headers:
|
54
|
+
Accept:
|
55
|
+
- "*/*; q=0.5, application/xml"
|
56
|
+
Accept-Encoding:
|
57
|
+
- gzip, deflate
|
58
|
+
Cookie:
|
59
|
+
- __cfduid=dbbf96403b90ea3808d31e8ba1266eb0d1419342840; domain=.swapi.co
|
60
|
+
User-Agent:
|
61
|
+
- Ruby
|
62
|
+
response:
|
63
|
+
status:
|
64
|
+
code: 200
|
65
|
+
message: OK
|
66
|
+
headers:
|
67
|
+
Date:
|
68
|
+
- Tue, 23 Dec 2014 13:54:00 GMT
|
69
|
+
Content-Type:
|
70
|
+
- application/json
|
71
|
+
Transfer-Encoding:
|
72
|
+
- chunked
|
73
|
+
Connection:
|
74
|
+
- keep-alive
|
75
|
+
X-Frame-Options:
|
76
|
+
- SAMEORIGIN
|
77
|
+
Allow:
|
78
|
+
- GET, HEAD, OPTIONS
|
79
|
+
Vary:
|
80
|
+
- Accept, Cookie
|
81
|
+
Via:
|
82
|
+
- 1.1 vegur
|
83
|
+
Server:
|
84
|
+
- cloudflare-nginx
|
85
|
+
Cf-Ray:
|
86
|
+
- 19d50c6f99100a78-LHR
|
87
|
+
Content-Encoding:
|
88
|
+
- gzip
|
89
|
+
body:
|
90
|
+
encoding: ASCII-8BIT
|
91
|
+
string: !binary |-
|
92
|
+
H4sIAAAAAAAAAwAAAP//fJFbasMwEEW3EvTtRI+IELyNBgotJSjyxB4iS0JS
|
93
|
+
akzp3jt2UppC3Q9hdM5ldBl/MG96YDV7DuGCwCpmnckZz2hNweDJ9KbvjSPT
|
94
|
+
QMbWf+MMviAdEuYdkmnh2AG2XSGnpCCcL+iPNriQMrE2mZFgZzD9wJMz9lKt
|
95
|
+
TikMniSM8OiuUK3aBOCr1QjOheGeJBpcM+EEzcP7Ds+Qo5naaTE16EIPQ0iu
|
96
|
+
IdKVEmvO82Aibmzg9OHRGQ8lc6k5penSXmkOhZ+6MSEOtBPiEUJ0RF//njFb
|
97
|
+
LrfTiH8Ce8HZW8XO6Pq8NGuWXC5Numn1v17scdO7uYVNYApMa1FC6rVUaykO
|
98
|
+
cldrXW/lRu93QoiX6Yc0+DumxEHJektJtZFa3WPX5BY2nCNYhLnV5xcAAAD/
|
99
|
+
/wMAWkf+EmwCAAA=
|
100
|
+
http_version:
|
101
|
+
recorded_at: Tue, 23 Dec 2014 13:54:00 GMT
|
102
|
+
- request:
|
103
|
+
method: get
|
104
|
+
uri: http://swapi.co/api/planets/14/
|
105
|
+
body:
|
106
|
+
encoding: US-ASCII
|
107
|
+
string: ''
|
108
|
+
headers:
|
109
|
+
Accept:
|
110
|
+
- "*/*; q=0.5, application/xml"
|
111
|
+
Accept-Encoding:
|
112
|
+
- gzip, deflate
|
113
|
+
User-Agent:
|
114
|
+
- Ruby
|
115
|
+
response:
|
116
|
+
status:
|
117
|
+
code: 200
|
118
|
+
message: OK
|
119
|
+
headers:
|
120
|
+
Date:
|
121
|
+
- Tue, 23 Dec 2014 13:54:01 GMT
|
122
|
+
Content-Type:
|
123
|
+
- application/json
|
124
|
+
Transfer-Encoding:
|
125
|
+
- chunked
|
126
|
+
Connection:
|
127
|
+
- keep-alive
|
128
|
+
Set-Cookie:
|
129
|
+
- __cfduid=dbbf96403b90ea3808d31e8ba1266eb0d1419342840; expires=Wed, 23-Dec-15
|
130
|
+
13:54:00 GMT; path=/; domain=.swapi.co; HttpOnly
|
131
|
+
X-Frame-Options:
|
132
|
+
- SAMEORIGIN
|
133
|
+
Allow:
|
134
|
+
- GET, HEAD, OPTIONS
|
135
|
+
Vary:
|
136
|
+
- Accept, Cookie
|
137
|
+
Via:
|
138
|
+
- 1.1 vegur
|
139
|
+
Server:
|
140
|
+
- cloudflare-nginx
|
141
|
+
Cf-Ray:
|
142
|
+
- 19d50c72ba160a78-LHR
|
143
|
+
Content-Encoding:
|
144
|
+
- gzip
|
145
|
+
body:
|
146
|
+
encoding: ASCII-8BIT
|
147
|
+
string: !binary |-
|
148
|
+
H4sIAAAAAAAAA3yQ3U7DMAxGX2XKdbf8tCtVXoHbXYHQZFpvy5YmkZNuqhDv
|
149
|
+
jleQEBKQG0vHJ/6cvIkAIworHiGf5nm+iEpQLFBcDPuE5OLATdMyjvTqCvhv
|
150
|
+
Wnea8eB4QEFioM1Du2XUezdCuU8tFJPrwTM8Elxdme/aKhcIA9DAmG8SuMD4
|
151
|
+
PIWjx2p1iIS55Grl4YJcyF2RMqt5ogP0uL/BZ1yrGKaYJr+sy6TZquXcH4HZ
|
152
|
+
DRhKFvZZnEpJVsp8g+Q2fZRcZMKYPEpdS7b/ETolxUslDs6Pf85amrJdxJ6Q
|
153
|
+
91t+Telmrc1aq52ubW2sUhttGt7viSNxcD81o3ZG2W1ndbdpGvOlTeTZ+S00
|
154
|
+
eQhYstSNFO8fAAAA//8DAPxhDkbIAQAA
|
155
|
+
http_version:
|
156
|
+
recorded_at: Tue, 23 Dec 2014 13:54:01 GMT
|
157
|
+
recorded_with: VCR 2.9.3
|