imdb 0.6.8 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +1 -0
  3. data/.travis.yml +18 -0
  4. data/Gemfile +1 -1
  5. data/README.rdoc +21 -0
  6. data/Rakefile +2 -11
  7. data/imdb.gemspec +4 -4
  8. data/lib/imdb.rb +4 -0
  9. data/lib/imdb/base.rb +191 -0
  10. data/lib/imdb/episode.rb +23 -0
  11. data/lib/imdb/movie.rb +1 -169
  12. data/lib/imdb/movie_list.rb +6 -7
  13. data/lib/imdb/search.rb +9 -9
  14. data/lib/imdb/season.rb +36 -0
  15. data/lib/imdb/serie.rb +23 -0
  16. data/lib/imdb/version.rb +1 -1
  17. data/spec/fixtures/plotsummary +975 -0
  18. data/spec/fixtures/search_kannethirey_thondrinal +773 -10
  19. data/spec/fixtures/search_killed_wife +771 -10
  20. data/spec/fixtures/search_star_trek +705 -762
  21. data/spec/fixtures/synopsis +1036 -0
  22. data/spec/fixtures/thewalkingdead-s1 +1295 -0
  23. data/spec/fixtures/thewalkingdead-s1e2 +1232 -0
  24. data/spec/fixtures/top_250 +470 -754
  25. data/spec/fixtures/tt0036855 +541 -366
  26. data/spec/fixtures/tt0083987 +553 -368
  27. data/spec/fixtures/tt0095016 +572 -394
  28. data/spec/fixtures/tt0110912 +578 -376
  29. data/spec/fixtures/tt0111161 +549 -388
  30. data/spec/fixtures/tt0117731 +534 -387
  31. data/spec/fixtures/tt0166222 +1795 -1694
  32. data/spec/fixtures/tt0242653 +544 -352
  33. data/spec/fixtures/tt0330508 +1553 -1474
  34. data/spec/fixtures/tt0468569 +603 -413
  35. data/spec/fixtures/tt1401252 +446 -381
  36. data/spec/fixtures/tt1520211 +1460 -0
  37. data/spec/imdb/cli_spec.rb +7 -7
  38. data/spec/imdb/episode_spec.rb +39 -0
  39. data/spec/imdb/movie_spec.rb +32 -22
  40. data/spec/imdb/search_spec.rb +16 -36
  41. data/spec/imdb/season_spec.rb +19 -0
  42. data/spec/imdb/series_spec.rb +21 -0
  43. data/spec/spec_helper.rb +9 -10
  44. metadata +92 -41
  45. data/spec/spec.opts +0 -1
@@ -2,15 +2,15 @@ require 'spec_helper'
2
2
  require 'imdb/cli'
3
3
 
4
4
  describe Imdb::CLI, "execute" do
5
-
5
+
6
6
  describe "yield search results" do
7
7
  before(:each) do
8
8
  @stdout_io = StringIO.new
9
- Imdb::CLI.execute(@stdout_io, ["Star Trek"])
9
+ Imdb::CLI.execute(@stdout_io, ["Star Trek: TOS"])
10
10
  @stdout_io.rewind
11
11
  @stdout = @stdout_io.read
12
12
  end
13
-
13
+
14
14
  it "report data" do
15
15
  @stdout.should =~ /0060028/
16
16
  @stdout.should =~ /Star Trek/
@@ -25,13 +25,13 @@ describe Imdb::CLI, "execute" do
25
25
  @stdout_io.rewind
26
26
  @stdout = @stdout_io.read
27
27
  end
28
-
28
+
29
29
  it "report data" do
30
30
  @stdout.should =~ /Star Trek\: First Contact \(1996\)/
31
31
  @stdout.should =~ /Jonathan Frakes/
32
32
  end
33
33
  end
34
-
34
+
35
35
  describe "yield one movie with an URL" do
36
36
  before(:each) do
37
37
  @stdout_io = StringIO.new
@@ -39,11 +39,11 @@ describe Imdb::CLI, "execute" do
39
39
  @stdout_io.rewind
40
40
  @stdout = @stdout_io.read
41
41
  end
42
-
42
+
43
43
  it "report data" do
