Irio/ruby-tmdb — pull request #1 by Flink (2012-07-09 15:47:56+00:00)
Title: Extended infos are working again (posters, releases, crew and cast)

Ok, lots of work here :) All tests are green and I’ve added one for the new syntax of Tmdb::api_call.

I’ve modified Tmdb::api_call so that it accepts an extra action in the first parameter. For example 'movie/images' to get 'movie/:id/images'. It also works with actions that do not require an id. ('search' for example)

So with this modification made, I added the retrieving of posters, cast, crew and releases when expand_results is true. Also, I create extra keys on posters and backdrops collections. They’re grouped in a 'sizes' collection to easily retrieve the wanted image url. I replaced the generated singletons with those keys since it wasn’t playing well when trying to marshal them.

And I also added configuration info (from the API configuration action) but it is static at the moment.

If you have questions or remarks, feel free to ask/tell me :)