oddb2xml 2.8.5 → 2.8.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: 96c7d418bddbabef75f36d59dac3bff5210dbc530c59ffddce457f3deb599cfe
4
- data.tar.gz: 349fcd37141ef4703598fdf5badaafdb27a851a5eaaf91bb364ef4ea2a9dbf73
3
+ metadata.gz: 892eeae0f576e5aa6dfe9527d808faa029b4a8a90e83e50ef9b087f168e37968
4
+ data.tar.gz: 0c8a06509c9d4665012719c073fa8019ae9f9bd44a839227e6030df53f9f7cd2
5
5
  SHA512:
6
- metadata.gz: dbd608bc4a32a2098f50ff8519f6ae3f1fae04140aaf779704e98e1a920ed98140a4c04614d1f628f2114b573cefd9b1ea196967de49058605296762f5611260
7
- data.tar.gz: 3261fd42bd5b906a383a98e9d4c247d9db0a15b0a309d679d080c83895a5667fce9d3b3604218cd0c6cca5896fdbba445dc84d80b89700efc016a991cf2ac746
6
+ metadata.gz: c9349ec7a534b13c4b4491f7e4b346b85002ab297323f589ab01896bede277f9a645dacf8f0db415c60b08c9037325f89bfa263cd96006c96b5ee2ba05f1fa58
7
+ data.tar.gz: f4da184586ccf65c93df92e73f93b90f7a2921590480a463829a03b2fec08c4e9416e07a273bfcfa4a380ab0cf2c0f13899cea3282c64254493db92274421258
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oddb2xml (2.8.5)
4
+ oddb2xml (2.8.6)
5
5
  htmlentities
6
6
  httpi
7
7
  mechanize
@@ -386,7 +386,7 @@ module Oddb2xml
386
386
  BASE_URL = "https://www.firstbase.ch"
387
387
  include DownloadMethod
388
388
  def initialize(type = :orphan, options = {})
389
- @url = BASE_URL + "/sites/default/files/2023-09/firstbase_healthcare_public_data-dump%2C%2020230920.xlsx"
389
+ @url = BASE_URL + "/sites/default/files/2023-11/firstbase_healthcare_public_data-dump%2C%2020231109.xlsx"
390
390
  end
391
391
 
392
392
  def download
@@ -602,6 +602,10 @@ module Oddb2xml
602
602
  return data unless @sheet
603
603
  @sheet.each_with_index do |row, i|
604
604
  next if i <= 1
605
+ if row.nil?
606
+ puts "Empty row (#{i}) in firstbase"
607
+ next
608
+ end
605
609
  gtin = row[0].value.to_s.gsub(/^0+/, '')
606
610
  data[gtin] = {
607
611
  gtin: gtin,
@@ -1,3 +1,3 @@
1
1
  module Oddb2xml
2
- VERSION = "2.8.5"
2
+ VERSION = "2.8.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oddb2xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.5
4
+ version: 2.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhiro Asaka, Zeno R.R. Davatz, Niklaus Giger