44
44
  @stdout.should =~ /Star Trek\: First Contact \(1996\)/
45
45
  @stdout.should =~ /Jonathan Frakes/
46
46
  end
47
-
47
+
48
48
  end
49
49
  end
@@ -0,0 +1,39 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Imdb::Episode" do
4
+ before(:each) do
5
+ @serie = Imdb::Serie.new("1520211")
6
+ @season = @serie.seasons.first
7
+ @episode = @season.episode(2)
8
+ end
9
+
10
+ it "has a imdb_id" do
11
+ @episode.id.should == '1628064'
12
+ end
13
+
14
+ it "has a url" do
15
+ @episode.url.should == "http://akas.imdb.com/title/tt1628064/combined"
16
+ end
17
+
18
+ it "has an episode title" do
19
+ @episode.title.should =~ /Guts/i
20
+ end
21
+
22
+ it "has the season number" do
23
+ @episode.season.should == 1
24
+ end
25
+
26
+ it "has the episode number" do
27
+ @episode.episode.should == 2
28
+ end
29
+
30
+ it "has a plot" do
31
+ @episode.plot.should =~ /Rick finds himself trapped, with other survivors, inside a department store, surrounded by zombies/
32
+ end
33
+
34
+ it "has a original air data" do
35
+ @episode.air_date.should eql("7 November 2010")
36
+ end
37
+ end
38
+
39
+
@@ -22,10 +22,10 @@ describe "Imdb::Movie" do
22
22
  cast.should include("Bonnie Bedelia")
23
23
  cast.should include("Alan Rickman")
24
24
  end
25
-
25
+
26
26
  it "should find the cast characters" do
27
27
  char = @movie.cast_characters
28
-
28
+
29
29
  char.should be_an(Array)
30
30
  char.should include("Karl")
31
31
  char.should include("Officer John McClane")
@@ -37,11 +37,11 @@ describe "Imdb::Movie" do
37
37
  cast = @movie.cast_members
38
38
  char = @movie.cast_characters
39
39
  cast_char = @movie.cast_members_characters
40
-
40
+
41
41
  cast_char[0].should eql("#{cast[0]} => #{char[0]}")
42
42
  cast_char[10].should eql("#{cast[10]} => #{char[10]}")
43
43
  cast_char[-1].should eql("#{cast[-1]} => #{char[-1]}")
44
-
44
+
45
45
  cast_char = @movie.cast_members_characters('as')
46
46
 
47
47
  cast_char[1].should eql("#{cast[1]} as #{char[1]}")
@@ -60,17 +60,16 @@ describe "Imdb::Movie" do
60
60
 
61
61
  it 'should return the imdb actor number for each cast member' do
62
62
  @movie.cast_member_ids.sort.should == [
63
- "nm0000246", "nm0000614", "nm0000889", "nm0000952", "nm0001108", "nm0001817", "nm0005598",
64
- "nm0033749", "nm0040472", "nm0048326", "nm0072054", "nm0094770", "nm0101088", "nm0112505",
65
- "nm0112779", "nm0119594", "nm0127960", "nm0142420", "nm0160690", "nm0162041", "nm0234426",
66
- "nm0236525", "nm0239958", "nm0278010", "nm0296791", "nm0319739", "nm0322339", "nm0324231",
67
- "nm0326276", "nm0338808", "nm0356114", "nm0370729", "nm0383487", "nm0416429", "nm0421114",
68
- "nm0441665", "nm0484360", "nm0484650", "nm0493493", "nm0502959", "nm0503610", "nm0504342",
69
- "nm0539639", "nm0546076", "nm0546747", "nm0662568", "nm0669625", "nm0681604", "nm0687270",
70
- "nm0688235", "nm0718021", "nm0731114", "nm0748041", "nm0776208", "nm0793363", "nm0852311",
71
- "nm0870729", "nm0882139", "nm0902455", "nm0907234", "nm0924636", "nm0936591", "nm0958105",
72
- "nm2476262", "nm2565888"
73
- ].sort
63
+ "nm0000246", "nm0000614", "nm0000889", "nm0000952", "nm0001108", "nm0001817", "nm0005598",
64
+ "nm0033749", "nm0040472", "nm0048326", "nm0072054", "nm0094770", "nm0101088", "nm0112505",
65
+ "nm0112779", "nm0119594", "nm0127960", "nm0142420", "nm0160690", "nm0162041", "nm0234426",
66
+ "nm0236525", "nm0239958", "nm0278010", "nm0296791", "nm0319739", "nm0322339", "nm0324231",
67
+ "nm0326276", "nm0338808", "nm0356114", "nm0370729", "nm0383487", "nm0416429", "nm0421114",
68
+ "nm0441665", "nm0484360", "nm0484650", "nm0493493", "nm0502959", "nm0503610", "nm0504342",
69
+ "nm0539639", "nm0546076", "nm0546747", "nm0662568", "nm0669625", "nm0681604", "nm0687270",
70
+ "nm0688235", "nm0718021", "nm0731114", "nm0776208", "nm0793363", "nm0852311", "nm0870729",
71
+ "nm0882139", "nm0902455", "nm0907234", "nm0924636", "nm0936591", "nm0958105", "nm2143912",
72
+ "nm2476262", "nm2565888"].sort
74
73
  end
