<< Masa.20120125-fix-untaint-sbsm-check-mod_ruby-193-update-s31x-mechanize-new-fachifno | Index | Masa.20120123-mail_order_price-check-sequence-dose-oddb_org >>
Problem
Experiment (locally)
ch.oddb> ODDB::Dose.new(*[240.0, "µg"]).pretty_inspect
-> Quanty(240,'µg')
ch.oddb> ODDB::Dose.new(*[240.0, "mg"]).pretty_inspect
-> Quanty(240,'mg')
Experiment (online)
ch.oddb> ODDB::Dose.new(*[240.0, "µg"]).pretty_inspect
-> Quanty(240,'')
ch.oddb> ODDB::Dose.new(*[240.0, "mg"]).pretty_inspect
-> Quanty(240,'mg')
Note
Reason why 'µg' is not updated only online
def find_prefix(a,n)
Prefix.each{ |key,factor|
k = key.dup
k.force_encoding('utf-8') if RUBY_VERSION > '1.9'
#if /^#{key}-?/u =~ a && (unit = List[b=$']) && b.size>n
if /^#{k
}-?/u =~ a && (unit = List[b=$']) && b.size>n
return Fact.new(b).fac!(factor)
end
}
nil
end
Note
Refer to http://dev.ywesee.com/uploads/$PageName//ch.oddb_crash_23.1.2012_17.40.txt
Refer to http://dev.ywesee.com/uploads/$PageName//ch.oddb_crash_23.1.2012_15.09_0.txt
ODBA::Stub was unable to replace #791455 from ODDB::Registration:#791454 ODBA::Stub was unable to replace #791463 from ODDB::Registration:#791462 ODBA::Stub was unable to replace #791599 from ODDB::Registration:#791598 ODBA::Stub was unable to replace #791640 from ODDB::Registration:#791639
Refer to http://dev.ywesee.com/uploads/$PageName//ch.oddb_crash_22.1.2012_12.50.txt