imdb 0.8.1 → 0.8.2

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.
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'spec_helper'
4
4
 
5
+
5
6
  # This test uses "Die hard (1988)" as a testing sample:
6
7
  #
7
8
  # http://akas.imdb.com/title/tt0095016/combined
@@ -170,8 +171,19 @@ describe "Imdb::Movie" do
170
171
  movie.director.should include("Lana Wachowski")
171
172
  movie.director.should include("Andy Wachowski")
172
173
  end
174
+
175
+ it "should find writers" do
176
+ # Waar (2013)
177
+ movie = Imdb::Movie.new("1821700")
178
+
179
+ movie.writers.should be_an(Array)
180
+ movie.writers.size.should eql(1)
181
+ movie.writers.should include("Hassan Waqas Rana")
182
+ end
173
183
  end
174
-
184
+
185
+
186
+
175
187
  it "should find multiple filming locations" do
176
188
  filming_locations = @movie.filming_locations
177
189
  filming_locations.should be_an(Array)
@@ -29,6 +29,8 @@ IMDB_SAMPLES = {
29
29
  "http://akas.imdb.com/title/tt0095016/locations" => "locations",
30
30
  "http://akas.imdb.com/title/tt0095016/releaseinfo" => "releaseinfo",
31
31
  "http://akas.imdb.com:80/title/tt0242653/combined" => "tt0242653",
32
+ "http://akas.imdb.com:80/title/tt1821700/combined" => "tt1821700",
33
+ "http://akas.imdb.com/title/tt1821700/fullcredits" => "fullcredits",
32
34
  "http://akas.imdb.com/title/tt0166222/?fr=c2M9MXxsbT01MDB8ZmI9dXx0dD0xfG14PTIwfGh0bWw9MXxjaD0xfGNvPTF8cG49MHxmdD0xfGt3PTF8cXM9SSBraWxsZWQgbXkgbGVzYmlhbiB3aWZlfHNpdGU9YWthfHE9SSBraWxsZWQgbXkgbGVzYmlhbiB3aWZlfG5tPTE_;fc=1;ft=7" => "tt0166222",
33
35
  "http://akas.imdb.com:80/chart/top" => "top_250",
34
36
  "http://akas.imdb.com/title/tt0111161/combined" => "tt0111161",
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariejan de Vroom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-31 00:00:00.000000000 Z
11
+ date: 2014-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.6.0
19
+ version: 1.6.2.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.6.0
26
+ version: 1.6.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -128,6 +128,7 @@ files:
128
128
  - script/console
129
129
  - script/destroy
130
130
  - script/generate
131
+ - spec/fixtures/fullcredits
131
132
  - spec/fixtures/locations
132
133
  - spec/fixtures/plotsummary
133
134
  - spec/fixtures/releaseinfo
@@ -152,6 +153,7 @@ files:
152
153
  - spec/fixtures/tt0898266
153
154
  - spec/fixtures/tt1401252
154
155
  - spec/fixtures/tt1520211
156
+ - spec/fixtures/tt1821700
155
157
  - spec/fixtures/wall_e_search
156
158
  - spec/imdb/cli_spec.rb
157
159
  - spec/imdb/episode_spec.rb
@@ -187,6 +189,7 @@ signing_key:
187
189
  specification_version: 4
188
190
  summary: Easily access the publicly available information on IMDB.
189
191
  test_files:
192
+ - spec/fixtures/fullcredits
190
193
  - spec/fixtures/locations
191
194
  - spec/fixtures/plotsummary
192
195
  - spec/fixtures/releaseinfo
@@ -211,6 +214,7 @@ test_files:
211
214
  - spec/fixtures/tt0898266
212
215
  - spec/fixtures/tt1401252
213
216
  - spec/fixtures/tt1520211
217
+ - spec/fixtures/tt1821700
214
218
  - spec/fixtures/wall_e_search
215
219
  - spec/imdb/cli_spec.rb
216
220
  - spec/imdb/episode_spec.rb