<< | Index | >>
Problem
Experiment
Result
Note
Check more in detail
Experiment
Result
Note
Next
Note
Experiment
def to_html(context) html = ''if @value
unless(@value.heading.empty?) html << context.h3 { self.escape(@value.heading) } end html << sections(context, @value.sections)end
end
Setup
masa@masa ~/ywesee/bbmb.ch $ rm log/mnemonic/*.* masa@masa ~/ywesee/bbmb.ch $ cp ~/work/bbmb_data_bak/mnemonic_local_update_all_kund_bak/*.* log/mnemonic/ masa@masa ~/ywesee/bbmb.c $ rm data/yaml/* masa@masa ~/ywesee/bbmb.ch $ cp ~/work/new_yaml/atc.yaml backup_yaml/downloads/ masa@masa ~/ywesee/bbmb.ch $ cp ~/work/new_yaml/oddb.yaml backup_yaml/downloads/
Run
ch.bbmb.globopharm> update
Result
Note
--- !oddb.org,2003/ODDB::AtcClass
code: R03DC
descriptions: !oddb.org,2003/ODDB::SimpleLanguage::Descriptions
de: Leukotrienrezeptor-Antagonisten
en: Leukotriene receptor antagonists
guidelines:
--- !oddb.org,2003/ODDB::AtcClass code: R03DC descriptions: !oddb.org,2003/ODDB::SimpleLanguage::Descriptions de: Leukotrienrezeptor-Antagonisten en: Leukotriene receptor antagonistsguidelines: !oddb.org,2003/ODDB::Text::Document
descriptions: !oddb.org,2003/ODDB::SimpleLanguage::Descriptions
en:
Note (yaml)
Example
Result
masa@masa ~/work $ ruby test_save_yaml.rb > test.yaml masa@masa ~/work $ ruby test_load_yaml.rb #<Test:0x7f87c240e588 @b="bye", @a="hello", @c=#<YAML::Object:0x7f87c240ed58 @class="Child", @ivars={"d"=>"helo"}>> "hello"
Next
Result
Experiment
module ODDB module Drugs class Dose < ODDB::Dose; end end end
Result
Experiment
Result
Note
Experiment
iksnr: "53750"
registration_date: 1998-02-26
revision_date: 2006-11-17
expiration_date: 2013-11-05
inactive_date:
sequences:
"01": !oddb.org,2003/ODDB::Sequence
seqnr: "01"
name_base: Accolate 20 mg
name_descr: Filmtabletten
atc_class: !oddb.org,2003/ODDB::AtcClass
code: R03DC01
descriptions: !oddb.org,2003/ODDB::SimpleLanguage::Descriptions
de: Zafirlukast
en: Zafirlukast
guidelines:
ddd_guidelines:
ddds:
O: !oddb.org,2003/ODDB::AtcClass::DDD
administration_route: O
dose: !oddb.org,2003/ODDB::Dose
not_normalized:
val: 40
unit: mg
scale:
note:
Result
Note
Experiment
module Drugs class Dose < ODDB::Dose; end end
module Drugs class Dose; end YAML.add_domain_type('oddb.org,2003', 'ODDB::Drugs::Dose') { |type, val| YAML.object_maker(Dose, val) } end
Setup
masa@masa ~/ywesee/bbmb.ch $ rm log/mnemonic/*.* masa@masa ~/ywesee/bbmb.ch $ rm data/yaml/* masa@masa ~/ywesee/bbmb.ch $ cp ~/work/bbmb_data_bak/mnemonic_local_update_all_kund_bak/*.* log/mnemonic/ masa@masa ~/ywesee/bbmb.ch $ cp ~/work/oddb_new.yaml backup_yaml/downloads/oddb.yaml masa@masa ~/ywesee/bbmb.ch $ cp ~/work/atc_new.yaml backup_yaml/downloads/atc.yaml
Run
ch.bbmb.globopharm> update
Result
Next
Setup
masa@masa ~/ywesee/bbmb.ch $ rm log/mnemonic/*.* masa@masa ~/ywesee/bbmb.ch $ rm data/yaml/* masa@masa ~/ywesee/bbmb.ch $ cp ~/work/bbmb_data_bak/mnemonic_local_update_all_kund_bak/*.* log/mnemonic/ masa@masa ~/ywesee/bbmb.ch $ cp ~/work/new_yaml/atc.yaml backup_yaml/downloads/ masa@masa ~/ywesee/bbmb.ch $ cp ~/work/new_yaml/oddb.yaml backup_yaml/downloads/ masa@masa ~/ywesee/bbmb.ch $ cp ~/work/new_yaml/fachinfo.yaml backup_yaml/downloads/
UPDATES = [ :update_stock, #:update_suppliers, :update_users, #:update_user_access, :update_group_access, #:update_user_article_prices, #:update_user_article_discounts, #:update_user_group_discounts, #:update_user_volume_prices, :update_stock_atc, :update_sl, :update_atc_classes, :update_fachinfos, ]
Run
ch.bbmb.globopharm> overwrite_customer_ids_by_email '/home/masa/work/bbmb_data_bak/new_data/new_customer_id_ean_email.dat' -> 27 ch.bbmb.globopharm> replace_customer_ids_gag_to_alloga '/home/masa/work/bbmb_data_bak/new_data/actual_gag_ean_allo_user_ids.csv' -> 123 ch.bbmb.globopharm> replace_article_ids_gag_to_alloga '/home/masa/work/bbmb_data_bak/new_data/actual_gag_ean_allo_stock_ids.csv' -> 284 ch.bbmb.globopharm> update
Log
BbmbApp::update - updating admin@ywesee.com update: update_stock update_stock done update: update_users update_users done update: update_group_access update_group_access done update: update_stock_atc "getin update_stock_atc in custom" "getin update_stock_atc" "getin update_atc_sl in yaml" "getin update_stock_atc in bbmbapp" "getin set_stock_atc in reseller" "getin set_atc_classes in stock" update_stock_atc done update: update_sl "getin update_sl in custom" "getin update_sl in yaml" "getin update_sl in bbmbapp" "getin set_sl_entries in reseller" "getin set_sl_entries in stock" update_sl done update: update_atc_classes "getin update_atc_classes in custom" "getin update_atc_classes in yaml" "getin update_atc_classes in bbmbapp" "getin set_atc_classes in reseller" update_atc_classes done update: update_fachinfos "getin update_fachinfos in custom" "getin update_fachinfos in yaml" "getin update_fachinfos in bbmbapp" "getin set_fachinfos in reseller" "getin set_fachinfos in stock" update_fachinfos done
Result
Current status
masa@masa ~/work/bbmb.ch $ ruby -W0 test/suite.rb 1) Error: test_dont_send_empty_order(BBMB::TestBbmbAppHospital): NoMethodError: undefined method `value' for nil:NilClass /home/masa/work/bbmb.ch/src/transactions/stock.rb:16:in `execute' /home/masa/work/bbmb.ch/src/transactions/transactions.rb:11:in `execute' /usr/lib64/ruby/site_ruby/1.8/mnemonic/Mnemonic.rb:221:in `execute' /usr/lib64/ruby/site_ruby/1.8/mnemonic/Mnemonic.rb:192:in `runAt' /usr/lib64/ruby/site_ruby/1.8/mnemonic/Mnemonic.rb:220:in `execute' /home/masa/work/bbmb.ch/src/transactions/transactions.rb:26:in `executeTransaction' /home/masa/work/bbmb.ch/src/transactions/transactions.rb:23:in `synchronize' /home/masa/work/bbmb.ch/src/transactions/transactions.rb:23:in `executeTransaction' /home/masa/work/bbmb.ch/src/util/bbmbapp.rb:655:in `update_stock' ./test/test_bbmbapp.rb:494:in `setup' 2) Error: test_keep_price(BBMB::TestBbmbAppHospital): NoMethodError: undefined method `value' for nil:NilClass /home/masa/work/bbmb.ch/src/transactions/stock.rb:16:in `execute' /home/masa/work/bbmb.ch/src/transactions/transactions.rb:11:in `execute' /usr/lib64/ruby/site_ruby/1.8/mnemonic/Mnemonic.rb:221:in `execute' /usr/lib64/ruby/site_ruby/1.8/mnemonic/Mnemonic.rb:192:in `runAt' /usr/lib64/ruby/site_ruby/1.8/mnemonic/Mnemonic.rb:220:in `execute' /home/masa/work/bbmb.ch/src/transactions/transactions.rb:26:in `executeTransaction' /home/masa/work/bbmb.ch/src/transactions/transactions.rb:23:in `synchronize' /home/masa/work/bbmb.ch/src/transactions/transactions.rb:23:in `executeTransaction' /home/masa/work/bbmb.ch/src/util/bbmbapp.rb:655:in `update_stock' ./test/test_bbmbapp.rb:494:in `setup' 3) Error: test_send_order(BBMB::TestBbmbAppHospital): NoMethodError: undefined method `value' for nil:NilClass /home/masa/work/bbmb.ch/src/transactions/stock.rb:16:in `execute' /home/masa/work/bbmb.ch/src/transactions/transactions.rb:11:in `execute' /usr/lib64/ruby/site_ruby/1.8/mnemonic/Mnemonic.rb:221:in `execute' /usr/lib64/ruby/site_ruby/1.8/mnemonic/Mnemonic.rb:192:in `runAt' /usr/lib64/ruby/site_ruby/1.8/mnemonic/Mnemonic.rb:220:in `execute' /home/masa/work/bbmb.ch/src/transactions/transactions.rb:26:in `executeTransaction' /home/masa/work/bbmb.ch/src/transactions/transactions.rb:23:in `synchronize' /home/masa/work/bbmb.ch/src/transactions/transactions.rb:23:in `executeTransaction' /home/masa/work/bbmb.ch/src/util/bbmbapp.rb:655:in `update_stock' ./test/test_bbmbapp.rb:494:in `setup' 4) Failure: test_resolve(BBMB::TestStock) [./test/test_stock.rb:95]: <"10002"> expected but was <"10001">. 187 tests, 1073 assertions, 1 failures, 3 errors
Note