75
74
  end
76
75
 
@@ -85,6 +84,10 @@ describe "Imdb::Movie" do
85
84
  @movie.director.first.should =~ /John McTiernan/
86
85
  end
87
86
 
87
+ it "should find the company info" do
88
+ @movie.company.should eql("Twentieth Century Fox Film Corporation")
89
+ end
90
+
88
91
  it "should find the genres" do
89
92
  genres = @movie.genres
90
93
 
@@ -119,11 +122,19 @@ describe "Imdb::Movie" do
119
122
  end
120
123
 
121
124
  it "should find the plot" do
122
- @movie.plot.should eql("New York cop John McClane gives terrorists a dose of their own medicine as they hold hostages in an LA office building.")
125
+ @movie.plot.should eql("John McClane, officer of the NYPD, tries to save wife Holly Gennaro and several others, taken hostage by German terrorist Hans Gruber during a Christmas party at the Nakatomi Plaza in Los Angeles.")
126
+ end
127
+
128
+ it "should find plot synopsis" do
129
+ @movie.plot_synopsis.should =~ /John McClane, a detective with the New York City Police Department, arrives in Los Angeles to attempt a Christmas reunion and reconciliation with his estranged wife Holly, who is attending a party thrown by her employer, the Nakatomi Corporation at its still-unfinished American branch office headquarters, the high-rise Nakatomi Plaza. When McClane refreshes himself from the flight in Holly's corporate room, they have an argument over the use of her maiden name, Gennero, but Holly is called away/
130
+ end
131
+
132
+ it "should find plot summary" do
133
+ @movie.plot_summary.should eql("New York City Detective John McClane has just arrived in Los Angeles to spend Christmas with his wife. Unfortunatly, it is not going to be a Merry Christmas for everyone. A group of terrorists, led by Hans Gruber is holding everyone in the Nakatomi Plaza building hostage. With no way of anyone getting in or out, it's up to McClane to stop them all. All 12!")
123
134
  end
124
135
 
125
136
  it "should find the poster" do
126
- @movie.poster.should eql("http://ia.media-imdb.com/images/M/MV5BMTIxNTY3NjM0OV5BMl5BanBnXkFtZTcwNzg5MzY0MQ@@.jpg")
137
+ @movie.poster.should eql("http://ia.media-imdb.com/images/M/MV5BMTY4ODM0OTc2M15BMl5BanBnXkFtZTcwNzE0MTk3OA@@.jpg")
127
138
  end
128
139
 
129
140
  it "should find the rating" do
@@ -131,7 +142,7 @@ describe "Imdb::Movie" do
131
142
  end
132
143
 
133
144
  it "should find number of votes" do
134
- @movie.votes.should be_close(210000, 100000)
145
+ @movie.votes.should be_within(10000).of(343463)
135
146
  end
136
147
 
137
148
  it "should find the title" do
@@ -160,7 +171,7 @@ describe "Imdb::Movie" do
160
171
  end
161
172
 
162
173
  it "should provide a convenience method to search" do
163
- movies = Imdb::Movie.search("Star Trek")
174
+ movies = Imdb::Movie.search("Star Trek: TOS")
164
175
  movies.should respond_to(:each)
