spotlite 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/README.md +2 -2
- data/lib/spotlite/movie.rb +13 -25
- data/lib/spotlite/version.rb +1 -1
- data/spec/fixtures/tt0002186/index +1533 -1734
- data/spec/fixtures/tt0047396/releaseinfo +61 -55
- data/spec/fixtures/tt0133093/fullcredits +55 -56
- data/spec/fixtures/tt0133093/index +3691 -2175
- data/spec/fixtures/tt0133093/keywords +54 -55
- data/spec/fixtures/tt0133093/releaseinfo +58 -59
- data/spec/fixtures/tt0133093/trivia +248 -283
- data/spec/fixtures/tt0169547/index +3612 -2143
- data/spec/fixtures/tt0317248/index +3721 -2158
- data/spec/spotlite/movie_spec.rb +0 -4
- data/tasks/fixtures.rake +1 -1
- metadata +2 -2
data/spec/spotlite/movie_spec.rb
CHANGED
@@ -66,10 +66,6 @@ describe "Spotlite::Movie" do
|
|
66
66
|
@movie.runtime.should eql(136)
|
67
67
|
end
|
68
68
|
|
69
|
-
it "should return MPAA content rating" do
|
70
|
-
@movie.content_rating.should eql({:code => "R", :description => "Rated R for sci-fi violence and brief language"})
|
71
|
-
end
|
72
|
-
|
73
69
|
describe "poster URL" do
|
74
70
|
it "should return old style poster URL" do
|
75
71
|
@movie.poster_url.should eql("http://ia.media-imdb.com/images/M/MV5BMjEzNjg1NTg2NV5BMl5BanBnXkFtZTYwNjY3MzQ5.jpg")
|
data/tasks/fixtures.rake
CHANGED
@@ -4,7 +4,7 @@ namespace :fixtures do
|
|
4
4
|
require File.expand_path(File.dirname(__FILE__) + "/../spec/spec_helper")
|
5
5
|
|
6
6
|
IMDB_SAMPLES.each_pair do |url, fixture|
|
7
|
-
page = `curl -is #{url}`
|
7
|
+
page = `curl -is #{url} --header "Accept-Language: en-us"`
|
8
8
|
|
9
9
|
File.open(File.expand_path(File.dirname(__FILE__) + "/../spec/fixtures/#{fixture}"), 'w') do |f|
|
10
10
|
f.write(page)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spotlite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-02-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|