red5 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/README.md +55 -1
- data/Rakefile +3 -1
- data/lib/red_5.rb +19 -0
- data/lib/red_5/exceptions/red_5_exception.rb +9 -0
- data/lib/red_5/helpers.rb +8 -0
- data/lib/red_5/models/entities.rb +54 -0
- data/lib/{red5 → red_5/models}/films.rb +1 -1
- data/lib/{red5 → red_5/models}/people.rb +1 -1
- data/lib/{red5 → red_5/models}/planets.rb +1 -1
- data/lib/{red5 → red_5/models}/species.rb +1 -1
- data/lib/{red5 → red_5/models}/starships.rb +1 -1
- data/lib/{red5 → red_5/models}/vehicles.rb +1 -1
- data/lib/{red5 → red_5}/root.rb +1 -1
- data/lib/red_5/version.rb +3 -0
- data/red5.gemspec +4 -1
- data/spec/cassettes/Failure/404s/raises_an_exception_on_a_ludicrous_request.yml +96 -0
- data/spec/cassettes/Failure/404s/raises_an_exception_on_a_non-existent_thing.yml +96 -0
- data/spec/cassettes/Failure/Non-existent_attributes/raises_an_exception_on_a_bogus_lookup.yml +101 -0
- data/spec/cassettes/Red5_Films/finds_a_particular_film.yml +111 -0
- data/spec/cassettes/Red5_Films/has_OpenStruct-type_lookups.yml +111 -0
- data/spec/cassettes/Red5_Films/returns_a_film.yml +111 -0
- data/spec/cassettes/Red5_People/fetches_the_species_for_a_person.yml +155 -0
- data/spec/cassettes/{Red_5_People/should_find_a_person.yml → Red5_People/finds_a_particular_person.yml} +13 -13
- data/spec/cassettes/Red5_People/has_an_id.yml +101 -0
- data/spec/cassettes/Red5_People/returns_a_person.yml +101 -0
- data/spec/cassettes/{Red_5_Planets/should_find_a_planet.yml → Red5_Planets/finds_a_planet.yml} +18 -18
- data/spec/cassettes/Red5_Species/fetches_the_homeworld_for_a_species.yml +157 -0
- data/spec/cassettes/Red5_Species/finds_a_homeworld_for_a_species.yml +101 -0
- data/spec/cassettes/Red5_Species/finds_a_species.yml +101 -0
- data/spec/cassettes/Red5_Starships/Failure/raises_an_exception_on_a_ludicrous_request.yml +96 -0
- data/spec/cassettes/Red5_Starships/Failure/raises_an_exception_on_a_non-existent_thing.yml +96 -0
- data/spec/cassettes/Red5_Starships/finds_a_starship.yml +102 -0
- data/spec/cassettes/Red5_Vehicles/finds_a_vehicle.yml +102 -0
- data/spec/cassettes/Red_5_Films/finds_a_particular_film.yml +111 -0
- data/spec/cassettes/Red_5_Films/returns_a_film.yml +111 -0
- data/spec/cassettes/Red_5_People/fetches_the_species_for_a_person.yml +155 -0
- data/spec/cassettes/Red_5_People/finds_a_particular_person.yml +101 -0
- data/spec/cassettes/Red_5_People/gets_the_species_for_a_person.yml +252 -0
- data/spec/cassettes/Red_5_People/has_an_id.yml +101 -0
- data/spec/cassettes/Red_5_People/returns_a_person.yml +101 -0
- data/spec/cassettes/Red_5_Species/fetches_the_homeworld_for_a_species.yml +157 -0
- data/spec/cassettes/Red_5_Species/finds_a_homeworld_for_a_species.yml +101 -0
- data/spec/cassettes/Red_5_Species/gets_the_homeworld_for_a_species.yml +157 -0
- data/spec/cassettes/Red_5_Starships/Failure/raises_an_exception_on_a_non-existent_thing.yml +96 -0
- data/spec/failure_spec.rb +31 -0
- data/spec/models/films_spec.rb +15 -0
- data/spec/models/people_spec.rb +25 -0
- data/spec/models/planets_spec.rb +10 -0
- data/spec/models/species_spec.rb +20 -0
- data/spec/models/starships_spec.rb +10 -0
- data/spec/models/vehicles_spec.rb +10 -0
- data/spec/red5_spec.rb +2 -45
- data/spec/spec_helper.rb +1 -1
- metadata +129 -17
- data/lib/red5.rb +0 -14
- data/lib/red5/entities.rb +0 -9
- data/lib/red5/version.rb +0 -3
data/lib/red5.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'rest_client'
|
2
|
-
require 'json'
|
3
|
-
|
4
|
-
require 'red5/version'
|
5
|
-
|
6
|
-
require 'red5/root'
|
7
|
-
require 'red5/entities'
|
8
|
-
|
9
|
-
require 'red5/films'
|
10
|
-
require 'red5/people'
|
11
|
-
require 'red5/planets'
|
12
|
-
require 'red5/species'
|
13
|
-
require 'red5/starships'
|
14
|
-
require 'red5/vehicles'
|
data/lib/red5/entities.rb
DELETED
data/lib/red5/version.rb
DELETED