imdb_og 0.5.5 → 0.5.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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/imdb_og.gemspec +2 -2
  3. data/lib/imdb/imdb.rb +8 -5
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.5
1
+ 0.5.6
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.5"
8
+ s.version = "0.5.6"
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{2010-03-08}
12
+ s.date = %q{2010-03-15}
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
@@ -56,6 +56,9 @@ class Imdb
56
56
  movie.company = parse_company(info)
57
57
  when "Tagline:"
58
58
  movie.tagline = coder.decode(parse_info(info).strip)
59
+ if movie.tagline
60
+ movie.tagline = movie.tagline.gsub(/\s*see more.*/i, '')
61
+ end
59
62
  when "Runtime:"
60
63
  movie.runtime = parse_info(info).strip
61
64
  if (movie.runtime)
@@ -64,11 +67,11 @@ class Imdb
64
67
  end
65
68
  when "Plot:"
66
69
  movie.plot = parse_info(info).strip
67
- movie.plot = movie.plot.gsub(/\s*\|\s*add synopsis$/, '')
68
- movie.plot = movie.plot.gsub(/\s*\|\s*full synopsis$/, '')
69
- movie.plot = movie.plot.gsub(/\s*\|\s*add summary$/, '')
70
- movie.plot = movie.plot.gsub(/full summary$/, '')
71
- movie.plot = movie.plot.gsub(/more$/, '')
70
+ movie.plot = movie.plot.gsub(/\s*\|\s*add synopsis.*/i, '')
71
+ movie.plot = movie.plot.gsub(/\s*\|\s*full synopsis.*/i, '')
72
+ movie.plot = movie.plot.gsub(/\s*\|\s*add summary.*/i, '')
73
+ movie.plot = movie.plot.gsub(/\s*full summary.*/i, '')
74
+ movie.plot = movie.plot.gsub(/more$/i, '')
72
75
  movie.plot = coder.decode(movie.plot.strip)
73
76
  when "Genre:"
74
77
  movie.genres = parse_genres(info)
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.5
4
+ version: 0.5.6
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: 2010-03-08 00:00:00 -05:00
12
+ date: 2010-03-15 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency