royw-dvdprofiler_collection 0.1.3 → 0.1.4

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.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 3
2
+ :patch: 4
3
3
  :major: 0
4
4
  :minor: 1
@@ -175,6 +175,7 @@ class Collection
175
175
  dvd_hash[:boxset] = dvd[:boxset] unless dvd[:boxset].blank?
176
176
  dvd_hash[:mediatypes] = dvd[:mediatypes] unless dvd[:mediatypes].blank?
177
177
  dvd_hash[:format] = dvd[:format] unless dvd[:format].blank?
178
+ dvd_hash[:originaltitle] = dvd[:originaltitle] unless dvd[:originaltitle].blank?
178
179
  dvd_hash
179
180
  end
180
181
 
@@ -26,6 +26,8 @@ class DvdprofilerProfile
26
26
  # :isbn_dvd_hash, :title_isbn_hash, :isbn_title_hash
27
27
  result = []
28
28
 
29
+ options[:year] = (options[:year].to_i > 0 ? options[:year] : nil) unless options[:year].blank?
30
+
29
31
  # try finding by isbn first
30
32
  if options.has_key?(:isbn) && !options[:isbn].blank?
31
33
  dvd_hash = collection.isbn_dvd_hash[options[:isbn]]
@@ -96,8 +98,8 @@ class DvdprofilerProfile
96
98
  def initialize(dvd_hash, isbn, title, logger)
97
99
  @dvd_hash = dvd_hash
98
100
  @isbn = isbn
99
- @title = title
100
- @title ||= @dvd_hash[:title]
101
+ @title = @dvd_hash[:title]
102
+ @title ||= title
101
103
  @logger = OptionalLogger.new(logger)
102
104
  end
103
105
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: royw-dvdprofiler_collection
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