165
176
  movies.each { |movie| movie.should be_an_instance_of(Imdb::Movie) }
166
177
  end
@@ -175,7 +186,7 @@ describe "Imdb::Movie" do
175
186
  describe "plot" do
176
187
  it "should find a correct plot when HTML links are present" do
177
188
  movie = Imdb::Movie.new("0083987")
178
- movie.plot.should eql("Biography of 'Mahatma Gandhi' , the lawyer who became the famed leader of the Indian revolts against the British rule through his philosophy of non-violent protest.")
189
+ movie.plot.should eql("Biography of Mohandas K. Gandhi, the lawyer who became the famed leader of the Indian revolts against the British rule through his philosophy of non-violent protest.")
179
190
  end
180
191
 
181
192
  it "should not have a 'more' link in the plot" do
@@ -217,8 +228,7 @@ describe "Imdb::Movie" do
217
228
 
218
229
  it "should return the release date for movies" do
219
230
  movie = Imdb::Movie.new('0111161')
220
- # FIXME: this date is geo-localized, leading to false positives
221
- movie.release_date.should eql("2 March 1995 (Netherlands)")
231
+ movie.release_date.should eql("14 October 1994 (USA)")
222
232
  end
223
233
  end
224
234
 
@@ -1,77 +1,57 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe "Imdb::Search with multiple search results" do
4
-
4
+
5
5
  before(:each) do
6
- @search = Imdb::Search.new("Star Trek")
6
+ @search = Imdb::Search.new("Star Trek: TOS")
7
7
  end
8
8
 
9
9
  it "should remember the query" do
10
- @search.query.should == "Star Trek"
10
+ @search.query.should == "Star Trek: TOS"
11
11
  end
12
-
13
- it "should find > 10 results" do
14
- @search.movies.size.should > 10
12
+
13
+ it "should find 2 results" do
14
+ @search.movies.size.should eql(2)
15
15
  end
16
-
16
+
17
17
  it "should return Imdb::Movie objects only" do
18
18
  @search.movies.each { |movie| movie.should be_an(Imdb::Movie) }
19
19
  end
20
-
20
+
21
21
  it "should not return movies with no title" do
22
22
  @search.movies.each { |movie| movie.title.should_not be_blank }
23
23
  end
24
-
24
+
25
25
  it "should return only the title of the result" do
26
- @search.movies.first.title.should eql("Star Trek (1966) (TV series)")
27
- end
28
-
29
- it "should return aka titles as well" do
30
- alt_titles = [
31
- '"Star Trek: TOS" - USA (promotional abbreviation)',
32
- '"Star Trek: The Original Series" - USA (informal title)',
33
- '"Viaje a las estrellas" - Argentina, Mexico',
34
- '"Jornada nas Estrelas" - Brazil',
35
- '"La conquista del espacio" - Spain',
36
- '"La patrouille du cosmos" - Canada (French title)',
37
- '"Raumschiff Enterprise" - West Germany',
38
- '"Star Trek" - France',
39
- '"Star Trek" - Greece',
40
- '"Star Trek" - Italy',
41
- '"Star Trek: The Original Series" - Spain',
42
- '"Uchuu Daisakusen" - Japan (first season title)',
43
- '"Uzay yolu" - Turkey (Turkish title)']
44
-
45
- alt_titles.each { |aka| @search.movies.first.also_known_as.should include(aka) }
26
+ @search.movies.first.title.should eql("Star Trek (1966) (TV Series)")
46
27
  end
47
-
48
28
  end
49
29
 
50
30
  describe "Imdb::Search with an exact match and no poster" do
51
-
31
+
52
32
  it "should not raise an exception" do
53
33
  lambda {
54
34
  @search = Imdb::Search.new("Kannethirey Thondrinal").movies
55
35
  }.should_not raise_error
56
36
  end
57
-
37
+
58
38
  it "should return the movie id correctly" do
59
39
  @search = Imdb::Search.new("Kannethirey Thondrinal")
60
40
  @search.movies.first.id.should eql("0330508")
61
41
  end
62
-
42
+
63
43
  end
64
44
 
65
45
  describe "Imdb::Search with an exact match" do
