royw-imdb 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/imdb/imdb_profile.rb +3 -0
  3. metadata +2 -2
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 1
3
- :patch: 3
3
+ :patch: 4
4
4
  :major: 0
@@ -161,6 +161,9 @@ class ImdbProfile
161
161
  # 5) released years plus/minus a year
162
162
  # 6) no years
163
163
  def self.lookup(titles, media_years, production_years, released_years)
164
+ media_years = media_years.collect{|y| y > 0 ? y : nil}.uniq.compact unless media_years.blank?
165
+ production_years = production_years.collect{|y| y > 0 ? y : nil}.uniq.compact unless production_years.blank?
166
+ released_years = released_years.collect{|y| y > 0 ? y : nil}.uniq.compact unless released_years.blank?
164
167
  idents = []
165
168
  year_sets = []
166
169
  year_sets << media_years unless media_years.blank?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: royw-imdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roy Wright
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-21 00:00:00 -07:00
12
+ date: 2009-04-22 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency