tomato_power 0.0.5 → 0.0.7
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.
- data/.gitignore +1 -0
- data/README.md +22 -13
- data/lib/tomato_power/api/api.rb +30 -66
- data/lib/tomato_power/api/api_service.rb +115 -0
- data/lib/tomato_power/api/tomato_methods.rb +17 -16
- data/lib/tomato_power/client.rb +13 -0
- data/lib/tomato_power/helpers/helpers.rb +2 -0
- data/lib/tomato_power/helpers/parsers.rb +26 -1
- data/lib/tomato_power/movie/actor.rb +1 -0
- data/lib/tomato_power/movie/clip.rb +1 -0
- data/lib/tomato_power/movie/movie.rb +20 -6
- data/lib/tomato_power/movie/poster.rb +14 -0
- data/lib/tomato_power/movie/review.rb +1 -0
- data/lib/tomato_power/version.rb +1 -1
- data/lib/tomato_power.rb +7 -0
- data/spec/spec_helper.rb +1 -1
- data/spec/support/sample_data/sample_posters +6 -0
- data/spec/unit_specs/api/api_services_spec.rb +39 -0
- data/spec/unit_specs/{api_spec.rb → api/api_spec.rb} +3 -27
- data/spec/unit_specs/helpers/helpers.rb +53 -0
- data/spec/unit_specs/{parsers_spec.rb → helpers/parsers_spec.rb} +12 -12
- data/spec/unit_specs/helpers_spec.rb +0 -2
- data/spec/unit_specs/{actor_spec.rb → movie/actor_spec.rb} +1 -1
- data/spec/unit_specs/{client_spec.rb → movie/client_spec.rb} +1 -1
- data/spec/unit_specs/{clip_spec.rb → movie/clip_spec.rb} +1 -1
- data/spec/unit_specs/{movie_spec.rb → movie/movie_spec.rb} +21 -6
- data/spec/unit_specs/movie/poster_spec.rb +17 -0
- data/spec/unit_specs/{review_spec.rb → movie/review_spec.rb} +2 -2
- metadata +26 -74
- data/spec/support/vcr/TomatoPower_API/API_Methods/valid_methods/should_create_methods.yml +0 -598
- data/spec/support/vcr/TomatoPower_API/API_options_validation/valid_options/should_consider_0_options_valid.yml +0 -306
- data/spec/support/vcr/TomatoPower_API/API_options_validation/valid_options/should_not_raise_error.yml +0 -101
- data/spec/support/vcr/TomatoPower_API/List_request/searching_by_title/should_return_a_list_of_movie_objects.yml +0 -101
- data/spec/support/vcr/TomatoPower_API/List_request/searching_by_title/should_url_encode_search_string_before_sending.yml +0 -102
- data/spec/support/vcr/TomatoPower_API/List_request/should_return_a_list_of_movie_objects.yml +0 -101
- data/spec/support/vcr/TomatoPower_API/List_request/should_url_encode_search_string_before_sending.yml +0 -102
- data/spec/support/vcr/TomatoPower_API/Movie_request/cast/should_return_cast_of_movie.yml +0 -356
- data/spec/support/vcr/TomatoPower_API/Movie_request/clips/should_return_clips_of_movie.yml +0 -638
- data/spec/support/vcr/TomatoPower_API/Movie_request/no_results/should_return_error_string_if_no_results_are_found.yml +0 -49
- data/spec/support/vcr/TomatoPower_API/Movie_request/reviews/should_return_reviews.yml +0 -271
- data/spec/support/vcr/TomatoPower_API/Movie_request/should_return_single_movie.yml +0 -161
- data/spec/support/vcr/TomatoPower_API/Movie_request/similar/should_return_similar_movies.yml +0 -121
- data/spec/support/vcr/TomatoPower_Client/box_office_movies/should_return_list_of_movies.yml +0 -396
- data/spec/support/vcr/TomatoPower_Client/current_release_dvds/should_return_list_of_movies.yml +0 -427
- data/spec/support/vcr/TomatoPower_Client/in_theaters_movies/should_return_list_of_movies.yml +0 -380
- data/spec/support/vcr/TomatoPower_Client/new_release_dvds/should_return_list_of_movies.yml +0 -392
- data/spec/support/vcr/TomatoPower_Client/opening_movies/should_return_list_of_movies.yml +0 -213
- data/spec/support/vcr/TomatoPower_Client/search_by_id/should_return_list_of_movies_by_id.yml +0 -88
- data/spec/support/vcr/TomatoPower_Client/search_by_title/should_return_list_of_movies_by_title.yml +0 -89
- data/spec/support/vcr/TomatoPower_Client/top_rentals/should_return_list_of_movies.yml +0 -409
- data/spec/support/vcr/TomatoPower_Client/upcoming_dvds/should_return_list_of_movies.yml +0 -359
- data/spec/support/vcr/TomatoPower_Client/upcoming_movies/should_return_list_of_movies.yml +0 -341
- data/spec/support/vcr/TomatoPower_Movie/clips/should_return_clips.yml +0 -250
- data/spec/support/vcr/TomatoPower_Movie/full_cast/should_return_cast.yml +0 -279
- data/spec/support/vcr/TomatoPower_Movie/reviews/should_return_reviews.yml +0 -205
- data/spec/support/vcr/TomatoPower_Movie/similar/should_return_similar_movies.yml +0 -231
- data/spec/support/vcr/TomatoPower_Movie/similar/should_return_similars.yml +0 -81
- data/spec/unit_specs/helpers.rb +0 -50
@@ -1,213 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://api.rottentomatoes.com/api/public/v1.0/lists/movies/opening.json?apikey=<API_KEY>&country=us&limit=20
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- ! '*/*'
|
12
|
-
User-Agent:
|
13
|
-
- Ruby
|
14
|
-
response:
|
15
|
-
status:
|
16
|
-
code: 200
|
17
|
-
message: OK
|
18
|
-
headers:
|
19
|
-
Cache-Control:
|
20
|
-
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
21
|
-
Content-Language:
|
22
|
-
- en-US
|
23
|
-
Content-Type:
|
24
|
-
- text/javascript;charset=ISO-8859-1
|
25
|
-
Date:
|
26
|
-
- Wed, 20 Feb 2013 15:31:50 GMT
|
27
|
-
Expires:
|
28
|
-
- Sat, 6 May 1995 12:00:00 GMT
|
29
|
-
Pragma:
|
30
|
-
- no-cache
|
31
|
-
Server:
|
32
|
-
- Mashery Proxy
|
33
|
-
Set-Cookie:
|
34
|
-
- JSESSIONID=786A402845AA740BE71CC3AB19BF430E.localhost; Path=/
|
35
|
-
- ServerID=1336; Path=/
|
36
|
-
Vary:
|
37
|
-
- User-Agent,Accept-Encoding
|
38
|
-
X-Mashery-Responder:
|
39
|
-
- prod-j-worker-us-east-1c-14.mashery.com
|
40
|
-
Transfer-Encoding:
|
41
|
-
- chunked
|
42
|
-
Connection:
|
43
|
-
- keep-alive
|
44
|
-
body:
|
45
|
-
encoding: US-ASCII
|
46
|
-
string: ! '
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
{"movies":[{"id":"771316320","title":"Snitch","year":2013,"mpaa_rating":"PG-13","runtime":95,"release_dates":{"theater":"2013-02-22"},"ratings":{"critics_rating":"Fresh","critics_score":80,"audience_score":96},"synopsis":"In
|
76
|
-
the fast-paced action thriller SNITCH, Dwayne Johnson stars as a father whose
|
77
|
-
teenage son is wrongly accused of a drug distribution crime and is looking
|
78
|
-
at a mandatory minimum prison sentence of 10 years. Desperate and determined
|
79
|
-
to rescue his son at all costs, he makes a deal with the U.S. attorney to
|
80
|
-
work as an undercover informant and infiltrate a drug cartel on a dangerous
|
81
|
-
mission -- risking everything, including his family and his own life. (c)
|
82
|
-
Summit","posters":{"thumbnail":"http://content8.flixster.com/movie/11/16/83/11168350_mob.jpg","profile":"http://content8.flixster.com/movie/11/16/83/11168350_pro.jpg","detailed":"http://content8.flixster.com/movie/11/16/83/11168350_det.jpg","original":"http://content8.flixster.com/movie/11/16/83/11168350_ori.jpg"},"abridged_cast":[{"name":"Dwayne
|
83
|
-
\"The Rock\" Johnson","id":"770893686","characters":["John Matthews"]},{"name":"Barry
|
84
|
-
Pepper","id":"162671262","characters":["Agent Cooper"]},{"name":"Jon Bernthal","id":"770682766","characters":["Daniel
|
85
|
-
Cruz"]},{"name":"Susan Sarandon","id":"162654579","characters":["Joanne Keeghan"]},{"name":"Michael
|
86
|
-
Kenneth Williams","id":"770835098","characters":["Malik"]}],"alternate_ids":{"imdb":"0882977"},"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/771316320.json","alternate":"http://www.rottentomatoes.com/m/snitch_2013/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/771316320/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/771316320/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/771316320/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/771316320/similar.json"}},{"id":"771317035","title":"Dark
|
87
|
-
Skies","year":2013,"mpaa_rating":"PG-13","runtime":95,"release_dates":{"theater":"2013-02-22"},"ratings":{"critics_score":-1,"audience_score":88},"synopsis":"From
|
88
|
-
the producer of Paranormal Activity, Insidious, and Sinister comes Dark Skies:
|
89
|
-
a supernatural thriller that follows a young family living in the suburbs.
|
90
|
-
As husband and wife Daniel and Lacey Barret witness an escalating series of
|
91
|
-
disturbing events involving their family, their safe and peaceful home quickly
|
92
|
-
unravels. When it becomes clear that the Barret family is being targeted by
|
93
|
-
an unimaginably terrifying and deadly force, Daniel and Lacey take matters
|
94
|
-
in their own hands to solve the mystery of what is after their family. Written
|
95
|
-
and Directed by Scott Stewart (PRIEST, LEGION) Starring: Keri Russell, Josh
|
96
|
-
Hamilton, Dakota Goyo, Kadan Rockett and J.K. Simmons (c) Weinstein","posters":{"thumbnail":"http://content6.flixster.com/movie/11/16/87/11168752_mob.jpg","profile":"http://content6.flixster.com/movie/11/16/87/11168752_pro.jpg","detailed":"http://content6.flixster.com/movie/11/16/87/11168752_det.jpg","original":"http://content6.flixster.com/movie/11/16/87/11168752_ori.jpg"},"abridged_cast":[{"name":"Keri
|
97
|
-
Russell","id":"162685092","characters":["Lacy Barrett"]},{"name":"Josh Hamilton","id":"162668388","characters":["Daniel
|
98
|
-
Barrett"]},{"name":"Dakota Goyo","id":"528367055","characters":["Jesse","Jesse
|
99
|
-
Barrett"]},{"name":"Kadan Rockett","id":"771428752","characters":["Sam Barrett"]},{"name":"J.K.
|
100
|
-
Simmons","id":"592170459","characters":["Edwin Pollard"]}],"alternate_ids":{"imdb":"2387433"},"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/771317035.json","alternate":"http://www.rottentomatoes.com/m/dark_skies_2013/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/771317035/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/771317035/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/771317035/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/771317035/similar.json"}},{"id":"771315852","title":"Bless
|
101
|
-
Me, Ultima","year":2013,"mpaa_rating":"PG-13","runtime":102,"release_dates":{"theater":"2013-02-22"},"ratings":{"critics_score":-1,"audience_score":74},"synopsis":"Director
|
102
|
-
Carl Franklin (One False Move, Devil in a Blue Dress) helmed this adaptation
|
103
|
-
of Rudolfo Anaya''s controversial novel about a young boy and the enigmatic
|
104
|
-
healer who opens his eyes to the wonders of the spiritual realm. New Mexico:
|
105
|
-
the early ''40s. As the entire world is plunged into war for a second time,
|
106
|
-
Antonio Marez (Luke Ganalon) grapples with the harsh realities all around
|
107
|
-
him. His life is forever changed by the sudden arrival of Ultima (Miriam Colon),
|
108
|
-
a woman with supernatural healing powers, who has come to his family on a
|
109
|
-
mission of kindness. As Ultima inspires Antonio to question authority and
|
110
|
-
see the world from a new perspective, the young boy witnesses a series of
|
111
|
-
seemingly impossible events that have a profound impact on his concepts of
|
112
|
-
divinity and fate. ~ Jason Buchanan, Rovi","posters":{"thumbnail":"http://content9.flixster.com/movie/11/16/89/11168991_mob.jpg","profile":"http://content9.flixster.com/movie/11/16/89/11168991_pro.jpg","detailed":"http://content9.flixster.com/movie/11/16/89/11168991_det.jpg","original":"http://content9.flixster.com/movie/11/16/89/11168991_ori.jpg"},"abridged_cast":[{"name":"Miriam
|
113
|
-
Colon","id":"761416364","characters":["Ultima"]},{"name":"Luke Ganalon","id":"771420033","characters":["Antonio
|
114
|
-
Marez"]},{"name":"Benito Martinez","id":"770700822","characters":["Gabriel"]},{"name":"Dolores
|
115
|
-
Heredia","id":"351527629","characters":["Maria"]},{"name":"Joaquin Cosio","id":"770813447","characters":["Narciso"]}],"alternate_ids":{"imdb":"1390398"},"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/771315852.json","alternate":"http://www.rottentomatoes.com/m/bless_me_ultima_2012/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/771315852/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/771315852/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/771315852/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/771315852/similar.json"}},{"id":"771309968","title":"Red
|
116
|
-
Flag","year":2013,"mpaa_rating":"Unrated","runtime":85,"release_dates":{"theater":"2013-02-22"},"ratings":{"critics_rating":"Fresh","critics_score":100,"audience_score":54},"synopsis":"A
|
117
|
-
laugh-out-loud road trip comedy, starring writer/director Alex Karpovsky (\"Girls,\"
|
118
|
-
TINY FURNITURE) as Alex Karpovsky, a newly-single indie filmmaker who hits
|
119
|
-
the road with an old friend (Onur Tukel) to promote one of his films. As the
|
120
|
-
pair travels from one half-empty theater to the next, pursued by an adoring
|
121
|
-
fan (Jennifer Prediger) who drives them into an exceptionally uncomfortable
|
122
|
-
love triangle, Alex-as-Alex is forced to suffer an endless series of humiliations,
|
123
|
-
each one more absurd than the last. (c) Tribeca","posters":{"thumbnail":"http://content8.flixster.com/movie/11/16/94/11169486_mob.jpg","profile":"http://content8.flixster.com/movie/11/16/94/11169486_pro.jpg","detailed":"http://content8.flixster.com/movie/11/16/94/11169486_det.jpg","original":"http://content8.flixster.com/movie/11/16/94/11169486_ori.jpg"},"abridged_cast":[{"name":"Alex
|
124
|
-
Karpovsky","id":"351525881"},{"name":"Jennifer Prediger","id":"771092347"},{"name":"Onur
|
125
|
-
Tukel","id":"770694381"},{"name":"Keith Poulson","id":"770839326"},{"name":"Dustin
|
126
|
-
Guy Defa","id":"771101560"}],"alternate_ids":{"imdb":"2147048"},"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/771309968.json","alternate":"http://www.rottentomatoes.com/m/red_flag_2012/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/771309968/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/771309968/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/771309968/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/771309968/similar.json"}},{"id":"771306559","title":"Kai
|
127
|
-
Po Che!","year":2013,"mpaa_rating":"Unrated","runtime":120,"release_dates":{"theater":"2013-02-22"},"ratings":{"critics_score":-1,"audience_score":46},"synopsis":"Synopsis:
|
128
|
-
Best friends Ishaan, Omi and Govind - young, ambitious and restless - are
|
129
|
-
trying to make a mark in the India of the early 2000''s. These are exciting
|
130
|
-
times - a new millennium has just dawned, India''s a nuclear power and ostensibly
|
131
|
-
shining - a perfect place for the 3 Ahmedabad boys to start a business that
|
132
|
-
could be their ticket to fame and riches. In a country where cricket is religion,
|
133
|
-
they hit upon a brilliant plan - to start a training academy that could produce
|
134
|
-
India''s next sporting superstars! What follows is without doubt the greatest
|
135
|
-
adventure of their lives, as they attempt to navigate the big hurdles in the
|
136
|
-
path of fulfilling their dreams. (c) UTV","posters":{"thumbnail":"http://content8.flixster.com/movie/11/16/46/11164686_mob.jpg","profile":"http://content8.flixster.com/movie/11/16/46/11164686_pro.jpg","detailed":"http://content8.flixster.com/movie/11/16/46/11164686_det.jpg","original":"http://content8.flixster.com/movie/11/16/46/11164686_ori.jpg"},"abridged_cast":[{"name":"Sushant
|
137
|
-
Singh","id":"465972852","characters":["Ishaan"]},{"name":"Rajkumar Yadav","id":"771419026","characters":["Govind"]},{"name":"Amit
|
138
|
-
Sadh","id":"770908217","characters":["Omi"]},{"name":"Amrita Puri","id":"771433540","characters":["Vidya"]},{"name":"Raj
|
139
|
-
Kumar Yadav","id":"771106821"}],"alternate_ids":{"imdb":"2213054"},"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/771306559.json","alternate":"http://www.rottentomatoes.com/m/kai_po_che/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/771306559/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/771306559/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/771306559/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/771306559/similar.json"}},{"id":"771305597","title":"Rubberneck","year":2013,"mpaa_rating":"Unrated","runtime":87,"release_dates":{"theater":"2013-02-22"},"ratings":{"critics_rating":"Fresh","critics_score":86,"audience_score":57},"synopsis":"Months
|
140
|
-
after a weekend fling, Boston research scientist Paul (Alex Karpovsky, \"Girls\")
|
141
|
-
continues to lust after his beautiful coworker Danielle (Jamie Ray Newman),
|
142
|
-
nurturing his fantasies with the occasional polite exchange at work. But once
|
143
|
-
she starts dating another scientist at their lab, his infatuation quickly
|
144
|
-
turns into obsession - and he finds himself unable to control his desires.
|
145
|
-
A slow-burn character study-turned-psychosexual thriller, co-written by Karpovsky
|
146
|
-
and Garth Donovan, RUBBERNECK is a chillingly believable story of workplace
|
147
|
-
romance gone wrong. (c) Tribeca","posters":{"thumbnail":"http://content6.flixster.com/movie/11/16/94/11169488_mob.jpg","profile":"http://content6.flixster.com/movie/11/16/94/11169488_pro.jpg","detailed":"http://content6.flixster.com/movie/11/16/94/11169488_det.jpg","original":"http://content6.flixster.com/movie/11/16/94/11169488_ori.jpg"},"abridged_cast":[{"name":"Alex
|
148
|
-
Karpovsky","id":"351525881","characters":["Paul Harris"]},{"name":"Jaime Ray
|
149
|
-
Newman","id":"429040733","characters":["Danielle Jenkins"]},{"name":"Amanda
|
150
|
-
Good Hennessey","id":"771405946","characters":["Linda Burke"]},{"name":"Dennis
|
151
|
-
Staroselsky","id":"771406686","characters":["Chris Burke"]},{"name":"Dakota
|
152
|
-
Shepard","id":"771406687","characters":["Kathy"]}],"alternate_ids":{"imdb":"2292903"},"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/771305597.json","alternate":"http://www.rottentomatoes.com/m/rubberneck_2012/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/771305597/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/771305597/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/771305597/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/771305597/similar.json"}},{"id":"771313298","title":"Inescapable","year":2012,"mpaa_rating":"Unrated","runtime":90,"release_dates":{"theater":"2013-02-22"},"ratings":{"critics_rating":"Rotten","critics_score":17,"audience_score":70},"synopsis":"This
|
153
|
-
politically charged and emotionally powerful thriller follows a successful
|
154
|
-
businessman who suddenly finds his life turned upside down when his journalist
|
155
|
-
daughter goes missing during her trip to his hometown of Damascus. He knows
|
156
|
-
that the reason for his exile is tied to his daughter''s disappearance. His
|
157
|
-
first trip home in over 30 years turns into a frantic quest to rescue his
|
158
|
-
daughter while reconnecting with the love of his life.","posters":{"thumbnail":"http://content6.flixster.com/movie/11/16/63/11166352_mob.jpg","profile":"http://content6.flixster.com/movie/11/16/63/11166352_pro.jpg","detailed":"http://content6.flixster.com/movie/11/16/63/11166352_det.jpg","original":"http://content6.flixster.com/movie/11/16/63/11166352_ori.jpg"},"abridged_cast":[{"name":"Alexander
|
159
|
-
Siddig","id":"427819122","characters":["Adib Abdel Kareem","Adib Abdul-Kareem"]},{"name":"Marisa
|
160
|
-
Tomei","id":"162662209","characters":["Fatima"]},{"name":"Jay Anstey","id":"771418797","characters":["Muna"]},{"name":"Joshua
|
161
|
-
Jackson","id":"162655084","characters":["Paul"]},{"name":"Oded Fehr","id":"162686459","characters":["Sayid"]}],"alternate_ids":{"imdb":"1844203"},"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/771313298.json","alternate":"http://www.rottentomatoes.com/m/inescapable_2012/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/771313298/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/771313298/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/771313298/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/771313298/similar.json"}},{"id":"771324775","title":"Stand
|
162
|
-
Off","year":2013,"mpaa_rating":"R","runtime":89,"release_dates":{"theater":"2013-02-22","dvd":"2013-03-26"},"ratings":{"critics_score":-1,"audience_score":41},"synopsis":"In
|
163
|
-
a misguided attempt to protect his family and pay back gambling debts to the
|
164
|
-
local Mobster, Jimbo robs a fish market, which is coincidentally owned by
|
165
|
-
the same Mobster. On the run, Jimbo is cornered in a local curio shop, where
|
166
|
-
he takes hostage an assortment of colorful characters, including Maguire,
|
167
|
-
who may be his illegitimate father. Surrounded by the Police, the SAS, and
|
168
|
-
the Mobster''s crew, the young man must find a way out of his precarious predicament
|
169
|
-
with the help of his oddball capt","posters":{"thumbnail":"http://content8.flixster.com/movie/11/16/92/11169234_mob.jpg","profile":"http://content8.flixster.com/movie/11/16/92/11169234_pro.jpg","detailed":"http://content8.flixster.com/movie/11/16/92/11169234_det.jpg","original":"http://content8.flixster.com/movie/11/16/92/11169234_ori.jpg"},"abridged_cast":[{"name":"Brendan
|
170
|
-
Fraser","id":"162662763","characters":["Joe Maguire"]},{"name":"Colm Meaney","id":"162666522","characters":["Detective
|
171
|
-
Weller"]},{"name":"Martin McCann","id":"770699642","characters":["Jimbo"]},{"name":"Yaya
|
172
|
-
DaCosta","id":"770679601","characters":["Sophie"]},{"name":"David O''Hara","id":"162710729","characters":["Mad
|
173
|
-
Dog Flynn"]}],"alternate_ids":{"imdb":"1814865"},"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/771324775.json","alternate":"http://www.rottentomatoes.com/m/stand_off_2013/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/771324775/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/771324775/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/771324775/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/771324775/similar.json"}},{"id":"771253546","title":"11
|
174
|
-
Flowers","year":2013,"mpaa_rating":"PG","runtime":110,"release_dates":{"theater":"2013-02-22"},"ratings":{"critics_score":-1,"audience_score":53},"synopsis":"One
|
175
|
-
of China''s foremost Sixth Generation directors, Wang Xiaoshuai (Beijing Bicycle,
|
176
|
-
Shanghai Dreams) tells a striking, autobiographical coming-of-age tale set
|
177
|
-
in the final days of China''s Cultural Revolution. Eleven-year-old Wang Han
|
178
|
-
lives with his family in a remote village in Guizhou province. When Wang is
|
179
|
-
selected to lead his school through their daily gymnastic regiment, his teacher
|
180
|
-
recommends that he wear a clean, new shirt in honor of this important position
|
181
|
-
- a request that forces his family to make a great sacrifice. (c) First Run
|
182
|
-
Features","posters":{"thumbnail":"http://content9.flixster.com/movie/11/16/44/11164411_mob.jpg","profile":"http://content9.flixster.com/movie/11/16/44/11164411_pro.jpg","detailed":"http://content9.flixster.com/movie/11/16/44/11164411_det.jpg","original":"http://content9.flixster.com/movie/11/16/44/11164411_ori.jpg"},"abridged_cast":[{"name":"Liu
|
183
|
-
Wenquing","id":"771383553","characters":["Wang Han"]},{"name":"Wang Jinchun","id":"771380698","characters":["Father"]},{"name":"Yen
|
184
|
-
Ni","id":"771381126","characters":["Mother"]},{"name":"Zhang Kexuan","id":"771437188","characters":["Louse"]},{"name":"Zhong
|
185
|
-
Guo Liuxing","id":"771437189","characters":["Mouse"]}],"alternate_ids":{"imdb":"2042432"},"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/771253546.json","alternate":"http://www.rottentomatoes.com/m/11_flowers/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/771253546/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/771253546/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/771253546/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/771253546/similar.json"}},{"id":"771319180","title":"Future
|
186
|
-
Weather","year":2013,"mpaa_rating":"Unrated","runtime":100,"release_dates":{"theater":"2013-02-22","dvd":"2013-04-15"},"ratings":{"critics_score":-1,"audience_score":50},"synopsis":"Lauduree
|
187
|
-
(Haney-Jardine) is a 13-year-old loner passionate about nature and worried
|
188
|
-
about global warming. Greta (Amy Madigan), her grandmother, is a fiery nurse
|
189
|
-
jaded by alcohol and disappointment. When Lauduree is abruptly abandoned by
|
190
|
-
her dreamer single mom (Marin Ireland), she decides to take survival into
|
191
|
-
her own hands, forcing her and Greta to rethink their futures. Featuring humorous,
|
192
|
-
sharply drawn characters and powerful performances by Amy Madigan (Field of
|
193
|
-
Dreams, Gone Baby Gone), Lili Taylor (Say Anything, Six Feet Under), and rising
|
194
|
-
star Perla Haney-Jardine (Kill Bill Vol. 2, Spider-Man 3), Future Weather
|
195
|
-
is about finding the courage to survive change. (c) Lipstick Pictures in association
|
196
|
-
with First Pond Entertainment and Virgil Films","posters":{"thumbnail":"http://content6.flixster.com/movie/11/16/90/11169032_mob.jpg","profile":"http://content6.flixster.com/movie/11/16/90/11169032_pro.jpg","detailed":"http://content6.flixster.com/movie/11/16/90/11169032_det.jpg","original":"http://content6.flixster.com/movie/11/16/90/11169032_ori.jpg"},"abridged_cast":[{"name":"Perla
|
197
|
-
Haney-Jardine","id":"770696476","characters":["Lauduree"]},{"name":"Amy Madigan","id":"162680966","characters":["Greta"]},{"name":"Lili
|
198
|
-
Taylor","id":"162668140","characters":["Ms. Markovi"]},{"name":"William Sadler","id":"162668749","characters":["Ed"]},{"name":"Martin
|
199
|
-
Ireland","id":"771043382","characters":["Tanya"]}],"alternate_ids":{"imdb":"1701215"},"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/771319180.json","alternate":"http://www.rottentomatoes.com/m/future_weather/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/771319180/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/771319180/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/771319180/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/771319180/similar.json"}},{"id":"771316290","title":"Doctor
|
200
|
-
Bello","year":2012,"mpaa_rating":"Unrated","runtime":90,"release_dates":{"theater":"2013-02-22"},"ratings":{"critics_score":-1,"audience_score":0},"synopsis":"An
|
201
|
-
uncertified African immigrant Doctor secretly cures the seven year old son
|
202
|
-
of a rich American couple suffering from brain cancer in a Manhattan New York
|
203
|
-
Hospital, and refuses to reveal the source of the miracle cure. He is therefore
|
204
|
-
jailed for medical malpractice and develops brain tumor himself with only
|
205
|
-
a few weeks to live. The African-American head of the Oncology Ward risks
|
206
|
-
everything to search for the miracle cure in Africa after he is suspended
|
207
|
-
for his part in the hospital protocol breach and abandoned by his bourgeois
|
208
|
-
wife.","posters":{"thumbnail":"http://images.rottentomatoescdn.com/images/redesign/poster_default.gif","profile":"http://images.rottentomatoescdn.com/images/redesign/poster_default.gif","detailed":"http://images.rottentomatoescdn.com/images/redesign/poster_default.gif","original":"http://images.rottentomatoescdn.com/images/redesign/poster_default.gif"},"abridged_cast":[],"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/771316290.json","alternate":"http://www.rottentomatoes.com/m/771316290/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/771316290/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/771316290/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/771316290/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/771316290/similar.json"}}],"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/lists/movies/opening.json?limit=20&country=us","alternate":"http://www.rottentomatoes.com/movie/opening.php"},"link_template":"http://api.rottentomatoes.com/api/public/v1.0/lists/movies/opening.json?limit={num_results}&country={country-code}"}
|
209
|
-
|
210
|
-
'
|
211
|
-
http_version:
|
212
|
-
recorded_at: Wed, 20 Feb 2013 15:31:51 GMT
|
213
|
-
recorded_with: VCR 2.4.0
|
data/spec/support/vcr/TomatoPower_Client/search_by_id/should_return_list_of_movies_by_id.yml
DELETED
@@ -1,88 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://api.rottentomatoes.com/api/public/v1.0/movie_alias.json?apikey=<API_KEY>&id=0031381&type=imdb
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- ! '*/*'
|
12
|
-
User-Agent:
|
13
|
-
- Ruby
|
14
|
-
response:
|
15
|
-
status:
|
16
|
-
code: 200
|
17
|
-
message: OK
|
18
|
-
headers:
|
19
|
-
Cache-Control:
|
20
|
-
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
21
|
-
Content-Language:
|
22
|
-
- en-US
|
23
|
-
Content-Type:
|
24
|
-
- text/javascript;charset=ISO-8859-1
|
25
|
-
Date:
|
26
|
-
- Thu, 21 Feb 2013 18:17:48 GMT
|
27
|
-
Expires:
|
28
|
-
- Sat, 6 May 1995 12:00:00 GMT
|
29
|
-
Pragma:
|
30
|
-
- no-cache
|
31
|
-
Server:
|
32
|
-
- Mashery Proxy
|
33
|
-
Set-Cookie:
|
34
|
-
- JSESSIONID=C7609D24839314FA04CA5407A0FD4BBE.localhost; Path=/
|
35
|
-
- ServerID=1335; Path=/
|
36
|
-
Vary:
|
37
|
-
- User-Agent,Accept-Encoding
|
38
|
-
X-Mashery-Responder:
|
39
|
-
- prod-j-worker-us-east-1c-14.mashery.com
|
40
|
-
Content-Length:
|
41
|
-
- '2022'
|
42
|
-
Connection:
|
43
|
-
- keep-alive
|
44
|
-
body:
|
45
|
-
encoding: US-ASCII
|
46
|
-
string: ! '
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
{"id":9818,"title":"Gone With the Wind","year":1939,"genres":["Drama","Romance","Classics"],"mpaa_rating":"G","runtime":222,"critics_consensus":"Filmed
|
75
|
-
and presented on a scale not seen in modern productions, Gone with the Wind
|
76
|
-
is, if not the definitive Hollywood film, then certainly near the top of the
|
77
|
-
list.","release_dates":{"theater":"1939-12-15","dvd":"2000-03-07"},"ratings":{"critics_rating":"Certified
|
78
|
-
Fresh","critics_score":96,"audience_rating":"Upright","audience_score":91},"synopsis":"","posters":{"thumbnail":"http://content6.flixster.com/movie/11/16/80/11168092_mob.jpg","profile":"http://content6.flixster.com/movie/11/16/80/11168092_pro.jpg","detailed":"http://content6.flixster.com/movie/11/16/80/11168092_det.jpg","original":"http://content6.flixster.com/movie/11/16/80/11168092_ori.jpg"},"abridged_cast":[{"name":"Clark
|
79
|
-
Gable","id":"162657893","characters":["Rhett Butler"]},{"name":"Vivien Leigh","id":"162657894","characters":["Scarlett
|
80
|
-
O''Hara"]},{"name":"Leslie Howard","id":"162658545","characters":["Ashley
|
81
|
-
Wilkes"]},{"name":"Olivia de Havilland","id":"162660824","characters":["Melanie
|
82
|
-
Hamilton"]},{"name":"Hattie McDaniel","id":"351527605","characters":["Mammy"]}],"abridged_directors":[{"name":"George
|
83
|
-
Cukor"},{"name":"Sam Wood"}],"studio":"New Line Cinema","alternate_ids":{"imdb":"0031381"},"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movie_alias.json?type=imdb&id=0031381","alternate":"http://www.rottentomatoes.com/m/gone_with_the_wind/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/9818/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/9818/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/9818/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/9818/similar.json","canonical":"http://api.rottentomatoes.com/api/public/v1.0/movies/9818.json"},"link_template":"http://api.rottentomatoes.com/api/public/v1.0/movie_alias.json?type=imdb&id={alias-id}"}
|
84
|
-
|
85
|
-
'
|
86
|
-
http_version:
|
87
|
-
recorded_at: Thu, 21 Feb 2013 18:17:48 GMT
|
88
|
-
recorded_with: VCR 2.4.0
|
data/spec/support/vcr/TomatoPower_Client/search_by_title/should_return_list_of_movies_by_title.yml
DELETED
@@ -1,89 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=<API_KEY>&page=1&page_limit=1&q=Mission%20Impossible
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- ! '*/*'
|
12
|
-
User-Agent:
|
13
|
-
- Ruby
|
14
|
-
response:
|
15
|
-
status:
|
16
|
-
code: 200
|
17
|
-
message: OK
|
18
|
-
headers:
|
19
|
-
Cache-Control:
|
20
|
-
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
21
|
-
Content-Language:
|
22
|
-
- en-US
|
23
|
-
Content-Type:
|
24
|
-
- text/javascript;charset=ISO-8859-1
|
25
|
-
Date:
|
26
|
-
- Wed, 20 Feb 2013 15:31:49 GMT
|
27
|
-
Expires:
|
28
|
-
- Sat, 6 May 1995 12:00:00 GMT
|
29
|
-
Pragma:
|
30
|
-
- no-cache
|
31
|
-
Server:
|
32
|
-
- Mashery Proxy
|
33
|
-
Set-Cookie:
|
34
|
-
- JSESSIONID=370DFE507354742F06DC53BCBF679B79.localhost; Path=/
|
35
|
-
- ServerID=1336; Path=/
|
36
|
-
Vary:
|
37
|
-
- User-Agent,Accept-Encoding
|
38
|
-
X-Mashery-Responder:
|
39
|
-
- prod-j-worker-us-east-1d-20.mashery.com
|
40
|
-
Content-Length:
|
41
|
-
- '2119'
|
42
|
-
Connection:
|
43
|
-
- keep-alive
|
44
|
-
body:
|
45
|
-
encoding: US-ASCII
|
46
|
-
string: ! '
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
{"total":6,"movies":[{"id":"155654854","title":"Mission: Impossible III","year":2006,"mpaa_rating":"PG-13","runtime":127,"critics_consensus":"Fast-paced,
|
78
|
-
with eye-popping stunts and special effects, the latest Mission: Impossible
|
79
|
-
installment delivers everything an action fan could ask for. A thrilling summer
|
80
|
-
popcorn flick.","release_dates":{"theater":"2006-05-05","dvd":"2006-10-30"},"ratings":{"critics_rating":"Fresh","critics_score":70,"audience_rating":"Upright","audience_score":69},"synopsis":"","posters":{"thumbnail":"http://content6.flixster.com/movie/10/93/36/10933612_mob.jpg","profile":"http://content6.flixster.com/movie/10/93/36/10933612_pro.jpg","detailed":"http://content6.flixster.com/movie/10/93/36/10933612_det.jpg","original":"http://content6.flixster.com/movie/10/93/36/10933612_ori.jpg"},"abridged_cast":[{"name":"Tom
|
81
|
-
Cruise","id":"162652763","characters":["Ethan Hunt"]},{"name":"Philip Seymour
|
82
|
-
Hoffman","id":"162654287","characters":["Owen Davian"]},{"name":"Ving Rhames","id":"162693220","characters":["Luther
|
83
|
-
Strickell"]},{"name":"Billy Crudup","id":"162660766","characters":["Musgrave"]},{"name":"Michelle
|
84
|
-
Monaghan","id":"162654801","characters":["Julia"]}],"alternate_ids":{"imdb":"0317919"},"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/155654854.json","alternate":"http://www.rottentomatoes.com/m/mission_impossible_3/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/155654854/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/155654854/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/155654854/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/155654854/similar.json"}}],"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies.json?q=Mission+Impossible&page_limit=1&page=1","next":"http://api.rottentomatoes.com/api/public/v1.0/movies.json?q=Mission+Impossible&page_limit=1&page=2"},"link_template":"http://api.rottentomatoes.com/api/public/v1.0/movies.json?q={search-term}&page_limit={results-per-page}&page={page-number}"}
|
85
|
-
|
86
|
-
'
|
87
|
-
http_version:
|
88
|
-
recorded_at: Wed, 20 Feb 2013 15:31:49 GMT
|
89
|
-
recorded_with: VCR 2.4.0
|