66
-
46
+
67
47
  before(:each) do
68
48
  @search = Imdb::Search.new("I killed my lesbian wife")
69
49
  end
70
-
50
+
71
51
  it "should find one result" do
72
52
  @search.movies.size.should eql(1)
73
53
  end
74
-
54
+
75
55
  it "should have the corrected title" do
76
56
  @search.movies.first.title.should =~ /I Killed My Lesbian Wife/i
77
57
  end
@@ -0,0 +1,19 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Imdb::Season" do
4
+ before(:each) do
5
+ @serie = Imdb::Serie.new("1520211")
6
+ @season = @serie.seasons.first
7
+ end
8
+
9
+ it "has 6 episodes" do
10
+ @season.episodes.size.should eql(6)
11
+ end
12
+
13
+ it "can fetch a specific episode" do
14
+ @season.episode(1).title.should =~ /Days Gone By/i
15
+ @season.episode(1).episode.should == 1
16
+ @season.episode(1).season.should == 1
17
+ end
18
+ end
19
+
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Imdb::Serie" do
4
+ before(:each) do
5
+ @serie = Imdb::Serie.new("1520211")
6
+ end
7
+
8
+ # Double check from Base.
9
+ it "should find title" do
10
+ @serie.title.should =~ /The Walking Dead/
11
+ end
12
+
13
+ it "reports the number of seasons" do
14
+ @serie.seasons.size.should eql(3)
15
+ end
16
+
17
+ it "can fetch a specific season" do
18
+ @serie.season(1).season_number.should == 1
19
+ @serie.season(1).episodes.size.should == 6
20
+ end
21
+ end
data/spec/spec_helper.rb CHANGED
@@ -8,13 +8,7 @@
8
8
  # no changes to the IMDB.com interface have affected the parser.
9
9
  ###
10
10
 
11
- begin
12
- require 'spec'
13
- rescue LoadError
14
- require 'rubygems'
15
- gem 'rspec'
16
- require 'spec'
17
- end
11
+ require 'rspec'
18
12
 
19
13
  $:.unshift(File.dirname(__FILE__) + '/../lib')
20
14
  require 'imdb'
@@ -23,13 +17,15 @@ def read_fixture(path)
23
17
  File.read(File.expand_path(File.join(File.dirname(__FILE__), "fixtures", path)))
24
18
  end
25
19
 
