tatooine 1.0.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +8 -7
- data/CHANGELOG.md +7 -2
- data/lib/tatooine.rb +1 -1
- data/lib/tatooine/version.rb +1 -1
- data/spec/film_spec.rb +5 -3
- data/spec/fixtures/vcr_cassettes/film_1.yml +15 -11
- data/spec/fixtures/vcr_cassettes/film_1_and_schema.yml +14 -10
- data/spec/fixtures/vcr_cassettes/film_count.yml +52 -39
- data/spec/fixtures/vcr_cassettes/film_list.yml +260 -215
- data/spec/fixtures/vcr_cassettes/film_schema.yml +52 -39
- data/spec/fixtures/vcr_cassettes/person_1.yml +14 -10
- data/spec/fixtures/vcr_cassettes/person_1_and_schema.yml +14 -10
- data/spec/fixtures/vcr_cassettes/person_count.yml +23 -19
- data/spec/fixtures/vcr_cassettes/person_list.yml +23 -19
- data/spec/fixtures/vcr_cassettes/person_next.yml +20 -16
- data/spec/fixtures/vcr_cassettes/person_previous.yml +23 -19
- data/spec/fixtures/vcr_cassettes/person_schema.yml +23 -19
- data/spec/fixtures/vcr_cassettes/planet_1.yml +14 -10
- data/spec/fixtures/vcr_cassettes/planet_1_and_schema.yml +14 -10
- data/spec/fixtures/vcr_cassettes/planet_count.yml +24 -20
- data/spec/fixtures/vcr_cassettes/planet_list.yml +24 -20
- data/spec/fixtures/vcr_cassettes/planet_next.yml +24 -20
- data/spec/fixtures/vcr_cassettes/planet_previous.yml +24 -20
- data/spec/fixtures/vcr_cassettes/planet_schema.yml +24 -20
- data/spec/fixtures/vcr_cassettes/species_1.yml +15 -11
- data/spec/fixtures/vcr_cassettes/species_1_and_schema.yml +15 -11
- data/spec/fixtures/vcr_cassettes/species_count.yml +26 -22
- data/spec/fixtures/vcr_cassettes/species_list.yml +26 -22
- data/spec/fixtures/vcr_cassettes/species_next.yml +22 -19
- data/spec/fixtures/vcr_cassettes/species_previous.yml +26 -22
- data/spec/fixtures/vcr_cassettes/species_schema.yml +26 -22
- data/spec/fixtures/vcr_cassettes/starship_10.yml +14 -10
- data/spec/fixtures/vcr_cassettes/starship_2_and_schema.yml +14 -10
- data/spec/fixtures/vcr_cassettes/starship_count.yml +25 -21
- data/spec/fixtures/vcr_cassettes/starship_list.yml +25 -21
- data/spec/fixtures/vcr_cassettes/starship_next.yml +24 -20
- data/spec/fixtures/vcr_cassettes/starship_previous.yml +25 -21
- data/spec/fixtures/vcr_cassettes/starship_schema.yml +25 -21
- data/spec/fixtures/vcr_cassettes/vehicle_14.yml +14 -10
- data/spec/fixtures/vcr_cassettes/vehicle_14_and_schema.yml +14 -10
- data/spec/fixtures/vcr_cassettes/vehicle_count.yml +24 -20
- data/spec/fixtures/vcr_cassettes/vehicle_list.yml +24 -20
- data/spec/fixtures/vcr_cassettes/vehicle_next.yml +24 -20
- data/spec/fixtures/vcr_cassettes/vehicle_previous.yml +24 -20
- data/spec/fixtures/vcr_cassettes/vehicle_schema.yml +24 -20
- data/spec/person_spec.rb +2 -2
- data/spec/planet_spec.rb +2 -2
- data/spec/species_spec.rb +2 -2
- data/spec/starship_spec.rb +2 -2
- data/spec/vehicle_spec.rb +1 -1
- data/tatooine.gemspec +3 -3
- metadata +8 -9
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: https://swapi.co/api/vehicles/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Tatooine Ruby Gem -
|
11
|
+
- Tatooine Ruby Gem - 1.0.1
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
- Tue,
|
22
|
+
- Tue, 28 Aug 2018 21:42:00 GMT
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
25
|
Transfer-Encoding:
|
@@ -27,8 +27,10 @@ http_interactions:
|
|
27
27
|
Connection:
|
28
28
|
- keep-alive
|
29
29
|
Set-Cookie:
|
30
|
-
- __cfduid=
|
31
|
-
|
30
|
+
- __cfduid=de17a5c94592791fd72e86529091c548c1535492519; expires=Wed, 28-Aug-19
|
31
|
+
21:41:59 GMT; path=/; domain=.swapi.co; HttpOnly; Secure
|
32
|
+
Etag:
|
33
|
+
- W/"9392ccdae0725f9ff4c2c11cd5e9bfc4"
|
32
34
|
Allow:
|
33
35
|
- GET, HEAD, OPTIONS
|
34
36
|
X-Frame-Options:
|
@@ -37,34 +39,36 @@ http_interactions:
|
|
37
39
|
- Accept, Cookie
|
38
40
|
Via:
|
39
41
|
- 1.1 vegur
|
42
|
+
Expect-Ct:
|
43
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
40
44
|
Server:
|
41
|
-
- cloudflare
|
45
|
+
- cloudflare
|
42
46
|
Cf-Ray:
|
43
|
-
-
|
47
|
+
- 4519f1f83805407c-HAM
|
44
48
|
body:
|
45
|
-
encoding:
|
46
|
-
string: '{"count":39,"next":"
|
49
|
+
encoding: ASCII-8BIT
|
50
|
+
string: '{"count":39,"next":"https://swapi.co/api/vehicles/?page=2","previous":null,"results":[{"name":"Sand
|
47
51
|
Crawler","model":"Digger Crawler","manufacturer":"Corellia Mining Corporation","cost_in_credits":"150000","length":"36.8","max_atmosphering_speed":"30","crew":"46","passengers":"30","cargo_capacity":"50000","consumables":"2
|
48
|
-
months","vehicle_class":"wheeled","pilots":[],"films":["
|
49
|
-
skyhopper","model":"T-16 skyhopper","manufacturer":"Incom Corporation","cost_in_credits":"14500","length":"10.4","max_atmosphering_speed":"1200","crew":"1","passengers":"1","cargo_capacity":"50","consumables":"0","vehicle_class":"repulsorcraft","pilots":[],"films":["
|
50
|
-
landspeeder","model":"X-34 landspeeder","manufacturer":"SoroSuub Corporation","cost_in_credits":"10550","length":"3.4","max_atmosphering_speed":"250","crew":"1","passengers":"1","cargo_capacity":"5","consumables":"unknown","vehicle_class":"repulsorcraft","pilots":[],"films":["
|
52
|
+
months","vehicle_class":"wheeled","pilots":[],"films":["https://swapi.co/api/films/5/","https://swapi.co/api/films/1/"],"created":"2014-12-10T15:36:25.724000Z","edited":"2014-12-22T18:21:15.523587Z","url":"https://swapi.co/api/vehicles/4/"},{"name":"T-16
|
53
|
+
skyhopper","model":"T-16 skyhopper","manufacturer":"Incom Corporation","cost_in_credits":"14500","length":"10.4","max_atmosphering_speed":"1200","crew":"1","passengers":"1","cargo_capacity":"50","consumables":"0","vehicle_class":"repulsorcraft","pilots":[],"films":["https://swapi.co/api/films/1/"],"created":"2014-12-10T16:01:52.434000Z","edited":"2014-12-22T18:21:15.552614Z","url":"https://swapi.co/api/vehicles/6/"},{"name":"X-34
|
54
|
+
landspeeder","model":"X-34 landspeeder","manufacturer":"SoroSuub Corporation","cost_in_credits":"10550","length":"3.4","max_atmosphering_speed":"250","crew":"1","passengers":"1","cargo_capacity":"5","consumables":"unknown","vehicle_class":"repulsorcraft","pilots":[],"films":["https://swapi.co/api/films/1/"],"created":"2014-12-10T16:13:52.586000Z","edited":"2014-12-22T18:21:15.583700Z","url":"https://swapi.co/api/vehicles/7/"},{"name":"TIE/LN
|
51
55
|
starfighter","model":"Twin Ion Engine/Ln Starfighter","manufacturer":"Sienar
|
52
56
|
Fleet Systems","cost_in_credits":"unknown","length":"6.4","max_atmosphering_speed":"1200","crew":"1","passengers":"0","cargo_capacity":"65","consumables":"2
|
53
|
-
days","vehicle_class":"starfighter","pilots":[],"films":["
|
54
|
-
airspeeder","manufacturer":"Incom 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":["
|
57
|
+
days","vehicle_class":"starfighter","pilots":[],"films":["https://swapi.co/api/films/2/","https://swapi.co/api/films/3/","https://swapi.co/api/films/1/"],"created":"2014-12-10T16:33:52.860000Z","edited":"2014-12-22T18:21:15.606149Z","url":"https://swapi.co/api/vehicles/8/"},{"name":"Snowspeeder","model":"t-47
|
58
|
+
airspeeder","manufacturer":"Incom 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":["https://swapi.co/api/people/1/","https://swapi.co/api/people/18/"],"films":["https://swapi.co/api/films/2/"],"created":"2014-12-15T12:22:12Z","edited":"2014-12-22T18:21:15.623033Z","url":"https://swapi.co/api/vehicles/14/"},{"name":"TIE
|
55
59
|
bomber","model":"TIE/sa bomber","manufacturer":"Sienar Fleet Systems","cost_in_credits":"unknown","length":"7.8","max_atmosphering_speed":"850","crew":"1","passengers":"0","cargo_capacity":"none","consumables":"2
|
56
|
-
days","vehicle_class":"space/planetary bomber","pilots":[],"films":["
|
60
|
+
days","vehicle_class":"space/planetary bomber","pilots":[],"films":["https://swapi.co/api/films/2/","https://swapi.co/api/films/3/"],"created":"2014-12-15T12:33:15.838000Z","edited":"2014-12-22T18:21:15.667730Z","url":"https://swapi.co/api/vehicles/16/"},{"name":"AT-AT","model":"All
|
57
61
|
Terrain Armored Transport","manufacturer":"Kuat Drive Yards, Imperial Department
|
58
62
|
of Military Research","cost_in_credits":"unknown","length":"20","max_atmosphering_speed":"60","crew":"5","passengers":"40","cargo_capacity":"1000","consumables":"unknown","vehicle_class":"assault
|
59
|
-
walker","pilots":[],"films":["
|
63
|
+
walker","pilots":[],"films":["https://swapi.co/api/films/2/","https://swapi.co/api/films/3/"],"created":"2014-12-15T12:38:25.937000Z","edited":"2014-12-22T18:21:15.714673Z","url":"https://swapi.co/api/vehicles/18/"},{"name":"AT-ST","model":"All
|
60
64
|
Terrain Scout Transport","manufacturer":"Kuat Drive Yards, Imperial Department
|
61
|
-
of Military Research","cost_in_credits":"unknown","length":"2","max_atmosphering_speed":"90","crew":"2","passengers":"0","cargo_capacity":"200","consumables":"none","vehicle_class":"walker","pilots":["
|
65
|
+
of Military Research","cost_in_credits":"unknown","length":"2","max_atmosphering_speed":"90","crew":"2","passengers":"0","cargo_capacity":"200","consumables":"none","vehicle_class":"walker","pilots":["https://swapi.co/api/people/13/"],"films":["https://swapi.co/api/films/2/","https://swapi.co/api/films/3/"],"created":"2014-12-15T12:46:42.384000Z","edited":"2014-12-22T18:21:15.761584Z","url":"https://swapi.co/api/vehicles/19/"},{"name":"Storm
|
62
66
|
IV Twin-Pod cloud car","model":"Storm IV Twin-Pod","manufacturer":"Bespin
|
63
67
|
Motors","cost_in_credits":"75000","length":"7","max_atmosphering_speed":"1500","crew":"2","passengers":"0","cargo_capacity":"10","consumables":"1
|
64
|
-
day","vehicle_class":"repulsorcraft","pilots":[],"films":["
|
68
|
+
day","vehicle_class":"repulsorcraft","pilots":[],"films":["https://swapi.co/api/films/2/"],"created":"2014-12-15T12:58:50.530000Z","edited":"2014-12-22T18:21:15.783232Z","url":"https://swapi.co/api/vehicles/20/"},{"name":"Sail
|
65
69
|
barge","model":"Modified Luxury Sail Barge","manufacturer":"Ubrikkian Industries
|
66
70
|
Custom Vehicle Division","cost_in_credits":"285000","length":"30","max_atmosphering_speed":"100","crew":"26","passengers":"500","cargo_capacity":"2000000","consumables":"Live
|
67
|
-
food tanks","vehicle_class":"sail barge","pilots":[],"films":["
|
71
|
+
food tanks","vehicle_class":"sail barge","pilots":[],"films":["https://swapi.co/api/films/3/"],"created":"2014-12-18T10:44:14.217000Z","edited":"2014-12-22T18:21:15.807906Z","url":"https://swapi.co/api/vehicles/24/"}]}'
|
68
72
|
http_version:
|
69
|
-
recorded_at: Tue,
|
73
|
+
recorded_at: Tue, 28 Aug 2018 21:42:00 GMT
|
70
74
|
recorded_with: VCR 2.9.3
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: https://swapi.co/api/vehicles/?page=2
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Tatooine Ruby Gem -
|
11
|
+
- Tatooine Ruby Gem - 1.0.1
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
- Tue,
|
22
|
+
- Tue, 28 Aug 2018 21:42:01 GMT
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
25
|
Transfer-Encoding:
|
@@ -27,8 +27,10 @@ http_interactions:
|
|
27
27
|
Connection:
|
28
28
|
- keep-alive
|
29
29
|
Set-Cookie:
|
30
|
-
- __cfduid=
|
31
|
-
|
30
|
+
- __cfduid=d29fd7383064d492270addbaa5aca21121535492520; expires=Wed, 28-Aug-19
|
31
|
+
21:42:00 GMT; path=/; domain=.swapi.co; HttpOnly; Secure
|
32
|
+
Etag:
|
33
|
+
- W/"e2d546258dc865057344604dbcf4541b"
|
32
34
|
Allow:
|
33
35
|
- GET, HEAD, OPTIONS
|
34
36
|
X-Frame-Options:
|
@@ -37,32 +39,34 @@ http_interactions:
|
|
37
39
|
- Accept, Cookie
|
38
40
|
Via:
|
39
41
|
- 1.1 vegur
|
42
|
+
Expect-Ct:
|
43
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
40
44
|
Server:
|
41
|
-
- cloudflare
|
45
|
+
- cloudflare
|
42
46
|
Cf-Ray:
|
43
|
-
-
|
47
|
+
- 4519f1fd2b56406a-HAM
|
44
48
|
body:
|
45
|
-
encoding:
|
46
|
-
string: '{"count":39,"next":"
|
49
|
+
encoding: ASCII-8BIT
|
50
|
+
string: '{"count":39,"next":"https://swapi.co/api/vehicles/?page=3","previous":"https://swapi.co/api/vehicles/?page=1","results":[{"name":"Bantha-II
|
47
51
|
cargo skiff","model":"Bantha-II","manufacturer":"Ubrikkian Industries","cost_in_credits":"8000","length":"9.5","max_atmosphering_speed":"250","crew":"5","passengers":"16","cargo_capacity":"135000","consumables":"1
|
48
|
-
day","vehicle_class":"repulsorcraft cargo skiff","pilots":[],"films":["
|
52
|
+
day","vehicle_class":"repulsorcraft cargo skiff","pilots":[],"films":["https://swapi.co/api/films/3/"],"created":"2014-12-18T10:48:03.208000Z","edited":"2014-12-22T18:21:15.845988Z","url":"https://swapi.co/api/vehicles/25/"},{"name":"TIE/IN
|
49
53
|
interceptor","model":"Twin Ion Engine Interceptor","manufacturer":"Sienar
|
50
54
|
Fleet Systems","cost_in_credits":"unknown","length":"9.6","max_atmosphering_speed":"1250","crew":"1","passengers":"0","cargo_capacity":"75","consumables":"2
|
51
|
-
days","vehicle_class":"starfighter","pilots":[],"films":["
|
55
|
+
days","vehicle_class":"starfighter","pilots":[],"films":["https://swapi.co/api/films/3/"],"created":"2014-12-18T10:50:28.225000Z","edited":"2014-12-22T18:21:15.882388Z","url":"https://swapi.co/api/vehicles/26/"},{"name":"Imperial
|
52
56
|
Speeder Bike","model":"74-Z speeder bike","manufacturer":"Aratech Repulsor
|
53
57
|
Company","cost_in_credits":"8000","length":"3","max_atmosphering_speed":"360","crew":"1","passengers":"1","cargo_capacity":"4","consumables":"1
|
54
|
-
day","vehicle_class":"speeder","pilots":["
|
58
|
+
day","vehicle_class":"speeder","pilots":["https://swapi.co/api/people/1/","https://swapi.co/api/people/5/"],"films":["https://swapi.co/api/films/3/"],"created":"2014-12-18T11:20:04.625000Z","edited":"2014-12-22T18:21:15.920537Z","url":"https://swapi.co/api/vehicles/30/"},{"name":"Vulture
|
55
59
|
Droid","model":"Vulture-class droid starfighter","manufacturer":"Haor Chall
|
56
|
-
Engineering, Baktoid Armor Workshop","cost_in_credits":"unknown","length":"3.5","max_atmosphering_speed":"1200","crew":"0","passengers":"0","cargo_capacity":"0","consumables":"none","vehicle_class":"starfighter","pilots":[],"films":["
|
57
|
-
Transport","model":"Multi-Troop Transport","manufacturer":"Baktoid Armor Workshop","cost_in_credits":"138000","length":"31","max_atmosphering_speed":"35","crew":"4","passengers":"112","cargo_capacity":"12000","consumables":"unknown","vehicle_class":"repulsorcraft","pilots":[],"films":["
|
60
|
+
Engineering, Baktoid Armor Workshop","cost_in_credits":"unknown","length":"3.5","max_atmosphering_speed":"1200","crew":"0","passengers":"0","cargo_capacity":"0","consumables":"none","vehicle_class":"starfighter","pilots":[],"films":["https://swapi.co/api/films/4/","https://swapi.co/api/films/6/"],"created":"2014-12-19T17:09:53.584000Z","edited":"2014-12-22T18:21:15.953870Z","url":"https://swapi.co/api/vehicles/33/"},{"name":"Multi-Troop
|
61
|
+
Transport","model":"Multi-Troop Transport","manufacturer":"Baktoid Armor Workshop","cost_in_credits":"138000","length":"31","max_atmosphering_speed":"35","crew":"4","passengers":"112","cargo_capacity":"12000","consumables":"unknown","vehicle_class":"repulsorcraft","pilots":[],"films":["https://swapi.co/api/films/4/"],"created":"2014-12-19T17:12:04.400000Z","edited":"2014-12-22T18:21:15.975171Z","url":"https://swapi.co/api/vehicles/34/"},{"name":"Armored
|
58
62
|
Assault Tank","model":"Armoured Assault Tank","manufacturer":"Baktoid Armor
|
59
|
-
Workshop","cost_in_credits":"unknown","length":"9.75","max_atmosphering_speed":"55","crew":"4","passengers":"6","cargo_capacity":"unknown","consumables":"unknown","vehicle_class":"repulsorcraft","pilots":[],"films":["
|
63
|
+
Workshop","cost_in_credits":"unknown","length":"9.75","max_atmosphering_speed":"55","crew":"4","passengers":"6","cargo_capacity":"unknown","consumables":"unknown","vehicle_class":"repulsorcraft","pilots":[],"films":["https://swapi.co/api/films/4/"],"created":"2014-12-19T17:13:29.799000Z","edited":"2014-12-22T18:21:15.984817Z","url":"https://swapi.co/api/vehicles/35/"},{"name":"Single
|
60
64
|
Trooper Aerial Platform","model":"Single Trooper Aerial Platform","manufacturer":"Baktoid
|
61
|
-
Armor Workshop","cost_in_credits":"2500","length":"2","max_atmosphering_speed":"400","crew":"1","passengers":"0","cargo_capacity":"none","consumables":"none","vehicle_class":"repulsorcraft","pilots":[],"films":["
|
65
|
+
Armor Workshop","cost_in_credits":"2500","length":"2","max_atmosphering_speed":"400","crew":"1","passengers":"0","cargo_capacity":"none","consumables":"none","vehicle_class":"repulsorcraft","pilots":[],"films":["https://swapi.co/api/films/4/"],"created":"2014-12-19T17:15:09.511000Z","edited":"2014-12-22T18:21:16.008594Z","url":"https://swapi.co/api/vehicles/36/"},{"name":"C-9979
|
62
66
|
landing craft","model":"C-9979 landing craft","manufacturer":"Haor Chall Engineering","cost_in_credits":"200000","length":"210","max_atmosphering_speed":"587","crew":"140","passengers":"284","cargo_capacity":"1800000","consumables":"1
|
63
|
-
day","vehicle_class":"landing craft","pilots":[],"films":["
|
64
|
-
bongo","model":"Tribubble bongo","manufacturer":"Otoh Gunga Bongameken Cooperative","cost_in_credits":"unknown","length":"15","max_atmosphering_speed":"85","crew":"1","passengers":"2","cargo_capacity":"1600","consumables":"unknown","vehicle_class":"submarine","pilots":["
|
65
|
-
speeder","model":"FC-20 speeder bike","manufacturer":"Razalon","cost_in_credits":"4000","length":"1.5","max_atmosphering_speed":"180","crew":"1","passengers":"0","cargo_capacity":"2","consumables":"unknown","vehicle_class":"speeder","pilots":["
|
67
|
+
day","vehicle_class":"landing craft","pilots":[],"films":["https://swapi.co/api/films/4/"],"created":"2014-12-19T17:20:36.373000Z","edited":"2014-12-22T18:21:16.033738Z","url":"https://swapi.co/api/vehicles/37/"},{"name":"Tribubble
|
68
|
+
bongo","model":"Tribubble bongo","manufacturer":"Otoh Gunga Bongameken Cooperative","cost_in_credits":"unknown","length":"15","max_atmosphering_speed":"85","crew":"1","passengers":"2","cargo_capacity":"1600","consumables":"unknown","vehicle_class":"submarine","pilots":["https://swapi.co/api/people/10/","https://swapi.co/api/people/32/"],"films":["https://swapi.co/api/films/4/"],"created":"2014-12-19T17:37:37.924000Z","edited":"2014-12-22T18:21:16.072083Z","url":"https://swapi.co/api/vehicles/38/"},{"name":"Sith
|
69
|
+
speeder","model":"FC-20 speeder bike","manufacturer":"Razalon","cost_in_credits":"4000","length":"1.5","max_atmosphering_speed":"180","crew":"1","passengers":"0","cargo_capacity":"2","consumables":"unknown","vehicle_class":"speeder","pilots":["https://swapi.co/api/people/44/"],"films":["https://swapi.co/api/films/4/"],"created":"2014-12-20T10:09:56.095000Z","edited":"2014-12-22T18:21:16.095041Z","url":"https://swapi.co/api/vehicles/42/"}]}'
|
66
70
|
http_version:
|
67
|
-
recorded_at: Tue,
|
71
|
+
recorded_at: Tue, 28 Aug 2018 21:42:01 GMT
|
68
72
|
recorded_with: VCR 2.9.3
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: https://swapi.co/api/vehicles/?page=1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Tatooine Ruby Gem -
|
11
|
+
- Tatooine Ruby Gem - 1.0.1
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
- Tue,
|
22
|
+
- Tue, 28 Aug 2018 21:42:01 GMT
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
25
|
Transfer-Encoding:
|
@@ -27,8 +27,10 @@ http_interactions:
|
|
27
27
|
Connection:
|
28
28
|
- keep-alive
|
29
29
|
Set-Cookie:
|
30
|
-
- __cfduid=
|
31
|
-
|
30
|
+
- __cfduid=dde314e6b37ac1ce7ce488a0b5bd9aff11535492521; expires=Wed, 28-Aug-19
|
31
|
+
21:42:01 GMT; path=/; domain=.swapi.co; HttpOnly; Secure
|
32
|
+
Etag:
|
33
|
+
- W/"9392ccdae0725f9ff4c2c11cd5e9bfc4"
|
32
34
|
Allow:
|
33
35
|
- GET, HEAD, OPTIONS
|
34
36
|
X-Frame-Options:
|
@@ -37,34 +39,36 @@ http_interactions:
|
|
37
39
|
- Accept, Cookie
|
38
40
|
Via:
|
39
41
|
- 1.1 vegur
|
42
|
+
Expect-Ct:
|
43
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
40
44
|
Server:
|
41
|
-
- cloudflare
|
45
|
+
- cloudflare
|
42
46
|
Cf-Ray:
|
43
|
-
-
|
47
|
+
- 4519f2023adf409a-HAM
|
44
48
|
body:
|
45
|
-
encoding:
|
46
|
-
string: '{"count":39,"next":"
|
49
|
+
encoding: ASCII-8BIT
|
50
|
+
string: '{"count":39,"next":"https://swapi.co/api/vehicles/?page=2","previous":null,"results":[{"name":"Sand
|
47
51
|
Crawler","model":"Digger Crawler","manufacturer":"Corellia Mining Corporation","cost_in_credits":"150000","length":"36.8","max_atmosphering_speed":"30","crew":"46","passengers":"30","cargo_capacity":"50000","consumables":"2
|
48
|
-
months","vehicle_class":"wheeled","pilots":[],"films":["
|
49
|
-
skyhopper","model":"T-16 skyhopper","manufacturer":"Incom Corporation","cost_in_credits":"14500","length":"10.4","max_atmosphering_speed":"1200","crew":"1","passengers":"1","cargo_capacity":"50","consumables":"0","vehicle_class":"repulsorcraft","pilots":[],"films":["
|
50
|
-
landspeeder","model":"X-34 landspeeder","manufacturer":"SoroSuub Corporation","cost_in_credits":"10550","length":"3.4","max_atmosphering_speed":"250","crew":"1","passengers":"1","cargo_capacity":"5","consumables":"unknown","vehicle_class":"repulsorcraft","pilots":[],"films":["
|
52
|
+
months","vehicle_class":"wheeled","pilots":[],"films":["https://swapi.co/api/films/5/","https://swapi.co/api/films/1/"],"created":"2014-12-10T15:36:25.724000Z","edited":"2014-12-22T18:21:15.523587Z","url":"https://swapi.co/api/vehicles/4/"},{"name":"T-16
|
53
|
+
skyhopper","model":"T-16 skyhopper","manufacturer":"Incom Corporation","cost_in_credits":"14500","length":"10.4","max_atmosphering_speed":"1200","crew":"1","passengers":"1","cargo_capacity":"50","consumables":"0","vehicle_class":"repulsorcraft","pilots":[],"films":["https://swapi.co/api/films/1/"],"created":"2014-12-10T16:01:52.434000Z","edited":"2014-12-22T18:21:15.552614Z","url":"https://swapi.co/api/vehicles/6/"},{"name":"X-34
|
54
|
+
landspeeder","model":"X-34 landspeeder","manufacturer":"SoroSuub Corporation","cost_in_credits":"10550","length":"3.4","max_atmosphering_speed":"250","crew":"1","passengers":"1","cargo_capacity":"5","consumables":"unknown","vehicle_class":"repulsorcraft","pilots":[],"films":["https://swapi.co/api/films/1/"],"created":"2014-12-10T16:13:52.586000Z","edited":"2014-12-22T18:21:15.583700Z","url":"https://swapi.co/api/vehicles/7/"},{"name":"TIE/LN
|
51
55
|
starfighter","model":"Twin Ion Engine/Ln Starfighter","manufacturer":"Sienar
|
52
56
|
Fleet Systems","cost_in_credits":"unknown","length":"6.4","max_atmosphering_speed":"1200","crew":"1","passengers":"0","cargo_capacity":"65","consumables":"2
|
53
|
-
days","vehicle_class":"starfighter","pilots":[],"films":["
|
54
|
-
airspeeder","manufacturer":"Incom 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":["
|
57
|
+
days","vehicle_class":"starfighter","pilots":[],"films":["https://swapi.co/api/films/2/","https://swapi.co/api/films/3/","https://swapi.co/api/films/1/"],"created":"2014-12-10T16:33:52.860000Z","edited":"2014-12-22T18:21:15.606149Z","url":"https://swapi.co/api/vehicles/8/"},{"name":"Snowspeeder","model":"t-47
|
58
|
+
airspeeder","manufacturer":"Incom 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":["https://swapi.co/api/people/1/","https://swapi.co/api/people/18/"],"films":["https://swapi.co/api/films/2/"],"created":"2014-12-15T12:22:12Z","edited":"2014-12-22T18:21:15.623033Z","url":"https://swapi.co/api/vehicles/14/"},{"name":"TIE
|
55
59
|
bomber","model":"TIE/sa bomber","manufacturer":"Sienar Fleet Systems","cost_in_credits":"unknown","length":"7.8","max_atmosphering_speed":"850","crew":"1","passengers":"0","cargo_capacity":"none","consumables":"2
|
56
|
-
days","vehicle_class":"space/planetary bomber","pilots":[],"films":["
|
60
|
+
days","vehicle_class":"space/planetary bomber","pilots":[],"films":["https://swapi.co/api/films/2/","https://swapi.co/api/films/3/"],"created":"2014-12-15T12:33:15.838000Z","edited":"2014-12-22T18:21:15.667730Z","url":"https://swapi.co/api/vehicles/16/"},{"name":"AT-AT","model":"All
|
57
61
|
Terrain Armored Transport","manufacturer":"Kuat Drive Yards, Imperial Department
|
58
62
|
of Military Research","cost_in_credits":"unknown","length":"20","max_atmosphering_speed":"60","crew":"5","passengers":"40","cargo_capacity":"1000","consumables":"unknown","vehicle_class":"assault
|
59
|
-
walker","pilots":[],"films":["
|
63
|
+
walker","pilots":[],"films":["https://swapi.co/api/films/2/","https://swapi.co/api/films/3/"],"created":"2014-12-15T12:38:25.937000Z","edited":"2014-12-22T18:21:15.714673Z","url":"https://swapi.co/api/vehicles/18/"},{"name":"AT-ST","model":"All
|
60
64
|
Terrain Scout Transport","manufacturer":"Kuat Drive Yards, Imperial Department
|
61
|
-
of Military Research","cost_in_credits":"unknown","length":"2","max_atmosphering_speed":"90","crew":"2","passengers":"0","cargo_capacity":"200","consumables":"none","vehicle_class":"walker","pilots":["
|
65
|
+
of Military Research","cost_in_credits":"unknown","length":"2","max_atmosphering_speed":"90","crew":"2","passengers":"0","cargo_capacity":"200","consumables":"none","vehicle_class":"walker","pilots":["https://swapi.co/api/people/13/"],"films":["https://swapi.co/api/films/2/","https://swapi.co/api/films/3/"],"created":"2014-12-15T12:46:42.384000Z","edited":"2014-12-22T18:21:15.761584Z","url":"https://swapi.co/api/vehicles/19/"},{"name":"Storm
|
62
66
|
IV Twin-Pod cloud car","model":"Storm IV Twin-Pod","manufacturer":"Bespin
|
63
67
|
Motors","cost_in_credits":"75000","length":"7","max_atmosphering_speed":"1500","crew":"2","passengers":"0","cargo_capacity":"10","consumables":"1
|
64
|
-
day","vehicle_class":"repulsorcraft","pilots":[],"films":["
|
68
|
+
day","vehicle_class":"repulsorcraft","pilots":[],"films":["https://swapi.co/api/films/2/"],"created":"2014-12-15T12:58:50.530000Z","edited":"2014-12-22T18:21:15.783232Z","url":"https://swapi.co/api/vehicles/20/"},{"name":"Sail
|
65
69
|
barge","model":"Modified Luxury Sail Barge","manufacturer":"Ubrikkian Industries
|
66
70
|
Custom Vehicle Division","cost_in_credits":"285000","length":"30","max_atmosphering_speed":"100","crew":"26","passengers":"500","cargo_capacity":"2000000","consumables":"Live
|
67
|
-
food tanks","vehicle_class":"sail barge","pilots":[],"films":["
|
71
|
+
food tanks","vehicle_class":"sail barge","pilots":[],"films":["https://swapi.co/api/films/3/"],"created":"2014-12-18T10:44:14.217000Z","edited":"2014-12-22T18:21:15.807906Z","url":"https://swapi.co/api/vehicles/24/"}]}'
|
68
72
|
http_version:
|
69
|
-
recorded_at: Tue,
|
73
|
+
recorded_at: Tue, 28 Aug 2018 21:42:01 GMT
|
70
74
|
recorded_with: VCR 2.9.3
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: https://swapi.co/api/vehicles/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Tatooine Ruby Gem -
|
11
|
+
- Tatooine Ruby Gem - 1.0.1
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
- Tue,
|
22
|
+
- Tue, 28 Aug 2018 21:42:03 GMT
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
25
|
Transfer-Encoding:
|
@@ -27,8 +27,10 @@ http_interactions:
|
|
27
27
|
Connection:
|
28
28
|
- keep-alive
|
29
29
|
Set-Cookie:
|
30
|
-
- __cfduid=
|
31
|
-
|
30
|
+
- __cfduid=d81ec871490e21a904939fddd8d16e85f1535492523; expires=Wed, 28-Aug-19
|
31
|
+
21:42:03 GMT; path=/; domain=.swapi.co; HttpOnly; Secure
|
32
|
+
Etag:
|
33
|
+
- W/"9392ccdae0725f9ff4c2c11cd5e9bfc4"
|
32
34
|
Allow:
|
33
35
|
- GET, HEAD, OPTIONS
|
34
36
|
X-Frame-Options:
|
@@ -37,34 +39,36 @@ http_interactions:
|
|
37
39
|
- Accept, Cookie
|
38
40
|
Via:
|
39
41
|
- 1.1 vegur
|
42
|
+
Expect-Ct:
|
43
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
40
44
|
Server:
|
41
|
-
- cloudflare
|
45
|
+
- cloudflare
|
42
46
|
Cf-Ray:
|
43
|
-
-
|
47
|
+
- 4519f20e0bfe40a0-HAM
|
44
48
|
body:
|
45
|
-
encoding:
|
46
|
-
string: '{"count":39,"next":"
|
49
|
+
encoding: ASCII-8BIT
|
50
|
+
string: '{"count":39,"next":"https://swapi.co/api/vehicles/?page=2","previous":null,"results":[{"name":"Sand
|
47
51
|
Crawler","model":"Digger Crawler","manufacturer":"Corellia Mining Corporation","cost_in_credits":"150000","length":"36.8","max_atmosphering_speed":"30","crew":"46","passengers":"30","cargo_capacity":"50000","consumables":"2
|
48
|
-
months","vehicle_class":"wheeled","pilots":[],"films":["
|
49
|
-
skyhopper","model":"T-16 skyhopper","manufacturer":"Incom Corporation","cost_in_credits":"14500","length":"10.4","max_atmosphering_speed":"1200","crew":"1","passengers":"1","cargo_capacity":"50","consumables":"0","vehicle_class":"repulsorcraft","pilots":[],"films":["
|
50
|
-
landspeeder","model":"X-34 landspeeder","manufacturer":"SoroSuub Corporation","cost_in_credits":"10550","length":"3.4","max_atmosphering_speed":"250","crew":"1","passengers":"1","cargo_capacity":"5","consumables":"unknown","vehicle_class":"repulsorcraft","pilots":[],"films":["
|
52
|
+
months","vehicle_class":"wheeled","pilots":[],"films":["https://swapi.co/api/films/5/","https://swapi.co/api/films/1/"],"created":"2014-12-10T15:36:25.724000Z","edited":"2014-12-22T18:21:15.523587Z","url":"https://swapi.co/api/vehicles/4/"},{"name":"T-16
|
53
|
+
skyhopper","model":"T-16 skyhopper","manufacturer":"Incom Corporation","cost_in_credits":"14500","length":"10.4","max_atmosphering_speed":"1200","crew":"1","passengers":"1","cargo_capacity":"50","consumables":"0","vehicle_class":"repulsorcraft","pilots":[],"films":["https://swapi.co/api/films/1/"],"created":"2014-12-10T16:01:52.434000Z","edited":"2014-12-22T18:21:15.552614Z","url":"https://swapi.co/api/vehicles/6/"},{"name":"X-34
|
54
|
+
landspeeder","model":"X-34 landspeeder","manufacturer":"SoroSuub Corporation","cost_in_credits":"10550","length":"3.4","max_atmosphering_speed":"250","crew":"1","passengers":"1","cargo_capacity":"5","consumables":"unknown","vehicle_class":"repulsorcraft","pilots":[],"films":["https://swapi.co/api/films/1/"],"created":"2014-12-10T16:13:52.586000Z","edited":"2014-12-22T18:21:15.583700Z","url":"https://swapi.co/api/vehicles/7/"},{"name":"TIE/LN
|
51
55
|
starfighter","model":"Twin Ion Engine/Ln Starfighter","manufacturer":"Sienar
|
52
56
|
Fleet Systems","cost_in_credits":"unknown","length":"6.4","max_atmosphering_speed":"1200","crew":"1","passengers":"0","cargo_capacity":"65","consumables":"2
|
53
|
-
days","vehicle_class":"starfighter","pilots":[],"films":["
|
54
|
-
airspeeder","manufacturer":"Incom 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":["
|
57
|
+
days","vehicle_class":"starfighter","pilots":[],"films":["https://swapi.co/api/films/2/","https://swapi.co/api/films/3/","https://swapi.co/api/films/1/"],"created":"2014-12-10T16:33:52.860000Z","edited":"2014-12-22T18:21:15.606149Z","url":"https://swapi.co/api/vehicles/8/"},{"name":"Snowspeeder","model":"t-47
|
58
|
+
airspeeder","manufacturer":"Incom 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":["https://swapi.co/api/people/1/","https://swapi.co/api/people/18/"],"films":["https://swapi.co/api/films/2/"],"created":"2014-12-15T12:22:12Z","edited":"2014-12-22T18:21:15.623033Z","url":"https://swapi.co/api/vehicles/14/"},{"name":"TIE
|
55
59
|
bomber","model":"TIE/sa bomber","manufacturer":"Sienar Fleet Systems","cost_in_credits":"unknown","length":"7.8","max_atmosphering_speed":"850","crew":"1","passengers":"0","cargo_capacity":"none","consumables":"2
|
56
|
-
days","vehicle_class":"space/planetary bomber","pilots":[],"films":["
|
60
|
+
days","vehicle_class":"space/planetary bomber","pilots":[],"films":["https://swapi.co/api/films/2/","https://swapi.co/api/films/3/"],"created":"2014-12-15T12:33:15.838000Z","edited":"2014-12-22T18:21:15.667730Z","url":"https://swapi.co/api/vehicles/16/"},{"name":"AT-AT","model":"All
|
57
61
|
Terrain Armored Transport","manufacturer":"Kuat Drive Yards, Imperial Department
|
58
62
|
of Military Research","cost_in_credits":"unknown","length":"20","max_atmosphering_speed":"60","crew":"5","passengers":"40","cargo_capacity":"1000","consumables":"unknown","vehicle_class":"assault
|
59
|
-
walker","pilots":[],"films":["
|
63
|
+
walker","pilots":[],"films":["https://swapi.co/api/films/2/","https://swapi.co/api/films/3/"],"created":"2014-12-15T12:38:25.937000Z","edited":"2014-12-22T18:21:15.714673Z","url":"https://swapi.co/api/vehicles/18/"},{"name":"AT-ST","model":"All
|
60
64
|
Terrain Scout Transport","manufacturer":"Kuat Drive Yards, Imperial Department
|
61
|
-
of Military Research","cost_in_credits":"unknown","length":"2","max_atmosphering_speed":"90","crew":"2","passengers":"0","cargo_capacity":"200","consumables":"none","vehicle_class":"walker","pilots":["
|
65
|
+
of Military Research","cost_in_credits":"unknown","length":"2","max_atmosphering_speed":"90","crew":"2","passengers":"0","cargo_capacity":"200","consumables":"none","vehicle_class":"walker","pilots":["https://swapi.co/api/people/13/"],"films":["https://swapi.co/api/films/2/","https://swapi.co/api/films/3/"],"created":"2014-12-15T12:46:42.384000Z","edited":"2014-12-22T18:21:15.761584Z","url":"https://swapi.co/api/vehicles/19/"},{"name":"Storm
|
62
66
|
IV Twin-Pod cloud car","model":"Storm IV Twin-Pod","manufacturer":"Bespin
|
63
67
|
Motors","cost_in_credits":"75000","length":"7","max_atmosphering_speed":"1500","crew":"2","passengers":"0","cargo_capacity":"10","consumables":"1
|
64
|
-
day","vehicle_class":"repulsorcraft","pilots":[],"films":["
|
68
|
+
day","vehicle_class":"repulsorcraft","pilots":[],"films":["https://swapi.co/api/films/2/"],"created":"2014-12-15T12:58:50.530000Z","edited":"2014-12-22T18:21:15.783232Z","url":"https://swapi.co/api/vehicles/20/"},{"name":"Sail
|
65
69
|
barge","model":"Modified Luxury Sail Barge","manufacturer":"Ubrikkian Industries
|
66
70
|
Custom Vehicle Division","cost_in_credits":"285000","length":"30","max_atmosphering_speed":"100","crew":"26","passengers":"500","cargo_capacity":"2000000","consumables":"Live
|
67
|
-
food tanks","vehicle_class":"sail barge","pilots":[],"films":["
|
71
|
+
food tanks","vehicle_class":"sail barge","pilots":[],"films":["https://swapi.co/api/films/3/"],"created":"2014-12-18T10:44:14.217000Z","edited":"2014-12-22T18:21:15.807906Z","url":"https://swapi.co/api/vehicles/24/"}]}'
|
68
72
|
http_version:
|
69
|
-
recorded_at: Tue,
|
73
|
+
recorded_at: Tue, 28 Aug 2018 21:42:03 GMT
|
70
74
|
recorded_with: VCR 2.9.3
|
data/spec/person_spec.rb
CHANGED
@@ -22,7 +22,7 @@ describe Tatooine::Person do
|
|
22
22
|
end
|
23
23
|
|
24
24
|
it "should return the correct count" do
|
25
|
-
expect(@count).to be(
|
25
|
+
expect(@count).to be(87)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -63,7 +63,7 @@ describe Tatooine::Person do
|
|
63
63
|
end
|
64
64
|
|
65
65
|
it "gets the url of the person" do
|
66
|
-
expect(@person.url).to eq("
|
66
|
+
expect(@person.url).to eq("#{Tatooine::API_BASE}people/1/")
|
67
67
|
end
|
68
68
|
|
69
69
|
it "gets the attributes of the person" do
|
data/spec/planet_spec.rb
CHANGED
@@ -22,7 +22,7 @@ describe Tatooine::Planet do
|
|
22
22
|
end
|
23
23
|
|
24
24
|
it "should return the correct count" do
|
25
|
-
expect(@count).to be(
|
25
|
+
expect(@count).to be(61)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -63,7 +63,7 @@ describe Tatooine::Planet do
|
|
63
63
|
end
|
64
64
|
|
65
65
|
it "gets the url of the planet" do
|
66
|
-
expect(@planet.url).to eq("
|
66
|
+
expect(@planet.url).to eq("#{Tatooine::API_BASE}planets/1/")
|
67
67
|
end
|
68
68
|
|
69
69
|
it "gets the attributes of the planet" do
|
data/spec/species_spec.rb
CHANGED
@@ -63,7 +63,7 @@ describe Tatooine::Species do
|
|
63
63
|
end
|
64
64
|
|
65
65
|
it "gets the url of the species" do
|
66
|
-
expect(@species.url).to eq("
|
66
|
+
expect(@species.url).to eq("#{Tatooine::API_BASE}species/1/")
|
67
67
|
end
|
68
68
|
|
69
69
|
it "gets the attributes of the species" do
|
@@ -80,7 +80,7 @@ describe Tatooine::Species do
|
|
80
80
|
end
|
81
81
|
|
82
82
|
# Skipped because the schema doesn't return people right now.
|
83
|
-
|
83
|
+
it "gets a list of people" do
|
84
84
|
expect(@species.people).to be_instance_of(Array)
|
85
85
|
expect(@species.people.first).to be_instance_of(Tatooine::Person)
|
86
86
|
end
|
data/spec/starship_spec.rb
CHANGED
@@ -22,7 +22,7 @@ describe Tatooine::Starship do
|
|
22
22
|
end
|
23
23
|
|
24
24
|
it "should return the correct count" do
|
25
|
-
expect(@count).to be(
|
25
|
+
expect(@count).to be(37)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -63,7 +63,7 @@ describe Tatooine::Starship do
|
|
63
63
|
end
|
64
64
|
|
65
65
|
it "gets the url of the starship" do
|
66
|
-
expect(@starship.url).to eq("
|
66
|
+
expect(@starship.url).to eq("#{Tatooine::API_BASE}starships/10/")
|
67
67
|
end
|
68
68
|
|
69
69
|
it "gets the attributes of the starship" do
|
data/spec/vehicle_spec.rb
CHANGED
@@ -63,7 +63,7 @@ describe Tatooine::Vehicle do
|
|
63
63
|
end
|
64
64
|
|
65
65
|
it "gets the url of the vehicle" do
|
66
|
-
expect(@vehicle.url).to eq("
|
66
|
+
expect(@vehicle.url).to eq("#{Tatooine::API_BASE}vehicles/14/")
|
67
67
|
end
|
68
68
|
|
69
69
|
it "gets the attributes of the vehicle" do
|
data/tatooine.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.required_ruby_version = '>=
|
21
|
+
spec.required_ruby_version = '>= 2.3.0'
|
22
22
|
|
23
23
|
spec.add_dependency "faraday", "~> 0.9.0"
|
24
24
|
spec.add_dependency "faraday_middleware"
|
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.6"
|
27
27
|
spec.add_development_dependency "rake"
|
28
28
|
spec.add_development_dependency "vcr", "~> 2.9.3"
|
29
|
-
spec.add_development_dependency "rspec", "~> 3.
|
30
|
-
spec.add_development_dependency "webmock", "~>
|
29
|
+
spec.add_development_dependency "rspec", "~> 3.5"
|
30
|
+
spec.add_development_dependency "webmock", "~> 2.0"
|
31
31
|
spec.add_development_dependency "simplecov"
|
32
32
|
end
|