elibri_onix 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 695f587e6eee6ea9804909889dc9a61cf108e6fbc79564d9178e6b39873f13c9
4
- data.tar.gz: 460af7593bfa60baa5984118125680f459ea64e17fda35e9cc1a1a955589b0ce
3
+ metadata.gz: 3135609847f6851438db96e89fc9240856364f11a42727bc526f766289ac920d
4
+ data.tar.gz: 150e6197949d9bd3e3f3c0cf2f777aedc96568518dfa6bba318d6416263abccf
5
5
  SHA512:
6
- metadata.gz: af51afa939aa24e5712fce8b56ba1a3bfd04e102c116ff035e6974c68c9e925fbe45cf093a7d10b9a29d06b407ad0d2009d65126fafee223b0418403af690add
7
- data.tar.gz: 041378df54dd07234a7cdf975e6d5c469e943bf4116fa14b9e4332d869c931d2d03eea36cc4f4c2ce8d8e586f8e39118c115b4aceeea05f114ecde0cc3ddd392
6
+ metadata.gz: bf79b0871c694178ee6b64ceeae8e4117da9bbfa1829200143a709698c052fbfbc238397e5d8ba9553424b273704c441830e841ecd5f7e9375d111bfcd0b6342
7
+ data.tar.gz: 9d29b0ae58a1f91b701e406e9bf0e5af4973bde3bd4d167e29b9b467bb10867f2b978b71fcdfa8857227e3cc2c7d040d1edef320bac156bfeb32235922f925cc
@@ -358,7 +358,8 @@ module Elibri
358
358
  if Elibri::ONIX::Dict::Release_3_0::ProductFormCode::find_by_onix_code(simplified_product_form).try!(:digital?)
359
359
  @digital_formats = []
360
360
  data.css("ProductFormDetail").each do |format|
361
- @digital_formats << Elibri::ONIX::Dict::Release_3_0::ProductFormDetail::find_by_onix_code(format.text).name.upcase.gsub("MOBIPOCKET", "MOBI")
361
+ format_name = Elibri::ONIX::Dict::Release_3_0::ProductFormDetail::find_by_onix_code(format.text).try(:name)
362
+ @digital_formats << format_name.upcase.gsub("MOBIPOCKET", "MOBI") if format_name
362
363
  end
363
364
  end
364
365
 
@@ -2,7 +2,7 @@ module Elibri
2
2
  module ONIX
3
3
  z = $VERBOSE
4
4
  $VERBOSE = nil
5
- VERSION = "0.5.5"
5
+ VERSION = "0.5.6"
6
6
  Version = VERSION
7
7
  $VERBOSE = z
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elibri_onix
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
  - Marcin Urbanski