spotlite 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/spotlite/movie.rb +9 -0
- data/lib/spotlite/string_extensions.rb +5 -0
- data/lib/spotlite/version.rb +1 -1
- data/spec/fixtures/tt0133093/taglines +1274 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/spotlite/movie_spec.rb +8 -0
- metadata +4 -2
data/spec/spec_helper.rb
CHANGED
@@ -16,6 +16,7 @@ IMDB_SAMPLES = {
|
|
16
16
|
'http://www.imdb.com/title/tt0133093/keywords' => 'tt0133093/keywords',
|
17
17
|
'http://www.imdb.com/title/tt0133093/releaseinfo' => 'tt0133093/releaseinfo',
|
18
18
|
'http://www.imdb.com/title/tt0133093/trivia' => 'tt0133093/trivia',
|
19
|
+
'http://www.imdb.com/title/tt0133093/taglines' => 'tt0133093/taglines',
|
19
20
|
'http://www.imdb.com/title/tt0133093/criticreviews' => 'tt0133093/criticreviews',
|
20
21
|
'http://www.imdb.com/title/tt0120338/technical' => 'tt0120338/technical',
|
21
22
|
'http://www.imdb.com/title/tt0317248/' => 'tt0317248/index',
|
data/spec/spotlite/movie_spec.rb
CHANGED
@@ -132,6 +132,14 @@ describe "Spotlite::Movie" do
|
|
132
132
|
@movie.trivia.should include("Gary Oldman was considered as Morpheus at one point, as well as Samuel L. Jackson.")
|
133
133
|
end
|
134
134
|
|
135
|
+
it "should return taglines" do
|
136
|
+
@movie.taglines.should be_an(Array)
|
137
|
+
@movie.taglines.size.should be_within(10).of(15)
|
138
|
+
@movie.taglines.should include("Free your mind")
|
139
|
+
@movie.taglines.should include("The Matrix has you.")
|
140
|
+
@movie.taglines.should include("The Future isn't user friendly...")
|
141
|
+
end
|
142
|
+
|
135
143
|
describe "release dates" do
|
136
144
|
it "should return release dates" do
|
137
145
|
# Rear Window (1954)
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Pakk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -120,6 +120,7 @@ files:
|
|
120
120
|
- spec/fixtures/tt0133093/keywords
|
121
121
|
- spec/fixtures/tt0133093/mediaindex_still_frame
|
122
122
|
- spec/fixtures/tt0133093/releaseinfo
|
123
|
+
- spec/fixtures/tt0133093/taglines
|
123
124
|
- spec/fixtures/tt0133093/trivia
|
124
125
|
- spec/fixtures/tt0169547/index
|
125
126
|
- spec/fixtures/tt0317248/index
|
@@ -174,6 +175,7 @@ test_files:
|
|
174
175
|
- spec/fixtures/tt0133093/keywords
|
175
176
|
- spec/fixtures/tt0133093/mediaindex_still_frame
|
176
177
|
- spec/fixtures/tt0133093/releaseinfo
|
178
|
+
- spec/fixtures/tt0133093/taglines
|
177
179
|
- spec/fixtures/tt0133093/trivia
|
178
180
|
- spec/fixtures/tt0169547/index
|
179
181
|
- spec/fixtures/tt0317248/index
|