oddb2xml 2.8.5 → 2.8.6
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/oddb2xml/downloader.rb +1 -1
- data/lib/oddb2xml/extractor.rb +4 -0
- data/lib/oddb2xml/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 892eeae0f576e5aa6dfe9527d808faa029b4a8a90e83e50ef9b087f168e37968
|
4
|
+
data.tar.gz: 0c8a06509c9d4665012719c073fa8019ae9f9bd44a839227e6030df53f9f7cd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9349ec7a534b13c4b4491f7e4b346b85002ab297323f589ab01896bede277f9a645dacf8f0db415c60b08c9037325f89bfa263cd96006c96b5ee2ba05f1fa58
|
7
|
+
data.tar.gz: f4da184586ccf65c93df92e73f93b90f7a2921590480a463829a03b2fec08c4e9416e07a273bfcfa4a380ab0cf2c0f13899cea3282c64254493db92274421258
|
data/Gemfile.lock
CHANGED
data/lib/oddb2xml/downloader.rb
CHANGED
@@ -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-
|
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
|
data/lib/oddb2xml/extractor.rb
CHANGED
@@ -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,
|
data/lib/oddb2xml/version.rb
CHANGED