webroar 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -0
- data/README +1 -1
- data/doc/user-guide.html +125 -85
- data/doc/user-guide.txt +2 -2
- data/lib/constant.rb +23 -16
- data/lib/db_connect.rb +2 -3
- data/lib/installer.rb +17 -10
- data/lib/user_interaction.rb +21 -10
- data/lib/webroar_command.rb +21 -23
- data/src/admin_panel/Gemfile +8 -0
- data/src/admin_panel/Rakefile +2 -5
- data/src/admin_panel/app/controllers/application_controller.rb +1 -1
- data/src/admin_panel/app/controllers/exceptions_controller.rb +25 -26
- data/src/admin_panel/app/controllers/graph_controller.rb +2 -1
- data/src/admin_panel/app/helpers/admin_helper.rb +1 -1
- data/src/admin_panel/app/{models → mailers}/mailer.rb +5 -8
- data/src/admin_panel/app/models/app.rb +1 -1
- data/src/admin_panel/app/models/app_exception.rb +15 -11
- data/src/admin_panel/app/models/app_time_sample.rb +40 -10
- data/src/admin_panel/app/models/application_specification.rb +71 -41
- data/src/admin_panel/app/models/resource_usage.rb +76 -55
- data/src/admin_panel/app/models/url_breakup_time_sample.rb +6 -11
- data/src/admin_panel/app/models/url_time_sample.rb +57 -13
- data/src/admin_panel/app/views/admin/_application_table.html.erb +5 -5
- data/src/admin_panel/app/views/admin/_feedback_partial.html.erb +4 -4
- data/src/admin_panel/app/views/admin/_report_bug_partial.html.erb +5 -5
- data/src/admin_panel/app/views/admin/change_password_form.html.erb +3 -3
- data/src/admin_panel/app/views/admin/configuration.html.erb +6 -6
- data/src/admin_panel/app/views/admin/home.html.erb +4 -4
- data/src/admin_panel/app/views/admin/index.html.erb +5 -5
- data/src/admin_panel/app/views/application_specification/_application_specification_form.html.erb +15 -6
- data/src/admin_panel/app/views/exceptions/_add_and_list_exception_classes.html.erb +7 -6
- data/src/admin_panel/app/views/exceptions/_exception_backtrace_partial.html.erb +1 -1
- data/src/admin_panel/app/views/exceptions/_exception_environment_partial.html.erb +30 -30
- data/src/admin_panel/app/views/exceptions/_exception_list_partial.html.erb +11 -11
- data/src/admin_panel/app/views/exceptions/_show.html.erb +8 -8
- data/src/admin_panel/app/views/exceptions/index.html.erb +0 -1
- data/src/admin_panel/app/views/graph/_get_database_data.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_get_resource_usage_data_app.html.erb +2 -2
- data/src/admin_panel/app/views/graph/_get_resource_usage_data_server.html.erb +2 -2
- data/src/admin_panel/app/views/graph/_get_throughput_data.html.erb +2 -2
- data/src/admin_panel/app/views/graph/_get_url_data.html.erb +4 -4
- data/src/admin_panel/app/views/graph/_pie.html.erb +2 -2
- data/src/admin_panel/app/views/graph/_query_date.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_query_period.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_slider_partial.html.erb +5 -4
- data/src/admin_panel/app/views/graph/index.html.erb +0 -1
- data/src/admin_panel/app/views/headers/_add_expires_text_box.html.erb +5 -5
- data/src/admin_panel/app/views/headers/_expires_by_type_form.html.erb +1 -1
- data/src/admin_panel/app/views/headers/_headers_table.html.erb +12 -12
- data/src/admin_panel/app/views/layouts/application.html.erb +71 -51
- data/src/admin_panel/app/views/mail_specification/_current_spec.html.erb +4 -4
- data/src/admin_panel/app/views/mail_specification/_sendmail_form.html.erb +3 -3
- data/src/admin_panel/app/views/mail_specification/_smtp_form.html.erb +3 -3
- data/src/admin_panel/app/views/server_specification/_add_div.html.erb +4 -4
- data/src/admin_panel/app/views/server_specification/_ssl_support_form.html.erb +3 -2
- data/src/admin_panel/config.ru +4 -0
- data/src/admin_panel/config/application.rb +46 -0
- data/src/admin_panel/config/boot.rb +4 -112
- data/src/admin_panel/config/environment.rb +4 -85
- data/src/admin_panel/config/environments/development.rb +20 -13
- data/src/admin_panel/config/environments/production.rb +44 -17
- data/src/admin_panel/config/environments/test.rb +31 -18
- data/src/admin_panel/config/initializers/application_constants.rb +13 -11
- data/src/admin_panel/config/initializers/secret_token.rb +7 -0
- data/src/admin_panel/config/initializers/session_store.rb +8 -0
- data/src/admin_panel/config/initializers/ssl.rb +6 -2
- data/src/admin_panel/config/routes.rb +15 -57
- data/src/admin_panel/doc/README_FOR_APP +1 -1
- data/src/admin_panel/doc/app/ActionView.html +229 -0
- data/src/admin_panel/doc/app/ActionView/Helpers.html +229 -0
- data/src/admin_panel/doc/app/ActionView/Helpers/AssetTagHelper.html +277 -0
- data/src/admin_panel/doc/app/AdminController.html +814 -0
- data/src/admin_panel/doc/app/AdminHelper.html +495 -0
- data/src/admin_panel/doc/app/Analytics.html +272 -0
- data/src/admin_panel/doc/app/Analytics/Database.html +401 -0
- data/src/admin_panel/doc/app/Analytics/ResourceUsage.html +683 -0
- data/src/admin_panel/doc/app/Analytics/Throughput.html +488 -0
- data/src/admin_panel/doc/app/Analytics/Url.html +484 -0
- data/src/admin_panel/doc/app/Analytics/UrlBreakup.html +537 -0
- data/src/admin_panel/doc/app/App.html +489 -0
- data/src/admin_panel/doc/app/AppException.html +710 -0
- data/src/admin_panel/doc/app/AppTimeSample.html +620 -0
- data/src/admin_panel/doc/app/ApplicationController.html +239 -0
- data/src/admin_panel/doc/app/ApplicationHelper.html +296 -0
- data/src/admin_panel/doc/app/ApplicationSpecification.html +876 -0
- data/src/admin_panel/doc/app/ApplicationSpecificationController.html +552 -0
- data/src/admin_panel/doc/app/ApplicationSpecificationHelper.html +219 -0
- data/src/admin_panel/doc/app/Control.html +431 -0
- data/src/admin_panel/doc/app/ExceptionDetail.html +227 -0
- data/src/admin_panel/doc/app/ExceptionsController.html +754 -0
- data/src/admin_panel/doc/app/ExceptionsHelper.html +219 -0
- data/src/admin_panel/doc/app/GraphController.html +1101 -0
- data/src/admin_panel/doc/app/GraphHelper.html +285 -0
- data/src/admin_panel/doc/app/Headers.html +549 -0
- data/src/admin_panel/doc/app/HeadersController.html +507 -0
- data/src/admin_panel/doc/app/HeadersHelper.html +219 -0
- data/src/admin_panel/doc/app/MailSpecification.html +685 -0
- data/src/admin_panel/doc/app/MailSpecificationController.html +541 -0
- data/src/admin_panel/doc/app/MailSpecificationHelper.html +219 -0
- data/src/admin_panel/doc/app/Mailer.html +589 -0
- data/src/admin_panel/doc/app/Object.html +240 -0
- data/src/admin_panel/doc/app/PseudoModel.html +354 -0
- data/src/admin_panel/doc/app/ResourceUsage.html +656 -0
- data/src/admin_panel/doc/app/SCGI.html +674 -0
- data/src/admin_panel/doc/app/ServerSpecification.html +479 -0
- data/src/admin_panel/doc/app/ServerSpecificationController.html +500 -0
- data/src/admin_panel/doc/app/ServerSpecificationHelper.html +219 -0
- data/src/admin_panel/doc/app/SignalHelper.html +287 -0
- data/src/admin_panel/doc/app/UrlBreakupTimeSample.html +287 -0
- data/src/admin_panel/doc/app/UrlTimeSample.html +986 -0
- data/src/admin_panel/doc/app/User.html +290 -0
- data/src/admin_panel/doc/app/YAMLConfig.html +247 -0
- data/src/admin_panel/doc/app/YAMLWriter.html +284 -0
- data/src/admin_panel/doc/app/app/controllers/admin_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/application_controller_rb.html +54 -0
- data/src/admin_panel/doc/app/app/controllers/application_specification_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/exceptions_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/graph_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/headers_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/mail_specification_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/server_specification_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/admin_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/application_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/application_specification_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/exceptions_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/graph_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/headers_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/mail_specification_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/server_specification_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/mailers/mailer_rb.html +56 -0
- data/src/admin_panel/doc/app/app/models/app_exception_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/app_rb.html +54 -0
- data/src/admin_panel/doc/app/app/models/app_time_sample_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/application_specification_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/exception_detail_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/headers_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/mail_specification_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/pseudo_model_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/resource_usage_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/server_specification_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/url_breakup_time_sample_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/url_time_sample_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/user_rb.html +52 -0
- data/src/admin_panel/doc/app/created.rid +42 -1
- data/src/admin_panel/doc/app/doc/README_FOR_APP.html +172 -0
- data/src/admin_panel/doc/app/images/brick.png +0 -0
- data/src/admin_panel/doc/app/images/brick_link.png +0 -0
- data/src/admin_panel/doc/app/images/bug.png +0 -0
- data/src/admin_panel/doc/app/images/bullet_black.png +0 -0
- data/src/admin_panel/doc/app/images/bullet_toggle_minus.png +0 -0
- data/src/admin_panel/doc/app/images/bullet_toggle_plus.png +0 -0
- data/src/admin_panel/doc/app/images/date.png +0 -0
- data/src/admin_panel/doc/app/images/find.png +0 -0
- data/src/admin_panel/doc/app/images/loadingAnimation.gif +0 -0
- data/src/admin_panel/doc/app/images/macFFBgHack.png +0 -0
- data/src/admin_panel/doc/app/images/package.png +0 -0
- data/src/admin_panel/doc/app/images/page_green.png +0 -0
- data/src/admin_panel/doc/app/images/page_white_text.png +0 -0
- data/src/admin_panel/doc/app/images/page_white_width.png +0 -0
- data/src/admin_panel/doc/app/images/plugin.png +0 -0
- data/src/admin_panel/doc/app/images/ruby.png +0 -0
- data/src/admin_panel/doc/app/images/tag_green.png +0 -0
- data/src/admin_panel/doc/app/images/wrench.png +0 -0
- data/src/admin_panel/doc/app/images/wrench_orange.png +0 -0
- data/src/admin_panel/doc/app/images/zoom.png +0 -0
- data/src/admin_panel/doc/app/index.html +564 -20
- data/src/admin_panel/doc/app/js/darkfish.js +116 -0
- data/src/admin_panel/doc/app/js/jquery.js +32 -0
- data/src/admin_panel/doc/app/js/quicksearch.js +114 -0
- data/src/admin_panel/doc/app/js/thickbox-compressed.js +10 -0
- data/src/admin_panel/doc/app/lib/asset_tag_helper_ext_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/control_rb.html +58 -0
- data/src/admin_panel/doc/app/lib/graph_controller_extensions/database_analytics_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/graph_controller_extensions/resource_usage_analytics_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/graph_controller_extensions/throughput_analytics_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/graph_controller_extensions/url_analytics_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/graph_controller_extensions/url_breakup_analytics_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/helper_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/scgi_rb.html +54 -0
- data/src/admin_panel/doc/app/lib/yaml_writer_rb.html +52 -0
- data/src/admin_panel/doc/app/rdoc.css +763 -0
- data/src/admin_panel/lib/helper.rb +6 -2
- data/src/admin_panel/public/stylesheets/other/login.css +8 -4
- data/src/admin_panel/public/stylesheets/other/style.css +21 -17
- data/src/admin_panel/script/rails +6 -0
- data/src/admin_panel/test/test_helper.rb +2 -2
- data/src/admin_panel/vendor/plugins/calendar_date_select/History.txt +281 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/MIT-LICENSE +20 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/Manifest.txt +42 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/README.txt +17 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/Rakefile +37 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/VERSION +1 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/calendar_date_select.gemspec +95 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/init.rb +1 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/functional/cds_test.html +376 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/functional/format_iso_date_test.html +52 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/prototype.js +4184 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/test.css +40 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/unit/cds_helper_methods.html +46 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/unittest.js +564 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/lib/calendar_date_select.rb +33 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/lib/calendar_date_select/calendar_date_select.rb +122 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/lib/calendar_date_select/form_helpers.rb +237 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/lib/calendar_date_select/includes_helper.rb +29 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/blank_iframe.html +2 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/images/calendar_date_select/calendar.gif +0 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/calendar_date_select.js +459 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_american.js +35 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_danish.js +31 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_db.js +27 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_euro_24hr.js +7 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_euro_24hr_ymd.js +7 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_finnish.js +32 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_hyphen_ampm.js +37 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_iso_date.js +29 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_italian.js +24 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/ar.js +10 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/cs.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/da.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/de.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/es.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/fi.js +10 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/fr.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/hu.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/it.js +9 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/ja.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/nl.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/pl.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/pt.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/ru.js +10 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/sl.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/sv.js +9 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/blue.css +130 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/default.css +135 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/green.css +142 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/plain.css +128 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/red.css +135 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/silver.css +133 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/spec/calendar_date_select/calendar_date_select_spec.rb +14 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/spec/calendar_date_select/form_helpers_spec.rb +189 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/spec/calendar_date_select/includes_helper_spec.rb +46 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/spec/spec_helper.rb +26 -0
- data/src/admin_panel/vendor/plugins/open_flash_chart_2_plugin/install.rb +2 -2
- data/src/admin_panel/vendor/plugins/open_flash_chart_2_plugin/uninstall.rb +2 -2
- data/src/admin_panel/vendor/plugins/prototype_legacy_helper/README.markdown +13 -0
- data/src/admin_panel/vendor/plugins/prototype_legacy_helper/init.rb +1 -0
- data/src/admin_panel/vendor/plugins/prototype_legacy_helper/lib/prototype_legacy_helper.rb +432 -0
- data/src/admin_panel/vendor/plugins/prototype_legacy_helper/test/test_prototype_helper.rb +297 -0
- data/src/helper/wr_config.c +1 -1
- data/src/ruby_lib/analyzer/message_analyzer.rb +1 -0
- data/src/ruby_lib/analyzer/webroar_analyzer.rb +2 -2
- data/src/ruby_lib/profiler/message_dispatcher.rb +1 -1
- data/src/ruby_lib/ruby_interface/version.rb +2 -2
- data/src/ruby_lib/webroar_app_loader.rb +1 -1
- data/tasks/gem.rake +5 -7
- data/tasks/test.rake +1 -0
- data/test/spec/analytics_spec.rb +25 -24
- data/test/spec/test_app/README +142 -129
- data/test/spec/test_app/Rakefile +2 -5
- data/test/spec/test_app/app/controllers/application_controller.rb +3 -8
- data/test/spec/test_app/app/controllers/test_controller.rb +3 -3
- data/test/spec/test_app/app/controllers/users_controller.rb +8 -8
- data/test/spec/test_app/app/helpers/application_helper.rb +2 -1
- data/test/spec/test_app/app/helpers/test_helper.rb +2 -0
- data/test/spec/test_app/app/helpers/users_helper.rb +2 -0
- data/test/spec/test_app/app/models/user.rb +2 -0
- data/test/spec/test_app/app/views/layouts/{users.html.erb → application.html.erb} +6 -9
- data/test/spec/test_app/app/views/test/post_data.html.erb +2 -2
- data/test/spec/test_app/app/views/test/upload_file.html.erb +1 -1
- data/test/spec/test_app/{db/migrate/20090602102438_create_users.rb → app/views/users/_form.html.erb} +22 -11
- data/test/spec/test_app/app/views/users/edit.html.erb +19 -28
- data/test/spec/test_app/app/views/users/index.html.erb +23 -19
- data/test/spec/test_app/app/views/users/new.html.erb +19 -28
- data/test/spec/test_app/app/views/users/show.html.erb +21 -18
- data/test/spec/test_app/config/application.rb +45 -0
- data/test/spec/test_app/config/boot.rb +4 -112
- data/test/spec/test_app/config/database.yml +1 -1
- data/test/spec/test_app/config/environment.rb +4 -41
- data/test/spec/test_app/config/environments/development.rb +22 -13
- data/test/spec/test_app/config/environments/production.rb +41 -20
- data/test/spec/test_app/config/environments/test.rb +35 -28
- data/test/spec/test_app/config/initializers/backtrace_silencers.rb +2 -2
- data/test/spec/test_app/config/initializers/inflections.rb +1 -1
- data/test/spec/test_app/config/initializers/secret_token.rb +7 -0
- data/test/spec/test_app/config/initializers/session_store.rb +3 -10
- data/test/spec/test_app/config/locales/en.yml +5 -0
- data/test/spec/test_app/config/routes.rb +37 -22
- data/test/spec/test_app/db/migrate/20110906113329_create_users.rb +13 -0
- data/test/spec/test_app/db/seeds.rb +7 -0
- data/test/spec/test_app/public/404.html +15 -19
- data/test/spec/test_app/public/422.html +15 -19
- data/test/spec/test_app/public/500.html +14 -18
- data/test/spec/test_app/public/index.html +41 -77
- data/test/spec/test_app/public/javascripts/controls.js +5 -3
- data/test/spec/test_app/public/javascripts/dragdrop.js +7 -6
- data/test/spec/test_app/public/javascripts/effects.js +8 -13
- data/test/spec/test_app/public/javascripts/prototype.js +3381 -1700
- data/test/spec/test_app/public/javascripts/rails.js +191 -0
- data/test/spec/test_app/public/stylesheets/scaffold.css +15 -13
- data/test/spec/test_app/script/rails +6 -0
- metadata +340 -163
- data/src/admin_panel/Gemfile.lock +0 -79
- data/src/admin_panel/doc/app/classes/ActionView.html +0 -111
- data/src/admin_panel/doc/app/classes/ActionView/Helpers.html +0 -111
- data/src/admin_panel/doc/app/classes/ActionView/Helpers/AssetTagHelper.html +0 -149
- data/src/admin_panel/doc/app/classes/AdminController.html +0 -628
- data/src/admin_panel/doc/app/classes/AdminHelper.html +0 -482
- data/src/admin_panel/doc/app/classes/Analytics.html +0 -138
- data/src/admin_panel/doc/app/classes/Analytics/Database.html +0 -245
- data/src/admin_panel/doc/app/classes/Analytics/ResourceUsage.html +0 -478
- data/src/admin_panel/doc/app/classes/Analytics/Throughput.html +0 -316
- data/src/admin_panel/doc/app/classes/Analytics/Url.html +0 -314
- data/src/admin_panel/doc/app/classes/Analytics/UrlBreakup.html +0 -372
- data/src/admin_panel/doc/app/classes/App.html +0 -298
- data/src/admin_panel/doc/app/classes/AppException.html +0 -330
- data/src/admin_panel/doc/app/classes/AppTimeSample.html +0 -427
- data/src/admin_panel/doc/app/classes/ApplicationController.html +0 -118
- data/src/admin_panel/doc/app/classes/ApplicationHelper.html +0 -172
- data/src/admin_panel/doc/app/classes/ApplicationSpecification.html +0 -641
- data/src/admin_panel/doc/app/classes/ApplicationSpecificationController.html +0 -354
- data/src/admin_panel/doc/app/classes/Control.html +0 -273
- data/src/admin_panel/doc/app/classes/ExceptionsController.html +0 -612
- data/src/admin_panel/doc/app/classes/ExceptionsHelper.html +0 -105
- data/src/admin_panel/doc/app/classes/GraphController.html +0 -804
- data/src/admin_panel/doc/app/classes/GraphHelper.html +0 -164
- data/src/admin_panel/doc/app/classes/MailSpecification.html +0 -357
- data/src/admin_panel/doc/app/classes/MailSpecificationController.html +0 -304
- data/src/admin_panel/doc/app/classes/PseudoModel.html +0 -206
- data/src/admin_panel/doc/app/classes/ResourceUsage.html +0 -425
- data/src/admin_panel/doc/app/classes/SCGI.html +0 -406
- data/src/admin_panel/doc/app/classes/ServerSpecification.html +0 -325
- data/src/admin_panel/doc/app/classes/ServerSpecificationController.html +0 -273
- data/src/admin_panel/doc/app/classes/UrlBreakupTimeSample.html +0 -169
- data/src/admin_panel/doc/app/classes/UrlTimeSample.html +0 -708
- data/src/admin_panel/doc/app/classes/User.html +0 -165
- data/src/admin_panel/doc/app/classes/YAMLWriter.html +0 -159
- data/src/admin_panel/doc/app/files/app/controllers/admin_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/controllers/application_controller_rb.html +0 -108
- data/src/admin_panel/doc/app/files/app/controllers/application_specification_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/controllers/exceptions_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/controllers/graph_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/controllers/mail_specification_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/controllers/server_specification_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/helpers/admin_helper_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/helpers/application_helper_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/helpers/exceptions_helper_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/helpers/graph_helper_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/app_exception_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/app_rb.html +0 -108
- data/src/admin_panel/doc/app/files/app/models/app_time_sample_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/application_specification_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/mail_specification_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/pseudo_model_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/resource_usage_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/server_specification_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/url_breakup_time_sample_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/url_time_sample_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/user_rb.html +0 -101
- data/src/admin_panel/doc/app/files/doc/README_FOR_APP.html +0 -109
- data/src/admin_panel/doc/app/files/lib/asset_tag_helper_ext_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/control_rb.html +0 -110
- data/src/admin_panel/doc/app/files/lib/graph_controller_extensions/database_analytics_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/graph_controller_extensions/resource_usage_analytics_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/graph_controller_extensions/throughput_analytics_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/graph_controller_extensions/url_analytics_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/graph_controller_extensions/url_breakup_analytics_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/scgi_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/yaml_writer_rb.html +0 -101
- data/src/admin_panel/doc/app/fr_class_index.html +0 -60
- data/src/admin_panel/doc/app/fr_file_index.html +0 -58
- data/src/admin_panel/doc/app/fr_method_index.html +0 -206
- data/src/admin_panel/doc/app/rdoc-style.css +0 -208
- data/src/admin_panel/public/dispatch.cgi +0 -10
- data/src/admin_panel/public/dispatch.fcgi +0 -24
- data/src/admin_panel/public/dispatch.rb +0 -10
- data/src/admin_panel/script/about +0 -4
- data/src/admin_panel/script/console +0 -3
- data/src/admin_panel/script/dbconsole +0 -3
- data/src/admin_panel/script/destroy +0 -3
- data/src/admin_panel/script/generate +0 -3
- data/src/admin_panel/script/performance/benchmarker +0 -3
- data/src/admin_panel/script/performance/profiler +0 -3
- data/src/admin_panel/script/performance/request +0 -3
- data/src/admin_panel/script/plugin +0 -3
- data/src/admin_panel/script/process/inspector +0 -3
- data/src/admin_panel/script/process/reaper +0 -3
- data/src/admin_panel/script/process/spawner +0 -3
- data/src/admin_panel/script/runner +0 -3
- data/src/admin_panel/script/server +0 -3
- data/test/spec/test_app/config/initializers/new_rails_defaults.rb +0 -19
- data/test/spec/test_app/script/about +0 -4
- data/test/spec/test_app/script/console +0 -3
- data/test/spec/test_app/script/dbconsole +0 -3
- data/test/spec/test_app/script/destroy +0 -3
- data/test/spec/test_app/script/generate +0 -3
- data/test/spec/test_app/script/performance/benchmarker +0 -3
- data/test/spec/test_app/script/performance/profiler +0 -3
- data/test/spec/test_app/script/plugin +0 -3
- data/test/spec/test_app/script/runner +0 -3
- data/test/spec/test_app/script/server +0 -3
- data/test/spec/test_app/vendor/.placeholder +0 -0
@@ -0,0 +1,219 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Module: MailSpecificationHelper</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="module">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="./index.html">Home</a>
|
25
|
+
<a href="./index.html#classes">Classes</a>
|
26
|
+
<a href="./index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="./app/helpers/mail_specification_helper_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="app/helpers/mail_specification_helper.rb">app/helpers/mail_specification_helper.rb</a></li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="class-metadata">
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<div id="project-metadata">
|
60
|
+
|
61
|
+
|
62
|
+
<div id="fileindex-section" class="section project-section">
|
63
|
+
<h3 class="section-header">Files</h3>
|
64
|
+
<ul>
|
65
|
+
|
66
|
+
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
67
|
+
|
68
|
+
</ul>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
|
72
|
+
<div id="classindex-section" class="section project-section">
|
73
|
+
<h3 class="section-header">Class/Module Index
|
74
|
+
<span class="search-toggle"><img src="./images/find.png"
|
75
|
+
height="16" width="16" alt="[+]"
|
76
|
+
title="show/hide quicksearch" /></span></h3>
|
77
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
78
|
+
<fieldset>
|
79
|
+
<legend>Quicksearch</legend>
|
80
|
+
<input type="text" name="quicksearch" value=""
|
81
|
+
class="quicksearch-field" />
|
82
|
+
</fieldset>
|
83
|
+
</form>
|
84
|
+
|
85
|
+
<ul class="link-list">
|
86
|
+
|
87
|
+
<li><a href="./Analytics.html">Analytics</a></li>
|
88
|
+
|
89
|
+
<li><a href="./Analytics/Database.html">Analytics::Database</a></li>
|
90
|
+
|
91
|
+
<li><a href="./Analytics/ResourceUsage.html">Analytics::ResourceUsage</a></li>
|
92
|
+
|
93
|
+
<li><a href="./Analytics/Throughput.html">Analytics::Throughput</a></li>
|
94
|
+
|
95
|
+
<li><a href="./Analytics/Url.html">Analytics::Url</a></li>
|
96
|
+
|
97
|
+
<li><a href="./Analytics/UrlBreakup.html">Analytics::UrlBreakup</a></li>
|
98
|
+
|
99
|
+
<li><a href="./ActionView.html">ActionView</a></li>
|
100
|
+
|
101
|
+
<li><a href="./ActionView/Helpers.html">ActionView::Helpers</a></li>
|
102
|
+
|
103
|
+
<li><a href="./ActionView/Helpers/AssetTagHelper.html">ActionView::Helpers::AssetTagHelper</a></li>
|
104
|
+
|
105
|
+
<li><a href="./AdminController.html">AdminController</a></li>
|
106
|
+
|
107
|
+
<li><a href="./AdminHelper.html">AdminHelper</a></li>
|
108
|
+
|
109
|
+
<li><a href="./App.html">App</a></li>
|
110
|
+
|
111
|
+
<li><a href="./AppException.html">AppException</a></li>
|
112
|
+
|
113
|
+
<li><a href="./AppTimeSample.html">AppTimeSample</a></li>
|
114
|
+
|
115
|
+
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
116
|
+
|
117
|
+
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
118
|
+
|
119
|
+
<li><a href="./ApplicationSpecification.html">ApplicationSpecification</a></li>
|
120
|
+
|
121
|
+
<li><a href="./ApplicationSpecificationController.html">ApplicationSpecificationController</a></li>
|
122
|
+
|
123
|
+
<li><a href="./ApplicationSpecificationHelper.html">ApplicationSpecificationHelper</a></li>
|
124
|
+
|
125
|
+
<li><a href="./Control.html">Control</a></li>
|
126
|
+
|
127
|
+
<li><a href="./ExceptionDetail.html">ExceptionDetail</a></li>
|
128
|
+
|
129
|
+
<li><a href="./ExceptionsController.html">ExceptionsController</a></li>
|
130
|
+
|
131
|
+
<li><a href="./ExceptionsHelper.html">ExceptionsHelper</a></li>
|
132
|
+
|
133
|
+
<li><a href="./GraphController.html">GraphController</a></li>
|
134
|
+
|
135
|
+
<li><a href="./GraphHelper.html">GraphHelper</a></li>
|
136
|
+
|
137
|
+
<li><a href="./Headers.html">Headers</a></li>
|
138
|
+
|
139
|
+
<li><a href="./HeadersController.html">HeadersController</a></li>
|
140
|
+
|
141
|
+
<li><a href="./HeadersHelper.html">HeadersHelper</a></li>
|
142
|
+
|
143
|
+
<li><a href="./MailSpecification.html">MailSpecification</a></li>
|
144
|
+
|
145
|
+
<li><a href="./MailSpecificationController.html">MailSpecificationController</a></li>
|
146
|
+
|
147
|
+
<li><a href="./MailSpecificationHelper.html">MailSpecificationHelper</a></li>
|
148
|
+
|
149
|
+
<li><a href="./Mailer.html">Mailer</a></li>
|
150
|
+
|
151
|
+
<li><a href="./Object.html">Object</a></li>
|
152
|
+
|
153
|
+
<li><a href="./PseudoModel.html">PseudoModel</a></li>
|
154
|
+
|
155
|
+
<li><a href="./ResourceUsage.html">ResourceUsage</a></li>
|
156
|
+
|
157
|
+
<li><a href="./SCGI.html">SCGI</a></li>
|
158
|
+
|
159
|
+
<li><a href="./ServerSpecification.html">ServerSpecification</a></li>
|
160
|
+
|
161
|
+
<li><a href="./ServerSpecificationController.html">ServerSpecificationController</a></li>
|
162
|
+
|
163
|
+
<li><a href="./ServerSpecificationHelper.html">ServerSpecificationHelper</a></li>
|
164
|
+
|
165
|
+
<li><a href="./SignalHelper.html">SignalHelper</a></li>
|
166
|
+
|
167
|
+
<li><a href="./UrlBreakupTimeSample.html">UrlBreakupTimeSample</a></li>
|
168
|
+
|
169
|
+
<li><a href="./UrlTimeSample.html">UrlTimeSample</a></li>
|
170
|
+
|
171
|
+
<li><a href="./User.html">User</a></li>
|
172
|
+
|
173
|
+
<li><a href="./YAMLConfig.html">YAMLConfig</a></li>
|
174
|
+
|
175
|
+
<li><a href="./YAMLWriter.html">YAMLWriter</a></li>
|
176
|
+
|
177
|
+
</ul>
|
178
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
179
|
+
</div>
|
180
|
+
|
181
|
+
|
182
|
+
</div>
|
183
|
+
</div>
|
184
|
+
|
185
|
+
<div id="documentation">
|
186
|
+
<h1 class="module">MailSpecificationHelper</h1>
|
187
|
+
|
188
|
+
<div id="description" class="description">
|
189
|
+
|
190
|
+
</div><!-- description -->
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
<!-- Methods -->
|
205
|
+
|
206
|
+
</div><!-- 5Buntitled-5D -->
|
207
|
+
|
208
|
+
|
209
|
+
</div><!-- documentation -->
|
210
|
+
|
211
|
+
<div id="validator-badges">
|
212
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
213
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
214
|
+
Rdoc Generator</a> 2</small>.</p>
|
215
|
+
</div>
|
216
|
+
|
217
|
+
</body>
|
218
|
+
</html>
|
219
|
+
|
@@ -0,0 +1,589 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: Mailer</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="class">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="./index.html">Home</a>
|
25
|
+
<a href="./index.html#classes">Classes</a>
|
26
|
+
<a href="./index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="./app/mailers/mailer_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="app/mailers/mailer.rb">app/mailers/mailer.rb</a></li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="class-metadata">
|
48
|
+
|
49
|
+
<!-- Parent Class -->
|
50
|
+
<div id="parent-class-section" class="section">
|
51
|
+
<h3 class="section-header">Parent</h3>
|
52
|
+
|
53
|
+
<p class="link">ActionMailer::Base</p>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Method Quickref -->
|
64
|
+
<div id="method-list-section" class="section">
|
65
|
+
<h3 class="section-header">Methods</h3>
|
66
|
+
<ul class="link-list">
|
67
|
+
|
68
|
+
<li><a href="#method-c-check_smtp_mail_settings">::check_smtp_mail_settings</a></li>
|
69
|
+
|
70
|
+
<li><a href="#method-c-mail_settings">::mail_settings</a></li>
|
71
|
+
|
72
|
+
<li><a href="#method-c-parse_exception">::parse_exception</a></li>
|
73
|
+
|
74
|
+
<li><a href="#method-c-send_exception">::send_exception</a></li>
|
75
|
+
|
76
|
+
<li><a href="#method-c-send_feedback">::send_feedback</a></li>
|
77
|
+
|
78
|
+
<li><a href="#method-c-send_report_bug">::send_report_bug</a></li>
|
79
|
+
|
80
|
+
<li><a href="#method-i-send_email">#send_email</a></li>
|
81
|
+
|
82
|
+
</ul>
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
</div>
|
88
|
+
|
89
|
+
<div id="project-metadata">
|
90
|
+
|
91
|
+
|
92
|
+
<div id="fileindex-section" class="section project-section">
|
93
|
+
<h3 class="section-header">Files</h3>
|
94
|
+
<ul>
|
95
|
+
|
96
|
+
<li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a></li>
|
97
|
+
|
98
|
+
</ul>
|
99
|
+
</div>
|
100
|
+
|
101
|
+
|
102
|
+
<div id="classindex-section" class="section project-section">
|
103
|
+
<h3 class="section-header">Class/Module Index
|
104
|
+
<span class="search-toggle"><img src="./images/find.png"
|
105
|
+
height="16" width="16" alt="[+]"
|
106
|
+
title="show/hide quicksearch" /></span></h3>
|
107
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
108
|
+
<fieldset>
|
109
|
+
<legend>Quicksearch</legend>
|
110
|
+
<input type="text" name="quicksearch" value=""
|
111
|
+
class="quicksearch-field" />
|
112
|
+
</fieldset>
|
113
|
+
</form>
|
114
|
+
|
115
|
+
<ul class="link-list">
|
116
|
+
|
117
|
+
<li><a href="./Analytics.html">Analytics</a></li>
|
118
|
+
|
119
|
+
<li><a href="./Analytics/Database.html">Analytics::Database</a></li>
|
120
|
+
|
121
|
+
<li><a href="./Analytics/ResourceUsage.html">Analytics::ResourceUsage</a></li>
|
122
|
+
|
123
|
+
<li><a href="./Analytics/Throughput.html">Analytics::Throughput</a></li>
|
124
|
+
|
125
|
+
<li><a href="./Analytics/Url.html">Analytics::Url</a></li>
|
126
|
+
|
127
|
+
<li><a href="./Analytics/UrlBreakup.html">Analytics::UrlBreakup</a></li>
|
128
|
+
|
129
|
+
<li><a href="./ActionView.html">ActionView</a></li>
|
130
|
+
|
131
|
+
<li><a href="./ActionView/Helpers.html">ActionView::Helpers</a></li>
|
132
|
+
|
133
|
+
<li><a href="./ActionView/Helpers/AssetTagHelper.html">ActionView::Helpers::AssetTagHelper</a></li>
|
134
|
+
|
135
|
+
<li><a href="./AdminController.html">AdminController</a></li>
|
136
|
+
|
137
|
+
<li><a href="./AdminHelper.html">AdminHelper</a></li>
|
138
|
+
|
139
|
+
<li><a href="./App.html">App</a></li>
|
140
|
+
|
141
|
+
<li><a href="./AppException.html">AppException</a></li>
|
142
|
+
|
143
|
+
<li><a href="./AppTimeSample.html">AppTimeSample</a></li>
|
144
|
+
|
145
|
+
<li><a href="./ApplicationController.html">ApplicationController</a></li>
|
146
|
+
|
147
|
+
<li><a href="./ApplicationHelper.html">ApplicationHelper</a></li>
|
148
|
+
|
149
|
+
<li><a href="./ApplicationSpecification.html">ApplicationSpecification</a></li>
|
150
|
+
|
151
|
+
<li><a href="./ApplicationSpecificationController.html">ApplicationSpecificationController</a></li>
|
152
|
+
|
153
|
+
<li><a href="./ApplicationSpecificationHelper.html">ApplicationSpecificationHelper</a></li>
|
154
|
+
|
155
|
+
<li><a href="./Control.html">Control</a></li>
|
156
|
+
|
157
|
+
<li><a href="./ExceptionDetail.html">ExceptionDetail</a></li>
|
158
|
+
|
159
|
+
<li><a href="./ExceptionsController.html">ExceptionsController</a></li>
|
160
|
+
|
161
|
+
<li><a href="./ExceptionsHelper.html">ExceptionsHelper</a></li>
|
162
|
+
|
163
|
+
<li><a href="./GraphController.html">GraphController</a></li>
|
164
|
+
|
165
|
+
<li><a href="./GraphHelper.html">GraphHelper</a></li>
|
166
|
+
|
167
|
+
<li><a href="./Headers.html">Headers</a></li>
|
168
|
+
|
169
|
+
<li><a href="./HeadersController.html">HeadersController</a></li>
|
170
|
+
|
171
|
+
<li><a href="./HeadersHelper.html">HeadersHelper</a></li>
|
172
|
+
|
173
|
+
<li><a href="./MailSpecification.html">MailSpecification</a></li>
|
174
|
+
|
175
|
+
<li><a href="./MailSpecificationController.html">MailSpecificationController</a></li>
|
176
|
+
|
177
|
+
<li><a href="./MailSpecificationHelper.html">MailSpecificationHelper</a></li>
|
178
|
+
|
179
|
+
<li><a href="./Mailer.html">Mailer</a></li>
|
180
|
+
|
181
|
+
<li><a href="./Object.html">Object</a></li>
|
182
|
+
|
183
|
+
<li><a href="./PseudoModel.html">PseudoModel</a></li>
|
184
|
+
|
185
|
+
<li><a href="./ResourceUsage.html">ResourceUsage</a></li>
|
186
|
+
|
187
|
+
<li><a href="./SCGI.html">SCGI</a></li>
|
188
|
+
|
189
|
+
<li><a href="./ServerSpecification.html">ServerSpecification</a></li>
|
190
|
+
|
191
|
+
<li><a href="./ServerSpecificationController.html">ServerSpecificationController</a></li>
|
192
|
+
|
193
|
+
<li><a href="./ServerSpecificationHelper.html">ServerSpecificationHelper</a></li>
|
194
|
+
|
195
|
+
<li><a href="./SignalHelper.html">SignalHelper</a></li>
|
196
|
+
|
197
|
+
<li><a href="./UrlBreakupTimeSample.html">UrlBreakupTimeSample</a></li>
|
198
|
+
|
199
|
+
<li><a href="./UrlTimeSample.html">UrlTimeSample</a></li>
|
200
|
+
|
201
|
+
<li><a href="./User.html">User</a></li>
|
202
|
+
|
203
|
+
<li><a href="./YAMLConfig.html">YAMLConfig</a></li>
|
204
|
+
|
205
|
+
<li><a href="./YAMLWriter.html">YAMLWriter</a></li>
|
206
|
+
|
207
|
+
</ul>
|
208
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
209
|
+
</div>
|
210
|
+
|
211
|
+
|
212
|
+
</div>
|
213
|
+
</div>
|
214
|
+
|
215
|
+
<div id="documentation">
|
216
|
+
<h1 class="class">Mailer</h1>
|
217
|
+
|
218
|
+
<div id="description" class="description">
|
219
|
+
|
220
|
+
</div><!-- description -->
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
<!-- Methods -->
|
235
|
+
|
236
|
+
<div id="public-class-method-details" class="method-section section">
|
237
|
+
<h3 class="section-header">Public Class Methods</h3>
|
238
|
+
|
239
|
+
|
240
|
+
<div id="check_smtp_mail_settings-method" class="method-detail ">
|
241
|
+
<a name="method-c-check_smtp_mail_settings"></a>
|
242
|
+
|
243
|
+
|
244
|
+
<div class="method-heading">
|
245
|
+
<span class="method-name">check_smtp_mail_settings</span><span
|
246
|
+
class="method-args">()</span>
|
247
|
+
<span class="method-click-advice">click to toggle source</span>
|
248
|
+
</div>
|
249
|
+
|
250
|
+
|
251
|
+
<div class="method-description">
|
252
|
+
|
253
|
+
<p>This method is used to test smtp mail settings errors</p>
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
<div class="method-source-code" id="check_smtp_mail_settings-source">
|
258
|
+
<pre>
|
259
|
+
<span class="ruby-comment"># File app/mailers/mailer.rb, line 97</span>
|
260
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">check_smtp_mail_settings</span>
|
261
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">ActionMailer</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">delivery_method</span> <span class="ruby-operator">==</span> <span class="ruby-value">:sendmail</span>
|
262
|
+
<span class="ruby-identifier">from</span>,<span class="ruby-identifier">recipients</span>,<span class="ruby-identifier">mail_configuration</span>,<span class="ruby-identifier">email_notification</span> = <span class="ruby-identifier">mail_settings</span>
|
263
|
+
<span class="ruby-keyword">return</span> <span class="ruby-constant">MAIL_SETTINGS_NOT_CONFIGURED_MESSAGE</span>,<span class="ruby-string">''</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">mail_configuration</span>
|
264
|
+
<span class="ruby-identifier">smtp_settings</span> = <span class="ruby-constant">ActionMailer</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">smtp_settings</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">ActionMailer</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">smtp_settings</span>
|
265
|
+
<span class="ruby-identifier">smtp</span> = <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">SMTP</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">smtp_settings</span>[<span class="ruby-value">:address</span>], <span class="ruby-identifier">smtp_settings</span>[<span class="ruby-value">:port</span>])
|
266
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">smtp_settings</span>[<span class="ruby-value">:enable_starttls_auto</span>]
|
267
|
+
<span class="ruby-identifier">smtp</span>.<span class="ruby-identifier">enable_starttls_auto</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">smtp</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:enable_starttls_auto</span>)
|
268
|
+
<span class="ruby-keyword">end</span>
|
269
|
+
<span class="ruby-keyword">begin</span>
|
270
|
+
<span class="ruby-identifier">smtp</span>.<span class="ruby-identifier">start</span>(<span class="ruby-identifier">smtp_settings</span>[<span class="ruby-value">:domain</span>], <span class="ruby-identifier">smtp_settings</span>[<span class="ruby-value">:user_name</span>], <span class="ruby-identifier">smtp_settings</span>[<span class="ruby-value">:password</span>],<span class="ruby-identifier">smtp_settings</span>[<span class="ruby-value">:authentication</span>]) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">smtp</span><span class="ruby-operator">|</span> <span class="ruby-keyword">end</span>;
|
271
|
+
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">exception</span>
|
272
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">parse_exception</span>(<span class="ruby-identifier">exception</span>),<span class="ruby-string">''</span>
|
273
|
+
<span class="ruby-keyword">end</span>
|
274
|
+
<span class="ruby-keyword">end</span></pre>
|
275
|
+
</div><!-- check_smtp_mail_settings-source -->
|
276
|
+
|
277
|
+
</div>
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
</div><!-- check_smtp_mail_settings-method -->
|
283
|
+
|
284
|
+
|
285
|
+
<div id="mail_settings-method" class="method-detail ">
|
286
|
+
<a name="method-c-mail_settings"></a>
|
287
|
+
|
288
|
+
|
289
|
+
<div class="method-heading">
|
290
|
+
<span class="method-name">mail_settings</span><span
|
291
|
+
class="method-args">()</span>
|
292
|
+
<span class="method-click-advice">click to toggle source</span>
|
293
|
+
</div>
|
294
|
+
|
295
|
+
|
296
|
+
<div class="method-description">
|
297
|
+
|
298
|
+
<p>This method is used to configure the ActionMailer::Base.smtp_settings or
|
299
|
+
ActionMailer::Base.sendmail_settings and returns from address ,recipients
|
300
|
+
address and flags for mail_configuration status and email_notification
|
301
|
+
status for analytics part</p>
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
<div class="method-source-code" id="mail_settings-source">
|
306
|
+
<pre>
|
307
|
+
<span class="ruby-comment"># File app/mailers/mailer.rb, line 31</span>
|
308
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">mail_settings</span>
|
309
|
+
<span class="ruby-keyword">begin</span>
|
310
|
+
<span class="ruby-identifier">data</span> = <span class="ruby-constant">YAML</span><span class="ruby-operator">::</span><span class="ruby-identifier">load_file</span>(<span class="ruby-constant">MAIL_FILE_PATH</span>)
|
311
|
+
<span class="ruby-identifier">mail_configuration</span> = <span class="ruby-keyword">true</span>
|
312
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">data</span>[<span class="ruby-string">'smtp'</span>]
|
313
|
+
<span class="ruby-identifier">details</span> = {
|
314
|
+
<span class="ruby-value">:address</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">data</span>[<span class="ruby-string">'smtp'</span>][<span class="ruby-string">'address'</span>],
|
315
|
+
<span class="ruby-value">:port</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">data</span>[<span class="ruby-string">'smtp'</span>][<span class="ruby-string">'port'</span>],
|
316
|
+
<span class="ruby-value">:domain</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">data</span>[<span class="ruby-string">'smtp'</span>][<span class="ruby-string">'domain'</span>],
|
317
|
+
<span class="ruby-value">:authentication</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">data</span>[<span class="ruby-string">'smtp'</span>][<span class="ruby-string">'authentication'</span>].<span class="ruby-identifier">to_sym</span>,
|
318
|
+
<span class="ruby-value">:user_name</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">data</span>[<span class="ruby-string">'smtp'</span>][<span class="ruby-string">'user_name'</span>],
|
319
|
+
<span class="ruby-value">:password</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">data</span>[<span class="ruby-string">'smtp'</span>][<span class="ruby-string">'password'</span>]
|
320
|
+
}
|
321
|
+
<span class="ruby-identifier">from</span> = <span class="ruby-identifier">data</span>[<span class="ruby-string">'smtp'</span>][<span class="ruby-string">'from'</span>]
|
322
|
+
<span class="ruby-identifier">recipients</span> = <span class="ruby-identifier">data</span>[<span class="ruby-string">'smtp'</span>][<span class="ruby-string">'recipients'</span>]
|
323
|
+
<span class="ruby-constant">ActionMailer</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">smtp_settings</span> = <span class="ruby-identifier">details</span>
|
324
|
+
<span class="ruby-keyword">else</span>
|
325
|
+
<span class="ruby-identifier">details</span> = {
|
326
|
+
<span class="ruby-value">:location</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">data</span>[<span class="ruby-string">'sendmail'</span>][<span class="ruby-string">'location'</span>],
|
327
|
+
<span class="ruby-value">:arguments</span> =<span class="ruby-operator">></span> <span class="ruby-string">"-i -t -f"</span>
|
328
|
+
}
|
329
|
+
<span class="ruby-identifier">from</span> = <span class="ruby-identifier">data</span>[<span class="ruby-string">'sendmail'</span>][<span class="ruby-string">'from'</span>]
|
330
|
+
<span class="ruby-identifier">recipients</span> = <span class="ruby-identifier">data</span>[<span class="ruby-string">'sendmail'</span>][<span class="ruby-string">'recipients'</span>]
|
331
|
+
<span class="ruby-constant">ActionMailer</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">sendmail_settings</span> = <span class="ruby-identifier">details</span>
|
332
|
+
<span class="ruby-constant">ActionMailer</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">delivery_method</span> = <span class="ruby-value">:sendmail</span>
|
333
|
+
<span class="ruby-keyword">end</span>
|
334
|
+
<span class="ruby-constant">ActionMailer</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">raise_delivery_errors</span> = <span class="ruby-keyword">true</span>
|
335
|
+
<span class="ruby-keyword">rescue</span>
|
336
|
+
<span class="ruby-identifier">mail_configuration</span> = <span class="ruby-keyword">false</span>
|
337
|
+
<span class="ruby-keyword">end</span>
|
338
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">data</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">data</span>[<span class="ruby-string">'email_notification'</span>] <span class="ruby-keyword">and</span> <span class="ruby-identifier">data</span>[<span class="ruby-string">'email_notification'</span>].<span class="ruby-identifier">downcase</span> <span class="ruby-operator">==</span> <span class="ruby-string">'enabled'</span>
|
339
|
+
<span class="ruby-identifier">email_notification</span> = <span class="ruby-keyword">true</span>
|
340
|
+
<span class="ruby-keyword">else</span>
|
341
|
+
<span class="ruby-identifier">email_notification</span> = <span class="ruby-keyword">false</span>
|
342
|
+
<span class="ruby-keyword">end</span>
|
343
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">from</span>,<span class="ruby-identifier">recipients</span>,<span class="ruby-identifier">mail_configuration</span>,<span class="ruby-identifier">email_notification</span>
|
344
|
+
<span class="ruby-keyword">end</span></pre>
|
345
|
+
</div><!-- mail_settings-source -->
|
346
|
+
|
347
|
+
</div>
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
</div><!-- mail_settings-method -->
|
353
|
+
|
354
|
+
|
355
|
+
<div id="parse_exception-method" class="method-detail ">
|
356
|
+
<a name="method-c-parse_exception"></a>
|
357
|
+
|
358
|
+
|
359
|
+
<div class="method-heading">
|
360
|
+
<span class="method-name">parse_exception</span><span
|
361
|
+
class="method-args">(exception)</span>
|
362
|
+
<span class="method-click-advice">click to toggle source</span>
|
363
|
+
</div>
|
364
|
+
|
365
|
+
|
366
|
+
<div class="method-description">
|
367
|
+
|
368
|
+
<p>this method parse the SMTP faluire exceptions</p>
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
<div class="method-source-code" id="parse_exception-source">
|
373
|
+
<pre>
|
374
|
+
<span class="ruby-comment"># File app/mailers/mailer.rb, line 114</span>
|
375
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">parse_exception</span>(<span class="ruby-identifier">exception</span>)
|
376
|
+
<span class="ruby-keyword">case</span> <span class="ruby-identifier">exception</span>
|
377
|
+
<span class="ruby-keyword">when</span> <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">SMTPAuthenticationError</span>
|
378
|
+
<span class="ruby-string">"Authentication unsuccessful, Please make sure that email credentials are correct."</span>
|
379
|
+
<span class="ruby-keyword">when</span> <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">SMTPFatalError</span>
|
380
|
+
<span class="ruby-string">"Client does not have permissions to send as this sender, Please make sure that Sender`s email address is correct."</span>
|
381
|
+
<span class="ruby-keyword">when</span> <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ECONNREFUSED</span>
|
382
|
+
<span class="ruby-node">"Connection Refused with port #{ActionMailer::Base.smtp_settings[:port]}, Please make sure that SMTP port address is correct."</span>
|
383
|
+
<span class="ruby-keyword">when</span> <span class="ruby-constant">SocketError</span>
|
384
|
+
<span class="ruby-string">"Invalid SMTP Server, Please make sure that SMTP server address is correct."</span>
|
385
|
+
<span class="ruby-keyword">else</span>
|
386
|
+
<span class="ruby-identifier">exception</span>.<span class="ruby-identifier">message</span>.<span class="ruby-identifier">capitalize</span>
|
387
|
+
<span class="ruby-keyword">end</span>
|
388
|
+
<span class="ruby-keyword">end</span></pre>
|
389
|
+
</div><!-- parse_exception-source -->
|
390
|
+
|
391
|
+
</div>
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
</div><!-- parse_exception-method -->
|
397
|
+
|
398
|
+
|
399
|
+
<div id="send_exception-method" class="method-detail ">
|
400
|
+
<a name="method-c-send_exception"></a>
|
401
|
+
|
402
|
+
|
403
|
+
<div class="method-heading">
|
404
|
+
<span class="method-name">send_exception</span><span
|
405
|
+
class="method-args">(exception_hash)</span>
|
406
|
+
<span class="method-click-advice">click to toggle source</span>
|
407
|
+
</div>
|
408
|
+
|
409
|
+
|
410
|
+
<div class="method-description">
|
411
|
+
|
412
|
+
<p>This method is used to send exception notification to the recipients</p>
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
<div class="method-source-code" id="send_exception-source">
|
417
|
+
<pre>
|
418
|
+
<span class="ruby-comment"># File app/mailers/mailer.rb, line 75</span>
|
419
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send_exception</span>(<span class="ruby-identifier">exception_hash</span>)
|
420
|
+
<span class="ruby-identifier">from</span>,<span class="ruby-identifier">recipients</span>, <span class="ruby-identifier">mail_configuration</span>,<span class="ruby-identifier">email_notification</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">mail_settings</span>
|
421
|
+
<span class="ruby-keyword">if</span> (<span class="ruby-identifier">mail_configuration</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">email_notification</span>)
|
422
|
+
<span class="ruby-identifier">subject</span> = <span class="ruby-node">"#{exception_hash[:app_name]} : #{exception_hash.delete(:controller)}##{exception_hash.delete(:method)} (#{exception_hash[:exception_class]}) '#{exception_hash[:exception_message]}'"</span>
|
423
|
+
<span class="ruby-identifier">body</span> = <span class="ruby-node">"Application Name\n.................\n#{exception_hash.delete(:app_name)}\n\n"</span>
|
424
|
+
<span class="ruby-identifier">body</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"Error Message \n.................\n#{exception_hash.delete(:exception_message)}\n\n"</span>
|
425
|
+
<span class="ruby-identifier">body</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"Error Class\n.............\n#{exception_hash.delete(:exception_class)}\n\n"</span>
|
426
|
+
<span class="ruby-identifier">body</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"Time\n..................\n#{exception_hash.delete(:wall_time)}\n\n"</span>
|
427
|
+
<span class="ruby-identifier">body</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"Backtrace \n..................\n#{exception_hash.delete(:exception_backtrace)}\n\n"</span>
|
428
|
+
<span class="ruby-identifier">body</span> <span class="ruby-operator"><<</span> <span class="ruby-string">"Environment\n.................\n"</span>
|
429
|
+
<span class="ruby-identifier">exception_hash</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
430
|
+
<span class="ruby-identifier">body</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{key.to_s.upcase} : #{value}\n"</span>
|
431
|
+
<span class="ruby-keyword">end</span>
|
432
|
+
<span class="ruby-keyword">begin</span>
|
433
|
+
<span class="ruby-identifier">send_email</span>(<span class="ruby-identifier">subject</span>,<span class="ruby-identifier">body</span>,<span class="ruby-identifier">from</span>,<span class="ruby-identifier">recipients</span>).<span class="ruby-identifier">deliver</span>
|
434
|
+
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
435
|
+
<span class="ruby-identifier">e</span>
|
436
|
+
<span class="ruby-keyword">end</span>
|
437
|
+
<span class="ruby-keyword">end</span>
|
438
|
+
<span class="ruby-keyword">end</span></pre>
|
439
|
+
</div><!-- send_exception-source -->
|
440
|
+
|
441
|
+
</div>
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
</div><!-- send_exception-method -->
|
447
|
+
|
448
|
+
|
449
|
+
<div id="send_feedback-method" class="method-detail ">
|
450
|
+
<a name="method-c-send_feedback"></a>
|
451
|
+
|
452
|
+
|
453
|
+
<div class="method-heading">
|
454
|
+
<span class="method-name">send_feedback</span><span
|
455
|
+
class="method-args">(feedback)</span>
|
456
|
+
<span class="method-click-advice">click to toggle source</span>
|
457
|
+
</div>
|
458
|
+
|
459
|
+
|
460
|
+
<div class="method-description">
|
461
|
+
|
462
|
+
<p>this method sends the feedback to support@webroar.in</p>
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
<div class="method-source-code" id="send_feedback-source">
|
467
|
+
<pre>
|
468
|
+
<span class="ruby-comment"># File app/mailers/mailer.rb, line 145</span>
|
469
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send_feedback</span>(<span class="ruby-identifier">feedback</span>)
|
470
|
+
<span class="ruby-identifier">from</span>,<span class="ruby-identifier">recipients</span>, <span class="ruby-identifier">mail_configuration</span>,<span class="ruby-identifier">email_notification</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">mail_settings</span>
|
471
|
+
<span class="ruby-keyword">return</span> <span class="ruby-constant">MAIL_SETTINGS_NOT_CONFIGURED_MESSAGE</span>,<span class="ruby-string">''</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">mail_configuration</span>
|
472
|
+
<span class="ruby-identifier">subject</span> = <span class="ruby-string">"WebROaR Feedback"</span>
|
473
|
+
<span class="ruby-identifier">body</span> = <span class="ruby-node">"#{feedback[:message]}\n\n"</span>
|
474
|
+
<span class="ruby-identifier">body</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"User Name : #{feedback[:name]}\nEmail Address : #{feedback[:email]}\n"</span>
|
475
|
+
<span class="ruby-keyword">begin</span>
|
476
|
+
<span class="ruby-identifier">send_email</span>(<span class="ruby-identifier">subject</span>,<span class="ruby-identifier">body</span>,<span class="ruby-identifier">from</span>,<span class="ruby-string">"support@webroar.in"</span>).<span class="ruby-identifier">deliver</span>
|
477
|
+
<span class="ruby-string">"<span style='color:green;'>Thank you for your valuable feedback!</span>"</span>
|
478
|
+
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">exception</span>
|
479
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">parse_exception</span>(<span class="ruby-identifier">exception</span>),<span class="ruby-string">''</span>
|
480
|
+
<span class="ruby-keyword">end</span>
|
481
|
+
<span class="ruby-keyword">end</span></pre>
|
482
|
+
</div><!-- send_feedback-source -->
|
483
|
+
|
484
|
+
</div>
|
485
|
+
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
</div><!-- send_feedback-method -->
|
490
|
+
|
491
|
+
|
492
|
+
<div id="send_report_bug-method" class="method-detail ">
|
493
|
+
<a name="method-c-send_report_bug"></a>
|
494
|
+
|
495
|
+
|
496
|
+
<div class="method-heading">
|
497
|
+
<span class="method-name">send_report_bug</span><span
|
498
|
+
class="method-args">(report_bug)</span>
|
499
|
+
<span class="method-click-advice">click to toggle source</span>
|
500
|
+
</div>
|
501
|
+
|
502
|
+
|
503
|
+
<div class="method-description">
|
504
|
+
|
505
|
+
<p>this method sends the bug report to support@webroar.in</p>
|
506
|
+
|
507
|
+
|
508
|
+
|
509
|
+
<div class="method-source-code" id="send_report_bug-source">
|
510
|
+
<pre>
|
511
|
+
<span class="ruby-comment"># File app/mailers/mailer.rb, line 130</span>
|
512
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send_report_bug</span>(<span class="ruby-identifier">report_bug</span>)
|
513
|
+
<span class="ruby-identifier">from</span>,<span class="ruby-identifier">recipients</span>, <span class="ruby-identifier">mail_configuration</span>,<span class="ruby-identifier">email_notification</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">mail_settings</span>
|
514
|
+
<span class="ruby-keyword">return</span> <span class="ruby-constant">MAIL_SETTINGS_NOT_CONFIGURED_MESSAGE</span>,<span class="ruby-string">''</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">mail_configuration</span>
|
515
|
+
<span class="ruby-identifier">subject</span> = <span class="ruby-identifier">report_bug</span>[<span class="ruby-value">:subject</span>]
|
516
|
+
<span class="ruby-identifier">body</span> = <span class="ruby-node">"#{report_bug[:description]}\n\n"</span>
|
517
|
+
<span class="ruby-identifier">body</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"Name : #{report_bug[:name]}\nEmail Address : #{report_bug[:email]}\n"</span>
|
518
|
+
<span class="ruby-keyword">begin</span>
|
519
|
+
<span class="ruby-identifier">send_email</span>(<span class="ruby-identifier">subject</span>,<span class="ruby-identifier">body</span>,<span class="ruby-identifier">from</span>,<span class="ruby-string">"support@webroar.in"</span>).<span class="ruby-identifier">deliver</span>
|
520
|
+
<span class="ruby-string">"<span style='color:green;'>Thank You for reporting the issue, We'll contact you shortly.</span>"</span>
|
521
|
+
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">exception</span>
|
522
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">parse_exception</span>(<span class="ruby-identifier">exception</span>),<span class="ruby-string">''</span>
|
523
|
+
<span class="ruby-keyword">end</span>
|
524
|
+
<span class="ruby-keyword">end</span></pre>
|
525
|
+
</div><!-- send_report_bug-source -->
|
526
|
+
|
527
|
+
</div>
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
|
532
|
+
</div><!-- send_report_bug-method -->
|
533
|
+
|
534
|
+
|
535
|
+
</div><!-- public-class-method-details -->
|
536
|
+
|
537
|
+
<div id="public-instance-method-details" class="method-section section">
|
538
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
539
|
+
|
540
|
+
|
541
|
+
<div id="send_email-method" class="method-detail ">
|
542
|
+
<a name="method-i-send_email"></a>
|
543
|
+
|
544
|
+
|
545
|
+
<div class="method-heading">
|
546
|
+
<span class="method-name">send_email</span><span
|
547
|
+
class="method-args">(subject,body,from,recipients)</span>
|
548
|
+
<span class="method-click-advice">click to toggle source</span>
|
549
|
+
</div>
|
550
|
+
|
551
|
+
|
552
|
+
<div class="method-description">
|
553
|
+
|
554
|
+
<p>This method is to deliver the email to recipients</p>
|
555
|
+
|
556
|
+
|
557
|
+
|
558
|
+
<div class="method-source-code" id="send_email-source">
|
559
|
+
<pre>
|
560
|
+
<span class="ruby-comment"># File app/mailers/mailer.rb, line 70</span>
|
561
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_email</span>(<span class="ruby-identifier">subject</span>,<span class="ruby-identifier">body</span>,<span class="ruby-identifier">from</span>,<span class="ruby-identifier">recipients</span>)
|
562
|
+
<span class="ruby-identifier">mail</span>(<span class="ruby-value">:to</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">recipients</span>,<span class="ruby-value">:from</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">from</span>,<span class="ruby-value">:subject</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">subject</span>,<span class="ruby-value">:body</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">body</span>)
|
563
|
+
<span class="ruby-keyword">end</span></pre>
|
564
|
+
</div><!-- send_email-source -->
|
565
|
+
|
566
|
+
</div>
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
</div><!-- send_email-method -->
|
572
|
+
|
573
|
+
|
574
|
+
</div><!-- public-instance-method-details -->
|
575
|
+
|
576
|
+
</div><!-- 5Buntitled-5D -->
|
577
|
+
|
578
|
+
|
579
|
+
</div><!-- documentation -->
|
580
|
+
|
581
|
+
<div id="validator-badges">
|
582
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
583
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
584
|
+
Rdoc Generator</a> 2</small>.</p>
|
585
|
+
</div>
|
586
|
+
|
587
|
+
</body>
|
588
|
+
</html>
|
589
|
+
|