oddb2xml 2.8.5 → 2.8.7

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: f255aeb7b2c0706fc69522415f3529b7d7fbfb974b74643c8d496cf315662959
4
+ data.tar.gz: a2ca7f41f2088e33ea60ffebdccb2b1a9101b1815d467d7fcf7558c650be92b8
5
5
  SHA512:
6
- metadata.gz: dbd608bc4a32a2098f50ff8519f6ae3f1fae04140aaf779704e98e1a920ed98140a4c04614d1f628f2114b573cefd9b1ea196967de49058605296762f5611260
7
- data.tar.gz: 3261fd42bd5b906a383a98e9d4c247d9db0a15b0a309d679d080c83895a5667fce9d3b3604218cd0c6cca5896fdbba445dc84d80b89700efc016a991cf2ac746
6
+ metadata.gz: f220531cc5947e2a2a9286256b30bdd3cc145a939b34f5c04f2958e470a9a94f8b5f504b609240d9b115ff4afd270a226aa669ebe65591d8d387fd8d516ad55c
7
+ data.tar.gz: 700d8d805fc2e9fd3e3ee27dd7f331b0bd92b44ce0f8b055469f5577fddc9273d6569b320285d86c62c207ed1ab3dba58b82580736d8669a6d163932001a8611
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.7)
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-12/firstbase_healthcare_public_data-dump.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.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhiro Asaka, Zeno R.R. Davatz, Niklaus Giger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-10 00:00:00.000000000 Z
11
+ date: 2023-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip