imdb_og 0.5.2 → 0.5.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 CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
data/imdb_og.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{imdb_og}
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jon Maddox"]
12
- s.date = %q{2009-11-28}
12
+ s.date = %q{2010-01-16}
13
13
  s.description = %q{Simple library to look up movies on IMDB}
14
14
  s.email = %q{jon@mustacheinc.com}
15
15
  s.extra_rdoc_files = [
data/lib/imdb/imdb.rb CHANGED
@@ -32,7 +32,7 @@ class Imdb
32
32
  movie.imdb_id = id
33
33
  movie.title = coder.decode(data.at("meta[@name='title']")['content'].gsub(/\((\d{4}(\/[^)]*)?|[A-Z]+)\)/,'').strip)
34
34
 
35
- rating_text = (data/"div.rating/div.meta/b").inner_text
35
+ rating_text = (data/"div.starbar-meta/b").inner_text
36
36
  if rating_text =~ /([\d\.]+)\/10/
37
37
  movie.rating = $1
38
38
  end
data/test/imdb_test.rb CHANGED
@@ -119,11 +119,12 @@ class ImdbTest < Test::Unit::TestCase
119
119
  assert_equal 'Git (Lab Rat) (voice)', @movie.actors[14].role
120
120
  end
121
121
 
122
- should "have five genres" do
123
- assert_equal 3, @movie.genres.length
122
+ should "have four genres" do
123
+ assert_equal 4, @movie.genres.length
124
124
  assert_equal 'Animation', @movie.genres[0].name
125
125
  assert_equal 'Comedy', @movie.genres[1].name
126
126
  assert_equal 'Family', @movie.genres[2].name
127
+ assert_equal 'Fantasy', @movie.genres[3].name
127
128
  end
128
129
 
129
130
  should "have a tagline" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imdb_og
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Maddox
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-28 00:00:00 -05:00
12
+ date: 2010-01-16 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency