tatooine 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +22 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +52 -0
  6. data/Rakefile +8 -0
  7. data/lib/tatooine.rb +17 -0
  8. data/lib/tatooine/error.rb +25 -0
  9. data/lib/tatooine/film.rb +6 -0
  10. data/lib/tatooine/middleware/raise_http_error.rb +34 -0
  11. data/lib/tatooine/person.rb +6 -0
  12. data/lib/tatooine/planet.rb +6 -0
  13. data/lib/tatooine/resource.rb +125 -0
  14. data/lib/tatooine/species.rb +6 -0
  15. data/lib/tatooine/starship.rb +6 -0
  16. data/lib/tatooine/vehicle.rb +6 -0
  17. data/lib/tatooine/version.rb +3 -0
  18. data/spec/error_spec.rb +21 -0
  19. data/spec/film_spec.rb +107 -0
  20. data/spec/fixtures/film_schema.json +1 -0
  21. data/spec/fixtures/vcr_cassettes/film_1.yml +57 -0
  22. data/spec/fixtures/vcr_cassettes/film_1_and_schema.yml +57 -0
  23. data/spec/fixtures/vcr_cassettes/film_count.yml +101 -0
  24. data/spec/fixtures/vcr_cassettes/film_list.yml +441 -0
  25. data/spec/fixtures/vcr_cassettes/film_schema.yml +101 -0
  26. data/spec/fixtures/vcr_cassettes/person_1.yml +49 -0
  27. data/spec/fixtures/vcr_cassettes/person_1_and_schema.yml +49 -0
  28. data/spec/fixtures/vcr_cassettes/person_count.yml +58 -0
  29. data/spec/fixtures/vcr_cassettes/person_list.yml +58 -0
  30. data/spec/fixtures/vcr_cassettes/person_next.yml +56 -0
  31. data/spec/fixtures/vcr_cassettes/person_previous.yml +58 -0
  32. data/spec/fixtures/vcr_cassettes/person_schema.yml +58 -0
  33. data/spec/fixtures/vcr_cassettes/planet_1.yml +50 -0
  34. data/spec/fixtures/vcr_cassettes/planet_1_and_schema.yml +50 -0
  35. data/spec/fixtures/vcr_cassettes/planet_count.yml +60 -0
  36. data/spec/fixtures/vcr_cassettes/planet_list.yml +60 -0
  37. data/spec/fixtures/vcr_cassettes/planet_next.yml +63 -0
  38. data/spec/fixtures/vcr_cassettes/planet_previous.yml +60 -0
  39. data/spec/fixtures/vcr_cassettes/planet_schema.yml +60 -0
  40. data/spec/fixtures/vcr_cassettes/species_1.yml +52 -0
  41. data/spec/fixtures/vcr_cassettes/species_1_and_schema.yml +52 -0
  42. data/spec/fixtures/vcr_cassettes/species_count.yml +63 -0
  43. data/spec/fixtures/vcr_cassettes/species_list.yml +63 -0
  44. data/spec/fixtures/vcr_cassettes/species_next.yml +59 -0
  45. data/spec/fixtures/vcr_cassettes/species_previous.yml +63 -0
  46. data/spec/fixtures/vcr_cassettes/species_schema.yml +63 -0
  47. data/spec/fixtures/vcr_cassettes/starship_10.yml +51 -0
  48. data/spec/fixtures/vcr_cassettes/starship_2_and_schema.yml +51 -0
  49. data/spec/fixtures/vcr_cassettes/starship_count.yml +78 -0
  50. data/spec/fixtures/vcr_cassettes/starship_list.yml +78 -0
  51. data/spec/fixtures/vcr_cassettes/starship_next.yml +76 -0
  52. data/spec/fixtures/vcr_cassettes/starship_previous.yml +78 -0
  53. data/spec/fixtures/vcr_cassettes/starship_schema.yml +78 -0
  54. data/spec/fixtures/vcr_cassettes/vehicle_14.yml +50 -0
  55. data/spec/fixtures/vcr_cassettes/vehicle_14_and_schema.yml +50 -0
  56. data/spec/fixtures/vcr_cassettes/vehicle_count.yml +70 -0
  57. data/spec/fixtures/vcr_cassettes/vehicle_list.yml +70 -0
  58. data/spec/fixtures/vcr_cassettes/vehicle_next.yml +68 -0
  59. data/spec/fixtures/vcr_cassettes/vehicle_previous.yml +70 -0
  60. data/spec/fixtures/vcr_cassettes/vehicle_schema.yml +70 -0
  61. data/spec/person_spec.rb +120 -0
  62. data/spec/planet_spec.rb +106 -0
  63. data/spec/spec_helper.rb +21 -0
  64. data/spec/species_spec.rb +111 -0
  65. data/spec/starship_spec.rb +106 -0
  66. data/spec/vehicle_spec.rb +106 -0
  67. data/tatooine.gemspec +30 -0
  68. metadata +272 -0
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/species/1/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Tatooine Ruby Gem - 0.0.1
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Tue, 17 Feb 2015 00:23:19 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d0e1ee6d975ddccfc6909fa99e9eea9c31424132597; expires=Wed, 17-Feb-16
31
+ 00:23:17 GMT; path=/; domain=.swapi.co; HttpOnly
32
+ Allow:
33
+ - GET, HEAD, OPTIONS
34
+ X-Frame-Options:
35
+ - SAMEORIGIN
36
+ Vary:
37
+ - Accept, Cookie
38
+ Via:
39
+ - 1.1 vegur
40
+ Server:
41
+ - cloudflare-nginx
42
+ Cf-Ray:
43
+ - 1b9dd5db4c6d0cdd-LHR
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"name":"Human","classification":"mammal","designation":"sentient","average_height":"180","skin_colors":"caucasian,
47
+ black, asian, hispanic","hair_colors":"blonde, brown, black, red","eye_colors":"brown,
48
+ blue, green, hazel, grey, amber","average_lifespan":"120","homeworld":"http://swapi.co/api/planets/9/","language":"Galactic
49
+ Basic","people":["http://swapi.co/api/people/1/","http://swapi.co/api/people/4/","http://swapi.co/api/people/5/","http://swapi.co/api/people/6/","http://swapi.co/api/people/7/","http://swapi.co/api/people/9/","http://swapi.co/api/people/10/","http://swapi.co/api/people/11/","http://swapi.co/api/people/12/","http://swapi.co/api/people/14/","http://swapi.co/api/people/18/","http://swapi.co/api/people/19/","http://swapi.co/api/people/21/","http://swapi.co/api/people/22/","http://swapi.co/api/people/25/","http://swapi.co/api/people/26/","http://swapi.co/api/people/28/","http://swapi.co/api/people/29/","http://swapi.co/api/people/32/","http://swapi.co/api/people/34/","http://swapi.co/api/people/35/","http://swapi.co/api/people/43/","http://swapi.co/api/people/51/","http://swapi.co/api/people/60/","http://swapi.co/api/people/61/","http://swapi.co/api/people/62/","http://swapi.co/api/people/66/","http://swapi.co/api/people/67/","http://swapi.co/api/people/68/","http://swapi.co/api/people/69/","http://swapi.co/api/people/74/","http://swapi.co/api/people/81/"],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/2/","http://swapi.co/api/films/3/","http://swapi.co/api/films/4/","http://swapi.co/api/films/5/","http://swapi.co/api/films/6/"],"created":"2014-12-10T13:52:11.567000Z","edited":"2014-12-29T12:31:56.906164Z","url":"http://swapi.co/api/species/1/"}'
50
+ http_version:
51
+ recorded_at: Tue, 17 Feb 2015 00:23:20 GMT
52
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/species/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Tatooine Ruby Gem - 0.0.1
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Tue, 17 Feb 2015 00:23:12 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d4722dc7391f4ac9e9179831403821ae11424132591; expires=Wed, 17-Feb-16
31
+ 00:23:11 GMT; path=/; domain=.swapi.co; HttpOnly
32
+ Allow:
33
+ - GET, HEAD, OPTIONS
34
+ X-Frame-Options:
35
+ - SAMEORIGIN
36
+ Vary:
37
+ - Accept, Cookie
38
+ Via:
39
+ - 1.1 vegur
40
+ Server:
41
+ - cloudflare-nginx
42
+ Cf-Ray:
43
+ - 1b9dd5b9f2cc061c-LHR
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"count":37,"next":"http://swapi.co/api/species/?page=2","previous":null,"results":[{"name":"Droid","classification":"artificial","designation":"sentient","average_height":"n/a","skin_colors":"n/a","hair_colors":"n/a","eye_colors":"n/a","average_lifespan":"indefinite","homeworld":null,"language":"n/a","people":["http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/8/","http://swapi.co/api/people/23/"],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/2/","http://swapi.co/api/films/3/","http://swapi.co/api/films/4/","http://swapi.co/api/films/5/","http://swapi.co/api/films/6/"],"created":"2014-12-10T15:16:16.259000Z","edited":"2014-12-20T21:36:42.139000Z","url":"http://swapi.co/api/species/2/"},{"name":"Rodian","classification":"sentient","designation":"reptilian","average_height":"170","skin_colors":"green,
47
+ blue","hair_colors":"n/a","eye_colors":"black","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/23/","language":"Galatic
48
+ Basic","people":["http://swapi.co/api/people/15/"],"films":["http://swapi.co/api/films/1/"],"created":"2014-12-10T17:05:26.471000Z","edited":"2014-12-20T21:36:42.144000Z","url":"http://swapi.co/api/species/4/"},{"name":"Hutt","classification":"gastropod","designation":"sentient","average_height":"300","skin_colors":"green,
49
+ brown, tan","hair_colors":"n/a","eye_colors":"yellow, red","average_lifespan":"1000","homeworld":"http://swapi.co/api/planets/24/","language":"Huttese","people":["http://swapi.co/api/people/16/"],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/3/"],"created":"2014-12-10T17:12:50.410000Z","edited":"2014-12-20T21:36:42.146000Z","url":"http://swapi.co/api/species/5/"},{"name":"Yoda''s
50
+ species","classification":"mammal","designation":"sentient","average_height":"66","skin_colors":"green,
51
+ yellow","hair_colors":"brown, white","eye_colors":"brown, green, yellow","average_lifespan":"900","homeworld":"http://swapi.co/api/planets/28/","language":"Galactic
52
+ basic","people":["http://swapi.co/api/people/20/"],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/3/","http://swapi.co/api/films/4/","http://swapi.co/api/films/5/","http://swapi.co/api/films/6/"],"created":"2014-12-15T12:27:22.877000Z","edited":"2014-12-20T21:36:42.148000Z","url":"http://swapi.co/api/species/6/"},{"name":"Trandoshan","classification":"reptile","designation":"sentient","average_height":"200","skin_colors":"brown,
53
+ green","hair_colors":"none","eye_colors":"yellow, orange","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/29/","language":"Dosh","people":["http://swapi.co/api/people/24/"],"films":["http://swapi.co/api/films/2/"],"created":"2014-12-15T13:07:47.704000Z","edited":"2014-12-20T21:36:42.151000Z","url":"http://swapi.co/api/species/7/"},{"name":"Mon
54
+ Calamari","classification":"amphibian","designation":"sentient","average_height":"160","skin_colors":"red,
55
+ blue, brown, magenta","hair_colors":"none","eye_colors":"yellow","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/31/","language":"Mon
56
+ Calamarian","people":["http://swapi.co/api/people/27/"],"films":["http://swapi.co/api/films/3/"],"created":"2014-12-18T11:09:52.263000Z","edited":"2014-12-20T21:36:42.153000Z","url":"http://swapi.co/api/species/8/"},{"name":"Ewok","classification":"mammal","designation":"sentient","average_height":"100","skin_colors":"brown","hair_colors":"white,
57
+ brown, black","eye_colors":"orange, brown","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/7/","language":"Ewokese","people":["http://swapi.co/api/people/30/"],"films":["http://swapi.co/api/films/3/"],"created":"2014-12-18T11:22:00.285000Z","edited":"2014-12-20T21:36:42.155000Z","url":"http://swapi.co/api/species/9/"},{"name":"Sullustan","classification":"mammal","designation":"sentient","average_height":"180","skin_colors":"pale","hair_colors":"none","eye_colors":"black","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/33/","language":"Sullutese","people":["http://swapi.co/api/people/31/"],"films":["http://swapi.co/api/films/3/"],"created":"2014-12-18T11:26:20.103000Z","edited":"2014-12-20T21:36:42.157000Z","url":"http://swapi.co/api/species/10/"},{"name":"Neimodian","classification":"unknown","designation":"sentient","average_height":"180","skin_colors":"grey,
58
+ green","hair_colors":"none","eye_colors":"red, pink","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/18/","language":"Neimoidia","people":["http://swapi.co/api/people/33/"],"films":["http://swapi.co/api/films/4/"],"created":"2014-12-19T17:07:31.319000Z","edited":"2014-12-20T21:36:42.160000Z","url":"http://swapi.co/api/species/11/"},{"name":"Gungan","classification":"amphibian","designation":"sentient","average_height":"190","skin_colors":"brown,
59
+ green","hair_colors":"none","eye_colors":"orange","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/8/","language":"Gungan
60
+ basic","people":["http://swapi.co/api/people/36/","http://swapi.co/api/people/37/","http://swapi.co/api/people/38/"],"films":["http://swapi.co/api/films/4/","http://swapi.co/api/films/5/"],"created":"2014-12-19T17:30:37.341000Z","edited":"2014-12-20T21:36:42.163000Z","url":"http://swapi.co/api/species/12/"}]}'
61
+ http_version:
62
+ recorded_at: Tue, 17 Feb 2015 00:23:13 GMT
63
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/species/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Tatooine Ruby Gem - 0.0.1
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Tue, 17 Feb 2015 00:23:12 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d6f9e0406a34ddf78fbad0930222216071424132592; expires=Wed, 17-Feb-16
31
+ 00:23:12 GMT; path=/; domain=.swapi.co; HttpOnly
32
+ Allow:
33
+ - GET, HEAD, OPTIONS
34
+ X-Frame-Options:
35
+ - SAMEORIGIN
36
+ Vary:
37
+ - Accept, Cookie
38
+ Via:
39
+ - 1.1 vegur
40
+ Server:
41
+ - cloudflare-nginx
42
+ Cf-Ray:
43
+ - 1b9dd5bdd4250a6c-LHR
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"count":37,"next":"http://swapi.co/api/species/?page=2","previous":null,"results":[{"name":"Droid","classification":"artificial","designation":"sentient","average_height":"n/a","skin_colors":"n/a","hair_colors":"n/a","eye_colors":"n/a","average_lifespan":"indefinite","homeworld":null,"language":"n/a","people":["http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/8/","http://swapi.co/api/people/23/"],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/2/","http://swapi.co/api/films/3/","http://swapi.co/api/films/4/","http://swapi.co/api/films/5/","http://swapi.co/api/films/6/"],"created":"2014-12-10T15:16:16.259000Z","edited":"2014-12-20T21:36:42.139000Z","url":"http://swapi.co/api/species/2/"},{"name":"Rodian","classification":"sentient","designation":"reptilian","average_height":"170","skin_colors":"green,
47
+ blue","hair_colors":"n/a","eye_colors":"black","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/23/","language":"Galatic
48
+ Basic","people":["http://swapi.co/api/people/15/"],"films":["http://swapi.co/api/films/1/"],"created":"2014-12-10T17:05:26.471000Z","edited":"2014-12-20T21:36:42.144000Z","url":"http://swapi.co/api/species/4/"},{"name":"Hutt","classification":"gastropod","designation":"sentient","average_height":"300","skin_colors":"green,
49
+ brown, tan","hair_colors":"n/a","eye_colors":"yellow, red","average_lifespan":"1000","homeworld":"http://swapi.co/api/planets/24/","language":"Huttese","people":["http://swapi.co/api/people/16/"],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/3/"],"created":"2014-12-10T17:12:50.410000Z","edited":"2014-12-20T21:36:42.146000Z","url":"http://swapi.co/api/species/5/"},{"name":"Yoda''s
50
+ species","classification":"mammal","designation":"sentient","average_height":"66","skin_colors":"green,
51
+ yellow","hair_colors":"brown, white","eye_colors":"brown, green, yellow","average_lifespan":"900","homeworld":"http://swapi.co/api/planets/28/","language":"Galactic
52
+ basic","people":["http://swapi.co/api/people/20/"],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/3/","http://swapi.co/api/films/4/","http://swapi.co/api/films/5/","http://swapi.co/api/films/6/"],"created":"2014-12-15T12:27:22.877000Z","edited":"2014-12-20T21:36:42.148000Z","url":"http://swapi.co/api/species/6/"},{"name":"Trandoshan","classification":"reptile","designation":"sentient","average_height":"200","skin_colors":"brown,
53
+ green","hair_colors":"none","eye_colors":"yellow, orange","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/29/","language":"Dosh","people":["http://swapi.co/api/people/24/"],"films":["http://swapi.co/api/films/2/"],"created":"2014-12-15T13:07:47.704000Z","edited":"2014-12-20T21:36:42.151000Z","url":"http://swapi.co/api/species/7/"},{"name":"Mon
54
+ Calamari","classification":"amphibian","designation":"sentient","average_height":"160","skin_colors":"red,
55
+ blue, brown, magenta","hair_colors":"none","eye_colors":"yellow","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/31/","language":"Mon
56
+ Calamarian","people":["http://swapi.co/api/people/27/"],"films":["http://swapi.co/api/films/3/"],"created":"2014-12-18T11:09:52.263000Z","edited":"2014-12-20T21:36:42.153000Z","url":"http://swapi.co/api/species/8/"},{"name":"Ewok","classification":"mammal","designation":"sentient","average_height":"100","skin_colors":"brown","hair_colors":"white,
57
+ brown, black","eye_colors":"orange, brown","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/7/","language":"Ewokese","people":["http://swapi.co/api/people/30/"],"films":["http://swapi.co/api/films/3/"],"created":"2014-12-18T11:22:00.285000Z","edited":"2014-12-20T21:36:42.155000Z","url":"http://swapi.co/api/species/9/"},{"name":"Sullustan","classification":"mammal","designation":"sentient","average_height":"180","skin_colors":"pale","hair_colors":"none","eye_colors":"black","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/33/","language":"Sullutese","people":["http://swapi.co/api/people/31/"],"films":["http://swapi.co/api/films/3/"],"created":"2014-12-18T11:26:20.103000Z","edited":"2014-12-20T21:36:42.157000Z","url":"http://swapi.co/api/species/10/"},{"name":"Neimodian","classification":"unknown","designation":"sentient","average_height":"180","skin_colors":"grey,
58
+ green","hair_colors":"none","eye_colors":"red, pink","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/18/","language":"Neimoidia","people":["http://swapi.co/api/people/33/"],"films":["http://swapi.co/api/films/4/"],"created":"2014-12-19T17:07:31.319000Z","edited":"2014-12-20T21:36:42.160000Z","url":"http://swapi.co/api/species/11/"},{"name":"Gungan","classification":"amphibian","designation":"sentient","average_height":"190","skin_colors":"brown,
59
+ green","hair_colors":"none","eye_colors":"orange","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/8/","language":"Gungan
60
+ basic","people":["http://swapi.co/api/people/36/","http://swapi.co/api/people/37/","http://swapi.co/api/people/38/"],"films":["http://swapi.co/api/films/4/","http://swapi.co/api/films/5/"],"created":"2014-12-19T17:30:37.341000Z","edited":"2014-12-20T21:36:42.163000Z","url":"http://swapi.co/api/species/12/"}]}'
61
+ http_version:
62
+ recorded_at: Tue, 17 Feb 2015 00:23:13 GMT
63
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/species/?page=2
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Tatooine Ruby Gem - 0.0.1
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Tue, 17 Feb 2015 00:23:15 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d3ed211ecf86fda637939c3c923fd2fae1424132592; expires=Wed, 17-Feb-16
31
+ 00:23:12 GMT; path=/; domain=.swapi.co; HttpOnly
32
+ Allow:
33
+ - GET, HEAD, OPTIONS
34
+ X-Frame-Options:
35
+ - SAMEORIGIN
36
+ Vary:
37
+ - Accept, Cookie
38
+ Via:
39
+ - 1.1 vegur
40
+ Server:
41
+ - cloudflare-nginx
42
+ Cf-Ray:
43
+ - 1b9dd5c175410300-LHR
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"count":37,"next":"http://swapi.co/api/species/?page=3","previous":"http://swapi.co/api/species/?page=1","results":[{"name":"Toydarian","classification":"mammal","designation":"sentient","average_height":"120","skin_colors":"blue,
47
+ green, grey","hair_colors":"none","eye_colors":"yellow","average_lifespan":"91","homeworld":"http://swapi.co/api/planets/34/","language":"Toydarian","people":["http://swapi.co/api/people/40/"],"films":["http://swapi.co/api/films/4/","http://swapi.co/api/films/5/"],"created":"2014-12-19T17:48:56.893000Z","edited":"2014-12-20T21:36:42.165000Z","url":"http://swapi.co/api/species/13/"},{"name":"Dug","classification":"mammal","designation":"sentient","average_height":"100","skin_colors":"brown,
48
+ purple, grey, red","hair_colors":"none","eye_colors":"yellow, blue","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/35/","language":"Dugese","people":["http://swapi.co/api/people/41/"],"films":["http://swapi.co/api/films/4/"],"created":"2014-12-19T17:53:11.214000Z","edited":"2014-12-20T21:36:42.167000Z","url":"http://swapi.co/api/species/14/"},{"name":"Twi''lek","classification":"mammals","designation":"sentient","average_height":"200","skin_colors":"orange,
49
+ yellow, blue, green, pink, purple, tan","hair_colors":"none","eye_colors":"blue,
50
+ brown, orange, pink","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/37/","language":"Twi''leki","people":["http://swapi.co/api/people/45/","http://swapi.co/api/people/46/"],"films":["http://swapi.co/api/films/3/","http://swapi.co/api/films/4/","http://swapi.co/api/films/5/","http://swapi.co/api/films/6/"],"created":"2014-12-20T09:48:02.406000Z","edited":"2014-12-20T21:36:42.169000Z","url":"http://swapi.co/api/species/15/"},{"name":"Aleena","classification":"reptile","designation":"sentient","average_height":"80","skin_colors":"blue,
51
+ gray","hair_colors":"none","eye_colors":"unknown","average_lifespan":"79","homeworld":"http://swapi.co/api/planets/38/","language":"Aleena","people":["http://swapi.co/api/people/47/"],"films":["http://swapi.co/api/films/4/"],"created":"2014-12-20T09:53:16.481000Z","edited":"2014-12-20T21:36:42.171000Z","url":"http://swapi.co/api/species/16/"},{"name":"Vulptereen","classification":"unknown","designation":"sentient","average_height":"100","skin_colors":"grey","hair_colors":"none","eye_colors":"yellow","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/39/","language":"vulpterish","people":["http://swapi.co/api/people/48/"],"films":["http://swapi.co/api/films/4/"],"created":"2014-12-20T09:57:33.128000Z","edited":"2014-12-20T21:36:42.173000Z","url":"http://swapi.co/api/species/17/"},{"name":"Xexto","classification":"unknown","designation":"sentient","average_height":"125","skin_colors":"grey,
52
+ yellow, purple","hair_colors":"none","eye_colors":"black","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/40/","language":"Xextese","people":["http://swapi.co/api/people/49/"],"films":["http://swapi.co/api/films/4/"],"created":"2014-12-20T10:02:13.915000Z","edited":"2014-12-20T21:36:42.175000Z","url":"http://swapi.co/api/species/18/"},{"name":"Toong","classification":"unknown","designation":"sentient","average_height":"200","skin_colors":"grey,
53
+ green, yellow","hair_colors":"none","eye_colors":"orange","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/41/","language":"Tundan","people":["http://swapi.co/api/people/50/"],"films":["http://swapi.co/api/films/4/","http://swapi.co/api/films/6/"],"created":"2014-12-20T10:08:36.795000Z","edited":"2014-12-20T21:36:42.177000Z","url":"http://swapi.co/api/species/19/"},{"name":"Cerean","classification":"mammal","designation":"sentient","average_height":"200","skin_colors":"pale
54
+ pink","hair_colors":"red, blond, black, white","eye_colors":"hazel","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/43/","language":"Cerean","people":["http://swapi.co/api/people/52/"],"films":["http://swapi.co/api/films/4/","http://swapi.co/api/films/6/"],"created":"2014-12-20T10:15:33.765000Z","edited":"2014-12-20T21:36:42.179000Z","url":"http://swapi.co/api/species/20/"},{"name":"Nautolan","classification":"amphibian","designation":"sentient","average_height":"180","skin_colors":"green,
55
+ blue, brown, red","hair_colors":"none","eye_colors":"black","average_lifespan":"70","homeworld":"http://swapi.co/api/planets/44/","language":"Nautila","people":["http://swapi.co/api/people/53/"],"films":["http://swapi.co/api/films/4/"],"created":"2014-12-20T10:18:58.610000Z","edited":"2014-12-20T21:36:42.181000Z","url":"http://swapi.co/api/species/21/"},{"name":"Zabrak","classification":"mammal","designation":"sentient","average_height":"180","skin_colors":"pale,
56
+ brown, red, orange, yellow","hair_colors":"black","eye_colors":"brown, orange","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/45/","language":"Zabraki","people":["http://swapi.co/api/people/44/","http://swapi.co/api/people/54/"],"films":["http://swapi.co/api/films/4/"],"created":"2014-12-20T10:26:59.894000Z","edited":"2014-12-20T21:36:42.183000Z","url":"http://swapi.co/api/species/22/"}]}'
57
+ http_version:
58
+ recorded_at: Tue, 17 Feb 2015 00:23:16 GMT
59
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/species/?page=1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Tatooine Ruby Gem - 0.0.1
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Tue, 17 Feb 2015 00:23:15 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=da420bbf734b33920be0b15bc9c2373681424132595; expires=Wed, 17-Feb-16
31
+ 00:23:15 GMT; path=/; domain=.swapi.co; HttpOnly
32
+ Allow:
33
+ - GET, HEAD, OPTIONS
34
+ X-Frame-Options:
35
+ - SAMEORIGIN
36
+ Vary:
37
+ - Accept, Cookie
38
+ Via:
39
+ - 1.1 vegur
40
+ Server:
41
+ - cloudflare-nginx
42
+ Cf-Ray:
43
+ - 1b9dd5d085db061c-LHR
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"count":37,"next":"http://swapi.co/api/species/?page=2","previous":null,"results":[{"name":"Droid","classification":"artificial","designation":"sentient","average_height":"n/a","skin_colors":"n/a","hair_colors":"n/a","eye_colors":"n/a","average_lifespan":"indefinite","homeworld":null,"language":"n/a","people":["http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/8/","http://swapi.co/api/people/23/"],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/2/","http://swapi.co/api/films/3/","http://swapi.co/api/films/4/","http://swapi.co/api/films/5/","http://swapi.co/api/films/6/"],"created":"2014-12-10T15:16:16.259000Z","edited":"2014-12-20T21:36:42.139000Z","url":"http://swapi.co/api/species/2/"},{"name":"Rodian","classification":"sentient","designation":"reptilian","average_height":"170","skin_colors":"green,
47
+ blue","hair_colors":"n/a","eye_colors":"black","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/23/","language":"Galatic
48
+ Basic","people":["http://swapi.co/api/people/15/"],"films":["http://swapi.co/api/films/1/"],"created":"2014-12-10T17:05:26.471000Z","edited":"2014-12-20T21:36:42.144000Z","url":"http://swapi.co/api/species/4/"},{"name":"Hutt","classification":"gastropod","designation":"sentient","average_height":"300","skin_colors":"green,
49
+ brown, tan","hair_colors":"n/a","eye_colors":"yellow, red","average_lifespan":"1000","homeworld":"http://swapi.co/api/planets/24/","language":"Huttese","people":["http://swapi.co/api/people/16/"],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/3/"],"created":"2014-12-10T17:12:50.410000Z","edited":"2014-12-20T21:36:42.146000Z","url":"http://swapi.co/api/species/5/"},{"name":"Yoda''s
50
+ species","classification":"mammal","designation":"sentient","average_height":"66","skin_colors":"green,
51
+ yellow","hair_colors":"brown, white","eye_colors":"brown, green, yellow","average_lifespan":"900","homeworld":"http://swapi.co/api/planets/28/","language":"Galactic
52
+ basic","people":["http://swapi.co/api/people/20/"],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/3/","http://swapi.co/api/films/4/","http://swapi.co/api/films/5/","http://swapi.co/api/films/6/"],"created":"2014-12-15T12:27:22.877000Z","edited":"2014-12-20T21:36:42.148000Z","url":"http://swapi.co/api/species/6/"},{"name":"Trandoshan","classification":"reptile","designation":"sentient","average_height":"200","skin_colors":"brown,
53
+ green","hair_colors":"none","eye_colors":"yellow, orange","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/29/","language":"Dosh","people":["http://swapi.co/api/people/24/"],"films":["http://swapi.co/api/films/2/"],"created":"2014-12-15T13:07:47.704000Z","edited":"2014-12-20T21:36:42.151000Z","url":"http://swapi.co/api/species/7/"},{"name":"Mon
54
+ Calamari","classification":"amphibian","designation":"sentient","average_height":"160","skin_colors":"red,
55
+ blue, brown, magenta","hair_colors":"none","eye_colors":"yellow","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/31/","language":"Mon
56
+ Calamarian","people":["http://swapi.co/api/people/27/"],"films":["http://swapi.co/api/films/3/"],"created":"2014-12-18T11:09:52.263000Z","edited":"2014-12-20T21:36:42.153000Z","url":"http://swapi.co/api/species/8/"},{"name":"Ewok","classification":"mammal","designation":"sentient","average_height":"100","skin_colors":"brown","hair_colors":"white,
57
+ brown, black","eye_colors":"orange, brown","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/7/","language":"Ewokese","people":["http://swapi.co/api/people/30/"],"films":["http://swapi.co/api/films/3/"],"created":"2014-12-18T11:22:00.285000Z","edited":"2014-12-20T21:36:42.155000Z","url":"http://swapi.co/api/species/9/"},{"name":"Sullustan","classification":"mammal","designation":"sentient","average_height":"180","skin_colors":"pale","hair_colors":"none","eye_colors":"black","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/33/","language":"Sullutese","people":["http://swapi.co/api/people/31/"],"films":["http://swapi.co/api/films/3/"],"created":"2014-12-18T11:26:20.103000Z","edited":"2014-12-20T21:36:42.157000Z","url":"http://swapi.co/api/species/10/"},{"name":"Neimodian","classification":"unknown","designation":"sentient","average_height":"180","skin_colors":"grey,
58
+ green","hair_colors":"none","eye_colors":"red, pink","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/18/","language":"Neimoidia","people":["http://swapi.co/api/people/33/"],"films":["http://swapi.co/api/films/4/"],"created":"2014-12-19T17:07:31.319000Z","edited":"2014-12-20T21:36:42.160000Z","url":"http://swapi.co/api/species/11/"},{"name":"Gungan","classification":"amphibian","designation":"sentient","average_height":"190","skin_colors":"brown,
59
+ green","hair_colors":"none","eye_colors":"orange","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/8/","language":"Gungan
60
+ basic","people":["http://swapi.co/api/people/36/","http://swapi.co/api/people/37/","http://swapi.co/api/people/38/"],"films":["http://swapi.co/api/films/4/","http://swapi.co/api/films/5/"],"created":"2014-12-19T17:30:37.341000Z","edited":"2014-12-20T21:36:42.163000Z","url":"http://swapi.co/api/species/12/"}]}'
61
+ http_version:
62
+ recorded_at: Tue, 17 Feb 2015 00:23:17 GMT
63
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/species/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Tatooine Ruby Gem - 0.0.1
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Tue, 17 Feb 2015 00:23:19 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d0b8f1b1bc0dbb441edf6bb1576e832a91424132599; expires=Wed, 17-Feb-16
31
+ 00:23:19 GMT; path=/; domain=.swapi.co; HttpOnly
32
+ Allow:
33
+ - GET, HEAD, OPTIONS
34
+ X-Frame-Options:
35
+ - SAMEORIGIN
36
+ Vary:
37
+ - Accept, Cookie
38
+ Via:
39
+ - 1.1 vegur
40
+ Server:
41
+ - cloudflare-nginx
42
+ Cf-Ray:
43
+ - 1b9dd5e94cc806ee-LHR
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"count":37,"next":"http://swapi.co/api/species/?page=2","previous":null,"results":[{"name":"Droid","classification":"artificial","designation":"sentient","average_height":"n/a","skin_colors":"n/a","hair_colors":"n/a","eye_colors":"n/a","average_lifespan":"indefinite","homeworld":null,"language":"n/a","people":["http://swapi.co/api/people/2/","http://swapi.co/api/people/3/","http://swapi.co/api/people/8/","http://swapi.co/api/people/23/"],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/2/","http://swapi.co/api/films/3/","http://swapi.co/api/films/4/","http://swapi.co/api/films/5/","http://swapi.co/api/films/6/"],"created":"2014-12-10T15:16:16.259000Z","edited":"2014-12-20T21:36:42.139000Z","url":"http://swapi.co/api/species/2/"},{"name":"Rodian","classification":"sentient","designation":"reptilian","average_height":"170","skin_colors":"green,
47
+ blue","hair_colors":"n/a","eye_colors":"black","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/23/","language":"Galatic
48
+ Basic","people":["http://swapi.co/api/people/15/"],"films":["http://swapi.co/api/films/1/"],"created":"2014-12-10T17:05:26.471000Z","edited":"2014-12-20T21:36:42.144000Z","url":"http://swapi.co/api/species/4/"},{"name":"Hutt","classification":"gastropod","designation":"sentient","average_height":"300","skin_colors":"green,
49
+ brown, tan","hair_colors":"n/a","eye_colors":"yellow, red","average_lifespan":"1000","homeworld":"http://swapi.co/api/planets/24/","language":"Huttese","people":["http://swapi.co/api/people/16/"],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/3/"],"created":"2014-12-10T17:12:50.410000Z","edited":"2014-12-20T21:36:42.146000Z","url":"http://swapi.co/api/species/5/"},{"name":"Yoda''s
50
+ species","classification":"mammal","designation":"sentient","average_height":"66","skin_colors":"green,
51
+ yellow","hair_colors":"brown, white","eye_colors":"brown, green, yellow","average_lifespan":"900","homeworld":"http://swapi.co/api/planets/28/","language":"Galactic
52
+ basic","people":["http://swapi.co/api/people/20/"],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/3/","http://swapi.co/api/films/4/","http://swapi.co/api/films/5/","http://swapi.co/api/films/6/"],"created":"2014-12-15T12:27:22.877000Z","edited":"2014-12-20T21:36:42.148000Z","url":"http://swapi.co/api/species/6/"},{"name":"Trandoshan","classification":"reptile","designation":"sentient","average_height":"200","skin_colors":"brown,
53
+ green","hair_colors":"none","eye_colors":"yellow, orange","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/29/","language":"Dosh","people":["http://swapi.co/api/people/24/"],"films":["http://swapi.co/api/films/2/"],"created":"2014-12-15T13:07:47.704000Z","edited":"2014-12-20T21:36:42.151000Z","url":"http://swapi.co/api/species/7/"},{"name":"Mon
54
+ Calamari","classification":"amphibian","designation":"sentient","average_height":"160","skin_colors":"red,
55
+ blue, brown, magenta","hair_colors":"none","eye_colors":"yellow","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/31/","language":"Mon
56
+ Calamarian","people":["http://swapi.co/api/people/27/"],"films":["http://swapi.co/api/films/3/"],"created":"2014-12-18T11:09:52.263000Z","edited":"2014-12-20T21:36:42.153000Z","url":"http://swapi.co/api/species/8/"},{"name":"Ewok","classification":"mammal","designation":"sentient","average_height":"100","skin_colors":"brown","hair_colors":"white,
57
+ brown, black","eye_colors":"orange, brown","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/7/","language":"Ewokese","people":["http://swapi.co/api/people/30/"],"films":["http://swapi.co/api/films/3/"],"created":"2014-12-18T11:22:00.285000Z","edited":"2014-12-20T21:36:42.155000Z","url":"http://swapi.co/api/species/9/"},{"name":"Sullustan","classification":"mammal","designation":"sentient","average_height":"180","skin_colors":"pale","hair_colors":"none","eye_colors":"black","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/33/","language":"Sullutese","people":["http://swapi.co/api/people/31/"],"films":["http://swapi.co/api/films/3/"],"created":"2014-12-18T11:26:20.103000Z","edited":"2014-12-20T21:36:42.157000Z","url":"http://swapi.co/api/species/10/"},{"name":"Neimodian","classification":"unknown","designation":"sentient","average_height":"180","skin_colors":"grey,
58
+ green","hair_colors":"none","eye_colors":"red, pink","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/18/","language":"Neimoidia","people":["http://swapi.co/api/people/33/"],"films":["http://swapi.co/api/films/4/"],"created":"2014-12-19T17:07:31.319000Z","edited":"2014-12-20T21:36:42.160000Z","url":"http://swapi.co/api/species/11/"},{"name":"Gungan","classification":"amphibian","designation":"sentient","average_height":"190","skin_colors":"brown,
59
+ green","hair_colors":"none","eye_colors":"orange","average_lifespan":"unknown","homeworld":"http://swapi.co/api/planets/8/","language":"Gungan
60
+ basic","people":["http://swapi.co/api/people/36/","http://swapi.co/api/people/37/","http://swapi.co/api/people/38/"],"films":["http://swapi.co/api/films/4/","http://swapi.co/api/films/5/"],"created":"2014-12-19T17:30:37.341000Z","edited":"2014-12-20T21:36:42.163000Z","url":"http://swapi.co/api/species/12/"}]}'
61
+ http_version:
62
+ recorded_at: Tue, 17 Feb 2015 00:23:21 GMT
63
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/starships/10/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Tatooine Ruby Gem - 0.0.1
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Tue, 17 Feb 2015 00:48:45 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d140c16bd1ac94b9b44e6f6c8000a64071424134124; expires=Wed, 17-Feb-16
31
+ 00:48:44 GMT; path=/; domain=.swapi.co; HttpOnly
32
+ Allow:
33
+ - GET, HEAD, OPTIONS
34
+ X-Frame-Options:
35
+ - SAMEORIGIN
36
+ Vary:
37
+ - Accept, Cookie
38
+ Via:
39
+ - 1.1 vegur
40
+ Server:
41
+ - cloudflare-nginx
42
+ Cf-Ray:
43
+ - 1b9dfb2799210cf5-LHR
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"name":"Millennium Falcon","model":"YT-1300 light freighter","manufacturer":"Corellian
47
+ Engineering Corporation","cost_in_credits":"100000","length":"34.37","max_atmosphering_speed":"1050","crew":"4","passengers":"6","cargo_capacity":"100000","consumables":"2
48
+ months","hyperdrive_rating":"0.5","MGLT":"75","starship_class":"Light freighter","pilots":["http://swapi.co/api/people/13/","http://swapi.co/api/people/14/","http://swapi.co/api/people/25/","http://swapi.co/api/people/31/"],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-10T16:59:45.094000Z","edited":"2014-12-22T17:35:44.464156Z","url":"http://swapi.co/api/starships/10/"}'
49
+ http_version:
50
+ recorded_at: Tue, 17 Feb 2015 00:48:46 GMT
51
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/starships/10/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Tatooine Ruby Gem - 0.0.1
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Tue, 17 Feb 2015 00:48:46 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d09e0a26b1ac8e7742ee781e17169d0e11424134125; expires=Wed, 17-Feb-16
31
+ 00:48:45 GMT; path=/; domain=.swapi.co; HttpOnly
32
+ Allow:
33
+ - GET, HEAD, OPTIONS
34
+ X-Frame-Options:
35
+ - SAMEORIGIN
36
+ Vary:
37
+ - Accept, Cookie
38
+ Via:
39
+ - 1.1 vegur
40
+ Server:
41
+ - cloudflare-nginx
42
+ Cf-Ray:
43
+ - 1b9dfb2e16121359-LHR
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"name":"Millennium Falcon","model":"YT-1300 light freighter","manufacturer":"Corellian
47
+ Engineering Corporation","cost_in_credits":"100000","length":"34.37","max_atmosphering_speed":"1050","crew":"4","passengers":"6","cargo_capacity":"100000","consumables":"2
48
+ months","hyperdrive_rating":"0.5","MGLT":"75","starship_class":"Light freighter","pilots":["http://swapi.co/api/people/13/","http://swapi.co/api/people/14/","http://swapi.co/api/people/25/","http://swapi.co/api/people/31/"],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-10T16:59:45.094000Z","edited":"2014-12-22T17:35:44.464156Z","url":"http://swapi.co/api/starships/10/"}'
49
+ http_version:
50
+ recorded_at: Tue, 17 Feb 2015 00:48:47 GMT
51
+ recorded_with: VCR 2.9.3