gfdnavi 1.3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +10949 -0
- data/LICENCE.txt +57 -0
- data/Makefile +18 -0
- data/TODO +132 -0
- data/app/controllers/analysis_controller.rb +700 -0
- data/app/controllers/application.rb +41 -0
- data/app/controllers/draw_method_controller.rb +172 -0
- data/app/controllers/explorer_controller.rb +197 -0
- data/app/controllers/finder_controller.rb +331 -0
- data/app/controllers/function_controller.rb +204 -0
- data/app/controllers/group_controller.rb +115 -0
- data/app/controllers/keyword_attributes_controller.rb +52 -0
- data/app/controllers/knowledge_controller.rb +928 -0
- data/app/controllers/nodes_controller.rb +515 -0
- data/app/controllers/search_controller.rb +341 -0
- data/app/controllers/user_controller.rb +337 -0
- data/app/helpers/analysis_helper.rb +2 -0
- data/app/helpers/application_helper.rb +105 -0
- data/app/helpers/description_helper.rb +2 -0
- data/app/helpers/function_helper.rb +2 -0
- data/app/helpers/group_helper.rb +2 -0
- data/app/helpers/search_helper.rb +3 -0
- data/app/helpers/user_helper.rb +2 -0
- data/app/helpers/work_flow_helper.rb +92 -0
- data/app/models/actual_file.rb +3 -0
- data/app/models/analysis.rb +715 -0
- data/app/models/analysis_history.rb +42 -0
- data/app/models/cross_array.rb +22 -0
- data/app/models/cross_result.rb +254 -0
- data/app/models/derived_spatial_attribute.rb +3 -0
- data/app/models/diagram_cache.rb +16 -0
- data/app/models/diagram_cache_datum.rb +4 -0
- data/app/models/diagram_cache_session.rb +8 -0
- data/app/models/directory.rb +21 -0
- data/app/models/draw_method.rb +48 -0
- data/app/models/draw_method_attribute.rb +8 -0
- data/app/models/draw_parameter.rb +12 -0
- data/app/models/explorer_query.rb +354 -0
- data/app/models/explorer_result.rb +312 -0
- data/app/models/function.rb +75 -0
- data/app/models/function_argument.rb +6 -0
- data/app/models/function_output.rb +4 -0
- data/app/models/group.rb +153 -0
- data/app/models/image.rb +20 -0
- data/app/models/keyword_attribute.rb +179 -0
- data/app/models/knowledge.rb +94 -0
- data/app/models/knowledge_backup.rb +32 -0
- data/app/models/knowledge_figure.rb +16 -0
- data/app/models/knowledge_figure_backup.rb +16 -0
- data/app/models/knowledge_parser.rb +392 -0
- data/app/models/node.rb +605 -0
- data/app/models/node_entity_abstract.rb +112 -0
- data/app/models/node_lineage.rb +6 -0
- data/app/models/node_relation.rb +4 -0
- data/app/models/path_node.rb +60 -0
- data/app/models/query.rb +193 -0
- data/app/models/query_history.rb +12 -0
- data/app/models/results.rb +48 -0
- data/app/models/sign_up_user.rb +25 -0
- data/app/models/spatial_and_time_attribute.rb +11 -0
- data/app/models/user.rb +115 -0
- data/app/models/user_mailer.rb +48 -0
- data/app/models/value_type.rb +3 -0
- data/app/models/variable.rb +70 -0
- data/app/models/virtual_node.rb +457 -0
- data/app/views/analysis/__help_analysis_tab.en.html +57 -0
- data/app/views/analysis/__help_draw_share.en.html +12 -0
- data/app/views/analysis/__help_draw_tab.en.html +6 -0
- data/app/views/analysis/_analysis_function_settings.rhtml +61 -0
- data/app/views/analysis/_analysis_settings.rhtml +28 -0
- data/app/views/analysis/_diagram.rhtml +70 -0
- data/app/views/analysis/_dimension_option.rhtml +59 -0
- data/app/views/analysis/_draw_general_settings.rhtml +217 -0
- data/app/views/analysis/_draw_settings.rhtml +73 -0
- data/app/views/analysis/_history.rhtml +19 -0
- data/app/views/analysis/_popular_diagrams.rhtml +42 -0
- data/app/views/analysis/_save_form.rhtml +44 -0
- data/app/views/analysis/_variables.rhtml +66 -0
- data/app/views/analysis/_variables_order.rhtml +56 -0
- data/app/views/analysis/index.rhtml +195 -0
- data/app/views/analysis/preview.rhtml +3 -0
- data/app/views/analysis/save.rhtml +73 -0
- data/app/views/analysis/show_diagram.rhtml +42 -0
- data/app/views/cross/_display_map.rhtml +201 -0
- data/app/views/cross/_result.rhtml +205 -0
- data/app/views/cross/_show_result_tree.rhtml +40 -0
- data/app/views/cross/_show_results.rhtml +80 -0
- data/app/views/cross/_style.rhtml +21 -0
- data/app/views/cross/index.rhtml +271 -0
- data/app/views/draw_method/_edit_form.rhtml +110 -0
- data/app/views/draw_method/create.rhtml +8 -0
- data/app/views/draw_method/details.rhtml +113 -0
- data/app/views/draw_method/edit.rhtml +8 -0
- data/app/views/draw_method/list.rhtml +80 -0
- data/app/views/explorer/_display_map.rhtml +199 -0
- data/app/views/explorer/_show_result_tree.rhtml +40 -0
- data/app/views/explorer/_show_results.rhtml +101 -0
- data/app/views/explorer/_style.rhtml +21 -0
- data/app/views/explorer/index.rhtml +214 -0
- data/app/views/finder/_children.html.erb +84 -0
- data/app/views/finder/_children_details.html.erb +74 -0
- data/app/views/finder/_children_details_tr.html.erb +196 -0
- data/app/views/finder/create_tree.html.erb +15 -0
- data/app/views/finder/flex.html.erb +52 -0
- data/app/views/finder/index.html.erb +47 -0
- data/app/views/finder/show_details.html.erb +3 -0
- data/app/views/finder/show_images.html.erb +3 -0
- data/app/views/function/_edit_form.rhtml +106 -0
- data/app/views/function/create.rhtml +8 -0
- data/app/views/function/details.rhtml +96 -0
- data/app/views/function/edit.rhtml +8 -0
- data/app/views/function/list.rhtml +80 -0
- data/app/views/group/add_member.rhtml +13 -0
- data/app/views/group/change_owner.rhtml +15 -0
- data/app/views/group/create.rhtml +11 -0
- data/app/views/group/delete_member.rhtml +14 -0
- data/app/views/group/list.rhtml +63 -0
- data/app/views/knowledge/_backup.rhtml +135 -0
- data/app/views/knowledge/_category.rhtml +58 -0
- data/app/views/knowledge/_category_list.rhtml +34 -0
- data/app/views/knowledge/_category_table.rhtml +23 -0
- data/app/views/knowledge/_comment.rhtml +64 -0
- data/app/views/knowledge/_comment_input_form.rhtml +19 -0
- data/app/views/knowledge/_comments.rhtml +84 -0
- data/app/views/knowledge/_form.rhtml +139 -0
- data/app/views/knowledge/_group_figure_form.rhtml +187 -0
- data/app/views/knowledge/_layout_figure.rhtml +61 -0
- data/app/views/knowledge/_layout_figures_in_a_row_above_text.rhtml +42 -0
- data/app/views/knowledge/_layout_figures_under_text.rhtml +45 -0
- data/app/views/knowledge/_layout_one_figure_above_text.rhtml +28 -0
- data/app/views/knowledge/_summary.rhtml +21 -0
- data/app/views/knowledge/edit.rhtml +37 -0
- data/app/views/knowledge/list.rhtml +287 -0
- data/app/views/knowledge/new.rhtml +23 -0
- data/app/views/knowledge/new_from_analysis.rhtml +21 -0
- data/app/views/knowledge/show.rhtml +196 -0
- data/app/views/layouts/gfdnavi.rhtml +105 -0
- data/app/views/nodes/_ancestors.html.erb +89 -0
- data/app/views/nodes/_description_methods_table.html.erb +75 -0
- data/app/views/nodes/_mode.html.erb +16 -0
- data/app/views/nodes/description.html.erb +181 -0
- data/app/views/nodes/description_methods.html.erb +1 -0
- data/app/views/nodes/edit.html.erb +73 -0
- data/app/views/nodes/index.html.erb +25 -0
- data/app/views/nodes/show.html.erb +20 -0
- data/app/views/search/_children_details_mapsearch.rhtml +68 -0
- data/app/views/search/_children_details_tr.rhtml +205 -0
- data/app/views/search/_show_grouplist.rhtml +74 -0
- data/app/views/search/_show_results.rhtml +43 -0
- data/app/views/search/_show_results_global.rhtml +36 -0
- data/app/views/search/_show_results_partial.rhtml +39 -0
- data/app/views/search/_show_results_partial_groupbyfile.rhtml +50 -0
- data/app/views/search/_show_variablelist.rhtml +28 -0
- data/app/views/search/mapsearch.rhtml +176 -0
- data/app/views/search/remapsearch.rjs +18 -0
- data/app/views/search/show_details.rhtml +3 -0
- data/app/views/user/add_user.rhtml +30 -0
- data/app/views/user/change_password.rhtml +25 -0
- data/app/views/user/edit.html.erb +50 -0
- data/app/views/user/index.rhtml +162 -0
- data/app/views/user/login.rhtml +41 -0
- data/app/views/user/logout.rhtml +4 -0
- data/app/views/user/signup.rhtml +36 -0
- data/app/views/user/signup_succeeded.rhtml +36 -0
- data/app/views/user_mailer/authorization_inform.rhtml +15 -0
- data/app/views/user_mailer/signup_accepted.rhtml +12 -0
- data/app/views/user_mailer/signup_confirm.rhtml +14 -0
- data/app/views/user_mailer/signup_inform.rhtml +13 -0
- data/app/views/user_mailer/signup_rejected.rhtml +11 -0
- data/app/views/work_flow/_push_wsdls.rhtml +55 -0
- data/app/views/work_flow/index.rhtml +46 -0
- data/config/database.yml.example +35 -0
- data/config/environment.rb +68 -0
- data/config/gfdnavi.yml.example +95 -0
- data/config/load_config.rb +151 -0
- data/config/routes.rb +35 -0
- data/consistency_checker.rb +129 -0
- data/data/gfdnavi_docs/how_to_draw_multiple_images.knlge +68 -0
- data/data/gfdnavi_docs/how_to_knowledge.knlge +138 -0
- data/data/gfdnavi_docs/how_to_write_document_about_Gfdnavi.knlge +30 -0
- data/data/samples/jmadata.SIGEN +8 -0
- data/data/samples/jmadata.yml +6 -0
- data/data/samples/jmadata/MSM-P/2006.nc.yml +2 -0
- data/data/samples/jmadata/MSM-P/2006.yml +17 -0
- data/data/samples/jmadata/MSM-P/2006/0101.nc +0 -0
- data/data/samples/jmadata/MSM-P/2006/0101.nc.yml +13 -0
- data/data/samples/jmadata/MSM-P/2006/0102.nc +0 -0
- data/data/samples/jmadata/MSM-P/2006/0103.nc +0 -0
- data/data/samples/jmadata/MSM-P/2006/0104.nc +0 -0
- data/data/samples/jmadata/MSM-P/2006/0105.nc +0 -0
- data/data/samples/jmadata/MSM-P/2006/010[1-3].nc.yml +2 -0
- data/data/samples/jmadata/MSM-P/2006/skip_data.rb +96 -0
- data/data/samples/jmadata/MSM-P/2006/skip_data.sh +6 -0
- data/data/samples/reanalysis.SIGEN +8 -0
- data/data/samples/reanalysis/era40.SIGEN +8 -0
- data/data/samples/reanalysis/era40.yml +2 -0
- data/data/samples/reanalysis/era40/t.jan.nc +0 -0
- data/data/samples/reanalysis/era40/t.jan.nc.yml +1 -0
- data/data/samples/reanalysis/ncep.SIGEN +9 -0
- data/data/samples/reanalysis/ncep/T.jan.100hPa.png +0 -0
- data/data/samples/reanalysis/ncep/T.jan.100hPa.png.yml +43 -0
- data/data/samples/reanalysis/ncep/T.jan.nc +0 -0
- data/data/samples/reanalysis/ncep/T.jan.zonal_mean.nc +0 -0
- data/data/samples/reanalysis/ncep/T.jan.zonal_mean.nc.yml +8 -0
- data/data/samples/reanalysis/ncep/T.jan_only_root.nc +0 -0
- data/data/samples/reanalysis/ncep/T.jan_only_root.nc.yml +4 -0
- data/data/samples/reanalysis/ncep/UV.jan.nc +0 -0
- data/data/samples/reanalysis/ncep/UV.jan.nc.yml +10 -0
- data/data/samples/reanalysis/ncep/UV.jan.nc.yml.ja +11 -0
- data/data/samples/sonde_operational.yml +5 -0
- data/data/samples/sonde_operational/std_plev.yml +12 -0
- data/data/samples/sonde_operational/std_plev/41256.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/42410.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/43333.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/43346.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/48698.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/61641.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/63741.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/67083.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/72261.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/76805.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/82193.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/91165.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/91610.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/91948.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/94294.spl.nc +0 -0
- data/db/NetCDFparser.rb +406 -0
- data/db/create_derived_spatial_attributes.sql +12 -0
- data/db/draw_methods/line.yml +6 -0
- data/db/draw_methods/scatter.yml +38 -0
- data/db/draw_methods/tone.yml +64 -0
- data/db/draw_methods/vector.yml +19 -0
- data/db/dump_db.rb +43 -0
- data/db/functions/additions.yml +10 -0
- data/db/functions/cut.yml +10 -0
- data/db/functions/division.yml +10 -0
- data/db/functions/mean.yml +28 -0
- data/db/functions/multiplication.yml +10 -0
- data/db/functions/stddev.yml +28 -0
- data/db/functions/subtraction.yml +10 -0
- data/db/migrate/001_initial_scheme.rb +289 -0
- data/db/migrate/002_add_open_id_authentication_tables.rb +20 -0
- data/db/register_directory_tree.rb +760 -0
- data/db/restore_db.rb +60 -0
- data/gfdnavi-install +828 -0
- data/install.rb +828 -0
- data/lib/activerecord_gfdnavi.rb +31 -0
- data/lib/basic_authorization.rb +50 -0
- data/lib/create_activeresources.rb +108 -0
- data/lib/execute_analysis.rb +472 -0
- data/lib/file_gfdnavi.rb +38 -0
- data/lib/gphys_gfdnavi.rb +81 -0
- data/lib/localdir.rb +110 -0
- data/lib/login_system.rb +110 -0
- data/lib/multibytes.rb +20 -0
- data/lib/narray_yaml.rb +58 -0
- data/lib/no_rdb_base.rb +40 -0
- data/lib/opendapdir.rb +171 -0
- data/lib/tar.rb +127 -0
- data/lib/tasks/clean.rake +65 -0
- data/lib/tasks/setup.rake +316 -0
- data/lib/tasks/update.rake +62 -0
- data/lib/vizshot_gfdnavi.rb +224 -0
- data/public/crossdomain.xml +4 -0
- data/public/flex/NodeTreeDescriptor.as +55 -0
- data/public/flex/TreeNode.as +253 -0
- data/public/flex/finder.mxml +304 -0
- data/public/flex/finder.swf +0 -0
- data/public/flex/gfdnavi.mxml +52 -0
- data/public/flex/gfdnavi.swf +0 -0
- data/public/images/Help_S-shots/dir_tree_with_add.jpg +0 -0
- data/public/images/analyze.gif +0 -0
- data/public/images/circle.gif +0 -0
- data/public/images/create_from_analysis_button.png +0 -0
- data/public/images/delete.png +0 -0
- data/public/images/down.png +0 -0
- data/public/images/drawbutton.gif +0 -0
- data/public/images/gfdnavi_home_logo.png +0 -0
- data/public/images/gfdnavi_logo_big.png +0 -0
- data/public/images/gfdnavi_logo_med.png +0 -0
- data/public/images/gfdnavi_logo_mini.png +0 -0
- data/public/images/gfdnavi_logo_nobg_big.png +0 -0
- data/public/images/gfdnavi_logo_nobg_med.png +0 -0
- data/public/images/gfdnavi_logo_nobg_small.png +0 -0
- data/public/images/gfdnavi_logo_small.png +0 -0
- data/public/images/gfdnavi_logo_xsmall.png +0 -0
- data/public/images/hbar.png +0 -0
- data/public/images/helpmark16.png +0 -0
- data/public/images/helpmark18.png +0 -0
- data/public/images/kikyu_g.gif +0 -0
- data/public/images/kikyu_r.gif +0 -0
- data/public/images/map_icon_g.gif +0 -0
- data/public/images/map_icon_r.gif +0 -0
- data/public/images/new_knowledge.png +0 -0
- data/public/images/openid.png +0 -0
- data/public/images/read_in_the_form.png +0 -0
- data/public/images/slider_f.gif +0 -0
- data/public/images/slider_f_red.gif +0 -0
- data/public/images/star1.gif +0 -0
- data/public/images/star2.gif +0 -0
- data/public/images/startanim.gif +0 -0
- data/public/images/stopanim.gif +0 -0
- data/public/images/tree/DL.png +0 -0
- data/public/images/tree/anal_viz.png +0 -0
- data/public/images/tree/analyze_visualize_checked_items.png +0 -0
- data/public/images/tree/binary.png +0 -0
- data/public/images/tree/details.png +0 -0
- data/public/images/tree/download_checked_items.png +0 -0
- data/public/images/tree/folder.png +0 -0
- data/public/images/tree/folder_close.gif +0 -0
- data/public/images/tree/image2.png +0 -0
- data/public/images/tree/knowledge.png +0 -0
- data/public/images/tree/knowledges.png +0 -0
- data/public/images/tree/last.gif +0 -0
- data/public/images/tree/last.png +0 -0
- data/public/images/tree/minus.gif +0 -0
- data/public/images/tree/minus_simple.gif +0 -0
- data/public/images/tree/none.gif +0 -0
- data/public/images/tree/none.png +0 -0
- data/public/images/tree/plus.gif +0 -0
- data/public/images/tree/plus_simple.gif +0 -0
- data/public/images/tree/show.png +0 -0
- data/public/images/tree/show_checked_items.png +0 -0
- data/public/images/tree/t.gif +0 -0
- data/public/images/tree/t.png +0 -0
- data/public/images/tree/tate.gif +0 -0
- data/public/images/tree/tate.png +0 -0
- data/public/images/up.png +0 -0
- data/public/images/vbar.png +0 -0
- data/public/images/white.bmp +0 -0
- data/public/images/x.gif +0 -0
- data/public/index.html +100 -0
- data/public/javascripts/AC_OETags.js +269 -0
- data/public/javascripts/analysis.js +751 -0
- data/public/javascripts/application.js +29 -0
- data/public/javascripts/directory_tree.js +102 -0
- data/public/javascripts/draw_method.js +83 -0
- data/public/javascripts/excanvas.js +704 -0
- data/public/javascripts/function.js +107 -0
- data/public/javascripts/gfdnavi.js +175 -0
- data/public/javascripts/knowledge.js +384 -0
- data/public/javascripts/mapsearch.js +313 -0
- data/public/javascripts/progress.js +42 -0
- data/public/javascripts/resizable_box.js +164 -0
- data/public/javascripts/slider.js +260 -0
- data/public/javascripts/tab.js +17 -0
- data/public/javascripts/work_flow.js +452 -0
- data/public/stylesheets/analysis.css +111 -0
- data/public/stylesheets/description.css +71 -0
- data/public/stylesheets/gfdnavi.css +141 -0
- data/public/stylesheets/knowledge.css +218 -0
- data/public/stylesheets/search.css +184 -0
- data/public/stylesheets/tree.css +45 -0
- data/public/stylesheets/tree_for_ie.css +3 -0
- data/public/stylesheets/work_flow.css +78 -0
- data/script/cleaner +11 -0
- data/script/server_ssl +131 -0
- data/test/fixtures/diagram_cache_data.yml +5 -0
- data/test/fixtures/diagram_cache_sessions.yml +6 -0
- data/test/fixtures/diagram_caches.yml +6 -0
- data/test/fixtures/directories.yml +57 -0
- data/test/fixtures/draw_parameters.yml +6 -0
- data/test/fixtures/function_arguments.yml +15 -0
- data/test/fixtures/function_outputs.yml +15 -0
- data/test/fixtures/functions.yml +29 -0
- data/test/fixtures/group_members.yml +33 -0
- data/test/fixtures/groups.yml +25 -0
- data/test/fixtures/images.yml +12 -0
- data/test/fixtures/keyword_attributes.yml +73 -0
- data/test/fixtures/knowledges.yml +10 -0
- data/test/fixtures/node_relations.yml +11 -0
- data/test/fixtures/nodes.yml +298 -0
- data/test/fixtures/sign_up_users.yml +8 -0
- data/test/fixtures/spatial_and_time_attributes.yml +29 -0
- data/test/fixtures/user_mailer/authorization_inform +11 -0
- data/test/fixtures/user_mailer/signup_accepted +10 -0
- data/test/fixtures/user_mailer/signup_confirm +17 -0
- data/test/fixtures/user_mailer/signup_inform +10 -0
- data/test/fixtures/user_mailer/signup_rejected +9 -0
- data/test/fixtures/users.yml +31 -0
- data/test/fixtures/value_types.yml +10 -0
- data/test/fixtures/variables.yml +17 -0
- data/test/functional/analysis_controller_test.rb +169 -0
- data/test/functional/description_controller_test.rb +18 -0
- data/test/functional/function_controller_test.rb +18 -0
- data/test/functional/group_controller_test.rb +18 -0
- data/test/functional/search_controller_test.rb +83 -0
- data/test/functional/user_controller_test.rb +77 -0
- data/test/functional/webservice_analysis_api_test.rb +12 -0
- data/test/functional/work_flow_controller_test.rb +18 -0
- data/test/test_helper.rb +28 -0
- data/test/unit/diagram_cache_datum_test.rb +10 -0
- data/test/unit/diagram_cache_session_test.rb +10 -0
- data/test/unit/diagram_cache_test.rb +10 -0
- data/test/unit/directory_test.rb +49 -0
- data/test/unit/draw_parameter_test.rb +10 -0
- data/test/unit/function_argument_test.rb +10 -0
- data/test/unit/function_output_test.rb +10 -0
- data/test/unit/function_test.rb +10 -0
- data/test/unit/group_test.rb +48 -0
- data/test/unit/image_test.rb +13 -0
- data/test/unit/keyword_attribute_test.rb +33 -0
- data/test/unit/knowledge_test.rb +13 -0
- data/test/unit/node_relation_test.rb +20 -0
- data/test/unit/node_test.rb +85 -0
- data/test/unit/sign_up_user_test.rb +20 -0
- data/test/unit/spatial_and_time_attribute_test.rb +29 -0
- data/test/unit/user_mailer_test.rb +101 -0
- data/test/unit/user_test.rb +134 -0
- data/test/unit/value_type_test.rb +10 -0
- data/test/unit/variable_test.rb +35 -0
- data/vendor/plugins/acts_as_list/README +23 -0
- data/vendor/plugins/acts_as_list/init.rb +3 -0
- data/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb +256 -0
- data/vendor/plugins/acts_as_list/test/list_test.rb +332 -0
- data/vendor/plugins/acts_as_tree/README +26 -0
- data/vendor/plugins/acts_as_tree/Rakefile +22 -0
- data/vendor/plugins/acts_as_tree/init.rb +1 -0
- data/vendor/plugins/acts_as_tree/lib/active_record/acts/tree.rb +96 -0
- data/vendor/plugins/acts_as_tree/test/abstract_unit.rb +0 -0
- data/vendor/plugins/acts_as_tree/test/acts_as_tree_test.rb +219 -0
- data/vendor/plugins/acts_as_tree/test/database.yml +0 -0
- data/vendor/plugins/acts_as_tree/test/fixtures/mixin.rb +0 -0
- data/vendor/plugins/acts_as_tree/test/fixtures/mixins.yml +0 -0
- data/vendor/plugins/acts_as_tree/test/schema.rb +0 -0
- data/vendor/plugins/will_paginate/CHANGELOG +92 -0
- data/vendor/plugins/will_paginate/LICENSE +18 -0
- data/vendor/plugins/will_paginate/README.rdoc +131 -0
- data/vendor/plugins/will_paginate/Rakefile +62 -0
- data/vendor/plugins/will_paginate/examples/apple-circle.gif +0 -0
- data/vendor/plugins/will_paginate/examples/index.haml +69 -0
- data/vendor/plugins/will_paginate/examples/index.html +92 -0
- data/vendor/plugins/will_paginate/examples/pagination.css +90 -0
- data/vendor/plugins/will_paginate/examples/pagination.sass +91 -0
- data/vendor/plugins/will_paginate/init.rb +1 -0
- data/vendor/plugins/will_paginate/lib/will_paginate.rb +86 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/array.rb +16 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/collection.rb +145 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/core_ext.rb +32 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/finder.rb +247 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/named_scope.rb +132 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/named_scope_patch.rb +39 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/version.rb +9 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb +373 -0
- data/vendor/plugins/will_paginate/will_paginate.gemspec +21 -0
- metadata +586 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
.map_keyword {
|
|
2
|
+
padding-top: 1em;
|
|
3
|
+
padding-bottom: 1em;
|
|
4
|
+
color: white;
|
|
5
|
+
text-align: center;
|
|
6
|
+
font: larger sans-serif;
|
|
7
|
+
background: #5555ff;
|
|
8
|
+
}
|
|
9
|
+
.map_menu {
|
|
10
|
+
color: white;
|
|
11
|
+
font: larger sans-serif;
|
|
12
|
+
background: #5555ff;
|
|
13
|
+
}
|
|
14
|
+
.map_submenu {
|
|
15
|
+
font: larger sans-serif;
|
|
16
|
+
background: #bbccff;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.list_title {
|
|
20
|
+
font-size: 140%;
|
|
21
|
+
font-weight: bold;
|
|
22
|
+
text-decoration: underline;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.list_knowledge_path {
|
|
26
|
+
color: green;
|
|
27
|
+
font-size: 80%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.list_textbody {
|
|
31
|
+
table-layout: fixed;
|
|
32
|
+
width=500pt;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.pagination {
|
|
36
|
+
padding: 3px;
|
|
37
|
+
margin: 3px;
|
|
38
|
+
}
|
|
39
|
+
.pagination a {
|
|
40
|
+
padding: 2px 5px 2px 5px;
|
|
41
|
+
margin: 2px;
|
|
42
|
+
border: 1px solid #aaaadd;
|
|
43
|
+
text-decoration: none;
|
|
44
|
+
color: #000099;
|
|
45
|
+
}
|
|
46
|
+
.pagination a:hover, .pagination a:active {
|
|
47
|
+
border: 1px solid #000099;
|
|
48
|
+
color: #000;
|
|
49
|
+
}
|
|
50
|
+
.pagination span.current {
|
|
51
|
+
padding: 2px 5px 2px 5px;
|
|
52
|
+
margin: 2px;
|
|
53
|
+
border: 1px solid #000099;
|
|
54
|
+
font-weight: bold;
|
|
55
|
+
background-color: #000099;
|
|
56
|
+
color: #FFF;
|
|
57
|
+
}
|
|
58
|
+
.pagination span.disabled {
|
|
59
|
+
padding: 2px 5px 2px 5px;
|
|
60
|
+
margin: 2px;
|
|
61
|
+
border: 1px solid #eee;
|
|
62
|
+
color: #ddd;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
h1.davis {
|
|
66
|
+
background-color: #9999FF;
|
|
67
|
+
color: #FFFFFF;
|
|
68
|
+
font-family: "times roman", verdana, sans-serif;
|
|
69
|
+
text-align: center;
|
|
70
|
+
border-top: 4px solid;
|
|
71
|
+
border-bottom: 4px solid;
|
|
72
|
+
border-color: #0099ff;
|
|
73
|
+
line-height: 100%;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
h2.davis, h3.davis, h4.davis, h5.davis, h6.davis {
|
|
77
|
+
font-family: verdana, arial, helvetica, Sans-Serif;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
h2.davis {
|
|
81
|
+
border-left: #9999ff 0.6em solid;
|
|
82
|
+
border-bottom: #0099ff 5px solid;
|
|
83
|
+
margin-right: 30%;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
h3.davis {
|
|
87
|
+
color: #003366;
|
|
88
|
+
border-bottom: #000066 1px solid;
|
|
89
|
+
margin-right: 35%;
|
|
90
|
+
margin-top:2ex;
|
|
91
|
+
margin-bottom:0ex;
|
|
92
|
+
margin-left: 0.5em;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
h4.davis {
|
|
96
|
+
margin-left: 1.0em;
|
|
97
|
+
text-decoration: underline;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
ul.davis {
|
|
101
|
+
margin-left: 3em;
|
|
102
|
+
padding: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
li.davis {
|
|
106
|
+
line-height: 150%;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
p.davis {
|
|
110
|
+
margin-left: 2em;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
em.davis {
|
|
114
|
+
color: #004080;
|
|
115
|
+
font-family: arial, helvetica, Sans-Serif, gothic;
|
|
116
|
+
font-style: normal;
|
|
117
|
+
font-variant: normal;
|
|
118
|
+
font-weight: bold;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
pre.davis {
|
|
122
|
+
line-height: 100%;
|
|
123
|
+
border-right: #646464 1px solid;
|
|
124
|
+
padding-right: 0.5em;
|
|
125
|
+
border-top: #646464 1px solid;
|
|
126
|
+
padding-top: 0.5em;
|
|
127
|
+
border-left: #646464 1px solid;
|
|
128
|
+
padding-left: 0.5em;
|
|
129
|
+
border-bottom: #646464 1px solid;
|
|
130
|
+
padding-bottom: 0.5em;
|
|
131
|
+
margin-left: 2em;
|
|
132
|
+
margin-right: 2em;
|
|
133
|
+
white-space: pre;
|
|
134
|
+
background-color: #e6e6e6;
|
|
135
|
+
color: black;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
//copy of knowledge
|
|
140
|
+
.show_comment_buttons {
|
|
141
|
+
cursor: pointer;
|
|
142
|
+
border-color: black;
|
|
143
|
+
border-width: 3px;
|
|
144
|
+
background-color: #CCCCCC;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.on_buttons_in_list {
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
border: solid 1px black;
|
|
150
|
+
color: black;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.off_buttons_in_list {
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
border: solid 1px #CCCCCC;
|
|
156
|
+
color: gray;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.space_td {
|
|
160
|
+
width: 10px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.list_title {
|
|
164
|
+
font-size: 140%;
|
|
165
|
+
font-weight: bold;
|
|
166
|
+
text-decoration: underline;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.comment_list_table {
|
|
170
|
+
//width: 80%;
|
|
171
|
+
border: solid 1pt orange;
|
|
172
|
+
background-color: #F5F5F5;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.comment_list_td {
|
|
176
|
+
border: solid 1pt orange;
|
|
177
|
+
background-color: #F5F5F5;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.comment_list_title {
|
|
181
|
+
font-weight: bold;
|
|
182
|
+
text-decoration: underline;
|
|
183
|
+
}
|
|
184
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#dir {
|
|
2
|
+
border: solid;
|
|
3
|
+
border-width: 1px;
|
|
4
|
+
}
|
|
5
|
+
#dir_tree {
|
|
6
|
+
float: left;
|
|
7
|
+
overflow: auto;
|
|
8
|
+
}
|
|
9
|
+
#dir_tree_float {
|
|
10
|
+
padding-left: 10px;
|
|
11
|
+
padding-bottom: 10px;
|
|
12
|
+
padding-right: 10px;
|
|
13
|
+
}
|
|
14
|
+
#dir_details {
|
|
15
|
+
overflow: auto;
|
|
16
|
+
}
|
|
17
|
+
#dir_help {
|
|
18
|
+
padding: 5px;
|
|
19
|
+
}
|
|
20
|
+
#details_window {
|
|
21
|
+
border: solid;
|
|
22
|
+
border-width: 1px;
|
|
23
|
+
min-height: 10em;
|
|
24
|
+
padding: 5px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.tree {
|
|
28
|
+
font-size: 12pt;
|
|
29
|
+
vertical-align: middle;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.path {
|
|
33
|
+
border-bottom: solid;
|
|
34
|
+
border-width: 1px;
|
|
35
|
+
padding: 3px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.path_text {
|
|
39
|
+
font-weight: bold;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.selected {
|
|
43
|
+
background-color: blue;
|
|
44
|
+
color: white;
|
|
45
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
.entity {
|
|
2
|
+
border: thin solid;
|
|
3
|
+
padding: 5px;
|
|
4
|
+
cursor: move;
|
|
5
|
+
}
|
|
6
|
+
.plug {
|
|
7
|
+
background-color: blue;
|
|
8
|
+
border: thin solid;
|
|
9
|
+
width: 10px;
|
|
10
|
+
height: 10px;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
.plug_hover {
|
|
15
|
+
border-color: red;
|
|
16
|
+
}
|
|
17
|
+
.connector {
|
|
18
|
+
float: left;
|
|
19
|
+
background-color: blue;
|
|
20
|
+
border: thin solid;
|
|
21
|
+
width: 8px;
|
|
22
|
+
height: 8px;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.delete {
|
|
28
|
+
background-color: white;
|
|
29
|
+
border: 0;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.link {
|
|
34
|
+
text-decoration: underline;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.title {
|
|
39
|
+
text-align: center;
|
|
40
|
+
font-size: large;
|
|
41
|
+
font-weight:bold;
|
|
42
|
+
margin-bottom: 10px;
|
|
43
|
+
margin: 3px;
|
|
44
|
+
}
|
|
45
|
+
.list_box {
|
|
46
|
+
float: left;
|
|
47
|
+
margin: 10px;
|
|
48
|
+
}
|
|
49
|
+
.list {
|
|
50
|
+
border: thin solid;
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 500;
|
|
53
|
+
margin-bottom: 10px;
|
|
54
|
+
padding: 3px;
|
|
55
|
+
overflow: auto;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.selected {
|
|
59
|
+
color: blue;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
#canvas_chart {
|
|
63
|
+
margin-bottom: 10px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
#canvas_div {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
#canvas {
|
|
70
|
+
border: thin solid;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
#form_div {
|
|
74
|
+
float: left;
|
|
75
|
+
border: thin solid;
|
|
76
|
+
overflow: auto;
|
|
77
|
+
padding: 5px;
|
|
78
|
+
}
|
data/script/cleaner
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
require "find"
|
|
3
|
+
include Find
|
|
4
|
+
|
|
5
|
+
top = File.dirname(__FILE__) + '/..'
|
|
6
|
+
Dir.chdir( top )
|
|
7
|
+
|
|
8
|
+
print "cleaning tmp/ and public/diagram/ ...\n"
|
|
9
|
+
system('rm -f `find tmp/sessions tmp/work public/diagrams -atime +1 -type f -print`')
|
|
10
|
+
system('rm -fr `find tmp/work/* public/diagrams/* -type d -empty -print`')
|
|
11
|
+
|
data/script/server_ssl
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
require File.dirname(__FILE__) + '/../config/boot'
|
|
3
|
+
|
|
4
|
+
require 'active_support'
|
|
5
|
+
require 'fileutils'
|
|
6
|
+
|
|
7
|
+
puts "=> Booting WEBrick..."
|
|
8
|
+
|
|
9
|
+
%w(cache pids sessions sockets).each { |dir_to_make| FileUtils.mkdir_p(File.join(RAILS_ROOT, 'tmp', dir_to_make)) }
|
|
10
|
+
|
|
11
|
+
require 'webrick'
|
|
12
|
+
require 'webrick/https'
|
|
13
|
+
require 'optparse'
|
|
14
|
+
|
|
15
|
+
OPTIONS = {
|
|
16
|
+
:port => 3000,
|
|
17
|
+
:ip => "0.0.0.0",
|
|
18
|
+
:environment => (ENV['RAILS_ENV'] || "development").dup,
|
|
19
|
+
:server_root => File.expand_path(RAILS_ROOT + "/public/"),
|
|
20
|
+
:server_type => WEBrick::SimpleServer,
|
|
21
|
+
:charset => "UTF-8",
|
|
22
|
+
:mime_types => WEBrick::HTTPUtils::DefaultMimeTypes
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
ARGV.options do |opts|
|
|
26
|
+
script_name = File.basename($0)
|
|
27
|
+
opts.banner = "Usage: ruby #{script_name} [options]"
|
|
28
|
+
|
|
29
|
+
opts.separator ""
|
|
30
|
+
|
|
31
|
+
opts.on("-p", "--port=port", Integer,
|
|
32
|
+
"Runs Rails on the specified port.",
|
|
33
|
+
"Default: 3000") { |v| OPTIONS[:port] = v }
|
|
34
|
+
opts.on("-b", "--binding=ip", String,
|
|
35
|
+
"Binds Rails to the specified ip.",
|
|
36
|
+
"Default: 0.0.0.0") { |v| OPTIONS[:ip] = v }
|
|
37
|
+
opts.on("-e", "--environment=name", String,
|
|
38
|
+
"Specifies the environment to run this server under (test/development/production).",
|
|
39
|
+
"Default: development") { |v| OPTIONS[:environment] = v }
|
|
40
|
+
opts.on("-m", "--mime-types=filename", String,
|
|
41
|
+
"Specifies an Apache style mime.types configuration file to be used for mime types",
|
|
42
|
+
"Default: none") { |mime_types_file| OPTIONS[:mime_types] = WEBrick::HTTPUtils::load_mime_types(mime_types_file) }
|
|
43
|
+
|
|
44
|
+
opts.on("-d", "--daemon",
|
|
45
|
+
"Make Rails run as a Daemon (only works if fork is available -- meaning on *nix)."
|
|
46
|
+
) { OPTIONS[:server_type] = WEBrick::Daemon }
|
|
47
|
+
|
|
48
|
+
opts.on("-c", "--charset=charset", String,
|
|
49
|
+
"Set default charset for output.",
|
|
50
|
+
"Default: UTF-8") { |v| OPTIONS[:charset] = v }
|
|
51
|
+
|
|
52
|
+
opts.separator ""
|
|
53
|
+
|
|
54
|
+
opts.on("-h", "--help",
|
|
55
|
+
"Show this help message.") { puts opts; exit }
|
|
56
|
+
|
|
57
|
+
opts.parse!
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
ENV["RAILS_ENV"] = OPTIONS[:environment]
|
|
61
|
+
RAILS_ENV.replace(OPTIONS[:environment]) if defined?(RAILS_ENV)
|
|
62
|
+
|
|
63
|
+
require RAILS_ROOT + "/config/environment"
|
|
64
|
+
require 'webrick_server'
|
|
65
|
+
|
|
66
|
+
OPTIONS['working_directory'] = File.expand_path(RAILS_ROOT)
|
|
67
|
+
|
|
68
|
+
puts "=> Rails application started on https://#{OPTIONS[:ip]}:#{OPTIONS[:port]}"
|
|
69
|
+
puts "=> Ctrl-C to shutdown server; call with --help for options" if OPTIONS[:server_type] == WEBrick::SimpleServer
|
|
70
|
+
|
|
71
|
+
class SSLDispatchServlet < DispatchServlet
|
|
72
|
+
def self.dispatch(options={})
|
|
73
|
+
|
|
74
|
+
Socket.do_not_reverse_lookup = true
|
|
75
|
+
|
|
76
|
+
# keys for localhost
|
|
77
|
+
ssl_certificate = <<"EOS"
|
|
78
|
+
-----BEGIN CERTIFICATE-----
|
|
79
|
+
MIICTTCCAbagAwIBAwIBADANBgkqhkiG9w0BAQUFADAUMRIwEAYDVQQDDAlsb2Nh
|
|
80
|
+
bGhvc3QwHhcNMDcxMTEwMDUyMDEyWhcNMDgxMTA5MDUyMDEyWjAUMRIwEAYDVQQD
|
|
81
|
+
DAlsb2NhbGhvc3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALSGK8VpvJ2F
|
|
82
|
+
2eshxjBhV0dygEZcweC3j9k82M4XdsxDwjYS5L0dlKuU+U2RP0eBc3nV/K6rj3ex
|
|
83
|
+
6gqKRmz4Zwp04/v436HmOKDxsvQlYJl0nW1fagOF1EBFnCvd4d6mfrJ85OtLLbt9
|
|
84
|
+
X9OnaE4QESKK7hS0mk3PJspfddtLbGTzAgMBAAGjga4wgaswCQYDVR0TBAIwADAL
|
|
85
|
+
BgNVHQ8EBAMCBSAwHQYDVR0OBBYEFISoThjAnWOubNstBC2ExZEK28tnMBMGA1Ud
|
|
86
|
+
JQQMMAoGCCsGAQUFBwMBMB8GCWCGSAGG+EIBDQQSFhB0ZXN0IGNlcnRpZmljYXRl
|
|
87
|
+
MDwGA1UdIwQ1MDOAFISoThjAnWOubNstBC2ExZEK28tnoRikFjAUMRIwEAYDVQQD
|
|
88
|
+
DAlsb2NhbGhvc3SCAQAwDQYJKoZIhvcNAQEFBQADgYEAnfJCvwemcW4DnSQ6SLWV
|
|
89
|
+
oZrrEL87KjuAXYxxrfIhyb2i4FD4p1R4kAy8xX884Egcy0LdH+7UCAA7TuVz7Ye+
|
|
90
|
+
NIcTlvimQUgPx+8kZPxmKou8TKEtOuf8Lkjq/s81uE3QUoiI3JeInT66knCIMLgE
|
|
91
|
+
m8NObj4uxBQYJ4fy7CTCGiM=
|
|
92
|
+
-----END CERTIFICATE-----
|
|
93
|
+
EOS
|
|
94
|
+
ssl_private_key = <<"EOS"
|
|
95
|
+
-----BEGIN RSA PRIVATE KEY-----
|
|
96
|
+
MIICWwIBAAKBgQC0hivFabydhdnrIcYwYVdHcoBGXMHgt4/ZPNjOF3bMQ8I2EuS9
|
|
97
|
+
HZSrlPlNkT9HgXN51fyuq493seoKikZs+GcKdOP7+N+h5jig8bL0JWCZdJ1tX2oD
|
|
98
|
+
hdRARZwr3eHepn6yfOTrSy27fV/Tp2hOEBEiiu4UtJpNzybKX3XbS2xk8wIDAQAB
|
|
99
|
+
AoGAHZE0LhtJZ0t7C8X2Xgozb2JTnDKpFpM6HkyW/fpd3MrkTlL93/OuXAQEaS32
|
|
100
|
+
/VE4hqYDwuAamXIscRmAu2xcA9XQtxj1Y+FGVD3P/vB0UtboOVEz0gn/98Y1u2G/
|
|
101
|
+
b+L4PCxwU6cN1boFGKX+J97ps1fOMMMz2xoCmy88J9mKpCECQQDnaqbRs+2cqcFZ
|
|
102
|
+
jzA9po+dBM13etTfqAeKH9Wu/MBeo0wft8OHQYGxK5TQcxQdfG82U5L/JmMsXZjL
|
|
103
|
+
N9B8dkQrAkEAx7OA5pMkpmxBa96Ve8EE8pGDHArFMO29ztz7/zlpNLoUKaZO8N4K
|
|
104
|
+
Y3ALQE48WtAsyJ5PHV+7j21YRERcPNkWWQJAUlr/MSPiTN2QxKmTlm0fMNcTtBCP
|
|
105
|
+
j2TCAiLgLd0fLM7aeXMxb4IdgIqs9B3wK6or/d5yMsFbi99nT/L2DEUebwJAZVxG
|
|
106
|
+
4MFuqMnpqsafOOEPkc8prOIKlHsXDBg+D50kOQ75jOpMxxTsUOxdyZXsLGvdTzaL
|
|
107
|
+
EW211Wa6lmvcJUZKgQJAPkNLxolcBgz+4QE2jqVvdbmxDIydOzPDeC3AJCUa7KUI
|
|
108
|
+
lTbn0L2reQGmdCkfBXcPt1Bs8Ub6zcSx0HDDKtykYQ==
|
|
109
|
+
-----END RSA PRIVATE KEY-----
|
|
110
|
+
EOS
|
|
111
|
+
|
|
112
|
+
params = {:Port => options[:port].to_i,
|
|
113
|
+
:ServerType => options[:server_type],
|
|
114
|
+
:BindAddress => options[:ip],
|
|
115
|
+
:SSLEnable => true,
|
|
116
|
+
:SSLCertificate => OpenSSL::X509::Certificate.new(ssl_certificate),
|
|
117
|
+
:SSLPrivateKey => OpenSSL::PKey::RSA.new(ssl_private_key)
|
|
118
|
+
# :SSLVerifyClient => OpenSSL::SSL::VERIFY_NONE,
|
|
119
|
+
# :SSLCertName => [ ["CN", WEBrick::Utils::getservername ]]
|
|
120
|
+
}
|
|
121
|
+
params[:MimeTypes] = options[:mime_types] if options[:mime_types]
|
|
122
|
+
|
|
123
|
+
server = WEBrick::HTTPServer.new(params)
|
|
124
|
+
server.mount('/', DispatchServlet, options)
|
|
125
|
+
trap("INT") { server.shutdown }
|
|
126
|
+
server.start
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
SSLDispatchServlet.dispatch(OPTIONS)
|