tomato_power 0.0.5 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/.gitignore +1 -0
  2. data/README.md +22 -13
  3. data/lib/tomato_power/api/api.rb +30 -66
  4. data/lib/tomato_power/api/api_service.rb +115 -0
  5. data/lib/tomato_power/api/tomato_methods.rb +17 -16
  6. data/lib/tomato_power/client.rb +13 -0
  7. data/lib/tomato_power/helpers/helpers.rb +2 -0
  8. data/lib/tomato_power/helpers/parsers.rb +26 -1
  9. data/lib/tomato_power/movie/actor.rb +1 -0
  10. data/lib/tomato_power/movie/clip.rb +1 -0
  11. data/lib/tomato_power/movie/movie.rb +20 -6
  12. data/lib/tomato_power/movie/poster.rb +14 -0
  13. data/lib/tomato_power/movie/review.rb +1 -0
  14. data/lib/tomato_power/version.rb +1 -1
  15. data/lib/tomato_power.rb +7 -0
  16. data/spec/spec_helper.rb +1 -1
  17. data/spec/support/sample_data/sample_posters +6 -0
  18. data/spec/unit_specs/api/api_services_spec.rb +39 -0
  19. data/spec/unit_specs/{api_spec.rb → api/api_spec.rb} +3 -27
  20. data/spec/unit_specs/helpers/helpers.rb +53 -0
  21. data/spec/unit_specs/{parsers_spec.rb → helpers/parsers_spec.rb} +12 -12
  22. data/spec/unit_specs/helpers_spec.rb +0 -2
  23. data/spec/unit_specs/{actor_spec.rb → movie/actor_spec.rb} +1 -1
  24. data/spec/unit_specs/{client_spec.rb → movie/client_spec.rb} +1 -1
  25. data/spec/unit_specs/{clip_spec.rb → movie/clip_spec.rb} +1 -1
  26. data/spec/unit_specs/{movie_spec.rb → movie/movie_spec.rb} +21 -6
  27. data/spec/unit_specs/movie/poster_spec.rb +17 -0
  28. data/spec/unit_specs/{review_spec.rb → movie/review_spec.rb} +2 -2
  29. metadata +26 -74
  30. data/spec/support/vcr/TomatoPower_API/API_Methods/valid_methods/should_create_methods.yml +0 -598
  31. data/spec/support/vcr/TomatoPower_API/API_options_validation/valid_options/should_consider_0_options_valid.yml +0 -306
  32. data/spec/support/vcr/TomatoPower_API/API_options_validation/valid_options/should_not_raise_error.yml +0 -101
  33. data/spec/support/vcr/TomatoPower_API/List_request/searching_by_title/should_return_a_list_of_movie_objects.yml +0 -101
  34. data/spec/support/vcr/TomatoPower_API/List_request/searching_by_title/should_url_encode_search_string_before_sending.yml +0 -102
  35. data/spec/support/vcr/TomatoPower_API/List_request/should_return_a_list_of_movie_objects.yml +0 -101
  36. data/spec/support/vcr/TomatoPower_API/List_request/should_url_encode_search_string_before_sending.yml +0 -102
  37. data/spec/support/vcr/TomatoPower_API/Movie_request/cast/should_return_cast_of_movie.yml +0 -356
  38. data/spec/support/vcr/TomatoPower_API/Movie_request/clips/should_return_clips_of_movie.yml +0 -638
  39. data/spec/support/vcr/TomatoPower_API/Movie_request/no_results/should_return_error_string_if_no_results_are_found.yml +0 -49
  40. data/spec/support/vcr/TomatoPower_API/Movie_request/reviews/should_return_reviews.yml +0 -271
  41. data/spec/support/vcr/TomatoPower_API/Movie_request/should_return_single_movie.yml +0 -161
  42. data/spec/support/vcr/TomatoPower_API/Movie_request/similar/should_return_similar_movies.yml +0 -121
  43. data/spec/support/vcr/TomatoPower_Client/box_office_movies/should_return_list_of_movies.yml +0 -396
  44. data/spec/support/vcr/TomatoPower_Client/current_release_dvds/should_return_list_of_movies.yml +0 -427
  45. data/spec/support/vcr/TomatoPower_Client/in_theaters_movies/should_return_list_of_movies.yml +0 -380
  46. data/spec/support/vcr/TomatoPower_Client/new_release_dvds/should_return_list_of_movies.yml +0 -392
  47. data/spec/support/vcr/TomatoPower_Client/opening_movies/should_return_list_of_movies.yml +0 -213
  48. data/spec/support/vcr/TomatoPower_Client/search_by_id/should_return_list_of_movies_by_id.yml +0 -88
  49. data/spec/support/vcr/TomatoPower_Client/search_by_title/should_return_list_of_movies_by_title.yml +0 -89
  50. data/spec/support/vcr/TomatoPower_Client/top_rentals/should_return_list_of_movies.yml +0 -409
  51. data/spec/support/vcr/TomatoPower_Client/upcoming_dvds/should_return_list_of_movies.yml +0 -359
  52. data/spec/support/vcr/TomatoPower_Client/upcoming_movies/should_return_list_of_movies.yml +0 -341
  53. data/spec/support/vcr/TomatoPower_Movie/clips/should_return_clips.yml +0 -250
  54. data/spec/support/vcr/TomatoPower_Movie/full_cast/should_return_cast.yml +0 -279
  55. data/spec/support/vcr/TomatoPower_Movie/reviews/should_return_reviews.yml +0 -205
  56. data/spec/support/vcr/TomatoPower_Movie/similar/should_return_similar_movies.yml +0 -231
  57. data/spec/support/vcr/TomatoPower_Movie/similar/should_return_similars.yml +0 -81
  58. data/spec/unit_specs/helpers.rb +0 -50
