view · edit · sidebar · attach · print · history

20130215-debug-address-source-xls-debug-oddb2xml-with-ruby-187

<< | Index | >>


Summary

  • debug oddb_betrieb.xml and oddb_medizinalperson.xml
  • Add ruby-1.8.7 Support

Commits

Index


Debug betrieb and medizinalperson xls reading

Fix bugs

commit

Debug medizinal_person reading

Personen.xls has many same GLN code per 1 person.
oddb2xml can not use GLN as unique ID.

'7601000048967 Aapro
'7601000048967 Aapro
'7601000048967 Aapro
...

updated to include these records into xml output.

commit

Report output

Add record count as report.

% oddb2xml --context=address
Betrieb addresses: 2826
Person addresses: 34835
commit

Debug-oddb2xml-with-ruby-187

Debug with old ruby.

gems

Could not find nori-2.0.2 in any of the sources
Gem::InstallError: ZenTest requires RubyGems version < 2.1, >= 1.8. Try 'gem update --system' to update RubyGems itself.
An error occured while installing ZenTest (4.9.0), and Bundler cannot continue.
Make sure that `gem install ZenTest -v '4.9.0'` succeeds before bundling.

syntax error

builder.rb:208: warning: don't put space before argument parentheses
undefined method `sort_by!' for #<Array:0x7fd87c45b3f0> (NoMethodError)

ssl warning

peer certificate won't be verified in this SSL session

String

1.8.7 returns byte code.

[1] 1.8.7-p358(main)> "test"[0]
116
[2] 1.8.7-p358(main)> "test"[0].chr
"t"
[4] 1.8.7-p358(main)> "test"[0..1] # => Rage works expectedly without chr.
"te"
[5] 1.8.7-p358(main)> "test"[0,1]  # => slice too.
"t"


[1] 1.9.3-p385(main)> "test"[0]
"t"
[2] 1.9.3-p385(main)> "test"[0].chr
"t"

Time format

[1] 1.8.7-p358(main)> Time.new.strftime('%FT%T.%7N%z')
"2013-02-15T16:38:58.    %7N+0900"


[1] 1.9.3-p385(main)> Time.new.strftime('%FT%T.%7N%z')
"2013-02-15T16:39:25.0733244+0900"

discard %N for ruby 1.8.7 support.

SSL warning

warning: peer certificate won't be verified in this SSL session
warning: peer certificate won't be verified in this SSL session
warning: peer certificate won't be verified in this SSL session
warning: peer certificate won't be verified in this SSL session

Mechanize option ssl_version is 1.9 only.

Mechanize#ssl_version
  SSL version to use. Ruby 1.9 and newer only.
commit

Warn message for Ruby-1.8.7 user

$ oddb2xml
Once you find some time, please upgrade your Ruby to 1.9.3 ;)
then you will not see anymore warnings

...
commit

NOTE

spec on 1.8.7 is still broken.

view · edit · sidebar · attach · print · history
Page last modified on February 15, 2013, at 09:08 AM