spotlite 0.8.5 → 0.8.6
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/spotlite/movie.rb +13 -12
- data/lib/spotlite/version.rb +1 -1
- data/spec/fixtures/movie_find_conan +78 -74
- data/spec/fixtures/movie_find_no_results +77 -73
- data/spec/fixtures/nm0000233/index +1128 -866
- data/spec/fixtures/nm0005132/index +244 -253
- data/spec/fixtures/nm0864666/index +121 -141
- data/spec/fixtures/nm1659547/index +630 -556
- data/spec/fixtures/person_find_conan +78 -74
- data/spec/fixtures/person_find_no_results +77 -73
- data/spec/fixtures/search_name_count_50 +171 -225
- data/spec/fixtures/search_title_count_50 +226 -280
- data/spec/fixtures/tt0002186/index +2470 -706
- data/spec/fixtures/tt0047396/releaseinfo +119 -125
- data/spec/fixtures/tt0112873/index +838 -969
- data/spec/fixtures/tt0120338/technical +117 -123
- data/spec/fixtures/tt0133093/criticreviews +110 -120
- data/spec/fixtures/tt0133093/fullcredits +117 -123
- data/spec/fixtures/tt0133093/index +750 -911
- data/spec/fixtures/tt0133093/keywords +1148 -1226
- data/spec/fixtures/tt0133093/mediaindex_still_frame +97 -90
- data/spec/fixtures/tt0133093/releaseinfo +131 -125
- data/spec/fixtures/tt0133093/trivia +2179 -1513
- data/spec/fixtures/tt0169547/index +873 -1065
- data/spec/fixtures/tt0317248/index +736 -897
- data/spec/fixtures/tt1134629/fullcredits +135 -167
- data/spec/spotlite/movie_spec.rb +2 -2
- data/spec/spotlite/person_spec.rb +1 -1
- metadata +3 -3
data/spec/spotlite/movie_spec.rb
CHANGED
@@ -127,7 +127,7 @@ describe "Spotlite::Movie" do
|
|
127
127
|
it "should return trivia" do
|
128
128
|
@movie.trivia.should be_an(Array)
|
129
129
|
@movie.trivia.size.should be_within(100).of(200)
|
130
|
-
@movie.trivia.should include("Nicolas Cage turned down the part of Neo because of family commitments.
|
130
|
+
@movie.trivia.should include("Nicolas Cage turned down the part of Neo because of family commitments. Tom Cruise was also considered.")
|
131
131
|
@movie.trivia.should include("Carrie-Anne Moss twisted her ankle while shooting one of her scenes but decided not to tell anyone until after filming, so they wouldn't re-cast her.")
|
132
132
|
@movie.trivia.should include("Gary Oldman was considered as Morpheus at one point, as well as Samuel L. Jackson.")
|
133
133
|
end
|
@@ -193,7 +193,7 @@ describe "Spotlite::Movie" do
|
|
193
193
|
|
194
194
|
it "should return an array of still frames URLs" do
|
195
195
|
@movie.images.should be_an(Array)
|
196
|
-
@movie.images.size.should
|
196
|
+
@movie.images.size.should be_within(10).of(15)
|
197
197
|
@movie.images.should include(
|
198
198
|
"http://ia.media-imdb.com/images/M/MV5BMjQ4NTAzNTE2OV5BMl5BanBnXkFtZTcwMjU3MTIxNA@@.jpg",
|
199
199
|
"http://ia.media-imdb.com/images/M/MV5BMTAyMDc1MTU0MDBeQTJeQWpwZ15BbWU2MDI5MzU3Nw@@.jpg"
|
@@ -35,7 +35,7 @@ describe "Spotlite::Person" do
|
|
35
35
|
it "should return new style photo URL" do
|
36
36
|
# Carey Mulligan
|
37
37
|
@person = Spotlite::Person.new("1659547")
|
38
|
-
@person.photo_url.should eql("http://ia.media-imdb.com/images/M/
|
38
|
+
@person.photo_url.should eql("http://ia.media-imdb.com/images/M/MV5BMTUzODM0OTY4OF5BMl5BanBnXkFtZTgwMTg3NDk0NzE@.jpg")
|
39
39
|
end
|
40
40
|
|
41
41
|
it "should return nil if photo doesn't exist" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spotlite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Pakk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
151
|
rubyforge_project:
|
152
|
-
rubygems_version: 2.
|
152
|
+
rubygems_version: 2.5.1
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Ruby gem to fetch publicly available information about movies from IMDb
|