@@ -1,205 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://api.rottentomatoes.com/api/public/v1.0/movies/771189410/reviews.json?apikey=<API_KEY>
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 15:44:18 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=CFF536DEA64FDCF2E1F3DCA1D382A65E.localhost; Path=/
35
- - ServerID=1335; Path=/
36
- Vary:
37
- - User-Agent,Accept-Encoding
38
- X-Mashery-Responder:
39
- - prod-j-worker-us-east-1c-19.mashery.com
40
- Content-Length:
41
- - '563'
42
- Connection:
43
- - keep-alive
44
- body:
45
- encoding: US-ASCII
46
- string: ! "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n{\"total\":0,\"reviews\":[],\"links\":{\"self\":\"http://api.rottentomatoes.com/api/public/v1.0/movies/771189410/reviews.json?review_type=top_critic&page_limit=20&country=us&page=1\",\"alternate\":\"http://www.rottentomatoes.com/m/jack_the_giant_slayer/#reviews\",\"rel\":\"http://api.rottentomatoes.com/api/public/v1.0/movies/771189410.json\"},\"link_template\":\"http://api.rottentomatoes.com/api/public/v1.0/movies/{movie-id}/reviews.json?review_type={top_critic|all|dvd}&page_limit={results-per-page}&page={page-number}&country={country-code}\"}\n\n"
47
- http_version:
48
- recorded_at: Thu, 21 Feb 2013 15:44:18 GMT
49
- - request:
50
- method: get
51
- uri: http://api.rottentomatoes.com/api/public/v1.0/movies/770669920/reviews.json?apikey=<API_KEY>
52
- body:
53
- encoding: US-ASCII
54
- string: ''
55
- headers:
56
- Accept:
57
- - ! '*/*'
58
- User-Agent:
59
- - Ruby
60
- response:
61
- status:
62
- code: 200
63
- message: OK
64
- headers:
65
- Cache-Control:
66
- - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
67
- Content-Language:
68
- - en-US
69
- Content-Type:
70
- - text/javascript;charset=ISO-8859-1
71
- Date:
72
- - Thu, 21 Feb 2013 16:51:00 GMT
73
- Expires:
74
- - Sat, 6 May 1995 12:00:00 GMT
75
- Pragma:
76
- - no-cache
77
- Server:
78
- - Mashery Proxy
79
- Set-Cookie:
80
- - JSESSIONID=6C5DC0E97C7A438522156B7F209634E8.localhost; Path=/
81
- - ServerID=1335; Path=/
82
- Vary:
83
- - User-Agent,Accept-Encoding
84
- X-Mashery-Responder:
85
- - prod-j-worker-us-east-1b-16.mashery.com
86
- Content-Length:
87
- - '556'
88
- Connection:
89
- - keep-alive
90
- body:
91
- encoding: US-ASCII
92
- string: ! "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n{\"total\":0,\"reviews\":[],\"links\":{\"self\":\"http://api.rottentomatoes.com/api/public/v1.0/movies/770669920/reviews.json?review_type=top_critic&page_limit=20&country=us&page=1\",\"alternate\":\"http://www.rottentomatoes.com/m/deadly_mission/#reviews\",\"rel\":\"http://api.rottentomatoes.com/api/public/v1.0/movies/770669920.json\"},\"link_template\":\"http://api.rottentomatoes.com/api/public/v1.0/movies/{movie-id}/reviews.json?review_type={top_critic|all|dvd}&page_limit={results-per-page}&page={page-number}&country={country-code}\"}\n\n"
93
- http_version:
94
- recorded_at: Thu, 21 Feb 2013 16:51:00 GMT
95
- - request:
96
- method: get
97
- uri: http://api.rottentomatoes.com/api/public/v1.0/movies/155654854/reviews.json?apikey=<API_KEY>
98
- body:
99
- encoding: US-ASCII
100
- string: ''
101
- headers:
102
- Accept:
103
- - ! '*/*'
104
- User-Agent:
105
- - Ruby
106
- response:
107
- status:
108
- code: 200
109
- message: OK
110
- headers:
111
- Cache-Control:
112
- - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
113
- Content-Language:
114
- - en-US
115
- Content-Type:
116
- - text/javascript;charset=ISO-8859-1
117
- Date:
118
- - Thu, 21 Feb 2013 16:52:19 GMT
119
- Expires:
120
- - Sat, 6 May 1995 12:00:00 GMT
121
- Pragma:
122
- - no-cache
123
- Server:
124
- - Mashery Proxy
125
- Set-Cookie:
126
- - JSESSIONID=51FB8CD375CF6AE0251647DC5E8F074B.localhost; Path=/
127
- - ServerID=1336; Path=/
128
- Vary:
129
- - User-Agent,Accept-Encoding
130
- X-Mashery-Responder:
131
- - prod-j-worker-us-east-1c-19.mashery.com
132
- Content-Length:
133
- - '7300'
134
- Connection:
135
- - keep-alive
136
- body:
137
- encoding: US-ASCII
138
- string: ! "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n{\"total\":45,\"reviews\":[{\"critic\":\"David
139
- Ansen\",\"date\":\"2007-11-01\",\"freshness\":\"fresh\",\"publication\":\"Newsweek\",\"quote\":\"...this
140
- snappy installment is a marked improvement over John Woo's surprisingly dull
141
- sequel, though the set pieces lack the elegance and visual coherence of the
142
- Brian de Palma original.\",\"links\":{\"review\":\"http://www.newsweek.com/id/47763\"}},{\"critic\":\"Joe
143
- Morgenstern\",\"date\":\"2006-06-22\",\"freshness\":\"fresh\",\"publication\":\"Wall
144
- Street Journal\",\"quote\":\"The summer's first action epic does exactly what
145
- it's supposed to do, more clearly than M:i:I, and more likeably than M:i:II.\",\"links\":{\"review\":\"http://online.wsj.com/search/aggregate.html?article-doc-type={Film%20Review}&KEYWORDS=%2A&COLLECTIONS=wsjie/archive&HEADER_TEXT=FILM+REVIEWS#SB114678304896244245\"}},{\"critic\":\"Rex
146
- Reed\",\"date\":\"2006-05-10\",\"freshness\":\"rotten\",\"publication\":\"New
147
- York Observer\",\"quote\":\"As idiot movies go, this one is as sub-mental
148
- as you might expect.\",\"links\":{\"review\":\"http://nyobserver.com/20060515/20060515_Rex_Reed_culture_rexreed.asp\"}},{\"critic\":\"Andrew
149
- Sarris\",\"date\":\"2006-05-10\",\"freshness\":\"rotten\",\"publication\":\"New
150
- York Observer\",\"quote\":\"My final reaction to Mission: Impossible III is
151
- one of bemused tolerance and even mild absorption in all the silliness.\",\"links\":{\"review\":\"http://www.observer.com/node/38831\"}},{\"critic\":\"David
152
- Edelstein\",\"date\":\"2006-05-09\",\"freshness\":\"rotten\",\"publication\":\"New
153
- York Magazine\",\"quote\":\"There are no flourishes to savor. Instead, there
154
- are big-deal stunts.\",\"links\":{\"review\":\"http://nymag.com/movies/reviews/16931/\"}},{\"critic\":\"Anthony
155
- Lane\",\"date\":\"2006-05-08\",\"freshness\":\"rotten\",\"publication\":\"New
156
- Yorker\",\"quote\":\"The grand finale? A fistfight, after which somebody gets
157
- run over. Listen, if I want to see that kind of action, I don't go to Shanghai.
158
- I don't even go to the movies. I go to the South Bronx and stand outside a
159
- bar.\",\"links\":{}},{\"critic\":\"Richard Roeper\",\"date\":\"2006-05-08\",\"freshness\":\"fresh\",\"publication\":\"Ebert
160
- & Roeper\",\"quote\":\"The best of the three.\",\"links\":{\"review\":\"http://tvplex.go.com/buenavista/ebertandroeper/mp3/060508-mission_impossible_3.mp3\"}},{\"critic\":\"Peter
161
- Howell\",\"date\":\"2006-05-05\",\"original_score\":\"2.5/4\",\"freshness\":\"rotten\",\"publication\":\"Toronto
162
- Star\",\"quote\":\"Abrams knows how to frame a shot and how to propulsively
163
- push both action and love stories, but logic continues to elude him as much
164
- as it did De Palma and Woo.\",\"links\":{\"review\":\"http://WWW.TheStar.COM/NASApp/cs/ContentServer?pagename=thestar/Layout/Article_Type1&c=Article&cid=1146823301972&call_pageid=1022183557980&col=1022183560753\"}},{\"critic\":\"Roger
165
- Moore\",\"date\":\"2006-05-05\",\"original_score\":\"4/5\",\"freshness\":\"fresh\",\"publication\":\"Orlando
166
- Sentinel\",\"quote\":\"If Mission: Impossible 3 is the first pitch of the
167
- popcorn-movie season, just two words come to mind -- butter up.\",\"links\":{\"review\":\"http://www.orlandosentinel.com/entertainment/movies/orl-db-moviereviews-searchresults,0,3279701,results.formprofile?turbine_cdb_lib__cdb_01_txt=Mission%20Impossible%20III&Find+it%21=Submit+Query\"}},{\"critic\":\"Liam
168
- Lacey\",\"date\":\"2006-05-05\",\"original_score\":\"3/4\",\"freshness\":\"fresh\",\"publication\":\"Globe
169
- and Mail\",\"quote\":\"What summer movies aspire to -- a slick demonstration
170
- of hot buttered entertainment that will probably slide you right out of the
171
- theatre before you even stop to ask a logical question or two.\",\"links\":{\"review\":\"http://www.theglobeandmail.com/servlet/story/RTGAM.20060505.wxmission05/BNStory/Entertainment/home\"}},{\"critic\":\"Robert
172
- Denerstein\",\"date\":\"2006-05-05\",\"original_score\":\"B\",\"freshness\":\"fresh\",\"publication\":\"Denver
173
- Rocky Mountain News\",\"quote\":\"For all the attempts at adding depth, it's
174
- likely that audiences will come away remembering the fireworks.\",\"links\":{}},{\"critic\":\"Michael
175
- Booth\",\"date\":\"2006-05-05\",\"original_score\":\"3/4\",\"freshness\":\"fresh\",\"publication\":\"Denver
176
- Post\",\"quote\":\"All the popcorn season really wants is a good reason to
177
- see super-fit bodies flying around on a big screen, and M:I:III gits 'er done.\",\"links\":{\"review\":\"http://www.denverpost.com/movies/ci_3782203\"}},{\"critic\":\"Philip
178
- Wuntch\",\"date\":\"2006-05-05\",\"original_score\":\"A-\",\"freshness\":\"fresh\",\"publication\":\"Dallas
179
- Morning News\",\"quote\":\"Mission: Impossible III will make you jump up and
180
- down with exuberance, just like its star.\",\"links\":{\"review\":\"http://www.guidelive.com/pls/portal/url/page/LSDallasPageGroup/MovieDetail?item_id=44337\"}},{\"critic\":\"Bill
181
- Muller\",\"date\":\"2006-05-05\",\"freshness\":\"rotten\",\"publication\":\"Arizona
182
- Republic\",\"quote\":\"Director Abrams seems to have attended the Tony Scott
183
- Extreme Closeup Academy.\",\"links\":{\"review\":\"http://www.azcentral.com/ent/movies/articles/0505mission0505.html\"}},{\"critic\":\"Carrie
184
- Rickey\",\"date\":\"2006-05-04\",\"original_score\":\"3/4\",\"freshness\":\"fresh\",\"publication\":\"Philadelphia
185
- Inquirer\",\"quote\":\"Whatever your feelings about Cruise, Mission: Impossible
186
- III is nirvana for thrill seekers.\",\"links\":{}},{\"critic\":\"Ann Hornaday\",\"date\":\"2006-05-04\",\"freshness\":\"fresh\",\"publication\":\"Washington
187
- Post\",\"quote\":\"Director J.J. Abrams, creator of such TV hits as Alias
188
- and Lost, makes a reasonably impressive feature debut with the best installment
189
- of the series.\",\"links\":{\"review\":\"http://www.washingtonpost.com/wp-dyn/content/article/2006/05/04/AR2006050402070.html\"}},{\"critic\":\"James
190
- Berardinelli\",\"date\":\"2006-05-04\",\"original_score\":\"2.5/4\",\"freshness\":\"rotten\",\"publication\":\"ReelViews\",\"quote\":\"Mission:
191
- Impossible III provides lots of action, but too little excitement.\",\"links\":{\"review\":\"http://www.reelviews.net/php_review_template.php?identifier=1033\"}},{\"critic\":\"Manohla
192
- Dargis\",\"date\":\"2006-05-04\",\"original_score\":\"2.5/5\",\"freshness\":\"rotten\",\"publication\":\"New
193
- York Times\",\"quote\":\"Although he slams into stationary objects with his
194
- customary zeal, Tom Cruise is off his game here, sabotaged by a misguided
195
- attempt to shade his character with gray.\",\"links\":{}},{\"critic\":\"Peter
196
- Rainer\",\"date\":\"2006-05-04\",\"original_score\":\"B+\",\"freshness\":\"fresh\",\"publication\":\"Christian
197
- Science Monitor\",\"quote\":\"It's an expertly engineered popcorn movie --
198
- hold the butter substitute -- but it also tries (and fails) to be a love story
199
- for the ages.\",\"links\":{\"review\":\"http://www.csmonitor.com/2006/0505/p11s01-almo.html\"}},{\"critic\":\"Colin
200
- Covert\",\"date\":\"2006-05-04\",\"original_score\":\"3/4\",\"freshness\":\"fresh\",\"publication\":\"Minneapolis
201
- Star Tribune\",\"quote\":\"A smart, tightly directed thriller that could serve
202
- as the template for film schools teaching Summertime Escapism 101.\",\"links\":{\"review\":\"http://www.startribune.com/412/story/412097.html\"}}],\"links\":{\"self\":\"http://api.rottentomatoes.com/api/public/v1.0/movies/155654854/reviews.json?review_type=top_critic&page_limit=20&country=us&page=1\",\"next\":\"http://api.rottentomatoes.com/api/public/v1.0/movies/155654854/reviews.json?review_type=top_critic&page_limit=20&country=us&page=2\",\"alternate\":\"http://www.rottentomatoes.com/m/mission_impossible_3/#reviews\",\"rel\":\"http://api.rottentomatoes.com/api/public/v1.0/movies/155654854.json\"},\"link_template\":\"http://api.rottentomatoes.com/api/public/v1.0/movies/{movie-id}/reviews.json?review_type={top_critic|all|dvd}&page_limit={results-per-page}&page={page-number}&country={country-code}\"}\n\n"
203
- http_version:
204
- recorded_at: Thu, 21 Feb 2013 16:52:19 GMT
205
- recorded_with: VCR 2.4.0
@@ -1,231 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://api.rottentomatoes.com/api/public/v1.0/movies/155654854/reviews.json?apikey=<API_KEY>
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:07:59 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=449F2EE7B8D25C20110178D23B072BB9.localhost; Path=/
35
- - ServerID=1335; Path=/
36
- Vary:
37
- - User-Agent,Accept-Encoding
38
- X-Mashery-Responder:
39
- - prod-j-worker-us-east-1b-16.mashery.com
40
- Content-Length:
41
- - '7300'
42
- Connection:
43
- - keep-alive
44
- body:
45
- encoding: US-ASCII
46
- string: ! "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n{\"total\":45,\"reviews\":[{\"critic\":\"David
47
- Ansen\",\"date\":\"2007-11-01\",\"freshness\":\"fresh\",\"publication\":\"Newsweek\",\"quote\":\"...this
48
- snappy installment is a marked improvement over John Woo's surprisingly dull
49
- sequel, though the set pieces lack the elegance and visual coherence of the
50
- Brian de Palma original.\",\"links\":{\"review\":\"http://www.newsweek.com/id/47763\"}},{\"critic\":\"Joe
51
- Morgenstern\",\"date\":\"2006-06-22\",\"freshness\":\"fresh\",\"publication\":\"Wall
52
- Street Journal\",\"quote\":\"The summer's first action epic does exactly what
53
- it's supposed to do, more clearly than M:i:I, and more likeably than M:i:II.\",\"links\":{\"review\":\"http://online.wsj.com/search/aggregate.html?article-doc-type={Film%20Review}&KEYWORDS=%2A&COLLECTIONS=wsjie/archive&HEADER_TEXT=FILM+REVIEWS#SB114678304896244245\"}},{\"critic\":\"Rex
54
- Reed\",\"date\":\"2006-05-10\",\"freshness\":\"rotten\",\"publication\":\"New
55
- York Observer\",\"quote\":\"As idiot movies go, this one is as sub-mental
56
- as you might expect.\",\"links\":{\"review\":\"http://nyobserver.com/20060515/20060515_Rex_Reed_culture_rexreed.asp\"}},{\"critic\":\"Andrew
57
- Sarris\",\"date\":\"2006-05-10\",\"freshness\":\"rotten\",\"publication\":\"New
58
- York Observer\",\"quote\":\"My final reaction to Mission: Impossible III is
59
- one of bemused tolerance and even mild absorption in all the silliness.\",\"links\":{\"review\":\"http://www.observer.com/node/38831\"}},{\"critic\":\"David
60
- Edelstein\",\"date\":\"2006-05-09\",\"freshness\":\"rotten\",\"publication\":\"New
61
- York Magazine\",\"quote\":\"There are no flourishes to savor. Instead, there
62
- are big-deal stunts.\",\"links\":{\"review\":\"http://nymag.com/movies/reviews/16931/\"}},{\"critic\":\"Anthony
63
- Lane\",\"date\":\"2006-05-08\",\"freshness\":\"rotten\",\"publication\":\"New
64
- Yorker\",\"quote\":\"The grand finale? A fistfight, after which somebody gets
65
- run over. Listen, if I want to see that kind of action, I don't go to Shanghai.
66
- I don't even go to the movies. I go to the South Bronx and stand outside a
67
- bar.\",\"links\":{}},{\"critic\":\"Richard Roeper\",\"date\":\"2006-05-08\",\"freshness\":\"fresh\",\"publication\":\"Ebert
68
- & Roeper\",\"quote\":\"The best of the three.\",\"links\":{\"review\":\"http://tvplex.go.com/buenavista/ebertandroeper/mp3/060508-mission_impossible_3.mp3\"}},{\"critic\":\"Peter
69
- Howell\",\"date\":\"2006-05-05\",\"original_score\":\"2.5/4\",\"freshness\":\"rotten\",\"publication\":\"Toronto
70
- Star\",\"quote\":\"Abrams knows how to frame a shot and how to propulsively
71
- push both action and love stories, but logic continues to elude him as much
72
- as it did De Palma and Woo.\",\"links\":{\"review\":\"http://WWW.TheStar.COM/NASApp/cs/ContentServer?pagename=thestar/Layout/Article_Type1&c=Article&cid=1146823301972&call_pageid=1022183557980&col=1022183560753\"}},{\"critic\":\"Roger
73
- Moore\",\"date\":\"2006-05-05\",\"original_score\":\"4/5\",\"freshness\":\"fresh\",\"publication\":\"Orlando
74
- Sentinel\",\"quote\":\"If Mission: Impossible 3 is the first pitch of the
75
- popcorn-movie season, just two words come to mind -- butter up.\",\"links\":{\"review\":\"http://www.orlandosentinel.com/entertainment/movies/orl-db-moviereviews-searchresults,0,3279701,results.formprofile?turbine_cdb_lib__cdb_01_txt=Mission%20Impossible%20III&Find+it%21=Submit+Query\"}},{\"critic\":\"Liam
76
- Lacey\",\"date\":\"2006-05-05\",\"original_score\":\"3/4\",\"freshness\":\"fresh\",\"publication\":\"Globe
77
- and Mail\",\"quote\":\"What summer movies aspire to -- a slick demonstration
78
- of hot buttered entertainment that will probably slide you right out of the
79
- theatre before you even stop to ask a logical question or two.\",\"links\":{\"review\":\"http://www.theglobeandmail.com/servlet/story/RTGAM.20060505.wxmission05/BNStory/Entertainment/home\"}},{\"critic\":\"Robert
80
- Denerstein\",\"date\":\"2006-05-05\",\"original_score\":\"B\",\"freshness\":\"fresh\",\"publication\":\"Denver
81
- Rocky Mountain News\",\"quote\":\"For all the attempts at adding depth, it's
82
- likely that audiences will come away remembering the fireworks.\",\"links\":{}},{\"critic\":\"Michael
83
- Booth\",\"date\":\"2006-05-05\",\"original_score\":\"3/4\",\"freshness\":\"fresh\",\"publication\":\"Denver
84
- Post\",\"quote\":\"All the popcorn season really wants is a good reason to
85
- see super-fit bodies flying around on a big screen, and M:I:III gits 'er done.\",\"links\":{\"review\":\"http://www.denverpost.com/movies/ci_3782203\"}},{\"critic\":\"Philip
86
- Wuntch\",\"date\":\"2006-05-05\",\"original_score\":\"A-\",\"freshness\":\"fresh\",\"publication\":\"Dallas
87
- Morning News\",\"quote\":\"Mission: Impossible III will make you jump up and
88
- down with exuberance, just like its star.\",\"links\":{\"review\":\"http://www.guidelive.com/pls/portal/url/page/LSDallasPageGroup/MovieDetail?item_id=44337\"}},{\"critic\":\"Bill
89
- Muller\",\"date\":\"2006-05-05\",\"freshness\":\"rotten\",\"publication\":\"Arizona
90
- Republic\",\"quote\":\"Director Abrams seems to have attended the Tony Scott
91
- Extreme Closeup Academy.\",\"links\":{\"review\":\"http://www.azcentral.com/ent/movies/articles/0505mission0505.html\"}},{\"critic\":\"Carrie
92
- Rickey\",\"date\":\"2006-05-04\",\"original_score\":\"3/4\",\"freshness\":\"fresh\",\"publication\":\"Philadelphia
93
- Inquirer\",\"quote\":\"Whatever your feelings about Cruise, Mission: Impossible
94
- III is nirvana for thrill seekers.\",\"links\":{}},{\"critic\":\"Ann Hornaday\",\"date\":\"2006-05-04\",\"freshness\":\"fresh\",\"publication\":\"Washington
95
- Post\",\"quote\":\"Director J.J. Abrams, creator of such TV hits as Alias
96
- and Lost, makes a reasonably impressive feature debut with the best installment
97
- of the series.\",\"links\":{\"review\":\"http://www.washingtonpost.com/wp-dyn/content/article/2006/05/04/AR2006050402070.html\"}},{\"critic\":\"James
98
- Berardinelli\",\"date\":\"2006-05-04\",\"original_score\":\"2.5/4\",\"freshness\":\"rotten\",\"publication\":\"ReelViews\",\"quote\":\"Mission:
99
- Impossible III provides lots of action, but too little excitement.\",\"links\":{\"review\":\"http://www.reelviews.net/php_review_template.php?identifier=1033\"}},{\"critic\":\"Manohla
100
- Dargis\",\"date\":\"2006-05-04\",\"original_score\":\"2.5/5\",\"freshness\":\"rotten\",\"publication\":\"New
101
- York Times\",\"quote\":\"Although he slams into stationary objects with his
102
- customary zeal, Tom Cruise is off his game here, sabotaged by a misguided
103
- attempt to shade his character with gray.\",\"links\":{}},{\"critic\":\"Peter
104
- Rainer\",\"date\":\"2006-05-04\",\"original_score\":\"B+\",\"freshness\":\"fresh\",\"publication\":\"Christian
105
- Science Monitor\",\"quote\":\"It's an expertly engineered popcorn movie --
106
- hold the butter substitute -- but it also tries (and fails) to be a love story
107
- for the ages.\",\"links\":{\"review\":\"http://www.csmonitor.com/2006/0505/p11s01-almo.html\"}},{\"critic\":\"Colin
108
- Covert\",\"date\":\"2006-05-04\",\"original_score\":\"3/4\",\"freshness\":\"fresh\",\"publication\":\"Minneapolis
109
- Star Tribune\",\"quote\":\"A smart, tightly directed thriller that could serve
110
- as the template for film schools teaching Summertime Escapism 101.\",\"links\":{\"review\":\"http://www.startribune.com/412/story/412097.html\"}}],\"links\":{\"self\":\"http://api.rottentomatoes.com/api/public/v1.0/movies/155654854/reviews.json?review_type=top_critic&page_limit=20&country=us&page=1\",\"next\":\"http://api.rottentomatoes.com/api/public/v1.0/movies/155654854/reviews.json?review_type=top_critic&page_limit=20&country=us&page=2\",\"alternate\":\"http://www.rottentomatoes.com/m/mission_impossible_3/#reviews\",\"rel\":\"http://api.rottentomatoes.com/api/public/v1.0/movies/155654854.json\"},\"link_template\":\"http://api.rottentomatoes.com/api/public/v1.0/movies/{movie-id}/reviews.json?review_type={top_critic|all|dvd}&page_limit={results-per-page}&page={page-number}&country={country-code}\"}\n\n"
111
- http_version:
112
- recorded_at: Thu, 21 Feb 2013 18:07:59 GMT
113
- - request:
114
- method: get
115
- uri: http://api.rottentomatoes.com/api/public/v1.0/movies/155654854/similar.json?apikey=<API_KEY>
116
- body:
117
- encoding: US-ASCII
118
- string: ''
119
- headers:
120
- Accept:
121
- - ! '*/*'
122
- User-Agent:
123
- - Ruby
124
- response:
125
- status:
126
- code: 200
127
- message: OK
128
- headers:
129
- Cache-Control:
130
- - no-store, no-cache, must-revalidate, post-check=0, pre-check=0
131
- Content-Language:
132
- - en-US
133
- Content-Type:
134
- - text/javascript;charset=ISO-8859-1
135
- Date:
136
- - Thu, 21 Feb 2013 18:08:11 GMT
137
- Expires:
138
- - Sat, 6 May 1995 12:00:00 GMT
139
- Pragma:
140
- - no-cache
141
- Server:
142
- - Mashery Proxy
143
- Set-Cookie:
144
- - JSESSIONID=1E7B6B5D8FB37FA36DA243A515CFC619.localhost; Path=/
145
- - ServerID=1335; Path=/
146
- Vary:
147
- - User-Agent,Accept-Encoding
148
- X-Mashery-Responder:
149
- - prod-j-worker-us-east-1b-16.mashery.com
150
- Transfer-Encoding:
151
- - chunked
152
- Connection:
153
- - keep-alive
154
- body:
155
- encoding: US-ASCII
156
- string: ! '
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
- {"movies":[{"id":"10753","title":"Mission: Impossible","year":1996,"mpaa_rating":"PG-13","runtime":110,"critics_consensus":"Full
187
- of special effects, Brian DePalma''s update of Mission: Impossible has a lot
188
- of sweeping spectacle, but the plot is sometimes convoluted.","release_dates":{"theater":"1996-05-22","dvd":"1998-01-17"},"ratings":{"critics_rating":"Fresh","critics_score":61,"audience_rating":"Upright","audience_score":70},"synopsis":"","posters":{"thumbnail":"http://content9.flixster.com/movie/25/73/257307_mob.jpg","profile":"http://content9.flixster.com/movie/25/73/257307_pro.jpg","detailed":"http://content9.flixster.com/movie/25/73/257307_det.jpg","original":"http://content9.flixster.com/movie/25/73/257307_ori.jpg"},"abridged_cast":[{"name":"Tom
189
- Cruise","id":"162652763","characters":["Ethan Hunt"]},{"name":"Jon Voight","id":"162664393","characters":["Jim
190
- Phelps"]},{"name":"Emmanuelle Beart","id":"162666753","characters":["Claire"]},{"name":"Henry
191
- Czerny","id":"343941171","characters":["Kittridge"]},{"name":"Jean Reno","id":"162653166","characters":["Krieger"]}],"alternate_ids":{"imdb":"0117060"},"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/10753.json","alternate":"http://www.rottentomatoes.com/m/mission_impossible/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/10753/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/10753/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/10753/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/10753/similar.json"}},{"id":"10840","title":"Mission:
192
- Impossible 2","year":2000,"mpaa_rating":"PG-13","runtime":123,"critics_consensus":"Your
193
- cranium may crave more substance, but your eyes will feast on the amazing
194
- action sequences.","release_dates":{"theater":"2000-12-31","dvd":"2000-11-07"},"ratings":{"critics_rating":"Rotten","critics_score":57,"audience_rating":"Spilled","audience_score":55},"synopsis":"","posters":{"thumbnail":"http://content9.flixster.com/movie/25/77/257715_mob.jpg","profile":"http://content9.flixster.com/movie/25/77/257715_pro.jpg","detailed":"http://content9.flixster.com/movie/25/77/257715_det.jpg","original":"http://content9.flixster.com/movie/25/77/257715_ori.jpg"},"abridged_cast":[{"name":"Tom
195
- Cruise","id":"162652763","characters":["Ethan Hunt"]},{"name":"Dougray Scott","id":"162652857","characters":["Sean
196
- Ambrose"]},{"name":"Thandie Newton","id":"162708663","characters":["Nyah Hall"]},{"name":"Ving
197
- Rhames","id":"162693220","characters":["Luther Stickwell"]},{"name":"Richard
198
- Roxburgh","id":"162652977","characters":["Hugh Stamp"]}],"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/10840.json","alternate":"http://www.rottentomatoes.com/m/mission_impossible_2/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/10840/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/10840/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/10840/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/10840/similar.json"}},{"id":"11357","title":"The
199
- Bourne Identity","year":2002,"mpaa_rating":"PG-13","runtime":117,"critics_consensus":"Expertly
200
- blending genre formula with bursts of unexpected wit, The Bourne Identity
201
- is an action thriller that delivers -- and then some.","release_dates":{"theater":"2002-06-14","dvd":"2003-01-21"},"ratings":{"critics_rating":"Certified
202
- Fresh","critics_score":83,"audience_rating":"Upright","audience_score":91},"synopsis":"","posters":{"thumbnail":"http://content9.flixster.com/movie/10/81/65/10816575_mob.jpg","profile":"http://content9.flixster.com/movie/10/81/65/10816575_pro.jpg","detailed":"http://content9.flixster.com/movie/10/81/65/10816575_det.jpg","original":"http://content9.flixster.com/movie/10/81/65/10816575_ori.jpg"},"abridged_cast":[{"name":"Matt
203
- Damon","id":"162653499","characters":["Jason Bourne"]},{"name":"Franka Potente","id":"162655083","characters":["Marie
204
- Kreutz"]},{"name":"Clive Owen","id":"162652511","characters":["The Professor"]},{"name":"Chris
205
- Cooper","id":"162654289","characters":["Ted Conklin"]},{"name":"Brian Cox","id":"162653324","characters":["Ward
206
- Abbott"]}],"alternate_ids":{"imdb":"0258463"},"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/11357.json","alternate":"http://www.rottentomatoes.com/m/bourne_identity/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/11357/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/11357/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/11357/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/11357/similar.json"}},{"id":"10084","title":"The
207
- Bourne Supremacy","year":2004,"mpaa_rating":"PG-13","runtime":108,"critics_consensus":"A
208
- well-maded sequel that delivers the thrills.","release_dates":{"theater":"2004-07-23","dvd":"2004-12-07"},"ratings":{"critics_rating":"Certified
209
- Fresh","critics_score":81,"audience_rating":"Upright","audience_score":89},"synopsis":"","posters":{"thumbnail":"http://content8.flixster.com/movie/10/81/65/10816574_mob.jpg","profile":"http://content8.flixster.com/movie/10/81/65/10816574_pro.jpg","detailed":"http://content8.flixster.com/movie/10/81/65/10816574_det.jpg","original":"http://content8.flixster.com/movie/10/81/65/10816574_ori.jpg"},"abridged_cast":[{"name":"Matt
210
- Damon","id":"162653499","characters":["David Webb/Jason Bourne"]},{"name":"Franka
211
- Potente","id":"162655083","characters":["Marie"]},{"name":"Brian Cox","id":"162653324","characters":["Ward
212
- Abbott"]},{"name":"Julia Stiles","id":"162660056","characters":["Nicky","Nicky
213
- Parsons"]},{"name":"Karl Urban","id":"162654704","characters":["Kirill"]}],"alternate_ids":{"imdb":"0372183"},"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/10084.json","alternate":"http://www.rottentomatoes.com/m/bourne_supremacy/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/10084/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/10084/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/10084/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/10084/similar.json"}},{"id":"770863873","title":"Mission:
214
- Impossible Ghost Protocol","year":2011,"mpaa_rating":"PG-13","runtime":132,"critics_consensus":"Stylish,
215
- fast-paced, and loaded with gripping set pieces, the fourth Mission: Impossible
216
- is big-budget popcorn entertainment that really works.","release_dates":{"theater":"2011-12-21","dvd":"2012-04-17"},"ratings":{"critics_rating":"Certified
217
- Fresh","critics_score":93,"audience_rating":"Upright","audience_score":85},"synopsis":"This
218
- is not just another mission. The IMF is shut down when it''s implicated in
219
- a global terrorist bombing plot. Ghost Protocol is initiated and Ethan Hunt
220
- and his rogue new team must go undercover to clear their organization''s name.
221
- No help, no contact, off the grid. You have never seen a mission grittier
222
- and more intense than this. -- (C) Paramount","posters":{"thumbnail":"http://content6.flixster.com/movie/11/16/91/11169152_mob.jpg","profile":"http://content6.flixster.com/movie/11/16/91/11169152_pro.jpg","detailed":"http://content6.flixster.com/movie/11/16/91/11169152_det.jpg","original":"http://content6.flixster.com/movie/11/16/91/11169152_ori.jpg"},"abridged_cast":[{"name":"Tom
223
- Cruise","id":"162652763","characters":["Ethan Hunt"]},{"name":"Simon Pegg","id":"162684057","characters":["Benji","Benji
224
- Dunn"]},{"name":"Jeremy Renner","id":"309973652","characters":["Brandt","William
225
- Brandt"]},{"name":"Ving Rhames","id":"162693220","characters":["Luther Stickell"]},{"name":"Vladimir
226
- Mashkov","id":"770683572","characters":["Anatoly Sidirov","Sidorov"]}],"alternate_ids":{"imdb":"1229238"},"links":{"self":"http://api.rottentomatoes.com/api/public/v1.0/movies/770863873.json","alternate":"http://www.rottentomatoes.com/m/mission_impossible_ghost_protocol/","cast":"http://api.rottentomatoes.com/api/public/v1.0/movies/770863873/cast.json","clips":"http://api.rottentomatoes.com/api/public/v1.0/movies/770863873/clips.json","reviews":"http://api.rottentomatoes.com/api/public/v1.0/movies/770863873/reviews.json","similar":"http://api.rottentomatoes.com/api/public/v1.0/movies/770863873/similar.json"}}],"links":{"rel":"http://api.rottentomatoes.com/api/public/v1.0/movies/155654854.json","self":"http://api.rottentomatoes.com/api/public/v1.0/movies/155654854/similar?limit=5"},"link_template":"http://api.rottentomatoes.com/api/public/v1.0/movies/155654854/similar?limit={num_results}"}
227
-
228
- '
229
- http_version:
230
- recorded_at: Thu, 21 Feb 2013 18:08:11 GMT
231
- recorded_with: VCR 2.4.0
@@ -1,81 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://api.rottentomatoes.com/api/public/v1.0/movies/771189410/similar.json?apikey=<API_KEY>
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 15:44:18 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=18EF843E734FE96AF967917317663E3F.localhost; Path=/
35
- - ServerID=1335; Path=/
36
- Vary:
37
- - User-Agent,Accept-Encoding
38
- X-Mashery-Responder:
39
- - prod-j-worker-us-east-1c-19.mashery.com
40
- Content-Length:
41
- - '326'
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
- {"movies":[],"links":{"rel":"http://api.rottentomatoes.com/api/public/v1.0/movies/771189410.json","self":"http://api.rottentomatoes.com/api/public/v1.0/movies/771189410/similar?limit=5"},"link_template":"http://api.rottentomatoes.com/api/public/v1.0/movies/771189410/similar?limit={num_results}"}
77
-
78
- '
79
- http_version:
80
- recorded_at: Thu, 21 Feb 2013 15:44:18 GMT
81
- recorded_with: VCR 2.4.0
@@ -1,50 +0,0 @@
1
- module TestHelpers
2
- String.class_eval do
3
- def is_valid_url?
4
- uri = URI.parse self
5
- uri.kind_of? URI::HTTP
6
- rescue URI::InvalidURIError
7
- false
8
- end
9
- end
10
-
11
- def self.api_key
12
- begin
13
- api_key = ENV.fetch("ROTTEN_TOMATOES_API_KEY")
14
- rescue
15
- api_key_file = File.join(File.expand_path(File.dirname(__FILE__)),
16
- '../config', 'tomato_power_config.yaml')
17
- raise "tomato_power_config not found" unless File.exists?(api_key_file)
18
- ENV["ROTTEN_TOMATOES_API_KEY"] =
19
- YAML::load(File.open(api_key_file))["ROTTEN_TOMATOES_API_KEY"]
20
- end
21
- end
22
-
23
- def self.sample sample_type
24
- case sample_type
25
- when :movie
26
- file = File.join(File.dirname(__FILE__), '../support/sample_data/sample_movie')
27
- when :movies
28
- file = File.join(File.dirname(__FILE__), '../support/sample_data/sample_movies')
29
- when :actor
30
- file = File.join(File.dirname(__FILE__), '../support/sample_data/sample_actor')
31
- when :actors
32
- file = File.join(File.dirname(__FILE__), '../support/sample_data/sample_actors')
33
- when :clip
34
- file = File.join(File.dirname(__FILE__), '../support/sample_data/sample_clip')
35
- when :clips
36
- file = File.join(File.dirname(__FILE__), '../support/sample_data/sample_clips')
37
- when :review
38
- file = File.join(File.dirname(__FILE__), '../support/sample_data/sample_review')
39
- when :reviews
40
- file = File.join(File.dirname(__FILE__), '../support/sample_data/sample_reviews')
41
- when :alias
42
- file = File.join(File.dirname(__FILE__), '../support/sample_data/sample_alias')
43
- when :no_results
44
- file = File.join(File.dirname(__FILE__), '../support/sample_data/no_results')
45
- else
46
- raise ArgumentError.new("Unrecognized type: #{type}")
47
- end
48
- JSON.parse(File.open(file).read)
49
- end
50
- end