<< | Index | >>
Testcases patch
Check if the patch works
masa@masa ~/work $ git clone git://scm.ywesee.com/bbmb.ch
masa@masa ~/work/bbmb.ch $ git checkout 7dae6b4fb4fd7a0587ba5344385105f4d7c22c22
Note: checking out '7dae6b4fb4fd7a0587ba5344385105f4d7c22c22'.
...
HEAD is now at 7dae6b4... Updated 8% Mwst.
masa@masa ~/work/bbmb.ch $ patch -p1 < testcases_patch
masa@masa ~/work/bbmb.ch $ ruby test/suite.rb
masa@masa ~/work/bbmb.ch $ ruby test/suite.rb
...
187 tests, 1281 assertions, 0 failures, 0 errors
Note
twice
Check if the patch works for the latest update
masa@masa ~/work/bbmb.ch $ git checkout master masa@masa ~/work/bbmb.ch $ ruby test/suite.rb masa@masa ~/work/bbmb.ch $ ruby test/suite.rb ... 187 tests, 1012 assertions, 16 failures, 21 errors
Testcases
Note
1) Failure: test_statistics(BBMB::TestOrder) [test/test_order.rb:112]: <[["05.10.2011 08:14", "1317795298", 2, "10002", "Detrusitol Filmtabl. 14x2 mg", "26.82"], ["05.10.2011 08:14", "1317795298", 3, "10006", "Aromasin 25 mg 90 Drag\351es", "2059.20"]]> expected but was <[["05.10.2011 08:14", "1317795298", 2, "10002", "Detrusitol Filmtabl. 14x2 mg", "0.00"], ["05.10.2011 08:14", "1317795298", 3, "10006", "Aromasin 25 mg 90 Drag\351es", "0.00"]]>.
1) Failure: test_turnaround(BBMB::TestHospitalUser) [test/test_user.rb:335]: <686.4> expected but was <10.0>.
1) Failure: test_parse_line(BBMB::TestCustomBehaviorGag) [test/test_behavior.rb:151]: <{:article_l3_p4=>"129.90", :article_mwst=>"0", :article_l3_q2=>"12", :article_descr=>"Cabaser 2 mg 20 Tabl.", :article_l3_q5=>"0", :article_pcode=>"2182413", :article_l3_p2=>"131.20", :article_bsize=>"1", :article_l3_p5=>"0", :access_list=>"HUM-B", :article_backorder=>"Ja", :article_l3_q3=>"24", :article_group=>"K24000", :article_l3_q6=>"0", :supplier_id=>"102", :article_status=>"geaendert", :article_l3_p3=>"130.10", :article_main_group=>"K2400", :article_l3_p6=>"0", :article_l3_q1=>"1", :article_number=>"10009", :article_l3_q4=>"36", :article_price=>"109.55", :article_index=>"1234", :article_l3_p1=>"132.35", :article_ean13=>"7680533620604"}> expected but was <{:company_name=>"0", :article_descr=>"Cabaser 2 mg 20 Tabl.", :article_number=>"10009", :article_price=>"0", :article_ean13=>"7680533620604"}>.
Result
masa@masa ~/work/bbmb.ch $ ruby test/suite.rb masa@masa ~/work/bbmb.ch $ ruby test/suite.rb 184 tests, 1397 assertions, 0 failures, 0 errors
Patch
Note
Commit
Run
Error and Failure oddb
Testcases
Total coverage: 94.63%
Commit
Failure
masa@masa ~/ywesee/migel $ rspec spec/suite.rb ... Failures: 1) Migel::Model::Migelid when initialized with code 33.44.5 (group_code: 11, subgroup_code: 22) localiyed_name should be @migelid Failure/Error: @migelid.localized_name('language').should == @migelid NoMethodError: undefined method `language' for #<Migel::Util::Multilingual:0x7f2ad9627fe0> # ./lib/migel/util/multilingual.rb:27:in `method_missing' # ./lib/migel/model/migelid.rb:61:in `send' # ./lib/migel/model/migelid.rb:61:in `localized_name' # ./spec/model/migelid_spec.rb:84 Finished in 0.18151 seconds 96 examples, 1 failure Failed examples: rspec ./spec/model/migelid_spec.rb:83 # Migel::Model::Migelid when initialized with code 33.44.5 (group_code: 11, subgroup_code: 22) localiyed_name should be @migelid
Specs
Commit
Command log
masa@masa ~/work $ sudo emerge libyaml masa@masa ~/src/ruby-1.9.3-rc1 $ ./configure --prefix=/usr/local/bin/ruby193rc1 masa@masa ~/src/ruby-1.9.3-rc1 $ make masa@masa ~/src/ruby-1.9.3-rc1 $ sudo make install masa@masa /usr/local/bin $ sudo ln -s /usr/local/bin/ruby193rc1/bin/ruby ruby193 masa@masa ~/work $ ruby193 -v ruby 1.9.3dev (2011-09-23 revision 33323) [x86_64-linux] masa@masa ~/work $ whereis ruby193 ruby193: /usr/local/bin/ruby193 masa@masa ~/work $ ruby193 /usr/bin/gem list *** LOCAL GEMS *** bigdecimal (1.1.0) io-console (0.3) json (1.5.4) minitest (2.5.1) rake (0.9.2.2) rdoc (3.9.4)
Sample script
Run
masa@masa ~/work $ ruby -v ruby 1.8.6 (2009-06-08 patchlevel 369) [x86_64-linux] masa@masa ~/work $ ruby sample_odba.rb ERROR: relation "object" already exists ERROR: relation "prefetchable_index" already exists ERROR: relation "extent_index" already exists ERROR: relation "object_connection" already exists ERROR: relation "target_id_index" already exists ERROR: relation "collection" already exists odba_id=5
Install ODBA
masa@masa ~/work $ ruby193 /usr/bin/gem install odba Fetching: odba-1.0.0.gem (100%) Successfully installed odba-1.0.0 1 gem installed Installing ri documentation for odba-1.0.0... unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/odba.rb, skipping Installing RDoc documentation for odba-1.0.0... unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/odba.rb, skipping
Run
masa@masa ~/work $ ruby193 sample_odba.rb /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- dbi (LoadError) from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/odba-1.0.0/lib/odba/storage.rb:6:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/odba-1.0.0/lib/odba.rb:61:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require' from sample_odba.rb:4:in `<main>'
Install
Reset database
masa@masa ~/work $ sudo -u postgres dropdb testdb masa@masa ~/work $ sudo -u postgres createdb -U masa -E UTF8 -T template0 testdb
Run
masa@masa ~/work $ ruby193 sample_odba.rb /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/deprecated-2.0.1/lib/deprecated.rb:199: warning: already initialized constant Deprecate NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "object_pkey" for table "object" NOTICE: CREATE TABLE / UNIQUE will create implicit index "object_name_key" for table "object" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "object_connection_pkey" for table "object_connection" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "collection_pkey" for table "collection" /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/dbi-0.4.5/lib/dbi/columninfo.rb:49:in `[]=': can't add a new key into hash during iteration (RuntimeError) from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/dbi-0.4.5/lib/dbi/columninfo.rb:49:in `block in initialize' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/dbi-0.4.5/lib/dbi/columninfo.rb:42:in `each_key' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/dbi-0.4.5/lib/dbi/columninfo.rb:42:in `initialize' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/dbi-0.4.5/lib/dbi/handles/database.rb:161:in `new' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/dbi-0.4.5/lib/dbi/handles/database.rb:161:in `block in columns' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/dbi-0.4.5/lib/dbi/handles/database.rb:161:in `collect' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/dbi-0.4.5/lib/dbi/handles/database.rb:161:in `columns' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/odba-1.0.0/lib/odba/connection_pool.rb:36:in `block in method_missing' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/odba-1.0.0/lib/odba/connection_pool.rb:26:in `next_connection' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/odba-1.0.0/lib/odba/connection_pool.rb:35:in `method_missing' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/odba-1.0.0/lib/odba/storage.rb:525:in `setup' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/odba-1.0.0/lib/odba/cache.rb:433:in `setup' from sample_odba.rb:10:in `<main>'
Note
class ColumnInfo < DelegateClass(Hash)
...
def initialize(hash=nil)
...
#@hash.each_key do |x|
@hash.keys.each do |x|
Run
masa@masa ~/work $ ruby193 sample_odba.rb /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/deprecated-2.0.1/lib/deprecated.rb:199: warning: already initialized constant Deprecate ERROR: relation "object" already exists ERROR: relation "prefetchable_index" already exists ERROR: relation "extent_index" already exists ERROR: relation "object_connection" already exists ERROR: relation "target_id_index" already exists ERROR: relation "collection" already exists odba_id=5
Note
Reference (DBI Deprecate error)
Install gems
Log
masa@masa ~/work $ ruby193 /usr/bin/gem install sbsm Fetching: sbsm-1.0.0.gem (100%) Successfully installed sbsm-1.0.0 1 gem installed Installing ri documentation for sbsm-1.0.0... unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/cgi.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/drbserver.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/exception.rb, skipping unable to convert "\xA4" from ASCII-8BIT to UTF-8 for lib/sbsm/flavored_uri_parser.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/index.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/lookandfeel.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/lookandfeelfactory.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/lookandfeelwrapper.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/request.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/session.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/state.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/time.rb, skipping unable to convert "\xA4" from ASCII-8BIT to UTF-8 for lib/sbsm/uri_parser.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/user.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/validator.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/viralstate.rb, skipping Installing RDoc documentation for sbsm-1.0.0... unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/cgi.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/drbserver.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/exception.rb, skipping unable to convert "\xA4" from ASCII-8BIT to UTF-8 for lib/sbsm/flavored_uri_parser.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/index.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/lookandfeel.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/lookandfeelfactory.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/lookandfeelwrapper.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/request.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/session.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/state.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/time.rb, skipping unable to convert "\xA4" from ASCII-8BIT to UTF-8 for lib/sbsm/uri_parser.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/user.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/validator.rb, skipping unable to convert "\xFC" from ASCII-8BIT to UTF-8 for lib/sbsm/viralstate.rb, skipping
masa@masa ~/work $ ruby193 /usr/bin/gem install turing Fetching: gd2-1.1.1.gem (100%) WARNING: gd2-1.1.1 has an invalid nil value for @cert_chain Fetching: turing-0.0.11.gem (100%) WARNING: turing-0.0.11 has an invalid nil value for @cert_chain Successfully installed gd2-1.1.1 Successfully installed turing-0.0.11 2 gems installed Installing ri documentation for gd2-1.1.1... Installing ri documentation for turing-0.0.11... could not find template ./rdoc.jamis.rb Installing RDoc documentation for gd2-1.1.1... Installing RDoc documentation for turing-0.0.11... could not find template ./rdoc.jamis.rb
Error
masa@masa ~/ywesee/oddb.org $ ruby193 bin/oddbd /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/deprecated-2.0.1/lib/deprecated.rb:199: warning: already initialized constant Deprecate /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:53: warning: else without rescue is useless /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:46: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError) when ?D: 8 ^ /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:180: syntax error, unexpected keyword_end, expecting $end from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/turing-0.0.11/lib/turing/image.rb:13:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/turing-0.0.11/lib/turing.rb:34:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/sbsm-1.0.0/lib/sbsm/turing.rb:5:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/custom/lookandfeelbase.rb:9:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/util/oddbapp.rb:9:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from bin/oddbd:9:in `<main>'
case Config::CONFIG['arch']
when /mswin32/, /cygwin/
sum = -4
signature.each_byte do |char|
sum += case char
when 'D'.bytes.to_a
8
else
4
end
end
"#{symbol}@#{sum}"
else
Run
masa@masa ~/ywesee/oddb.org $ ruby193 bin/oddbd /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/deprecated-2.0.1/lib/deprecated.rb:199: warning: already initialized constant Deprecate /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:30: Use RbConfig instead of obsolete and deprecated Config. /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:152:in `[]': wrong number of arguments(2 for 1) (ArgumentError) from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:152:in `block in <module:GD2>' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:152:in `each' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:152:in `inject' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:152:in `<module:GD2>' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:26:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/turing-0.0.11/lib/turing/image.rb:13:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/turing-0.0.11/lib/turing.rb:34:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/sbsm-1.0.0/lib/sbsm/turing.rb:5:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/custom/lookandfeelbase.rb:9:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/util/oddbapp.rb:9:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from bin/oddbd:9:in `<main>'
Note
}.inject({}) { |x, (k, v)| x[k] = LIB[name_for_symbol(k, v)]; x } #}.inject({}) { |x, (k, v)| x[k] = LIB[name_for_symbol(k, v), v]; x }
Run
masa@masa ~/ywesee/oddb.org $ ruby193 bin/oddbd /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/deprecated-2.0.1/lib/deprecated.rb:199: warning: already initialized constant Deprecate /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:30: Use RbConfig instead of obsolete and deprecated Config. /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead. /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- ftools (LoadError) from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/plugin/plugin.rb:8:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/plugin/ydim.rb:4:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/util/ipn.rb:5:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/util/oddbapp.rb:12:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from bin/oddbd:9:in `<main>'
Note
#require 'ftools' require 'fileutils'
Run
masa@masa ~/ywesee/oddb.org $ ruby193 bin/oddbd /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/deprecated-2.0.1/lib/deprecated.rb:199: warning: already initialized constant Deprecate /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:30: Use RbConfig instead of obsolete and deprecated Config. /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead. /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- ydim/config (LoadError) from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/plugin/ydim.rb:5:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/util/ipn.rb:5:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/util/oddbapp.rb:12:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from bin/oddbd:9:in `<main>'
masa@masa ~/work $ ruby193 /usr/bin/gem install ydim Fetching: ydim-1.0.0.gem (100%) Successfully installed ydim-1.0.0 1 gem installed Installing ri documentation for ydim-1.0.0... Installing RDoc documentation for ydim-1.0.0...
Run
masa@masa ~/ywesee/oddb.org $ ruby193 bin/oddbd /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/deprecated-2.0.1/lib/deprecated.rb:199: warning: already initialized constant Deprecate /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:30: Use RbConfig instead of obsolete and deprecated Config. /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead. /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- rclconf (LoadError) from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/ydim-1.0.0/lib/ydim/config.rb:4:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require' from /home/masa/ywesee/oddb.org/src/plugin/ydim.rb:5:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/util/ipn.rb:5:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/util/oddbapp.rb:12:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from bin/oddbd:9:in `<main>'
masa@masa ~/work $ ruby193 /usr/bin/gem install rclconf Fetching: rclconf-1.0.0.gem (100%) Successfully installed rclconf-1.0.0 1 gem installed Installing ri documentation for rclconf-1.0.0... Installing RDoc documentation for rclconf-1.0.0...
Run
masa@masa ~/ywesee/oddb.org $ ruby193 bin/oddbd /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/deprecated-2.0.1/lib/deprecated.rb:199: warning: already initialized constant Deprecate /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:30: Use RbConfig instead of obsolete and deprecated Config. /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead. /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /home/masa/ywesee/oddb.org/src/util/searchterms.rb:6: invalid multibyte char (US-ASCII) (SyntaxError) /home/masa/ywesee/oddb.org/src/util/searchterms.rb:6: invalid multibyte char (US-ASCII) /home/masa/ywesee/oddb.org/src/util/searchterms.rb:6: syntax error, unexpected $end, expecting tASSOC 'Æ' => 'Ae', 'Ä' => 'Ae', ^ from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/util/oddbapp.rb:14:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from bin/oddbd:9:in `<main>'
# encoding: utf-8
Run
masa@masa ~/ywesee/oddb.org $ ruby193 bin/oddbd /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/deprecated-2.0.1/lib/deprecated.rb:199: warning: already initialized constant Deprecate /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:30: Use RbConfig instead of obsolete and deprecated Config. /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead. /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /home/masa/ywesee/oddb.org/src/util/interval.rb:8: invalid multibyte char (US-ASCII) (SyntaxError) /home/masa/ywesee/oddb.org/src/util/interval.rb:8: invalid multibyte char (US-ASCII) /home/masa/ywesee/oddb.org/src/util/interval.rb:8: syntax error, unexpected $end, expecting '}' 'a-d' => 'a-dÅÆÄÁÂÀÃĄǍĂĀȦḂÇĈ... ^ from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/state/drugs/sequences.rb:6:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/custom/lookandfeelwrapper.rb:7:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/custom/lookandfeelfactory.rb:6:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/util/session.rb:6:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/util/oddbapp.rb:15:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from bin/oddbd:9:in `<main>'
# encoding: utf-8
Run
masa@masa ~/ywesee/oddb.org $ ruby193 bin/oddbd /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/deprecated-2.0.1/lib/deprecated.rb:199: warning: already initialized constant Deprecate /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:30: Use RbConfig instead of obsolete and deprecated Config. /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead. /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- htmlgrid/form (LoadError) from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/view/form.rb:4:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/view/privatetemplate.rb:4:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/view/drugs/privatetemplate.rb:4:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/view/drugs/atcchooser.rb:4:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/view/additional_information.rb:5:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/view/drugs/sequences.rb:5:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/state/drugs/sequences.rb:7:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/custom/lookandfeelwrapper.rb:7:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/custom/lookandfeelfactory.rb:6:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/util/session.rb:6:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/ywesee/oddb.org/src/util/oddbapp.rb:15:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from bin/oddbd:9:in `<main>'
masa@masa ~/ywesee/oddb.org $ ruby193 /usr/bin/gem install htmlgrid Fetching: htmlgrid-1.0.0.gem (100%) Successfully installed htmlgrid-1.0.0 1 gem installed Installing ri documentation for htmlgrid-1.0.0... Installing RDoc documentation for htmlgrid-1.0.0...
Run
masa@masa ~/ywesee/oddb.org $ ruby193 bin/oddbd /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/deprecated-2.0.1/lib/deprecated.rb:199: warning: already initialized constant Deprecate /home/masa/bin/ruby193rc1/lib/ruby/gems/1.9.1/gems/gd2-1.1.1/lib/gd2.rb:30: Use RbConfig instead of obsolete and deprecated Config. /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead. could not find htmlgrid.so, falling back to pure-ruby class /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /home/masa/rubylib/rockit/token.rb:138: invalid multibyte char (US-ASCII) (SyntaxError) /home/masa/rubylib/rockit/token.rb:138: syntax error, unexpected '~', expecting ')' super("EOF", "�~~��~^^~" + rand(1e10).inspect) ^ /home/masa/rubylib/rockit/token.rb:138: invalid multibyte char (US-ASCII) from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/rubylib/rockit/grammar.rb:1:in `<top (required)>' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/bin/ruby193rc1/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/masa/rubylib/rockit/lalr_parsetable_generator.rb:1:in `<top (required)>' ...