26
- IMDB_SAMPLES = {
20
+ IMDB_SAMPLES = {
27
21
  "http://akas.imdb.com:80/find?q=Kannethirey+Thondrinal;s=tt" => "search_kannethirey_thondrinal",
28
22
  "http://akas.imdb.com/title/tt0330508/?fr=c2M9MXxsbT01MDB8ZmI9dXx0dD0xfG14PTIwfGh0bWw9MXxjaD0xfGNvPTF8cG49MHxmdD0xfGt3PTF8cXM9S2FubmV0aGlyZXkgVGhvbmRyaW5hbHxzaXRlPWFrYXxxPUthbm5ldGhpcmV5IFRob25kcmluYWx8bm09MQ__;fc=1;ft=1" => "tt0330508",
29
23
  "http://akas.imdb.com:80/find?q=I+killed+my+lesbian+wife;s=tt" => "search_killed_wife",
30
- "http://akas.imdb.com:80/find?q=Star+Trek;s=tt" => "search_star_trek",
24
+ "http://akas.imdb.com/find?q=Star+Trek%3A+TOS;s=tt" => "search_star_trek",
31
25
  "http://akas.imdb.com:80/title/tt0117731/combined" => "tt0117731",
32
26
  "http://akas.imdb.com:80/title/tt0095016/combined" => "tt0095016",
27
+ "http://akas.imdb.com/title/tt0095016/synopsis" => "synopsis",
28
+ "http://akas.imdb.com/title/tt0095016/plotsummary" => "plotsummary",
33
29
  "http://akas.imdb.com:80/title/tt0242653/combined" => "tt0242653",
34
30
  "http://akas.imdb.com/title/tt0166222/?fr=c2M9MXxsbT01MDB8ZmI9dXx0dD0xfG14PTIwfGh0bWw9MXxjaD0xfGNvPTF8cG49MHxmdD0xfGt3PTF8cXM9SSBraWxsZWQgbXkgbGVzYmlhbiB3aWZlfHNpdGU9YWthfHE9SSBraWxsZWQgbXkgbGVzYmlhbiB3aWZlfG5tPTE_;fc=1;ft=7" => "tt0166222",
35
31
  "http://akas.imdb.com:80/chart/top" => "top_250",
@@ -39,13 +35,16 @@ IMDB_SAMPLES = {
39
35
  "http://akas.imdb.com/title/tt0036855/combined" => "tt0036855",
40
36
  "http://akas.imdb.com/title/tt0110912/combined" => "tt0110912",
41
37
  "http://akas.imdb.com/title/tt0468569/combined" => "tt0468569",
38
+ "http://akas.imdb.com/title/tt1520211/combined" => "tt1520211",
39
+ "http://akas.imdb.com/title/tt1520211/episodes?season=1" => "thewalkingdead-s1",
40
+ "http://akas.imdb.com/title/tt1628064/combined" => "thewalkingdead-s1e2"
42
41
  }
43
42
 
44
43
  unless ENV['LIVE_TEST']
45
44
  begin
46
45
  require 'rubygems'
47
46
  require 'fakeweb'
48
-
47
+
49
48
  FakeWeb.allow_net_connect = false
50
49
  IMDB_SAMPLES.each do |url, response|
51
50
  FakeWeb.register_uri(:get, url, :response => read_fixture(response))
metadata CHANGED
@@ -1,82 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
5
- prerelease:
4
+ version: 0.7.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ariejan de Vroom
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2011-12-04 00:00:00.000000000 Z
11
+ date: 2013-02-26 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: hpricot
16
- requirement: &17336340 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: 0.8.4
19
+ version: 0.8.6
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *17336340
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.8.6
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: rake
27
- requirement: &17335800 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ~>
31
32
  - !ruby/object:Gem::Version
32
- version: 0.9.2
33
+ version: 10.0.3
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *17335800
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 10.0.3
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: rspec
38
- requirement: &17335340 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
45
  - - ~>
42
46
  - !ruby/object:Gem::Version
43
- version: 1.3.2
47
+ version: 2.13.0
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *17335340
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 2.13.0
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: gokdok
49
- requirement: &17334940 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ! '>='
59
+ - - '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  type: :development
56
63
  prerelease: false
57
- version_requirements: *17334940
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: rdoc
60
- requirement: &17334380 !ruby/object:Gem::Requirement
61
- none: false
71
+ requirement: !ruby/object:Gem::Requirement
62
72
  requirements:
63
73
  - - ~>
64
74
  - !ruby/object:Gem::Version
65
- version: '3.11'
75
+ version: '4.0'
66
76
  type: :development
67
77
  prerelease: false
68
- version_requirements: *17334380
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '4.0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: fakeweb
71
- requirement: &17333940 !ruby/object:Gem::Requirement
72
- none: false
85
+ requirement: !ruby/object:Gem::Requirement
73
86
  requirements:
74
- - - ! '>='
87
+ - - '>='
75
88
  - !ruby/object:Gem::Version
76
89
  version: '0'
77
90
  type: :development
78
91
  prerelease: false
79
- version_requirements: *17333940
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
80
97
  description: Easily use Ruby or the command line to find information on IMDB.com.
81
98
  email:
82
99
  - ariejan@ariejan.net
@@ -86,6 +103,8 @@ extensions: []
86
103
  extra_rdoc_files: []
87
104
  files:
88
105
  - .gitignore
106
+ - .rspec
107
+ - .travis.yml
89
108
  - Gemfile
90
109
  - History.txt
91
110
  - Manifest.txt
@@ -95,19 +114,27 @@ files:
95
114
  - config/website.yml
96
115
  - imdb.gemspec
97
116
  - lib/imdb.rb
117
+ - lib/imdb/base.rb
98
118
  - lib/imdb/cli.rb
119
+ - lib/imdb/episode.rb
99
120
  - lib/imdb/movie.rb
100
121
  - lib/imdb/movie_list.rb
101
122
  - lib/imdb/search.rb
123
+ - lib/imdb/season.rb
124
+ - lib/imdb/serie.rb
102
125
  - lib/imdb/string_extensions.rb
103
126
  - lib/imdb/top_250.rb
104
127
  - lib/imdb/version.rb
105
128
  - script/console
106
129
  - script/destroy
107
130
  - script/generate
131
+ - spec/fixtures/plotsummary
108
132
  - spec/fixtures/search_kannethirey_thondrinal
109
133
  - spec/fixtures/search_killed_wife
110
134
  - spec/fixtures/search_star_trek
135
+ - spec/fixtures/synopsis
136
+ - spec/fixtures/thewalkingdead-s1
137
+ - spec/fixtures/thewalkingdead-s1e2
111
138
  - spec/fixtures/top_250
112
139
  - spec/fixtures/tt0036855
113
140
  - spec/fixtures/tt0083987
@@ -120,42 +147,66 @@ files:
120
147
  - spec/fixtures/tt0330508
121
148
  - spec/fixtures/tt0468569
122
149
  - spec/fixtures/tt1401252
150
+ - spec/fixtures/tt1520211
123
151
  - spec/imdb/cli_spec.rb
152
+ - spec/imdb/episode_spec.rb
124
153
  - spec/imdb/movie_spec.rb
125
154
  - spec/imdb/search_spec.rb
155
+ - spec/imdb/season_spec.rb
156
+ - spec/imdb/series_spec.rb
126
157
  - spec/imdb/top_250_spec.rb
127
- - spec/spec.opts
128
158
  - spec/spec_helper.rb
129
159
  - tasks/fixtures.rake
130
160
  - tasks/rspec.rake
131
161
  homepage: http://github.com/ariejan/imdb
132
162
  licenses: []
163
+ metadata: {}
133
164
  post_install_message:
134
165
  rdoc_options: []
135
166
  require_paths:
136
167
  - lib
137
168
  required_ruby_version: !ruby/object:Gem::Requirement
138
- none: false
139
169
  requirements:
140
- - - ! '>='
170
+ - - '>='
141
171
  - !ruby/object:Gem::Version
142
172
  version: '0'
143
- segments:
144
- - 0
145
- hash: 713179150627652883
146
173
  required_rubygems_version: !ruby/object:Gem::Requirement
147
- none: false
148
174
  requirements:
149
- - - ! '>='
175
+ - - '>='
150
176
  - !ruby/object:Gem::Version
151
177
  version: '0'
152
- segments:
153
- - 0
154
- hash: 713179150627652883
155
178
  requirements: []
156
179
  rubyforge_project: imdb
157
- rubygems_version: 1.8.11
180
+ rubygems_version: 2.0.0
158
181
  signing_key:
159
- specification_version: 3
182
+ specification_version: 4
160
183
  summary: Easily access the publicly available information on IMDB.
161
- test_files: []
184
+ test_files:
185
+ - spec/fixtures/plotsummary
186
+ - spec/fixtures/search_kannethirey_thondrinal
187
+ - spec/fixtures/search_killed_wife
188
+ - spec/fixtures/search_star_trek
189
+ - spec/fixtures/synopsis
190
+ - spec/fixtures/thewalkingdead-s1
191
+ - spec/fixtures/thewalkingdead-s1e2
192
+ - spec/fixtures/top_250
193
+ - spec/fixtures/tt0036855
194
+ - spec/fixtures/tt0083987
195
+ - spec/fixtures/tt0095016
196
+ - spec/fixtures/tt0110912
197
+ - spec/fixtures/tt0111161
198
+ - spec/fixtures/tt0117731
199
+ - spec/fixtures/tt0166222
200
+ - spec/fixtures/tt0242653
201
+ - spec/fixtures/tt0330508
202
+ - spec/fixtures/tt0468569
203
+ - spec/fixtures/tt1401252
204
+ - spec/fixtures/tt1520211
205
+ - spec/imdb/cli_spec.rb
206
+ - spec/imdb/episode_spec.rb
207
+ - spec/imdb/movie_spec.rb
208
+ - spec/imdb/search_spec.rb
209
+ - spec/imdb/season_spec.rb
210
+ - spec/imdb/series_spec.rb
211
+ - spec/imdb/top_250_spec.rb
212
+ - spec/spec_helper.rb