tatooine 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,78 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/starships/
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:41 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d71e7e17416c1ca9b8ce07c0b564445b81424134120; expires=Wed, 17-Feb-16
31
+ 00:48:40 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
+ - 1b9dfb0fc9b30b7b-LHR
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"count":36,"next":"http://swapi.co/api/starships/?page=2","previous":null,"results":[{"name":"Sentinel-class
47
+ landing craft","model":"Sentinel-class landing craft","manufacturer":"Sienar
48
+ Fleet Systems, Cyngus Spaceworks","cost_in_credits":"240000","length":"38","max_atmosphering_speed":"1000","crew":"5","passengers":"75","cargo_capacity":"180000","consumables":"1
49
+ month","hyperdrive_rating":"1.0","MGLT":"70","starship_class":"landing craft","pilots":[],"films":["http://swapi.co/api/films/1/"],"created":"2014-12-10T15:48:00.586000Z","edited":"2014-12-22T17:35:44.431407Z","url":"http://swapi.co/api/starships/5/"},{"name":"Death
50
+ Star","model":"DS-1 Orbital Battle Station","manufacturer":"Imperial Department
51
+ of Military Research, Sienar Fleet Systems","cost_in_credits":"1000000000000","length":"120000","max_atmosphering_speed":"n/a","crew":"342953","passengers":"843342","cargo_capacity":"1000000000000","consumables":"3
52
+ years","hyperdrive_rating":"4.0","MGLT":"10","starship_class":"Deep Space
53
+ Mobile Battlestation","pilots":[],"films":["http://swapi.co/api/films/1/"],"created":"2014-12-10T16:36:50.509000Z","edited":"2014-12-22T17:35:44.452589Z","url":"http://swapi.co/api/starships/9/"},{"name":"Millennium
54
+ Falcon","model":"YT-1300 light freighter","manufacturer":"Corellian Engineering
55
+ Corporation","cost_in_credits":"100000","length":"34.37","max_atmosphering_speed":"1050","crew":"4","passengers":"6","cargo_capacity":"100000","consumables":"2
56
+ 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/"},{"name":"Y-wing","model":"BTL
57
+ Y-wing","manufacturer":"Koensayr Manufacturing","cost_in_credits":"134999","length":"14","max_atmosphering_speed":"1000km","crew":"2","passengers":"0","cargo_capacity":"110","consumables":"1
58
+ week","hyperdrive_rating":"1.0","MGLT":"80","starship_class":"assault starfighter","pilots":[],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-12T11:00:39.817000Z","edited":"2014-12-22T17:35:44.479706Z","url":"http://swapi.co/api/starships/11/"},{"name":"X-wing","model":"T-65
59
+ X-wing","manufacturer":"Incom Corporation","cost_in_credits":"149999","length":"12.5","max_atmosphering_speed":"1050","crew":"1","passengers":"0","cargo_capacity":"110","consumables":"1
60
+ week","hyperdrive_rating":"1.0","MGLT":"100","starship_class":"Starfighter","pilots":["http://swapi.co/api/people/1/","http://swapi.co/api/people/9/","http://swapi.co/api/people/18/","http://swapi.co/api/people/19/"],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-12T11:19:05.340000Z","edited":"2014-12-22T17:35:44.491233Z","url":"http://swapi.co/api/starships/12/"},{"name":"TIE
61
+ Advanced x1","model":"Twin Ion Engine Advanced x1","manufacturer":"Sienar
62
+ Fleet Systems","cost_in_credits":"unknown","length":"9.2","max_atmosphering_speed":"1200","crew":"1","passengers":"0","cargo_capacity":"150","consumables":"5
63
+ days","hyperdrive_rating":"1.0","MGLT":"105","starship_class":"Starfighter","pilots":["http://swapi.co/api/people/4/"],"films":["http://swapi.co/api/films/1/"],"created":"2014-12-12T11:21:32.991000Z","edited":"2014-12-22T17:35:44.549047Z","url":"http://swapi.co/api/starships/13/"},{"name":"Executor","model":"Executor-class
64
+ star dreadnought","manufacturer":"Kuat Drive Yards, Fondor Shipyards","cost_in_credits":"1143350000","length":"19,000","max_atmosphering_speed":"n/a","crew":"279144","passengers":"38000","cargo_capacity":"250000000","consumables":"6
65
+ years","hyperdrive_rating":"2.0","MGLT":"40","starship_class":"Star dreadnought","pilots":[],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-15T12:31:42.547000Z","edited":"2014-12-22T17:35:44.638231Z","url":"http://swapi.co/api/starships/15/"},{"name":"Slave
66
+ 1","model":"Firespray-31-class patrol and attack","manufacturer":"Kuat Systems
67
+ Engineering","cost_in_credits":"unknown","length":"21.5","max_atmosphering_speed":"1000","crew":"1","passengers":"6","cargo_capacity":"70000","consumables":"1
68
+ month","hyperdrive_rating":"3.0","MGLT":"70","starship_class":"Patrol craft","pilots":["http://swapi.co/api/people/22/"],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/5/"],"created":"2014-12-15T13:00:56.332000Z","edited":"2014-12-22T17:35:44.716273Z","url":"http://swapi.co/api/starships/21/"},{"name":"Imperial
69
+ shuttle","model":"Lambda-class T-4a shuttle","manufacturer":"Sienar Fleet
70
+ Systems","cost_in_credits":"240000","length":"20","max_atmosphering_speed":"850","crew":"6","passengers":"20","cargo_capacity":"80000","consumables":"2
71
+ months","hyperdrive_rating":"1.0","MGLT":"50","starship_class":"Armed government
72
+ transport","pilots":["http://swapi.co/api/people/1/","http://swapi.co/api/people/13/","http://swapi.co/api/people/14/"],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-15T13:04:47.235000Z","edited":"2014-12-22T17:35:44.795405Z","url":"http://swapi.co/api/starships/22/"},{"name":"EF76
73
+ Nebulon-B escort frigate","model":"EF76 Nebulon-B escort frigate","manufacturer":"Kuat
74
+ Drive Yards","cost_in_credits":"8500000","length":"300","max_atmosphering_speed":"800","crew":"854","passengers":"75","cargo_capacity":"6000000","consumables":"2
75
+ years","hyperdrive_rating":"2.0","MGLT":"40","starship_class":"Escort ship","pilots":[],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-15T13:06:30.813000Z","edited":"2014-12-22T17:35:44.848329Z","url":"http://swapi.co/api/starships/23/"}]}'
76
+ http_version:
77
+ recorded_at: Tue, 17 Feb 2015 00:48:42 GMT
78
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,78 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/starships/
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:43 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d80889320281d1c621688f21cbcc8a17b1424134121; expires=Wed, 17-Feb-16
31
+ 00:48:41 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
+ - 1b9dfb13cfc90a66-LHR
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"count":36,"next":"http://swapi.co/api/starships/?page=2","previous":null,"results":[{"name":"Sentinel-class
47
+ landing craft","model":"Sentinel-class landing craft","manufacturer":"Sienar
48
+ Fleet Systems, Cyngus Spaceworks","cost_in_credits":"240000","length":"38","max_atmosphering_speed":"1000","crew":"5","passengers":"75","cargo_capacity":"180000","consumables":"1
49
+ month","hyperdrive_rating":"1.0","MGLT":"70","starship_class":"landing craft","pilots":[],"films":["http://swapi.co/api/films/1/"],"created":"2014-12-10T15:48:00.586000Z","edited":"2014-12-22T17:35:44.431407Z","url":"http://swapi.co/api/starships/5/"},{"name":"Death
50
+ Star","model":"DS-1 Orbital Battle Station","manufacturer":"Imperial Department
51
+ of Military Research, Sienar Fleet Systems","cost_in_credits":"1000000000000","length":"120000","max_atmosphering_speed":"n/a","crew":"342953","passengers":"843342","cargo_capacity":"1000000000000","consumables":"3
52
+ years","hyperdrive_rating":"4.0","MGLT":"10","starship_class":"Deep Space
53
+ Mobile Battlestation","pilots":[],"films":["http://swapi.co/api/films/1/"],"created":"2014-12-10T16:36:50.509000Z","edited":"2014-12-22T17:35:44.452589Z","url":"http://swapi.co/api/starships/9/"},{"name":"Millennium
54
+ Falcon","model":"YT-1300 light freighter","manufacturer":"Corellian Engineering
55
+ Corporation","cost_in_credits":"100000","length":"34.37","max_atmosphering_speed":"1050","crew":"4","passengers":"6","cargo_capacity":"100000","consumables":"2
56
+ 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/"},{"name":"Y-wing","model":"BTL
57
+ Y-wing","manufacturer":"Koensayr Manufacturing","cost_in_credits":"134999","length":"14","max_atmosphering_speed":"1000km","crew":"2","passengers":"0","cargo_capacity":"110","consumables":"1
58
+ week","hyperdrive_rating":"1.0","MGLT":"80","starship_class":"assault starfighter","pilots":[],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-12T11:00:39.817000Z","edited":"2014-12-22T17:35:44.479706Z","url":"http://swapi.co/api/starships/11/"},{"name":"X-wing","model":"T-65
59
+ X-wing","manufacturer":"Incom Corporation","cost_in_credits":"149999","length":"12.5","max_atmosphering_speed":"1050","crew":"1","passengers":"0","cargo_capacity":"110","consumables":"1
60
+ week","hyperdrive_rating":"1.0","MGLT":"100","starship_class":"Starfighter","pilots":["http://swapi.co/api/people/1/","http://swapi.co/api/people/9/","http://swapi.co/api/people/18/","http://swapi.co/api/people/19/"],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-12T11:19:05.340000Z","edited":"2014-12-22T17:35:44.491233Z","url":"http://swapi.co/api/starships/12/"},{"name":"TIE
61
+ Advanced x1","model":"Twin Ion Engine Advanced x1","manufacturer":"Sienar
62
+ Fleet Systems","cost_in_credits":"unknown","length":"9.2","max_atmosphering_speed":"1200","crew":"1","passengers":"0","cargo_capacity":"150","consumables":"5
63
+ days","hyperdrive_rating":"1.0","MGLT":"105","starship_class":"Starfighter","pilots":["http://swapi.co/api/people/4/"],"films":["http://swapi.co/api/films/1/"],"created":"2014-12-12T11:21:32.991000Z","edited":"2014-12-22T17:35:44.549047Z","url":"http://swapi.co/api/starships/13/"},{"name":"Executor","model":"Executor-class
64
+ star dreadnought","manufacturer":"Kuat Drive Yards, Fondor Shipyards","cost_in_credits":"1143350000","length":"19,000","max_atmosphering_speed":"n/a","crew":"279144","passengers":"38000","cargo_capacity":"250000000","consumables":"6
65
+ years","hyperdrive_rating":"2.0","MGLT":"40","starship_class":"Star dreadnought","pilots":[],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-15T12:31:42.547000Z","edited":"2014-12-22T17:35:44.638231Z","url":"http://swapi.co/api/starships/15/"},{"name":"Slave
66
+ 1","model":"Firespray-31-class patrol and attack","manufacturer":"Kuat Systems
67
+ Engineering","cost_in_credits":"unknown","length":"21.5","max_atmosphering_speed":"1000","crew":"1","passengers":"6","cargo_capacity":"70000","consumables":"1
68
+ month","hyperdrive_rating":"3.0","MGLT":"70","starship_class":"Patrol craft","pilots":["http://swapi.co/api/people/22/"],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/5/"],"created":"2014-12-15T13:00:56.332000Z","edited":"2014-12-22T17:35:44.716273Z","url":"http://swapi.co/api/starships/21/"},{"name":"Imperial
69
+ shuttle","model":"Lambda-class T-4a shuttle","manufacturer":"Sienar Fleet
70
+ Systems","cost_in_credits":"240000","length":"20","max_atmosphering_speed":"850","crew":"6","passengers":"20","cargo_capacity":"80000","consumables":"2
71
+ months","hyperdrive_rating":"1.0","MGLT":"50","starship_class":"Armed government
72
+ transport","pilots":["http://swapi.co/api/people/1/","http://swapi.co/api/people/13/","http://swapi.co/api/people/14/"],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-15T13:04:47.235000Z","edited":"2014-12-22T17:35:44.795405Z","url":"http://swapi.co/api/starships/22/"},{"name":"EF76
73
+ Nebulon-B escort frigate","model":"EF76 Nebulon-B escort frigate","manufacturer":"Kuat
74
+ Drive Yards","cost_in_credits":"8500000","length":"300","max_atmosphering_speed":"800","crew":"854","passengers":"75","cargo_capacity":"6000000","consumables":"2
75
+ years","hyperdrive_rating":"2.0","MGLT":"40","starship_class":"Escort ship","pilots":[],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-15T13:06:30.813000Z","edited":"2014-12-22T17:35:44.848329Z","url":"http://swapi.co/api/starships/23/"}]}'
76
+ http_version:
77
+ recorded_at: Tue, 17 Feb 2015 00:48:44 GMT
78
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,76 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/starships/?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:48:44 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=dde7339bbf3bf3ec4c6a5679030804cdd1424134123; expires=Wed, 17-Feb-16
31
+ 00:48:43 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
+ - 1b9dfb1f48090cbf-LHR
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"count":36,"next":"http://swapi.co/api/starships/?page=3","previous":"http://swapi.co/api/starships/?page=1","results":[{"name":"Calamari
47
+ Cruiser","model":"MC80 Liberty type Star Cruiser","manufacturer":"Mon Calamari
48
+ shipyards","cost_in_credits":"104000000","length":"1200","max_atmosphering_speed":"n/a","crew":"5400","passengers":"1200","cargo_capacity":"unknown","consumables":"2
49
+ years","hyperdrive_rating":"1.0","MGLT":"60","starship_class":"Star Cruiser","pilots":[],"films":["http://swapi.co/api/films/3/"],"created":"2014-12-18T10:54:57.804000Z","edited":"2014-12-22T17:35:44.957852Z","url":"http://swapi.co/api/starships/27/"},{"name":"A-wing","model":"RZ-1
50
+ A-wing Interceptor","manufacturer":"Alliance Underground Engineering, Incom
51
+ Corporation","cost_in_credits":"175000","length":"9.6","max_atmosphering_speed":"1300","crew":"1","passengers":"0","cargo_capacity":"40","consumables":"1
52
+ week","hyperdrive_rating":"1.0","MGLT":"120","starship_class":"Starfighter","pilots":["http://swapi.co/api/people/29/"],"films":["http://swapi.co/api/films/3/"],"created":"2014-12-18T11:16:34.542000Z","edited":"2014-12-22T17:35:44.978754Z","url":"http://swapi.co/api/starships/28/"},{"name":"B-wing","model":"A/SF-01
53
+ B-wing starfighter","manufacturer":"Slayn & Korpil","cost_in_credits":"220000","length":"16.9","max_atmosphering_speed":"950","crew":"1","passengers":"0","cargo_capacity":"45","consumables":"1
54
+ week","hyperdrive_rating":"2.0","MGLT":"91","starship_class":"Assault Starfighter","pilots":[],"films":["http://swapi.co/api/films/3/"],"created":"2014-12-18T11:18:04.763000Z","edited":"2014-12-22T17:35:45.011193Z","url":"http://swapi.co/api/starships/29/"},{"name":"Republic
55
+ Cruiser","model":"Consular-class cruiser","manufacturer":"Corellian Engineering
56
+ Corporation","cost_in_credits":"unknown","length":"115","max_atmosphering_speed":"900","crew":"9","passengers":"16","cargo_capacity":"unknown","consumables":"unknown","hyperdrive_rating":"2.0","MGLT":"unknown","starship_class":"Space
57
+ cruiser","pilots":[],"films":["http://swapi.co/api/films/4/"],"created":"2014-12-19T17:01:31.488000Z","edited":"2014-12-22T17:35:45.027308Z","url":"http://swapi.co/api/starships/31/"},{"name":"Naboo
58
+ fighter","model":"N-1 starfighter","manufacturer":"Theed Palace Space Vessel
59
+ Engineering Corps","cost_in_credits":"200000","length":"11","max_atmosphering_speed":"1100","crew":"1","passengers":"0","cargo_capacity":"65","consumables":"7
60
+ days","hyperdrive_rating":"1.0","MGLT":"unknown","starship_class":"Starfighter","pilots":["http://swapi.co/api/people/11/","http://swapi.co/api/people/35/","http://swapi.co/api/people/60/"],"films":["http://swapi.co/api/films/4/","http://swapi.co/api/films/5/"],"created":"2014-12-19T17:39:17.582000Z","edited":"2014-12-22T17:35:45.079452Z","url":"http://swapi.co/api/starships/39/"},{"name":"Naboo
61
+ Royal Starship","model":"J-type 327 Nubian royal starship","manufacturer":"Theed
62
+ Palace Space Vessel Engineering Corps, Nubia Star Drives","cost_in_credits":"unknown","length":"76","max_atmosphering_speed":"920","crew":"8","passengers":"unknown","cargo_capacity":"unknown","consumables":"unknown","hyperdrive_rating":"1.8","MGLT":"unknown","starship_class":"yacht","pilots":["http://swapi.co/api/people/39/"],"films":["http://swapi.co/api/films/4/"],"created":"2014-12-19T17:45:03.506000Z","edited":"2014-12-22T17:35:45.091925Z","url":"http://swapi.co/api/starships/40/"},{"name":"Scimitar","model":"Star
63
+ Courier","manufacturer":"Republic Sienar Systems","cost_in_credits":"55000000","length":"26.5","max_atmosphering_speed":"1180","crew":"1","passengers":"6","cargo_capacity":"2500000","consumables":"30
64
+ days","hyperdrive_rating":"1.5","MGLT":"unknown","starship_class":"Space Transport","pilots":["http://swapi.co/api/people/44/"],"films":["http://swapi.co/api/films/4/"],"created":"2014-12-20T09:39:56.116000Z","edited":"2014-12-22T17:35:45.105522Z","url":"http://swapi.co/api/starships/41/"},{"name":"J-type
65
+ diplomatic barge","model":"J-type diplomatic barge","manufacturer":"Theed
66
+ Palace Space Vessel Engineering Corps, Nubia Star Drives","cost_in_credits":"2000000","length":"39","max_atmosphering_speed":"2000","crew":"5","passengers":"10","cargo_capacity":"unknown","consumables":"1
67
+ year","hyperdrive_rating":"0.7","MGLT":"unknown","starship_class":"Diplomatic
68
+ barge","pilots":[],"films":["http://swapi.co/api/films/5/"],"created":"2014-12-20T11:05:51.237000Z","edited":"2014-12-22T17:35:45.124386Z","url":"http://swapi.co/api/starships/43/"},{"name":"AA-9
69
+ Coruscant freighter","model":"Botajef AA-9 Freighter-Liner","manufacturer":"Botajef
70
+ Shipyards","cost_in_credits":"unknown","length":"390","max_atmosphering_speed":"unknown","crew":"unknown","passengers":"30000","cargo_capacity":"unknown","consumables":"unknown","hyperdrive_rating":"unknown","MGLT":"unknown","starship_class":"freighter","pilots":[],"films":["http://swapi.co/api/films/5/"],"created":"2014-12-20T17:24:23.509000Z","edited":"2014-12-22T17:35:45.135987Z","url":"http://swapi.co/api/starships/47/"},{"name":"Jedi
71
+ starfighter","model":"Delta-7 Aethersprite-class interceptor","manufacturer":"Kuat
72
+ Systems Engineering","cost_in_credits":"180000","length":"8","max_atmosphering_speed":"1150","crew":"1","passengers":"0","cargo_capacity":"60","consumables":"7
73
+ days","hyperdrive_rating":"1.0","MGLT":"unknown","starship_class":"Starfighter","pilots":["http://swapi.co/api/people/10/","http://swapi.co/api/people/58/"],"films":["http://swapi.co/api/films/5/","http://swapi.co/api/films/6/"],"created":"2014-12-20T17:35:23.906000Z","edited":"2014-12-22T17:35:45.147746Z","url":"http://swapi.co/api/starships/48/"}]}'
74
+ http_version:
75
+ recorded_at: Tue, 17 Feb 2015 00:48:45 GMT
76
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,78 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/starships/?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:48:44 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
+ - 1b9dfb23c54d0cf5-LHR
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"count":36,"next":"http://swapi.co/api/starships/?page=2","previous":null,"results":[{"name":"Sentinel-class
47
+ landing craft","model":"Sentinel-class landing craft","manufacturer":"Sienar
48
+ Fleet Systems, Cyngus Spaceworks","cost_in_credits":"240000","length":"38","max_atmosphering_speed":"1000","crew":"5","passengers":"75","cargo_capacity":"180000","consumables":"1
49
+ month","hyperdrive_rating":"1.0","MGLT":"70","starship_class":"landing craft","pilots":[],"films":["http://swapi.co/api/films/1/"],"created":"2014-12-10T15:48:00.586000Z","edited":"2014-12-22T17:35:44.431407Z","url":"http://swapi.co/api/starships/5/"},{"name":"Death
50
+ Star","model":"DS-1 Orbital Battle Station","manufacturer":"Imperial Department
51
+ of Military Research, Sienar Fleet Systems","cost_in_credits":"1000000000000","length":"120000","max_atmosphering_speed":"n/a","crew":"342953","passengers":"843342","cargo_capacity":"1000000000000","consumables":"3
52
+ years","hyperdrive_rating":"4.0","MGLT":"10","starship_class":"Deep Space
53
+ Mobile Battlestation","pilots":[],"films":["http://swapi.co/api/films/1/"],"created":"2014-12-10T16:36:50.509000Z","edited":"2014-12-22T17:35:44.452589Z","url":"http://swapi.co/api/starships/9/"},{"name":"Millennium
54
+ Falcon","model":"YT-1300 light freighter","manufacturer":"Corellian Engineering
55
+ Corporation","cost_in_credits":"100000","length":"34.37","max_atmosphering_speed":"1050","crew":"4","passengers":"6","cargo_capacity":"100000","consumables":"2
56
+ 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/"},{"name":"Y-wing","model":"BTL
57
+ Y-wing","manufacturer":"Koensayr Manufacturing","cost_in_credits":"134999","length":"14","max_atmosphering_speed":"1000km","crew":"2","passengers":"0","cargo_capacity":"110","consumables":"1
58
+ week","hyperdrive_rating":"1.0","MGLT":"80","starship_class":"assault starfighter","pilots":[],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-12T11:00:39.817000Z","edited":"2014-12-22T17:35:44.479706Z","url":"http://swapi.co/api/starships/11/"},{"name":"X-wing","model":"T-65
59
+ X-wing","manufacturer":"Incom Corporation","cost_in_credits":"149999","length":"12.5","max_atmosphering_speed":"1050","crew":"1","passengers":"0","cargo_capacity":"110","consumables":"1
60
+ week","hyperdrive_rating":"1.0","MGLT":"100","starship_class":"Starfighter","pilots":["http://swapi.co/api/people/1/","http://swapi.co/api/people/9/","http://swapi.co/api/people/18/","http://swapi.co/api/people/19/"],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-12T11:19:05.340000Z","edited":"2014-12-22T17:35:44.491233Z","url":"http://swapi.co/api/starships/12/"},{"name":"TIE
61
+ Advanced x1","model":"Twin Ion Engine Advanced x1","manufacturer":"Sienar
62
+ Fleet Systems","cost_in_credits":"unknown","length":"9.2","max_atmosphering_speed":"1200","crew":"1","passengers":"0","cargo_capacity":"150","consumables":"5
63
+ days","hyperdrive_rating":"1.0","MGLT":"105","starship_class":"Starfighter","pilots":["http://swapi.co/api/people/4/"],"films":["http://swapi.co/api/films/1/"],"created":"2014-12-12T11:21:32.991000Z","edited":"2014-12-22T17:35:44.549047Z","url":"http://swapi.co/api/starships/13/"},{"name":"Executor","model":"Executor-class
64
+ star dreadnought","manufacturer":"Kuat Drive Yards, Fondor Shipyards","cost_in_credits":"1143350000","length":"19,000","max_atmosphering_speed":"n/a","crew":"279144","passengers":"38000","cargo_capacity":"250000000","consumables":"6
65
+ years","hyperdrive_rating":"2.0","MGLT":"40","starship_class":"Star dreadnought","pilots":[],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-15T12:31:42.547000Z","edited":"2014-12-22T17:35:44.638231Z","url":"http://swapi.co/api/starships/15/"},{"name":"Slave
66
+ 1","model":"Firespray-31-class patrol and attack","manufacturer":"Kuat Systems
67
+ Engineering","cost_in_credits":"unknown","length":"21.5","max_atmosphering_speed":"1000","crew":"1","passengers":"6","cargo_capacity":"70000","consumables":"1
68
+ month","hyperdrive_rating":"3.0","MGLT":"70","starship_class":"Patrol craft","pilots":["http://swapi.co/api/people/22/"],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/5/"],"created":"2014-12-15T13:00:56.332000Z","edited":"2014-12-22T17:35:44.716273Z","url":"http://swapi.co/api/starships/21/"},{"name":"Imperial
69
+ shuttle","model":"Lambda-class T-4a shuttle","manufacturer":"Sienar Fleet
70
+ Systems","cost_in_credits":"240000","length":"20","max_atmosphering_speed":"850","crew":"6","passengers":"20","cargo_capacity":"80000","consumables":"2
71
+ months","hyperdrive_rating":"1.0","MGLT":"50","starship_class":"Armed government
72
+ transport","pilots":["http://swapi.co/api/people/1/","http://swapi.co/api/people/13/","http://swapi.co/api/people/14/"],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-15T13:04:47.235000Z","edited":"2014-12-22T17:35:44.795405Z","url":"http://swapi.co/api/starships/22/"},{"name":"EF76
73
+ Nebulon-B escort frigate","model":"EF76 Nebulon-B escort frigate","manufacturer":"Kuat
74
+ Drive Yards","cost_in_credits":"8500000","length":"300","max_atmosphering_speed":"800","crew":"854","passengers":"75","cargo_capacity":"6000000","consumables":"2
75
+ years","hyperdrive_rating":"2.0","MGLT":"40","starship_class":"Escort ship","pilots":[],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-15T13:06:30.813000Z","edited":"2014-12-22T17:35:44.848329Z","url":"http://swapi.co/api/starships/23/"}]}'
76
+ http_version:
77
+ recorded_at: Tue, 17 Feb 2015 00:48:45 GMT
78
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,78 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/starships/
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=dfbc01500e7ba19a4c00fb7bc4ae643971424134126; expires=Wed, 17-Feb-16
31
+ 00:48:46 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
+ - 1b9dfb312d871359-LHR
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"count":36,"next":"http://swapi.co/api/starships/?page=2","previous":null,"results":[{"name":"Sentinel-class
47
+ landing craft","model":"Sentinel-class landing craft","manufacturer":"Sienar
48
+ Fleet Systems, Cyngus Spaceworks","cost_in_credits":"240000","length":"38","max_atmosphering_speed":"1000","crew":"5","passengers":"75","cargo_capacity":"180000","consumables":"1
49
+ month","hyperdrive_rating":"1.0","MGLT":"70","starship_class":"landing craft","pilots":[],"films":["http://swapi.co/api/films/1/"],"created":"2014-12-10T15:48:00.586000Z","edited":"2014-12-22T17:35:44.431407Z","url":"http://swapi.co/api/starships/5/"},{"name":"Death
50
+ Star","model":"DS-1 Orbital Battle Station","manufacturer":"Imperial Department
51
+ of Military Research, Sienar Fleet Systems","cost_in_credits":"1000000000000","length":"120000","max_atmosphering_speed":"n/a","crew":"342953","passengers":"843342","cargo_capacity":"1000000000000","consumables":"3
52
+ years","hyperdrive_rating":"4.0","MGLT":"10","starship_class":"Deep Space
53
+ Mobile Battlestation","pilots":[],"films":["http://swapi.co/api/films/1/"],"created":"2014-12-10T16:36:50.509000Z","edited":"2014-12-22T17:35:44.452589Z","url":"http://swapi.co/api/starships/9/"},{"name":"Millennium
54
+ Falcon","model":"YT-1300 light freighter","manufacturer":"Corellian Engineering
55
+ Corporation","cost_in_credits":"100000","length":"34.37","max_atmosphering_speed":"1050","crew":"4","passengers":"6","cargo_capacity":"100000","consumables":"2
56
+ 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/"},{"name":"Y-wing","model":"BTL
57
+ Y-wing","manufacturer":"Koensayr Manufacturing","cost_in_credits":"134999","length":"14","max_atmosphering_speed":"1000km","crew":"2","passengers":"0","cargo_capacity":"110","consumables":"1
58
+ week","hyperdrive_rating":"1.0","MGLT":"80","starship_class":"assault starfighter","pilots":[],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-12T11:00:39.817000Z","edited":"2014-12-22T17:35:44.479706Z","url":"http://swapi.co/api/starships/11/"},{"name":"X-wing","model":"T-65
59
+ X-wing","manufacturer":"Incom Corporation","cost_in_credits":"149999","length":"12.5","max_atmosphering_speed":"1050","crew":"1","passengers":"0","cargo_capacity":"110","consumables":"1
60
+ week","hyperdrive_rating":"1.0","MGLT":"100","starship_class":"Starfighter","pilots":["http://swapi.co/api/people/1/","http://swapi.co/api/people/9/","http://swapi.co/api/people/18/","http://swapi.co/api/people/19/"],"films":["http://swapi.co/api/films/1/","http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-12T11:19:05.340000Z","edited":"2014-12-22T17:35:44.491233Z","url":"http://swapi.co/api/starships/12/"},{"name":"TIE
61
+ Advanced x1","model":"Twin Ion Engine Advanced x1","manufacturer":"Sienar
62
+ Fleet Systems","cost_in_credits":"unknown","length":"9.2","max_atmosphering_speed":"1200","crew":"1","passengers":"0","cargo_capacity":"150","consumables":"5
63
+ days","hyperdrive_rating":"1.0","MGLT":"105","starship_class":"Starfighter","pilots":["http://swapi.co/api/people/4/"],"films":["http://swapi.co/api/films/1/"],"created":"2014-12-12T11:21:32.991000Z","edited":"2014-12-22T17:35:44.549047Z","url":"http://swapi.co/api/starships/13/"},{"name":"Executor","model":"Executor-class
64
+ star dreadnought","manufacturer":"Kuat Drive Yards, Fondor Shipyards","cost_in_credits":"1143350000","length":"19,000","max_atmosphering_speed":"n/a","crew":"279144","passengers":"38000","cargo_capacity":"250000000","consumables":"6
65
+ years","hyperdrive_rating":"2.0","MGLT":"40","starship_class":"Star dreadnought","pilots":[],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-15T12:31:42.547000Z","edited":"2014-12-22T17:35:44.638231Z","url":"http://swapi.co/api/starships/15/"},{"name":"Slave
66
+ 1","model":"Firespray-31-class patrol and attack","manufacturer":"Kuat Systems
67
+ Engineering","cost_in_credits":"unknown","length":"21.5","max_atmosphering_speed":"1000","crew":"1","passengers":"6","cargo_capacity":"70000","consumables":"1
68
+ month","hyperdrive_rating":"3.0","MGLT":"70","starship_class":"Patrol craft","pilots":["http://swapi.co/api/people/22/"],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/5/"],"created":"2014-12-15T13:00:56.332000Z","edited":"2014-12-22T17:35:44.716273Z","url":"http://swapi.co/api/starships/21/"},{"name":"Imperial
69
+ shuttle","model":"Lambda-class T-4a shuttle","manufacturer":"Sienar Fleet
70
+ Systems","cost_in_credits":"240000","length":"20","max_atmosphering_speed":"850","crew":"6","passengers":"20","cargo_capacity":"80000","consumables":"2
71
+ months","hyperdrive_rating":"1.0","MGLT":"50","starship_class":"Armed government
72
+ transport","pilots":["http://swapi.co/api/people/1/","http://swapi.co/api/people/13/","http://swapi.co/api/people/14/"],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-15T13:04:47.235000Z","edited":"2014-12-22T17:35:44.795405Z","url":"http://swapi.co/api/starships/22/"},{"name":"EF76
73
+ Nebulon-B escort frigate","model":"EF76 Nebulon-B escort frigate","manufacturer":"Kuat
74
+ Drive Yards","cost_in_credits":"8500000","length":"300","max_atmosphering_speed":"800","crew":"854","passengers":"75","cargo_capacity":"6000000","consumables":"2
75
+ years","hyperdrive_rating":"2.0","MGLT":"40","starship_class":"Escort ship","pilots":[],"films":["http://swapi.co/api/films/2/","http://swapi.co/api/films/3/"],"created":"2014-12-15T13:06:30.813000Z","edited":"2014-12-22T17:35:44.848329Z","url":"http://swapi.co/api/starships/23/"}]}'
76
+ http_version:
77
+ recorded_at: Tue, 17 Feb 2015 00:48:47 GMT
78
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/vehicles/14/
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:59:51 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d935c284adebd472a0ec5827262a944fd1424134790; expires=Wed, 17-Feb-16
31
+ 00:59:50 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
+ - 1b9e0b6b164606ca-LHR
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"name":"Snowspeeder","model":"t-47 airspeeder","manufacturer":"Incom
47
+ corporation","cost_in_credits":"unknown","length":"4.5","max_atmosphering_speed":"650","crew":"2","passengers":"0","cargo_capacity":"10","consumables":"none","vehicle_class":"airspeeder","pilots":["http://swapi.co/api/people/1/","http://swapi.co/api/people/18/"],"films":["http://swapi.co/api/films/2/"],"created":"2014-12-15T12:22:12Z","edited":"2014-12-22T18:21:15.623033Z","url":"http://swapi.co/api/vehicles/14/"}'
48
+ http_version:
49
+ recorded_at: Tue, 17 Feb 2015 00:59:53 GMT
50
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/vehicles/14/
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:59:54 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d6fa8f25b49eddf5f90164a25e7aa96311424134792; expires=Wed, 17-Feb-16
31
+ 00:59:52 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
+ - 1b9e0b723be813ad-LHR
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"name":"Snowspeeder","model":"t-47 airspeeder","manufacturer":"Incom
47
+ corporation","cost_in_credits":"unknown","length":"4.5","max_atmosphering_speed":"650","crew":"2","passengers":"0","cargo_capacity":"10","consumables":"none","vehicle_class":"airspeeder","pilots":["http://swapi.co/api/people/1/","http://swapi.co/api/people/18/"],"films":["http://swapi.co/api/films/2/"],"created":"2014-12-15T12:22:12Z","edited":"2014-12-22T18:21:15.623033Z","url":"http://swapi.co/api/vehicles/14/"}'
48
+ http_version:
49
+ recorded_at: Tue, 17 Feb 2015 00:59:56 GMT
50
+ recorded_with: VCR 2.9.3