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 +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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f255aeb7b2c0706fc69522415f3529b7d7fbfb974b74643c8d496cf315662959
|
4
|
+
data.tar.gz: a2ca7f41f2088e33ea60ffebdccb2b1a9101b1815d467d7fcf7558c650be92b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f220531cc5947e2a2a9286256b30bdd3cc145a939b34f5c04f2958e470a9a94f8b5f504b609240d9b115ff4afd270a226aa669ebe65591d8d387fd8d516ad55c
|
7
|
+
data.tar.gz: 700d8d805fc2e9fd3e3ee27dd7f331b0bd92b44ce0f8b055469f5577fddc9273d6569b320285d86c62c207ed1ab3dba58b82580736d8669a6d163932001a8611
|
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 + "
|
389
|
+
@url = BASE_URL + "sites/default/files/2023-12/firstbase_healthcare_public_data-dump.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
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.
|
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
|
+
date: 2023-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|