It looks as runnig oddb2xml -e throws now an nil error. A client reported
/usr/lib64/ruby/gems/2.2.0/gems/oddb2xml-2.2.5/lib/oddb2xml/builder.rb:742:in `block (2 levels) in build_calc': undefined method `to_array' for nil:NilClass (NoMethodError)
from /usr/lib64/ruby/gems/2.2.0/gems/oddb2xml-2.2.5/lib/oddb2xml/builder.rb:741:in `each'
from /usr/lib64/ruby/gems/2.2.0/gems/oddb2xml-2.2.5/lib/oddb2xml/builder.rb:741:in `block in build_calc'
from /usr/lib64/ruby/2.2.0/csv.rb:1273:in `open'
from /usr/lib64/ruby/gems/2.2.0/gems/oddb2xml-2.2.5/lib/oddb2xml/builder.rb:739:in `build_calc'
from /usr/lib64/ruby/gems/2.2.0/gems/oddb2xml-2.2.5/lib/oddb2xml/builder.rb:71:in `to_xml'
from /usr/lib64/ruby/gems/2.2.0/gems/oddb2xml-2.2.5/lib/oddb2xml/cli.rb:140:in `block in build'
from /usr/lib64/ruby/gems/2.2.0/gems/oddb2xml-2.2.5/lib/oddb2xml/cli.rb:94:in `each_air'
from /usr/lib64/ruby/gems/2.2.0/gems/oddb2xml-2.2.5/lib/oddb2xml/cli.rb:94:in `build'
from /usr/lib64/ruby/gems/2.2.0/gems/oddb2xml-2.2.5/lib/oddb2xml/cli.rb:84:in `run'
from /usr/lib64/ruby/gems/2.2.0/gems/oddb2xml-2.2.5/bin/oddb2xml:50:in `<top (required)>'
from /usr/bin/oddb2xml:23:in `load'
from /usr/bin/oddb2xml:23:in `<main>'
I will try to reproduce the error running oddb2xml --calc. Added a work-around, but somehow it looks that we got an ean13 without any additional information. Okay, it passed and I got one missed EAN key "7680653150012" WITHOUT nil
Pushed commit Fixed an error when generating oddb_calc.xml and we have no information for a given EAN, eg. 7680653150012
Must fix (in this order) the following problems with the fachinfo diff
Pushed commits Remove unneeded puts in view/fachinfo and Use common diff.css for displaying colorized diff.
Fixed the same problem with oddb-color style Use common diff.css for displaying colorized diff for oddb-<color>.css
Pushed commit Don't highlight current line as yellow
Using Cansartan-61215.yaml to check my conversion to text. Found various problems.
Patientenzahl mit einem) and this split in two lines, even when in the HTML it is displayed on one line.
Using pry I find that old_fi.effects.paragraphs[17] and old_fi.effects.paragraphs[17].to_s does not work correctly with tables. Looking deeper into the Umlaut problem. Okay. It looks for me that this not really a problem, but stems from the fact that on oddb-ci2 and thinpower we are running Ruby 1.9.0 where sych does not seem to store the generated yaml as an UTF-8 file. This is no longer the case with Ruby 1.9.3 or later.
Fixed the other problem displaying the table. Multicell join all different lines from one cell, to make a meaningfull text.
Reloaded the database, ran import of two IKSNR. Now the diff looks better, and via bin/admin I was able to verify that the text looks indeed good. E.g
ch.oddb> registration('61215').fachinfo.de.effects.to_s[4850..5000]
-> re Mortalität 145 152 0.95 (0.75-1.19) 0.63
nicht tödliche Schlaganfälle 68 93 0.72 (0.53-0.99) 0.04
nicht tödliche Myokardinfarkte 54 47 1.14 (0.77-1.
Running unit- and Watir-tests before pushing commit.
Pushed the following commits
Zeno remarked that the link http://ch.oddb.org/de/gcc/rss/channel/fachinfo.rss did not work with feedly.
On friday November 6 the email talked about 11 neue Fis, rss of firefox only shows 6. Today only 1 FI is shown in ch.oddb.org.
When I visited http://ch.oddb.org/de/gcc/rss/channel/fachinfo.rss with firefox I got many FI displayed going back till 2006.
As I never worked with feedly I started with it today. There was no problem to add all oddb.ch-rss feeds except the fachinfo. Therefore I must fix the view. But first I will work on creating a Watir-Test for all of these feeds.