view · edit · sidebar · attach · print · history

20120119-delete-old-narcotic-code-fix-errors-oddb_org-make-export_oddbdat_by_company_name

<< Masa.20120120-export_oddbdat-oddb2tdat-export_oddb_csv-mail_order_price-oddb_org | Index | Masa.20120118-update-narcotic-data-view-state-oddb_org >>


  1. Implement export_oddbdat_by_company_name
  2. Note about SBSM and mod_ruby

Commits
  1. Delete old Narcotic source code
    1. Deleted old narcotics source code from plugin, updater, exporter (oddb.org)
    2. Deleted old narcotic source code from plugin/csv_export.rb, yaml.rb (oddb.org)
    3. Fix Package#narcotic? method to export oddb.csv correctly (oddb.org)
    4. Deleted narcotic from substance view (oddb.org)
    5. Deleted Narcotic view and state (oddb.org)
    6. Deleted old Narcotic model source code (oddb.org)
    7. Deleted old Narcotic source code from oddbapp.rb (oddb.org)
    8. Fix old narcotic source code in ext/export/src/oddbdat.rb (oddb.org)
  2. Fix errors
    1. Attach:error1.20120119.txt : Fix ArgumentError when accessing to compare_search event directly (oddb.org)
    2. Attach:error2.20120119.txt : Fix encoding error in minifi (oddb.org)
    3. Attach:error3.20120119.txt : Fix NoMethodError: name_base when search_query is nil at price_history event (oddb.org)
    4. Attach:error4.20120119.txt : Fix KeyError: key not found: migel_fulltext_index_en when searching migel in 'en' (migel)
    5. Attach:error5.20120119.txt : Fix KeyError when searching dt index table (oddb.org)
    6. Attach:error6.20120119.txt : Show messages when model data is not found in ddd_price event (oddb.org)
  3. Others
    1. Added export_oddbadat on import_daily (it runs on Sunday) (oddb.org)
    2. Fix export_oddbdat. OddbDatExport#export_fachinfos method also works when export_oddbdat is called (oddb.org)
    3. Remove debug print from src/util/validator.rb in search_query method (oddb.org)
    4. Fix pointer link in analysis group position view (oddb.org)
    5. Fix pointer link in a report mail of export_oddbdat (oddb.org)

Implement export_oddbdat_by_company_name

Patch

How to use

ch.oddb> Exporter.new(self).export_oddbdat_by_company_name('company_name')

Note

  • oddbdat_company_name.tar.gz, oddbdat_company_name.zip will be exported in data/downloads directory

Note about SBSM and mod_ruby

Note

  • mod_ruby is now running on Ruby 1.8 (mod_ruby.so is compiled from Makefile generated from extconf.rb on Ruby 1.8)
  • doc/index.rbx is called from mod_ruby when an user access the oddb site
  • index.rbx is a kind of drb client which accesses bin/oddbd drb server
  • bin/oddbd is running on Ruby 1.9 which calls Ruby 1.9 libraries
  • So, index.rbx uses Ruby 1.8 libraries (calls sbsm Ruby 1.8 library)
  • We need at the moment to install sbsm both on Ruby 1.9 and 1.8
    • Otherwise, a virtual host setting file and index.rbx must include the specific library path, for example, '/usr/local/lib/gems/1.9.1/gems/sbsm-1.0.5/sbsm'.

see:

$ vim /var/www/oddb.org/doc/index.rbx
add line before requires
$: << '/usr/local/lib64/ruby/gems/1.9.1/gems/sbsm-1.0.5/lib'
view · edit · sidebar · attach · print · history
Page last modified on January 19, 2012, at 05:16 PM