Forgot to remove a call to binding.pry in ext/refdata/src/refdata.rb
fixed with commit refdata/download_all: Must not call binding.pry in exception!
Swissmedic changed format of Packungen.xlsx which broke havoc on ch.oddb.org. Zeno reverts Postgres database to state of July 1.
Changes in format are:
Added check for headers similar to swissmedic-diff. Running oddb2xml -e
revealed that some cells are now nil. Adapted this code, too.
Making the spec pass again takes much more time, as deleting rows in Packungen.xlsx via the rubyXL gem transform the column K Packungscode from an integer into DateTime. Must therefore handle the file manually again.
Extracting is okay now, but building oddb_calc.xml fails, because we don't use the correct column-ids.
Running oddb2xml -e seems to work fine. Pushed commit Adapt to new Packungen.xlsx.
Put adapting rspec on my TODO list.
Tried to get the same stuff versions of gems on thinpower an oddb-ci2.
After calling sudo /usr/local/bin/gem update --system
it intalled version 2.4.8 and I had again problems complaining about the wrong version of NTLM. After calling sudo /usr/local/bin/gem update --system 2.2.1
this problem went away, but I got the following problem when starting oddbd
sudo -u apache /usr/local/bin/ruby bin/oddbd /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:126:in `require': iconv will be deprecated in the future, use String#encode instead. Attention: monkey-patching CSV::Cell racc/parser.rb:189: warning: already initialized constant Racc_Runtime_Version racc/parser.rb:190: warning: already initialized constant Racc_Runtime_Revision racc/parser.rb:192: warning: already initialized constant Racc_Runtime_Core_Version_R racc/parser.rb:193: warning: already initialized constant Racc_Runtime_Core_Revision_R racc/parser.rb:197: warning: already initialized constant Racc_Runtime_Core_Revision_C racc/parser.rb:205: warning: already initialized constant Racc_Main_Parsing_Routine racc/parser.rb:206: warning: already initialized constant Racc_YY_Parse_Method racc/parser.rb:207: warning: already initialized constant Racc_Runtime_Core_Version racc/parser.rb:208: warning: already initialized constant Racc_Runtime_Core_Revision racc/parser.rb:209: warning: already initialized constant Racc_Runtime_Type /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:126:in `require': cannot load such file -- zip/zip (LoadError) from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:126:in `require' from /usr/local/lib/ruby/gems/1.9.1/gems/ydocx-1.2.3/lib/ydocx/document.rb:5:in `<top (required)>' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:73:in `require' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:73:in `require' from /usr/local/lib/ruby/gems/1.9.1/gems/ydocx-1.2.3/lib/ydocx.rb:4:in `<top (required)>' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in `require' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in `rescue in require' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:144:in `require' from /var/www/oddb.org/src/plugin/medical_products.rb:12:in `<top (required)>' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:126:in `require' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:126:in `require' from /var/www/oddb.org/src/util/updater.rb:22:in `<top (required)>' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:126:in `require' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:126:in `require' from /var/www/oddb.org/src/util/oddbapp.rb:11:in `<top (required)>' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require' from bin/oddbd:13:in `<main>'
A call to sudo /usr/local/bin/gem install zip-zip
fixed this problem. But still leaves me asking why the gem zip-zip is not needed on thinpower.
Pushed commit Use same versions of gems as on thinpower