imdb 0.6.2 → 0.6.3
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/VERSION +1 -1
- data/imdb.gemspec +3 -2
- data/lib/imdb.rb +1 -1
- data/lib/imdb/movie.rb +2 -1
- data/spec/fixtures/search_kannethirey_thondrinal +3 -3
- data/spec/fixtures/search_matrix_revolutions +3 -3
- data/spec/fixtures/search_star_trek +153 -148
- data/spec/fixtures/top_250 +68 -98
- data/spec/fixtures/tt0036855 +1204 -0
- data/spec/fixtures/tt0083987 +319 -277
- data/spec/fixtures/tt0095016 +338 -279
- data/spec/fixtures/tt0111161 +317 -282
- data/spec/fixtures/tt0117731 +347 -263
- data/spec/fixtures/tt0242653 +330 -259
- data/spec/fixtures/tt0330508 +256 -207
- data/spec/fixtures/tt1352369 +302 -278
- data/spec/imdb/movie_spec.rb +6 -1
- data/spec/spec_helper.rb +2 -1
- metadata +3 -2
data/spec/imdb/movie_spec.rb
CHANGED
@@ -75,7 +75,7 @@ describe "Imdb::Movie" do
|
|
75
75
|
|
76
76
|
movie.director.should be_an(Array)
|
77
77
|
movie.director.size.should eql(2)
|
78
|
-
movie.director.should include("
|
78
|
+
movie.director.should include("Lana Wachowski")
|
79
79
|
movie.director.should include("Andy Wachowski")
|
80
80
|
end
|
81
81
|
end
|
@@ -98,6 +98,11 @@ describe "Imdb::Movie" do
|
|
98
98
|
movie = Imdb::Movie.new("0083987")
|
99
99
|
movie.plot.should eql("Biography of Mahatma Gandhi, the lawyer who became the famed leader of the Indian revolts against the British through his philosophy of non-violent protest.")
|
100
100
|
end
|
101
|
+
|
102
|
+
it "should not have a 'more' link in the plot" do
|
103
|
+
movie = Imdb::Movie.new("0036855")
|
104
|
+
movie.plot.should eql("Paula's aunt Alice Alquist, a famous entertainer, is murdered in her home. Paula, who lives with her aunt finds the body...")
|
105
|
+
end
|
101
106
|
end
|
102
107
|
|
103
108
|
describe "with no submitted poster" do
|
data/spec/spec_helper.rb
CHANGED
@@ -35,7 +35,8 @@ IMDB_SAMPLES = {
|
|
35
35
|
"http://www.imdb.com:80/chart/top" => "top_250",
|
36
36
|
"http://www.imdb.com/title/tt0111161/" => "tt0111161",
|
37
37
|
"http://www.imdb.com/title/tt1352369/" => "tt1352369",
|
38
|
-
"http://www.imdb.com/title/tt0083987/" => "tt0083987"
|
38
|
+
"http://www.imdb.com/title/tt0083987/" => "tt0083987",
|
39
|
+
"http://www.imdb.com/title/tt0036855/" => "tt0036855"
|
39
40
|
}
|
40
41
|
|
41
42
|
unless ENV['LIVE_TEST']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ariejan de Vroom
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-25 00:00:00 +01:00
|
13
13
|
default_executable: imdb
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -84,6 +84,7 @@ files:
|
|
84
84
|
- spec/fixtures/search_matrix_revolutions
|
85
85
|
- spec/fixtures/search_star_trek
|
86
86
|
- spec/fixtures/top_250
|
87
|
+
- spec/fixtures/tt0036855
|
87
88
|
- spec/fixtures/tt0083987
|
88
89
|
- spec/fixtures/tt0095016
|
89
90
|
- spec/fixtures/tt0111161
|