webroar 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/bin/webroar +2 -1
- data/bin/webroar-analyzer +1 -1
- data/conf/mime_type.yml +165 -0
- data/doc/user-guide.html +37 -17
- data/doc/user-guide.txt +11 -6
- data/lib/command_runner.rb +1 -1
- data/lib/constant.rb +1 -1
- data/lib/dependencies.rb +1 -1
- data/lib/installer.rb +118 -162
- data/lib/user_interaction.rb +132 -0
- data/lib/webroar_command.rb +1 -1
- data/src/admin_panel/app/controllers/admin_controller.rb +1 -1
- data/src/admin_panel/app/controllers/application_controller.rb +1 -1
- data/src/admin_panel/app/controllers/application_specification_controller.rb +49 -45
- data/src/admin_panel/app/controllers/exceptions_controller.rb +1 -1
- data/src/admin_panel/app/controllers/graph_controller.rb +116 -22
- data/src/admin_panel/app/controllers/mail_specification_controller.rb +11 -107
- data/src/admin_panel/app/controllers/server_specification_controller.rb +6 -8
- data/src/admin_panel/app/helpers/admin_helper.rb +8 -7
- data/src/admin_panel/app/helpers/application_helper.rb +1 -39
- data/src/admin_panel/app/helpers/exceptions_helper.rb +1 -1
- data/src/admin_panel/app/helpers/graph_helper.rb +1 -1
- data/src/admin_panel/app/models/app.rb +39 -3
- data/src/admin_panel/app/models/app_exception.rb +1 -1
- data/src/admin_panel/app/models/app_time_sample.rb +2 -2
- data/src/admin_panel/app/models/application_specification.rb +34 -10
- data/src/admin_panel/app/models/mail_specification.rb +139 -0
- data/src/admin_panel/app/models/pseudo_model.rb +1 -1
- data/src/admin_panel/app/models/resource_usage.rb +3 -3
- data/src/admin_panel/app/models/server_specification.rb +5 -5
- data/src/admin_panel/app/models/url_breakup_time_sample.rb +1 -1
- data/src/admin_panel/app/models/url_time_sample.rb +6 -6
- data/src/admin_panel/app/models/user.rb +1 -1
- data/src/admin_panel/app/views/admin/_add_div.html.erb +1 -1
- data/src/admin_panel/app/views/admin/_application_table.html.erb +1 -1
- data/src/admin_panel/app/views/admin/change_password_form.html.erb +1 -1
- data/src/admin_panel/app/views/admin/configuration.html.erb +1 -8
- data/src/admin_panel/app/views/admin/home.html.erb +1 -1
- data/src/admin_panel/app/views/admin/index.html.erb +1 -1
- data/src/admin_panel/app/views/application_specification/{_application_form.html.erb → _application_specification_form.html.erb} +29 -29
- data/src/admin_panel/app/views/application_specification/add_application_form.html.erb +3 -3
- data/src/admin_panel/app/views/application_specification/edit_application_form.html.erb +3 -3
- data/src/admin_panel/app/views/exceptions/_close_exception_list_partial.html.erb +1 -1
- data/src/admin_panel/app/views/exceptions/_exception_list_partial.html.erb +1 -1
- data/src/admin_panel/app/views/exceptions/_exceptions_listing_partial.html.erb +1 -1
- data/src/admin_panel/app/views/exceptions/_ignored_exception_list_partial.html.erb +1 -1
- data/src/admin_panel/app/views/exceptions/_link_partial.html.erb +1 -1
- data/src/admin_panel/app/views/exceptions/_show.html.erb +1 -1
- data/src/admin_panel/app/views/exceptions/index.html.erb +2 -2
- data/src/admin_panel/app/views/graph/_database_usage_graph.html.erb +1 -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 +1 -1
- data/src/admin_panel/app/views/graph/_get_resource_usage_data_server.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_get_throughput_data.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_get_url_breakup_data.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_get_url_data.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_graph_page.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_javascript_partial.html.erb +21 -0
- data/src/admin_panel/app/views/graph/_pie.html.erb +1 -1
- 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/_resource_usage_graph_app.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_resource_usage_graph_server.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_slider_partial.html.erb +20 -0
- data/src/admin_panel/app/views/graph/_throughput_graph.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_url_breakup_graph.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_url_calls_graph.html.erb +1 -1
- data/src/admin_panel/app/views/graph/index.html.erb +1 -1
- data/src/admin_panel/app/views/layouts/application.html.erb +27 -25
- data/src/admin_panel/app/views/layouts/index.html.erb +2 -2
- data/src/admin_panel/app/views/mail_specification/_sendmail_form.html.erb +1 -1
- data/src/admin_panel/app/views/mail_specification/_smtp_form.html.erb +1 -1
- data/src/admin_panel/app/views/server_specification/_ssl_support_form.html.erb +1 -1
- data/src/admin_panel/config/environment.rb +2 -1
- data/src/admin_panel/config/initializers/application_constants.rb +5 -2
- data/src/admin_panel/config/initializers/ssl.rb +1 -1
- data/src/admin_panel/db/migrate/20081020052652_create_apps.rb +1 -1
- data/src/admin_panel/db/migrate/20081020052934_create_resource_usages.rb +1 -1
- data/src/admin_panel/db/migrate/20081020053129_create_app_time_samples.rb +1 -1
- data/src/admin_panel/db/migrate/20081020053411_create_url_time_samples.rb +1 -1
- data/src/admin_panel/db/migrate/20081020053624_create_url_breakup_time_samples.rb +1 -1
- data/src/admin_panel/db/migrate/20081021005144_add_constraints.rb +1 -1
- data/src/admin_panel/db/migrate/20090407052622_create_app_exceptions.rb +1 -1
- data/src/admin_panel/lib/asset_tag_helper_ext.rb +18 -0
- data/src/admin_panel/lib/control.rb +1 -1
- data/src/admin_panel/lib/graph_controller_extensions/database_analytics.rb +1 -1
- data/src/admin_panel/lib/graph_controller_extensions/resource_usage_analytics.rb +1 -1
- data/src/admin_panel/lib/graph_controller_extensions/throughput_analytics.rb +1 -1
- data/src/admin_panel/lib/graph_controller_extensions/url_analytics.rb +9 -5
- data/src/admin_panel/lib/graph_controller_extensions/url_breakup_analytics.rb +20 -14
- data/src/admin_panel/lib/scgi.rb +1 -1
- data/src/admin_panel/lib/yaml_writer.rb +34 -21
- data/src/admin_panel/public/favicon.ico +0 -0
- data/src/admin_panel/public/images/close.gif +0 -0
- data/src/admin_panel/public/images/external.gif +0 -0
- data/src/admin_panel/public/javascripts/application.js +17 -17
- data/src/admin_panel/public/javascripts/swfobject.js +4 -4
- data/src/admin_panel/public/open-flash-chart.swf +0 -0
- data/src/admin_panel/public/stylesheets/netscape/login.css +1 -1
- data/src/admin_panel/public/stylesheets/netscape/style.css +96 -101
- data/src/admin_panel/public/stylesheets/other/login.css +1 -1
- data/src/admin_panel/public/stylesheets/other/style.css +97 -100
- data/src/admin_panel/public/stylesheets/safari/login.css +1 -1
- data/src/admin_panel/public/stylesheets/safari/style.css +97 -101
- data/src/admin_panel/test/functional/admin_controller_test.rb +10 -10
- data/src/admin_panel/test/functional/application_specification_controller_test.rb +7 -5
- data/src/admin_panel/test/functional/exceptions_controller_test.rb +2 -1
- data/src/admin_panel/test/functional/graph_controller_test.rb +3 -3
- data/src/admin_panel/test/test_helper.rb +1 -1
- data/src/admin_panel/test/unit/app_exception_test.rb +2 -1
- data/src/admin_panel/test/unit/app_test.rb +5 -4
- data/src/admin_panel/test/unit/app_time_sample_test.rb +4 -2
- data/src/admin_panel/test/unit/helpers/exceptions_helper_test.rb +1 -1
- data/src/admin_panel/test/unit/resource_usage_test.rb +6 -2
- data/src/admin_panel/test/unit/url_breakup_time_sample_test.rb +1 -1
- data/src/admin_panel/test/unit/url_time_sample_test.rb +3 -2
- data/src/admin_panel/vendor/plugins/open_flash_chart_2/CHANGES +29 -0
- data/src/admin_panel/vendor/plugins/open_flash_chart_2/MIT-LICENSE +0 -2
- data/src/admin_panel/vendor/plugins/open_flash_chart_2/README +6 -56
- data/src/admin_panel/vendor/plugins/open_flash_chart_2/TODO +2 -7
- data/src/admin_panel/vendor/plugins/open_flash_chart_2/install.rb +1 -1
- data/src/admin_panel/vendor/plugins/open_flash_chart_2/lib/open_flash_chart_2.rb +242 -513
- data/src/admin_panel/vendor/plugins/open_flash_chart_2/requirements/VERSION.txt +2 -0
- data/src/admin_panel/vendor/plugins/open_flash_chart_2/requirements/open-flash-chart.swf +0 -0
- data/src/admin_panel/vendor/plugins/open_flash_chart_2/requirements/swfobject.js +4 -4
- data/src/admin_panel/vendor/plugins/open_flash_chart_2/tasks/open_flash_chart_tasks.rake +14 -6
- data/src/head/wr_access_log.c +6 -6
- data/src/head/wr_access_log.h +1 -1
- data/src/head/wr_application.c +57 -23
- data/src/head/wr_application.h +1 -1
- data/src/head/wr_config.h +28 -3
- data/src/head/wr_configurator.c +61 -7
- data/src/head/wr_configurator.h +4 -3
- data/src/head/wr_connection.c +23 -19
- data/src/head/wr_connection.h +4 -3
- data/src/head/wr_controller.c +38 -191
- data/src/head/wr_controller.h +4 -4
- data/src/head/wr_main.c +87 -5
- data/src/head/wr_request.c +172 -156
- data/src/head/wr_request.h +4 -13
- data/src/head/wr_resolver.c +58 -7
- data/src/head/wr_resolver.h +1 -1
- data/src/head/wr_server.c +7 -1
- data/src/head/wr_server.h +2 -1
- data/src/head/wr_worker.c +66 -60
- data/src/head/wr_worker.h +1 -1
- data/src/helper/wr_helper.h +2 -1
- data/src/helper/wr_logger.c +9 -1
- data/src/helper/wr_logger.h +2 -1
- data/src/helper/wr_macro.h +3 -1
- data/src/helper/wr_msg_queue_client.c +129 -0
- data/src/helper/wr_msg_queue_client.h +44 -0
- data/src/helper/wr_queue.c +1 -1
- data/src/helper/wr_queue.h +1 -1
- data/src/helper/wr_scgi.c +291 -261
- data/src/helper/wr_scgi.h +42 -54
- data/src/helper/wr_string.c +53 -1
- data/src/helper/wr_string.h +30 -12
- data/src/helper/wr_util.c +80 -1
- data/src/helper/wr_util.h +17 -1
- data/src/helper/wr_yaml_parser.c +1 -1
- data/src/helper/wr_yaml_parser.h +1 -1
- data/src/ruby_lib/analyzer/db_connect.rb +8 -5
- data/src/ruby_lib/analyzer/logger.rb +3 -2
- data/src/ruby_lib/analyzer/message_analyzer.rb +8 -15
- data/src/ruby_lib/analyzer/message_reader.rb +4 -3
- data/src/ruby_lib/analyzer/process_helper.rb +1 -1
- data/src/ruby_lib/analyzer/resources_analyzer.rb +21 -5
- data/src/ruby_lib/analyzer/user_defined_exception.rb +1 -1
- data/src/ruby_lib/analyzer/webroar_analyzer.rb +1 -1
- data/src/ruby_lib/analyzer/webroar_analyzer_script_runner.rb +10 -9
- data/src/ruby_lib/exception_tracker/instrumentation/action_controller.rb +1 -1
- data/src/ruby_lib/exception_tracker/instrumentation/instrumentation.rb +1 -1
- data/src/ruby_lib/exception_tracker/instrumentation/rails.rb +1 -1
- data/src/ruby_lib/exception_tracker/webroar_exception.rb +1 -1
- data/src/ruby_lib/mailer/smtpmail.rb +7 -4
- data/src/ruby_lib/profiler/instrumentation/action_controller.rb +1 -1
- data/src/ruby_lib/profiler/instrumentation/active_record.rb +1 -1
- data/src/ruby_lib/profiler/instrumentation/instrumentation.rb +1 -1
- data/src/ruby_lib/profiler/instrumentation/rails.rb +1 -1
- data/src/ruby_lib/profiler/message_dispatcher.rb +9 -10
- data/src/ruby_lib/profiler/webroar_profiling.rb +1 -1
- data/src/ruby_lib/rack/adapter/rack.rb +1 -1
- data/src/ruby_lib/rack/adapter/rails.rb +2 -2
- data/src/ruby_lib/ruby_interface/adapter.rb +1 -1
- data/src/ruby_lib/ruby_interface/client.rb +1 -1
- data/src/ruby_lib/ruby_interface/constants.rb +1 -1
- data/src/ruby_lib/ruby_interface/deflater.rb +9 -0
- data/src/ruby_lib/ruby_interface/logger.rb +1 -1
- data/src/ruby_lib/ruby_interface/request_body.rb +1 -1
- data/src/ruby_lib/ruby_interface/request_handler.rb +1 -1
- data/src/ruby_lib/ruby_interface/ruby_interface.rb +1 -1
- data/src/ruby_lib/ruby_interface/utils.rb +1 -1
- data/src/ruby_lib/ruby_interface/version.rb +2 -2
- data/src/ruby_lib/webroar_app_loader.rb +1 -1
- data/src/worker/wkr_controller.c +58 -60
- data/src/worker/wkr_http.c +48 -27
- data/src/worker/wkr_http.h +2 -1
- data/src/worker/wkr_http_request.c +29 -29
- data/src/worker/wkr_http_request.h +2 -2
- data/src/worker/wkr_http_response.c +175 -102
- data/src/worker/wkr_http_response.h +10 -4
- data/src/worker/wkr_main.c +137 -21
- data/src/worker/wkr_static.c +509 -0
- data/src/worker/wkr_static.h +40 -0
- data/src/worker/worker.c +5 -5
- data/src/worker/worker.h +7 -5
- data/tasks/compile.rake +10 -6
- data/tasks/gem.rake +16 -4
- data/tasks/test.rake +6 -2
- data/test/spec/access_log_spec.rb +1 -1
- data/test/spec/analytics_spec.rb +1 -1
- data/test/spec/conditional_spec.rb +1 -1
- data/test/spec/connection_keep_alive_spec.rb +1 -1
- data/test/spec/content_encoding_spec.rb +1 -1
- data/test/spec/heart_beat_spec.rb +1 -1
- data/test/spec/host_name_spec.rb +1 -1
- data/test/spec/http_request_parser_spec.rb +1 -1
- data/test/spec/http_spec.rb +1 -1
- data/test/spec/spec_helper.rb +8 -8
- data/test/spec/test_app/app/controllers/application_controller.rb +1 -1
- data/test/spec/test_app/app/controllers/test_controller.rb +1 -1
- data/test/spec/test_app/app/controllers/users_controller.rb +1 -1
- data/test/spec/test_app/app/helpers/application_helper.rb +1 -1
- data/test/spec/test_app/app/helpers/test_helper.rb +1 -1
- data/test/spec/test_app/app/helpers/users_helper.rb +1 -1
- data/test/spec/test_app/app/models/user.rb +1 -1
- data/test/spec/test_app/app/views/layouts/users.html.erb +1 -1
- data/test/spec/test_app/app/views/test/post_data.html.erb +1 -1
- data/test/spec/test_app/app/views/test/upload_file.html.erb +1 -1
- data/test/spec/test_app/app/views/users/edit.html.erb +1 -1
- data/test/spec/test_app/app/views/users/index.html.erb +1 -1
- data/test/spec/test_app/app/views/users/new.html.erb +1 -1
- data/test/spec/test_app/app/views/users/show.html.erb +1 -1
- data/test/spec/test_app/db/migrate/20090602102438_create_users.rb +1 -1
- data/test/spec/upload_helper.rb +1 -1
- data/test/spec/webroar_command_spec.rb +1 -1
- data/test/unit/queue_test.c +1 -1
- data/test/unit/scgi_test.c +69 -66
- data/test/unit/test.c +1 -1
- data/test/unit/test.h +1 -1
- data/test/unit/ut_test.c +1 -1
- data/test/unit/ut_test.h +1 -1
- data/test/unit/util_test.c +1 -1
- data/test/unit/yaml_test.c +1 -1
- metadata +378 -1847
- data/src/admin_panel/public/blank_iframe.html +0 -2
- data/src/admin_panel/public/images/calendar_date_select/calendar.gif +0 -0
- data/src/admin_panel/public/javascripts/calendar_date_select/calendar_date_select.js +0 -443
- data/src/admin_panel/public/javascripts/calendar_date_select/format_american.js +0 -34
- data/src/admin_panel/public/javascripts/calendar_date_select/format_db.js +0 -27
- data/src/admin_panel/public/javascripts/calendar_date_select/format_euro_24hr.js +0 -7
- data/src/admin_panel/public/javascripts/calendar_date_select/format_euro_24hr_ymd.js +0 -7
- data/src/admin_panel/public/javascripts/calendar_date_select/format_finnish.js +0 -32
- data/src/admin_panel/public/javascripts/calendar_date_select/format_hyphen_ampm.js +0 -37
- data/src/admin_panel/public/javascripts/calendar_date_select/format_iso_date.js +0 -46
- data/src/admin_panel/public/javascripts/calendar_date_select/format_italian.js +0 -24
- data/src/admin_panel/public/javascripts/calendar_date_select/locale/de.js +0 -11
- data/src/admin_panel/public/javascripts/calendar_date_select/locale/fi.js +0 -10
- data/src/admin_panel/public/javascripts/calendar_date_select/locale/fr.js +0 -10
- data/src/admin_panel/public/javascripts/calendar_date_select/locale/pl.js +0 -10
- data/src/admin_panel/public/javascripts/calendar_date_select/locale/pt.js +0 -11
- data/src/admin_panel/public/javascripts/calendar_date_select/locale/ru.js +0 -10
- data/src/admin_panel/public/stylesheets/calendar_date_select/blue.css +0 -130
- data/src/admin_panel/public/stylesheets/calendar_date_select/default.css +0 -135
- data/src/admin_panel/public/stylesheets/calendar_date_select/plain.css +0 -128
- data/src/admin_panel/public/stylesheets/calendar_date_select/red.css +0 -135
- data/src/admin_panel/public/stylesheets/calendar_date_select/silver.css +0 -133
- data/src/admin_panel/vendor/rails/actionmailer/CHANGELOG +0 -358
- data/src/admin_panel/vendor/rails/actionmailer/MIT-LICENSE +0 -21
- data/src/admin_panel/vendor/rails/actionmailer/README +0 -149
- data/src/admin_panel/vendor/rails/actionmailer/Rakefile +0 -98
- data/src/admin_panel/vendor/rails/actionmailer/install.rb +0 -30
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/adv_attr_accessor.rb +0 -30
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/base.rb +0 -705
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/helpers.rb +0 -113
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/mail_helper.rb +0 -17
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/part.rb +0 -107
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/part_container.rb +0 -55
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/quoting.rb +0 -61
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/test_case.rb +0 -64
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/test_helper.rb +0 -68
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/utils.rb +0 -7
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb +0 -1466
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/text_format.rb +0 -10
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/address.rb +0 -426
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/attachments.rb +0 -46
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/base64.rb +0 -46
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb +0 -41
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/config.rb +0 -67
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/core_extensions.rb +0 -63
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/encode.rb +0 -581
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/header.rb +0 -960
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/index.rb +0 -9
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/interface.rb +0 -1130
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/loader.rb +0 -3
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/mail.rb +0 -578
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/mailbox.rb +0 -495
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/main.rb +0 -6
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/mbox.rb +0 -3
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/net.rb +0 -248
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/obsolete.rb +0 -132
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/parser.rb +0 -1476
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/port.rb +0 -379
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/quoting.rb +0 -118
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/require_arch.rb +0 -58
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/scanner.rb +0 -49
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/scanner_r.rb +0 -261
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/stringio.rb +0 -280
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/utils.rb +0 -337
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/version.rb +0 -39
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail.rb +0 -5
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail.rb +0 -17
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/version.rb +0 -9
- data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer.rb +0 -62
- data/src/admin_panel/vendor/rails/actionmailer/lib/actionmailer.rb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/abstract_unit.rb +0 -65
- data/src/admin_panel/vendor/rails/actionmailer/test/asset_host_test.rb +0 -54
- data/src/admin_panel/vendor/rails/actionmailer/test/delivery_method_test.rb +0 -51
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/asset_host_mailer/email_with_asset.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/auto_layout_mailer/hello.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/auto_layout_mailer/multipart.text.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/auto_layout_mailer/multipart.text.plain.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/explicit_layout_mailer/logout.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/explicit_layout_mailer/signup.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/first_mailer/share.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_example_helper.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper_method.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_mail_helper.erb +0 -5
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/helpers/example_helper.rb +0 -5
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/layouts/auto_layout_mailer.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/layouts/auto_layout_mailer.text.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/layouts/spam.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email +0 -14
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email10 +0 -20
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email12 +0 -32
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email13 +0 -29
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email2 +0 -114
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email3 +0 -70
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email4 +0 -59
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email5 +0 -19
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email6 +0 -20
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email7 +0 -66
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email8 +0 -47
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email9 +0 -28
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email_quoted_with_0d0a +0 -14
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email_with_invalid_characters_in_content_type +0 -104
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email_with_nested_attachment +0 -100
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email_with_partially_quoted_subject +0 -14
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/second_mailer/share.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/templates/signed_up.erb +0 -3
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/_subtemplate.text.plain.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/body_ivar.erb +0 -2
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/custom_templating_extension.text.html.haml +0 -6
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/custom_templating_extension.text.plain.haml +0 -6
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.ignored.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.html.erb +0 -10
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.plain.erb +0 -2
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/included_subtemplate.text.plain.erb +0 -1
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/rxml_template.builder +0 -2
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/rxml_template.rxml +0 -2
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up.html.erb +0 -3
- data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up_with_url.erb +0 -5
- data/src/admin_panel/vendor/rails/actionmailer/test/mail_helper_test.rb +0 -95
- data/src/admin_panel/vendor/rails/actionmailer/test/mail_layout_test.rb +0 -123
- data/src/admin_panel/vendor/rails/actionmailer/test/mail_render_test.rb +0 -116
- data/src/admin_panel/vendor/rails/actionmailer/test/mail_service_test.rb +0 -1078
- data/src/admin_panel/vendor/rails/actionmailer/test/quoting_test.rb +0 -99
- data/src/admin_panel/vendor/rails/actionmailer/test/test_helper_test.rb +0 -129
- data/src/admin_panel/vendor/rails/actionmailer/test/tmail_test.rb +0 -22
- data/src/admin_panel/vendor/rails/actionmailer/test/url_test.rb +0 -76
- data/src/admin_panel/vendor/rails/actionpack/CHANGELOG +0 -5156
- data/src/admin_panel/vendor/rails/actionpack/MIT-LICENSE +0 -21
- data/src/admin_panel/vendor/rails/actionpack/README +0 -409
- data/src/admin_panel/vendor/rails/actionpack/RUNNING_UNIT_TESTS +0 -24
- data/src/admin_panel/vendor/rails/actionpack/Rakefile +0 -158
- data/src/admin_panel/vendor/rails/actionpack/install.rb +0 -30
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/assertions/dom_assertions.rb +0 -39
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/assertions/model_assertions.rb +0 -21
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/assertions/response_assertions.rb +0 -150
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/assertions/routing_assertions.rb +0 -146
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/assertions/selector_assertions.rb +0 -632
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/assertions/tag_assertions.rb +0 -127
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/base.rb +0 -1414
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/benchmarking.rb +0 -107
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/caching/actions.rb +0 -169
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/caching/fragments.rb +0 -120
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/caching/pages.rb +0 -152
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/caching/sweeping.rb +0 -97
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/caching.rb +0 -70
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/cgi_ext/cookie.rb +0 -112
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/cgi_ext/query_extension.rb +0 -22
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/cgi_ext/stdinput.rb +0 -24
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/cgi_ext.rb +0 -15
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/cgi_process.rb +0 -77
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/cookies.rb +0 -94
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/dispatcher.rb +0 -118
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/failsafe.rb +0 -52
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/filters.rb +0 -680
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/flash.rb +0 -163
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/headers.rb +0 -33
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/helpers.rb +0 -225
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/http_authentication.rb +0 -304
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/integration.rb +0 -687
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/layout.rb +0 -281
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb +0 -119
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/middlewares.rb +0 -13
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/mime_responds.rb +0 -193
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/mime_type.rb +0 -212
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/mime_types.rb +0 -21
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/params_parser.rb +0 -71
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/performance_test.rb +0 -15
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/polymorphic_routes.rb +0 -204
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/record_identifier.rb +0 -104
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/reloader.rb +0 -14
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/request.rb +0 -489
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/request_forgery_protection.rb +0 -108
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/rescue.rb +0 -183
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/resources.rb +0 -678
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/response.rb +0 -232
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/rewindable_input.rb +0 -28
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/routing/builder.rb +0 -197
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/routing/optimisations.rb +0 -130
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/routing/recognition_optimisation.rb +0 -167
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/routing/route.rb +0 -265
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb +0 -488
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/routing/routing_ext.rb +0 -49
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/routing/segments.rb +0 -343
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/routing.rb +0 -385
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb +0 -181
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb +0 -221
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/session/mem_cache_store.rb +0 -51
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/session_management.rb +0 -54
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/status_codes.rb +0 -88
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/streaming.rb +0 -179
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/_request_and_response.erb +0 -24
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb +0 -26
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/diagnostics.erb +0 -11
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.erb +0 -29
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/missing_template.erb +0 -2
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/routing_error.erb +0 -10
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/template_error.erb +0 -21
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/unknown_action.erb +0 -2
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/test_case.rb +0 -204
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/test_process.rb +0 -572
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/translation.rb +0 -13
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/uploaded_file.rb +0 -44
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/url_rewriter.rb +0 -216
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/document.rb +0 -68
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb +0 -537
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/sanitizer.rb +0 -173
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb +0 -828
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/tokenizer.rb +0 -105
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/version.rb +0 -11
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner.rb +0 -16
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/adapter/camping.rb +0 -22
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/abstract/handler.rb +0 -37
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/abstract/request.rb +0 -37
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/basic.rb +0 -58
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/digest/md5.rb +0 -124
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/digest/nonce.rb +0 -51
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/digest/params.rb +0 -55
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/digest/request.rb +0 -40
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/openid.rb +0 -480
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/builder.rb +0 -63
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/cascade.rb +0 -36
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/chunked.rb +0 -49
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/commonlogger.rb +0 -61
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/conditionalget.rb +0 -45
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/content_length.rb +0 -29
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/content_type.rb +0 -23
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/deflater.rb +0 -85
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/directory.rb +0 -153
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/file.rb +0 -88
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/cgi.rb +0 -61
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/evented_mongrel.rb +0 -8
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/fastcgi.rb +0 -89
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/lsws.rb +0 -55
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/mongrel.rb +0 -84
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/scgi.rb +0 -59
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/swiftiplied_mongrel.rb +0 -8
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/thin.rb +0 -18
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/webrick.rb +0 -67
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler.rb +0 -48
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/head.rb +0 -19
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/lint.rb +0 -462
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/lobster.rb +0 -65
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/lock.rb +0 -16
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/methodoverride.rb +0 -27
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/mime.rb +0 -204
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/mock.rb +0 -160
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/recursive.rb +0 -57
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/reloader.rb +0 -64
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/request.rb +0 -241
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/response.rb +0 -179
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/session/abstract/id.rb +0 -142
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/session/cookie.rb +0 -91
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/session/memcache.rb +0 -109
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/session/pool.rb +0 -100
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/showexceptions.rb +0 -349
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/showstatus.rb +0 -106
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/static.rb +0 -38
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/urlmap.rb +0 -55
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/utils.rb +0 -392
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack.rb +0 -89
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/verification.rb +0 -130
- data/src/admin_panel/vendor/rails/actionpack/lib/action_controller.rb +0 -116
- data/src/admin_panel/vendor/rails/actionpack/lib/action_pack/version.rb +0 -9
- data/src/admin_panel/vendor/rails/actionpack/lib/action_pack.rb +0 -24
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/base.rb +0 -357
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/erb/util.rb +0 -38
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/active_record_helper.rb +0 -305
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/asset_tag_helper.rb +0 -682
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/atom_feed_helper.rb +0 -198
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/benchmark_helper.rb +0 -54
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/cache_helper.rb +0 -39
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb +0 -136
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb +0 -976
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/debug_helper.rb +0 -38
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb +0 -1039
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/form_options_helper.rb +0 -530
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb +0 -481
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/javascript_helper.rb +0 -208
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/number_helper.rb +0 -303
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb +0 -1305
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/record_identification_helper.rb +0 -20
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/record_tag_helper.rb +0 -58
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/sanitize_helper.rb +0 -251
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/scriptaculous_helper.rb +0 -226
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/tag_helper.rb +0 -150
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/text_helper.rb +0 -578
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/translation_helper.rb +0 -39
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb +0 -638
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers.rb +0 -57
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/inline_template.rb +0 -19
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/locale/en.yml +0 -110
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/partials.rb +0 -240
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/paths.rb +0 -69
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/reloadable_template.rb +0 -117
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/renderable.rb +0 -95
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/renderable_partial.rb +0 -47
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/template.rb +0 -257
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/template_error.rb +0 -99
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/template_handler.rb +0 -34
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/template_handlers/builder.rb +0 -17
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/template_handlers/erb.rb +0 -22
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/template_handlers/rjs.rb +0 -13
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/template_handlers.rb +0 -48
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view/test_case.rb +0 -87
- data/src/admin_panel/vendor/rails/actionpack/lib/action_view.rb +0 -58
- data/src/admin_panel/vendor/rails/actionpack/lib/actionpack.rb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/abstract_unit.rb +0 -45
- data/src/admin_panel/vendor/rails/actionpack/test/active_record_unit.rb +0 -104
- data/src/admin_panel/vendor/rails/actionpack/test/activerecord/active_record_store_test.rb +0 -174
- data/src/admin_panel/vendor/rails/actionpack/test/activerecord/render_partial_with_record_identification_test.rb +0 -188
- data/src/admin_panel/vendor/rails/actionpack/test/adv_attr_test.rb +0 -20
- data/src/admin_panel/vendor/rails/actionpack/test/controller/action_pack_assertions_test.rb +0 -516
- data/src/admin_panel/vendor/rails/actionpack/test/controller/addresses_render_test.rb +0 -37
- data/src/admin_panel/vendor/rails/actionpack/test/controller/assert_select_test.rb +0 -734
- data/src/admin_panel/vendor/rails/actionpack/test/controller/base_test.rb +0 -217
- data/src/admin_panel/vendor/rails/actionpack/test/controller/benchmark_test.rb +0 -32
- data/src/admin_panel/vendor/rails/actionpack/test/controller/caching_test.rb +0 -690
- data/src/admin_panel/vendor/rails/actionpack/test/controller/capture_test.rb +0 -66
- data/src/admin_panel/vendor/rails/actionpack/test/controller/content_type_test.rb +0 -168
- data/src/admin_panel/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb +0 -0
- data/src/admin_panel/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb +0 -0
- data/src/admin_panel/vendor/rails/actionpack/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb +0 -0
- data/src/admin_panel/vendor/rails/actionpack/test/controller/cookie_test.rb +0 -111
- data/src/admin_panel/vendor/rails/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb +0 -32
- data/src/admin_panel/vendor/rails/actionpack/test/controller/dispatcher_test.rb +0 -103
- data/src/admin_panel/vendor/rails/actionpack/test/controller/fake_controllers.rb +0 -33
- data/src/admin_panel/vendor/rails/actionpack/test/controller/fake_models.rb +0 -19
- data/src/admin_panel/vendor/rails/actionpack/test/controller/filter_params_test.rb +0 -49
- data/src/admin_panel/vendor/rails/actionpack/test/controller/filters_test.rb +0 -885
- data/src/admin_panel/vendor/rails/actionpack/test/controller/flash_test.rb +0 -142
- data/src/admin_panel/vendor/rails/actionpack/test/controller/header_test.rb +0 -14
- data/src/admin_panel/vendor/rails/actionpack/test/controller/helper_test.rb +0 -224
- data/src/admin_panel/vendor/rails/actionpack/test/controller/html-scanner/cdata_node_test.rb +0 -15
- data/src/admin_panel/vendor/rails/actionpack/test/controller/html-scanner/document_test.rb +0 -148
- data/src/admin_panel/vendor/rails/actionpack/test/controller/html-scanner/node_test.rb +0 -89
- data/src/admin_panel/vendor/rails/actionpack/test/controller/html-scanner/sanitizer_test.rb +0 -273
- data/src/admin_panel/vendor/rails/actionpack/test/controller/html-scanner/tag_node_test.rb +0 -238
- data/src/admin_panel/vendor/rails/actionpack/test/controller/html-scanner/text_node_test.rb +0 -50
- data/src/admin_panel/vendor/rails/actionpack/test/controller/html-scanner/tokenizer_test.rb +0 -131
- data/src/admin_panel/vendor/rails/actionpack/test/controller/http_basic_authentication_test.rb +0 -88
- data/src/admin_panel/vendor/rails/actionpack/test/controller/http_digest_authentication_test.rb +0 -178
- data/src/admin_panel/vendor/rails/actionpack/test/controller/integration_test.rb +0 -417
- data/src/admin_panel/vendor/rails/actionpack/test/controller/layout_test.rb +0 -204
- data/src/admin_panel/vendor/rails/actionpack/test/controller/logging_test.rb +0 -46
- data/src/admin_panel/vendor/rails/actionpack/test/controller/middleware_stack_test.rb +0 -90
- data/src/admin_panel/vendor/rails/actionpack/test/controller/mime_responds_test.rb +0 -536
- data/src/admin_panel/vendor/rails/actionpack/test/controller/mime_type_test.rb +0 -93
- data/src/admin_panel/vendor/rails/actionpack/test/controller/polymorphic_routes_test.rb +0 -293
- data/src/admin_panel/vendor/rails/actionpack/test/controller/rack_test.rb +0 -294
- data/src/admin_panel/vendor/rails/actionpack/test/controller/record_identifier_test.rb +0 -139
- data/src/admin_panel/vendor/rails/actionpack/test/controller/redirect_test.rb +0 -282
- data/src/admin_panel/vendor/rails/actionpack/test/controller/render_test.rb +0 -1752
- data/src/admin_panel/vendor/rails/actionpack/test/controller/request/json_params_parsing_test.rb +0 -45
- data/src/admin_panel/vendor/rails/actionpack/test/controller/request/multipart_params_parsing_test.rb +0 -223
- data/src/admin_panel/vendor/rails/actionpack/test/controller/request/query_string_parsing_test.rb +0 -120
- data/src/admin_panel/vendor/rails/actionpack/test/controller/request/url_encoded_params_parsing_test.rb +0 -184
- data/src/admin_panel/vendor/rails/actionpack/test/controller/request/xml_params_parsing_test.rb +0 -88
- data/src/admin_panel/vendor/rails/actionpack/test/controller/request_forgery_protection_test.rb +0 -246
- data/src/admin_panel/vendor/rails/actionpack/test/controller/request_test.rb +0 -407
- data/src/admin_panel/vendor/rails/actionpack/test/controller/rescue_test.rb +0 -536
- data/src/admin_panel/vendor/rails/actionpack/test/controller/resources_test.rb +0 -1341
- data/src/admin_panel/vendor/rails/actionpack/test/controller/routing_test.rb +0 -2557
- data/src/admin_panel/vendor/rails/actionpack/test/controller/selector_test.rb +0 -628
- data/src/admin_panel/vendor/rails/actionpack/test/controller/send_file_test.rb +0 -161
- data/src/admin_panel/vendor/rails/actionpack/test/controller/session/cookie_store_test.rb +0 -239
- data/src/admin_panel/vendor/rails/actionpack/test/controller/session/mem_cache_store_test.rb +0 -127
- data/src/admin_panel/vendor/rails/actionpack/test/controller/session/test_session_test.rb +0 -58
- data/src/admin_panel/vendor/rails/actionpack/test/controller/test_test.rb +0 -692
- data/src/admin_panel/vendor/rails/actionpack/test/controller/translation_test.rb +0 -26
- data/src/admin_panel/vendor/rails/actionpack/test/controller/url_rewriter_test.rb +0 -359
- data/src/admin_panel/vendor/rails/actionpack/test/controller/verification_test.rb +0 -270
- data/src/admin_panel/vendor/rails/actionpack/test/controller/view_paths_test.rb +0 -141
- data/src/admin_panel/vendor/rails/actionpack/test/controller/webservice_test.rb +0 -260
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/_top_level_partial.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/_top_level_partial_only.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/addresses/list.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/alternate_helpers/foo_helper.rb +0 -3
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/bad_customers/_bad_customer.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/companies.yml +0 -24
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/company.rb +0 -10
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/content_type/render_default_content_types_for_respond_to.rhtml +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rhtml.rhtml +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rjs.rjs +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rxml.rxml +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/customers/_customer.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/db_definitions/sqlite.sql +0 -49
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/developer.rb +0 -9
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/developers/_developer.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/developers.yml +0 -21
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/developers_projects.yml +0 -13
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/fun/games/_game.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/fun/games/hello_world.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/fun/serious/games/_game.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/functional_caching/_partial.erb +0 -3
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.html.erb +0 -3
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.js.rjs +0 -6
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.xml.builder +0 -5
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/functional_caching/fragment_cached.html.erb +0 -2
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/functional_caching/html_fragment_cached_with_partial.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/functional_caching/inline_fragment_cached.html.erb +0 -2
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/functional_caching/js_fragment_cached_with_partial.js.rjs +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/good_customers/_good_customer.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/helpers/abc_helper.rb +0 -5
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/helpers/fun/games_helper.rb +0 -3
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/helpers/fun/pdf_helper.rb +0 -3
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layout_tests/alt/hello.rhtml +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layout_tests/alt/layouts/alt.rhtml +0 -0
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/controller_name_space/nested.rhtml +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/item.rhtml +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/layout_test.rhtml +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/multiple_extensions.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/third_party_template_library.mab +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layout_tests/views/hello.rhtml +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/_column.html.erb +0 -2
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/block_with_layout.erb +0 -3
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/builder.builder +0 -3
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/default_html.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/partial_with_layout.erb +0 -3
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/standard.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/talk_from_action.erb +0 -2
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/xhr.html.erb +0 -2
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/yield.erb +0 -2
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/mascot.rb +0 -3
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/mascots/_mascot.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/mascots.yml +0 -4
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/binary_file +0 -0
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/boundary_problem_file +0 -10
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/bracketed_param +0 -5
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/empty +0 -10
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/hello.txt +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/large_text_file +0 -10
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/mixed_files +0 -0
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/mona_lisa.jpg +0 -0
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/none +0 -9
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/single_parameter +0 -5
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/text_file +0 -10
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/override/test/hello_world.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/override2/layouts/test/sub.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/post_test/layouts/post.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/post_test/layouts/super_post.iphone.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/post_test/post/index.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/post_test/post/index.iphone.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/post_test/super_post/index.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/post_test/super_post/index.iphone.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/project.rb +0 -3
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/projects/_project.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/projects.yml +0 -7
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/404.html +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/500.da.html +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/500.html +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/images/rails.png +0 -0
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/application.js +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/bank.js +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/controls.js +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/dragdrop.js +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/effects.js +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/prototype.js +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/robber.js +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/subdir/subdir.js +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/version.1.0.js +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/stylesheets/bank.css +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/stylesheets/robber.css +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/stylesheets/subdir/subdir.css +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/stylesheets/version.1.0.css +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/quiz/questions/_question.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/replies/_reply.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/replies.yml +0 -15
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/reply.rb +0 -7
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.js.rjs +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/custom_constant_handling_without_block.mobile.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/iphone_with_html_response_type.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/iphone_with_html_response_type.iphone.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/layouts/missing.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.iphone.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.js.rjs +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.xml.builder +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.js.rjs +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.xml.builder +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/scope/test/modgreet.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/shared.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/symlink_parent/symlinked_layout.erb +0 -5
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_counter.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_customer.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_customer_counter.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_customer_greeting.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_customer_with_var.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_form.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_hash_greeting.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_hash_object.erb +0 -2
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_hello.builder +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_labelling_form.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_layout_for_block_with_args.html.erb +0 -3
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_layout_for_partial.html.erb +0 -3
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_local_inspector.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_one.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_partial.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_partial.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_partial.js.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_partial_for_use_in_layout.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_partial_only.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_partial_with_only_html_version.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_person.erb +0 -2
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_raise.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_two.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/action_talk_to_layout.erb +0 -2
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/calling_partial_with_layout.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/capturing.erb +0 -4
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/content_for.erb +0 -2
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/content_for_concatenated.erb +0 -3
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/content_for_with_parameter.erb +0 -2
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/delete_with_js.rjs +0 -2
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/dont_pick_me +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/dot.directory/render_file_with_ivar.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/enum_rjs_test.rjs +0 -6
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/formatted_html_erb.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.builder +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.xml.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/greeting.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/greeting.js.rjs +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hello.builder +0 -4
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hello_world.da.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hello_world.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hello_world.pt-BR.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hello_world_container.builder +0 -3
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hello_world_from_rxml.builder +0 -4
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hello_world_with_layout_false.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hello_xml_world.builder +0 -11
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hyphen-ated.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/implicit_content_type.atom.builder +0 -2
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/list.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/nested_layout.erb +0 -3
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/non_erb_block_content_for.builder +0 -4
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/potential_conflicts.erb +0 -4
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_explicit_html_template.js.rjs +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_file_from_template.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_file_with_ivar.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_file_with_locals.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_implicit_html_template.js.rjs +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_implicit_html_template_from_xhr_request.da.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_implicit_html_template_from_xhr_request.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_implicit_js_template_without_layout.js.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_to_string_test.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/sub_template_raise.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/template.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/update_element_with_capture.erb +0 -9
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/using_layout_around_block.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/using_layout_around_block_with_args.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/utf8.html.erb +0 -2
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/topic.rb +0 -3
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/topics/_topic.html.erb +0 -1
- data/src/admin_panel/vendor/rails/actionpack/test/fixtures/topics.yml +0 -22
- data/src/admin_panel/vendor/rails/actionpack/test/template/active_record_helper_i18n_test.rb +0 -44
- data/src/admin_panel/vendor/rails/actionpack/test/template/active_record_helper_test.rb +0 -302
- data/src/admin_panel/vendor/rails/actionpack/test/template/asset_tag_helper_test.rb +0 -713
- data/src/admin_panel/vendor/rails/actionpack/test/template/atom_feed_helper_test.rb +0 -286
- data/src/admin_panel/vendor/rails/actionpack/test/template/benchmark_helper_test.rb +0 -86
- data/src/admin_panel/vendor/rails/actionpack/test/template/compiled_templates_test.rb +0 -203
- data/src/admin_panel/vendor/rails/actionpack/test/template/date_helper_i18n_test.rb +0 -120
- data/src/admin_panel/vendor/rails/actionpack/test/template/date_helper_test.rb +0 -2469
- data/src/admin_panel/vendor/rails/actionpack/test/template/erb_util_test.rb +0 -24
- data/src/admin_panel/vendor/rails/actionpack/test/template/form_helper_test.rb +0 -1176
- data/src/admin_panel/vendor/rails/actionpack/test/template/form_options_helper_test.rb +0 -751
- data/src/admin_panel/vendor/rails/actionpack/test/template/form_tag_helper_test.rb +0 -327
- data/src/admin_panel/vendor/rails/actionpack/test/template/javascript_helper_test.rb +0 -106
- data/src/admin_panel/vendor/rails/actionpack/test/template/number_helper_i18n_test.rb +0 -69
- data/src/admin_panel/vendor/rails/actionpack/test/template/number_helper_test.rb +0 -128
- data/src/admin_panel/vendor/rails/actionpack/test/template/prototype_helper_test.rb +0 -639
- data/src/admin_panel/vendor/rails/actionpack/test/template/record_tag_helper_test.rb +0 -58
- data/src/admin_panel/vendor/rails/actionpack/test/template/render_test.rb +0 -290
- data/src/admin_panel/vendor/rails/actionpack/test/template/sanitize_helper_test.rb +0 -48
- data/src/admin_panel/vendor/rails/actionpack/test/template/scriptaculous_helper_test.rb +0 -90
- data/src/admin_panel/vendor/rails/actionpack/test/template/tag_helper_test.rb +0 -97
- data/src/admin_panel/vendor/rails/actionpack/test/template/test_test.rb +0 -54
- data/src/admin_panel/vendor/rails/actionpack/test/template/text_helper_test.rb +0 -520
- data/src/admin_panel/vendor/rails/actionpack/test/template/translation_helper_test.rb +0 -32
- data/src/admin_panel/vendor/rails/actionpack/test/template/url_helper_test.rb +0 -614
- data/src/admin_panel/vendor/rails/actionpack/test/testing_sandbox.rb +0 -15
- data/src/admin_panel/vendor/rails/actionpack/test/view/test_case_test.rb +0 -8
- data/src/admin_panel/vendor/rails/activerecord/CHANGELOG +0 -5832
- data/src/admin_panel/vendor/rails/activerecord/README +0 -351
- data/src/admin_panel/vendor/rails/activerecord/RUNNING_UNIT_TESTS +0 -36
- data/src/admin_panel/vendor/rails/activerecord/Rakefile +0 -253
- data/src/admin_panel/vendor/rails/activerecord/examples/associations.png +0 -0
- data/src/admin_panel/vendor/rails/activerecord/install.rb +0 -30
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/aggregations.rb +0 -261
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/association_preload.rb +0 -389
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb +0 -470
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb +0 -279
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/belongs_to_association.rb +0 -58
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb +0 -49
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb +0 -127
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/has_many_association.rb +0 -121
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/has_many_through_association.rb +0 -256
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/has_one_association.rb +0 -124
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/has_one_through_association.rb +0 -31
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations.rb +0 -2169
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/attribute_methods.rb +0 -388
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/autosave_association.rb +0 -349
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/base.rb +0 -3155
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/batches.rb +0 -73
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/calculations.rb +0 -317
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/callbacks.rb +0 -360
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb +0 -371
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb +0 -139
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +0 -289
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb +0 -94
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb +0 -69
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +0 -708
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +0 -434
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +0 -234
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb +0 -617
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +0 -1050
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb +0 -34
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +0 -438
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/dirty.rb +0 -183
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/dynamic_finder_match.rb +0 -41
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/dynamic_scope_match.rb +0 -25
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/fixtures.rb +0 -993
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/i18n_interpolation_deprecation.rb +0 -26
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/locale/en.yml +0 -54
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/locking/optimistic.rb +0 -181
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/locking/pessimistic.rb +0 -77
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/migration.rb +0 -566
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/named_scope.rb +0 -197
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/nested_attributes.rb +0 -329
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/observer.rb +0 -197
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/query_cache.rb +0 -33
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/reflection.rb +0 -320
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/schema.rb +0 -51
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/schema_dumper.rb +0 -179
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/serialization.rb +0 -100
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/serializers/json_serializer.rb +0 -99
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/serializers/xml_serializer.rb +0 -353
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/session_store.rb +0 -318
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/test_case.rb +0 -66
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/timestamp.rb +0 -41
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/transactions.rb +0 -235
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/validations.rb +0 -1066
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record/version.rb +0 -9
- data/src/admin_panel/vendor/rails/activerecord/lib/active_record.rb +0 -84
- data/src/admin_panel/vendor/rails/activerecord/lib/activerecord.rb +0 -1
- data/src/admin_panel/vendor/rails/activerecord/test/assets/flowers.jpg +0 -0
- data/src/admin_panel/vendor/rails/activerecord/test/cases/aaa_create_tables_test.rb +0 -24
- data/src/admin_panel/vendor/rails/activerecord/test/cases/active_schema_test_mysql.rb +0 -100
- data/src/admin_panel/vendor/rails/activerecord/test/cases/active_schema_test_postgresql.rb +0 -24
- data/src/admin_panel/vendor/rails/activerecord/test/cases/adapter_test.rb +0 -133
- data/src/admin_panel/vendor/rails/activerecord/test/cases/aggregations_test.rb +0 -167
- data/src/admin_panel/vendor/rails/activerecord/test/cases/ar_schema_test.rb +0 -32
- data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/belongs_to_associations_test.rb +0 -345
- data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/callbacks_test.rb +0 -161
- data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/cascaded_eager_loading_test.rb +0 -131
- data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/eager_load_includes_full_sti_class_test.rb +0 -36
- data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/eager_load_nested_include_test.rb +0 -130
- data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/eager_singularization_test.rb +0 -145
- data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/eager_test.rb +0 -822
- data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/extension_test.rb +0 -62
- data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb +0 -822
- data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/has_many_associations_test.rb +0 -1062
- data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/has_many_through_associations_test.rb +0 -279
- data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/has_one_associations_test.rb +0 -309
- data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/has_one_through_associations_test.rb +0 -192
- data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/inner_join_association_test.rb +0 -88
- data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/join_model_test.rb +0 -712
- data/src/admin_panel/vendor/rails/activerecord/test/cases/associations_test.rb +0 -262
- data/src/admin_panel/vendor/rails/activerecord/test/cases/attribute_methods_test.rb +0 -305
- data/src/admin_panel/vendor/rails/activerecord/test/cases/autosave_association_test.rb +0 -901
- data/src/admin_panel/vendor/rails/activerecord/test/cases/base_test.rb +0 -2107
- data/src/admin_panel/vendor/rails/activerecord/test/cases/batches_test.rb +0 -61
- data/src/admin_panel/vendor/rails/activerecord/test/cases/binary_test.rb +0 -30
- data/src/admin_panel/vendor/rails/activerecord/test/cases/calculations_test.rb +0 -348
- data/src/admin_panel/vendor/rails/activerecord/test/cases/callbacks_observers_test.rb +0 -38
- data/src/admin_panel/vendor/rails/activerecord/test/cases/callbacks_test.rb +0 -438
- data/src/admin_panel/vendor/rails/activerecord/test/cases/class_inheritable_attributes_test.rb +0 -32
- data/src/admin_panel/vendor/rails/activerecord/test/cases/column_alias_test.rb +0 -17
- data/src/admin_panel/vendor/rails/activerecord/test/cases/column_definition_test.rb +0 -36
- data/src/admin_panel/vendor/rails/activerecord/test/cases/connection_pool_test.rb +0 -25
- data/src/admin_panel/vendor/rails/activerecord/test/cases/connection_test_firebird.rb +0 -8
- data/src/admin_panel/vendor/rails/activerecord/test/cases/connection_test_mysql.rb +0 -56
- data/src/admin_panel/vendor/rails/activerecord/test/cases/copy_table_test_sqlite.rb +0 -80
- data/src/admin_panel/vendor/rails/activerecord/test/cases/database_statements_test.rb +0 -12
- data/src/admin_panel/vendor/rails/activerecord/test/cases/datatype_test_postgresql.rb +0 -204
- data/src/admin_panel/vendor/rails/activerecord/test/cases/date_time_test.rb +0 -37
- data/src/admin_panel/vendor/rails/activerecord/test/cases/default_test_firebird.rb +0 -16
- data/src/admin_panel/vendor/rails/activerecord/test/cases/defaults_test.rb +0 -111
- data/src/admin_panel/vendor/rails/activerecord/test/cases/deprecated_finder_test.rb +0 -30
- data/src/admin_panel/vendor/rails/activerecord/test/cases/dirty_test.rb +0 -306
- data/src/admin_panel/vendor/rails/activerecord/test/cases/finder_respond_to_test.rb +0 -76
- data/src/admin_panel/vendor/rails/activerecord/test/cases/finder_test.rb +0 -1083
- data/src/admin_panel/vendor/rails/activerecord/test/cases/fixtures_test.rb +0 -651
- data/src/admin_panel/vendor/rails/activerecord/test/cases/helper.rb +0 -69
- data/src/admin_panel/vendor/rails/activerecord/test/cases/i18n_test.rb +0 -41
- data/src/admin_panel/vendor/rails/activerecord/test/cases/inheritance_test.rb +0 -262
- data/src/admin_panel/vendor/rails/activerecord/test/cases/invalid_date_test.rb +0 -24
- data/src/admin_panel/vendor/rails/activerecord/test/cases/json_serialization_test.rb +0 -205
- data/src/admin_panel/vendor/rails/activerecord/test/cases/lifecycle_test.rb +0 -193
- data/src/admin_panel/vendor/rails/activerecord/test/cases/locking_test.rb +0 -322
- data/src/admin_panel/vendor/rails/activerecord/test/cases/method_scoping_test.rb +0 -694
- data/src/admin_panel/vendor/rails/activerecord/test/cases/migration_test.rb +0 -1495
- data/src/admin_panel/vendor/rails/activerecord/test/cases/migration_test_firebird.rb +0 -124
- data/src/admin_panel/vendor/rails/activerecord/test/cases/mixin_test.rb +0 -96
- data/src/admin_panel/vendor/rails/activerecord/test/cases/modules_test.rb +0 -39
- data/src/admin_panel/vendor/rails/activerecord/test/cases/multiple_db_test.rb +0 -85
- data/src/admin_panel/vendor/rails/activerecord/test/cases/named_scope_test.rb +0 -359
- data/src/admin_panel/vendor/rails/activerecord/test/cases/nested_attributes_test.rb +0 -509
- data/src/admin_panel/vendor/rails/activerecord/test/cases/pk_test.rb +0 -101
- data/src/admin_panel/vendor/rails/activerecord/test/cases/pooled_connections_test.rb +0 -103
- data/src/admin_panel/vendor/rails/activerecord/test/cases/query_cache_test.rb +0 -123
- data/src/admin_panel/vendor/rails/activerecord/test/cases/readonly_test.rb +0 -107
- data/src/admin_panel/vendor/rails/activerecord/test/cases/reflection_test.rb +0 -194
- data/src/admin_panel/vendor/rails/activerecord/test/cases/reload_models_test.rb +0 -22
- data/src/admin_panel/vendor/rails/activerecord/test/cases/repair_helper.rb +0 -50
- data/src/admin_panel/vendor/rails/activerecord/test/cases/reserved_word_test_mysql.rb +0 -176
- data/src/admin_panel/vendor/rails/activerecord/test/cases/sanitize_test.rb +0 -25
- data/src/admin_panel/vendor/rails/activerecord/test/cases/schema_authorization_test_postgresql.rb +0 -75
- data/src/admin_panel/vendor/rails/activerecord/test/cases/schema_dumper_test.rb +0 -183
- data/src/admin_panel/vendor/rails/activerecord/test/cases/schema_test_postgresql.rb +0 -102
- data/src/admin_panel/vendor/rails/activerecord/test/cases/serialization_test.rb +0 -47
- data/src/admin_panel/vendor/rails/activerecord/test/cases/synonym_test_oracle.rb +0 -17
- data/src/admin_panel/vendor/rails/activerecord/test/cases/transactions_test.rb +0 -522
- data/src/admin_panel/vendor/rails/activerecord/test/cases/unconnected_test.rb +0 -32
- data/src/admin_panel/vendor/rails/activerecord/test/cases/validations_i18n_test.rb +0 -915
- data/src/admin_panel/vendor/rails/activerecord/test/cases/validations_test.rb +0 -1602
- data/src/admin_panel/vendor/rails/activerecord/test/cases/xml_serialization_test.rb +0 -220
- data/src/admin_panel/vendor/rails/activerecord/test/config.rb +0 -5
- data/src/admin_panel/vendor/rails/activerecord/test/connections/jdbc_jdbcderby/connection.rb +0 -18
- data/src/admin_panel/vendor/rails/activerecord/test/connections/jdbc_jdbch2/connection.rb +0 -18
- data/src/admin_panel/vendor/rails/activerecord/test/connections/jdbc_jdbchsqldb/connection.rb +0 -18
- data/src/admin_panel/vendor/rails/activerecord/test/connections/jdbc_jdbcmysql/connection.rb +0 -26
- data/src/admin_panel/vendor/rails/activerecord/test/connections/jdbc_jdbcpostgresql/connection.rb +0 -26
- data/src/admin_panel/vendor/rails/activerecord/test/connections/jdbc_jdbcsqlite3/connection.rb +0 -25
- data/src/admin_panel/vendor/rails/activerecord/test/connections/native_db2/connection.rb +0 -25
- data/src/admin_panel/vendor/rails/activerecord/test/connections/native_firebird/connection.rb +0 -26
- data/src/admin_panel/vendor/rails/activerecord/test/connections/native_frontbase/connection.rb +0 -27
- data/src/admin_panel/vendor/rails/activerecord/test/connections/native_mysql/connection.rb +0 -25
- data/src/admin_panel/vendor/rails/activerecord/test/connections/native_openbase/connection.rb +0 -21
- data/src/admin_panel/vendor/rails/activerecord/test/connections/native_oracle/connection.rb +0 -27
- data/src/admin_panel/vendor/rails/activerecord/test/connections/native_postgresql/connection.rb +0 -21
- data/src/admin_panel/vendor/rails/activerecord/test/connections/native_sqlite/connection.rb +0 -25
- data/src/admin_panel/vendor/rails/activerecord/test/connections/native_sqlite3/connection.rb +0 -25
- data/src/admin_panel/vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb +0 -18
- data/src/admin_panel/vendor/rails/activerecord/test/connections/native_sybase/connection.rb +0 -23
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/accounts.yml +0 -28
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/all/developers.yml +0 -0
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/all/people.csv +0 -0
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/all/tasks.yml +0 -0
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/author_addresses.yml +0 -5
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/author_favorites.yml +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/authors.yml +0 -9
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/binaries.yml +0 -132
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/books.yml +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/categories/special_categories.yml +0 -9
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/categories/subsubdir/arbitrary_filename.yml +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/categories.yml +0 -14
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/categories_ordered.yml +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/categories_posts.yml +0 -23
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/categorizations.yml +0 -17
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/clubs.yml +0 -6
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/comments.yml +0 -59
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/companies.yml +0 -56
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/computers.yml +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/courses.yml +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/customers.yml +0 -26
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/developers.yml +0 -21
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/developers_projects.yml +0 -17
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/edges.yml +0 -6
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/entrants.yml +0 -14
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/fixture_database.sqlite3 +0 -0
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/fixture_database_2.sqlite3 +0 -0
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/fk_test_has_fk.yml +0 -3
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/fk_test_has_pk.yml +0 -2
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/funny_jokes.yml +0 -10
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/items.yml +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/jobs.yml +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/legacy_things.yml +0 -3
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/mateys.yml +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/member_types.yml +0 -6
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/members.yml +0 -6
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/memberships.yml +0 -20
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/minimalistics.yml +0 -2
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/mixed_case_monkeys.yml +0 -6
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/mixins.yml +0 -29
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/movies.yml +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/naked/csv/accounts.csv +0 -1
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/naked/yml/accounts.yml +0 -1
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/naked/yml/companies.yml +0 -1
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/naked/yml/courses.yml +0 -1
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/organizations.yml +0 -5
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/owners.yml +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/parrots.yml +0 -27
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/parrots_pirates.yml +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/people.yml +0 -15
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/pets.yml +0 -14
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/pirates.yml +0 -9
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/posts.yml +0 -49
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/price_estimates.yml +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/projects.yml +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/readers.yml +0 -9
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/references.yml +0 -17
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/reserved_words/distinct.yml +0 -5
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/reserved_words/distincts_selects.yml +0 -11
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/reserved_words/group.yml +0 -14
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/reserved_words/select.yml +0 -8
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/reserved_words/values.yml +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/ships.yml +0 -5
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/sponsors.yml +0 -9
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/subscribers.yml +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/subscriptions.yml +0 -12
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/taggings.yml +0 -28
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/tags.yml +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/tasks.yml +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/topics.yml +0 -42
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/toys.yml +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/treasures.yml +0 -10
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/vertices.yml +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/fixtures/warehouse-things.yml +0 -3
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb +0 -10
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb +0 -15
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/duplicate/1_people_have_last_names.rb +0 -9
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/duplicate/2_we_need_reminders.rb +0 -12
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/duplicate/3_foo.rb +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/duplicate/3_innocent_jointable.rb +0 -12
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/duplicate_names/20080507052938_chunky.rb +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/duplicate_names/20080507053028_chunky.rb +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/interleaved/pass_1/3_innocent_jointable.rb +0 -12
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/interleaved/pass_2/1_people_have_last_names.rb +0 -9
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/interleaved/pass_2/3_innocent_jointable.rb +0 -12
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/interleaved/pass_3/1_people_have_last_names.rb +0 -9
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/interleaved/pass_3/2_i_raise_on_down.rb +0 -8
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/interleaved/pass_3/3_innocent_jointable.rb +0 -12
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/missing/1000_people_have_middle_names.rb +0 -9
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/missing/1_people_have_last_names.rb +0 -9
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/missing/3_we_need_reminders.rb +0 -12
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/missing/4_innocent_jointable.rb +0 -12
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/valid/1_people_have_last_names.rb +0 -9
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/valid/2_we_need_reminders.rb +0 -12
- data/src/admin_panel/vendor/rails/activerecord/test/migrations/valid/3_innocent_jointable.rb +0 -12
- data/src/admin_panel/vendor/rails/activerecord/test/models/author.rb +0 -141
- data/src/admin_panel/vendor/rails/activerecord/test/models/auto_id.rb +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/models/binary.rb +0 -2
- data/src/admin_panel/vendor/rails/activerecord/test/models/bird.rb +0 -3
- data/src/admin_panel/vendor/rails/activerecord/test/models/book.rb +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/models/categorization.rb +0 -5
- data/src/admin_panel/vendor/rails/activerecord/test/models/category.rb +0 -34
- data/src/admin_panel/vendor/rails/activerecord/test/models/citation.rb +0 -6
- data/src/admin_panel/vendor/rails/activerecord/test/models/club.rb +0 -13
- data/src/admin_panel/vendor/rails/activerecord/test/models/column_name.rb +0 -3
- data/src/admin_panel/vendor/rails/activerecord/test/models/comment.rb +0 -25
- data/src/admin_panel/vendor/rails/activerecord/test/models/company.rb +0 -159
- data/src/admin_panel/vendor/rails/activerecord/test/models/company_in_module.rb +0 -61
- data/src/admin_panel/vendor/rails/activerecord/test/models/computer.rb +0 -3
- data/src/admin_panel/vendor/rails/activerecord/test/models/contact.rb +0 -16
- data/src/admin_panel/vendor/rails/activerecord/test/models/course.rb +0 -3
- data/src/admin_panel/vendor/rails/activerecord/test/models/customer.rb +0 -73
- data/src/admin_panel/vendor/rails/activerecord/test/models/default.rb +0 -2
- data/src/admin_panel/vendor/rails/activerecord/test/models/developer.rb +0 -91
- data/src/admin_panel/vendor/rails/activerecord/test/models/edge.rb +0 -5
- data/src/admin_panel/vendor/rails/activerecord/test/models/entrant.rb +0 -3
- data/src/admin_panel/vendor/rails/activerecord/test/models/event.rb +0 -3
- data/src/admin_panel/vendor/rails/activerecord/test/models/guid.rb +0 -2
- data/src/admin_panel/vendor/rails/activerecord/test/models/item.rb +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/models/job.rb +0 -5
- data/src/admin_panel/vendor/rails/activerecord/test/models/joke.rb +0 -3
- data/src/admin_panel/vendor/rails/activerecord/test/models/keyboard.rb +0 -3
- data/src/admin_panel/vendor/rails/activerecord/test/models/legacy_thing.rb +0 -3
- data/src/admin_panel/vendor/rails/activerecord/test/models/matey.rb +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/models/member.rb +0 -12
- data/src/admin_panel/vendor/rails/activerecord/test/models/member_detail.rb +0 -5
- data/src/admin_panel/vendor/rails/activerecord/test/models/member_type.rb +0 -3
- data/src/admin_panel/vendor/rails/activerecord/test/models/membership.rb +0 -9
- data/src/admin_panel/vendor/rails/activerecord/test/models/minimalistic.rb +0 -2
- data/src/admin_panel/vendor/rails/activerecord/test/models/mixed_case_monkey.rb +0 -3
- data/src/admin_panel/vendor/rails/activerecord/test/models/movie.rb +0 -5
- data/src/admin_panel/vendor/rails/activerecord/test/models/order.rb +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/models/organization.rb +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/models/owner.rb +0 -5
- data/src/admin_panel/vendor/rails/activerecord/test/models/parrot.rb +0 -16
- data/src/admin_panel/vendor/rails/activerecord/test/models/person.rb +0 -16
- data/src/admin_panel/vendor/rails/activerecord/test/models/pet.rb +0 -5
- data/src/admin_panel/vendor/rails/activerecord/test/models/pirate.rb +0 -63
- data/src/admin_panel/vendor/rails/activerecord/test/models/post.rb +0 -100
- data/src/admin_panel/vendor/rails/activerecord/test/models/price_estimate.rb +0 -3
- data/src/admin_panel/vendor/rails/activerecord/test/models/project.rb +0 -30
- data/src/admin_panel/vendor/rails/activerecord/test/models/reader.rb +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/models/reference.rb +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/models/reply.rb +0 -45
- data/src/admin_panel/vendor/rails/activerecord/test/models/ship.rb +0 -10
- data/src/admin_panel/vendor/rails/activerecord/test/models/ship_part.rb +0 -5
- data/src/admin_panel/vendor/rails/activerecord/test/models/sponsor.rb +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/models/subject.rb +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/models/subscriber.rb +0 -8
- data/src/admin_panel/vendor/rails/activerecord/test/models/subscription.rb +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/models/tag.rb +0 -7
- data/src/admin_panel/vendor/rails/activerecord/test/models/tagging.rb +0 -10
- data/src/admin_panel/vendor/rails/activerecord/test/models/task.rb +0 -3
- data/src/admin_panel/vendor/rails/activerecord/test/models/topic.rb +0 -81
- data/src/admin_panel/vendor/rails/activerecord/test/models/toy.rb +0 -4
- data/src/admin_panel/vendor/rails/activerecord/test/models/treasure.rb +0 -6
- data/src/admin_panel/vendor/rails/activerecord/test/models/vertex.rb +0 -9
- data/src/admin_panel/vendor/rails/activerecord/test/models/warehouse_thing.rb +0 -5
- data/src/admin_panel/vendor/rails/activerecord/test/schema/mysql_specific_schema.rb +0 -12
- data/src/admin_panel/vendor/rails/activerecord/test/schema/postgresql_specific_schema.rb +0 -103
- data/src/admin_panel/vendor/rails/activerecord/test/schema/schema.rb +0 -473
- data/src/admin_panel/vendor/rails/activerecord/test/schema/schema2.rb +0 -6
- data/src/admin_panel/vendor/rails/activerecord/test/schema/sqlite_specific_schema.rb +0 -25
- data/src/admin_panel/vendor/rails/activeresource/CHANGELOG +0 -267
- data/src/admin_panel/vendor/rails/activeresource/README +0 -165
- data/src/admin_panel/vendor/rails/activeresource/Rakefile +0 -138
- data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/base.rb +0 -1077
- data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/connection.rb +0 -218
- data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/custom_methods.rb +0 -120
- data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/formats/json_format.rb +0 -23
- data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/formats/xml_format.rb +0 -34
- data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/formats.rb +0 -14
- data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/http_mock.rb +0 -207
- data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/validations.rb +0 -274
- data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/version.rb +0 -9
- data/src/admin_panel/vendor/rails/activeresource/lib/active_resource.rb +0 -44
- data/src/admin_panel/vendor/rails/activeresource/lib/activeresource.rb +0 -1
- data/src/admin_panel/vendor/rails/activeresource/test/abstract_unit.rb +0 -23
- data/src/admin_panel/vendor/rails/activeresource/test/authorization_test.rb +0 -122
- data/src/admin_panel/vendor/rails/activeresource/test/base/custom_methods_test.rb +0 -100
- data/src/admin_panel/vendor/rails/activeresource/test/base/equality_test.rb +0 -52
- data/src/admin_panel/vendor/rails/activeresource/test/base/load_test.rb +0 -146
- data/src/admin_panel/vendor/rails/activeresource/test/base_errors_test.rb +0 -48
- data/src/admin_panel/vendor/rails/activeresource/test/base_test.rb +0 -891
- data/src/admin_panel/vendor/rails/activeresource/test/connection_test.rb +0 -196
- data/src/admin_panel/vendor/rails/activeresource/test/fixtures/beast.rb +0 -14
- data/src/admin_panel/vendor/rails/activeresource/test/fixtures/customer.rb +0 -3
- data/src/admin_panel/vendor/rails/activeresource/test/fixtures/person.rb +0 -3
- data/src/admin_panel/vendor/rails/activeresource/test/fixtures/street_address.rb +0 -4
- data/src/admin_panel/vendor/rails/activeresource/test/format_test.rb +0 -112
- data/src/admin_panel/vendor/rails/activeresource/test/setter_trap.rb +0 -26
- data/src/admin_panel/vendor/rails/activesupport/CHANGELOG +0 -1309
- data/src/admin_panel/vendor/rails/activesupport/README +0 -43
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/backtrace_cleaner.rb +0 -72
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/base64.rb +0 -33
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/basic_object.rb +0 -24
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/buffered_logger.rb +0 -127
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb +0 -20
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/cache/drb_store.rb +0 -14
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/cache/file_store.rb +0 -72
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/cache/mem_cache_store.rb +0 -132
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/cache/memory_store.rb +0 -52
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/cache/strategy/local_cache.rb +0 -104
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/cache/synchronized_memory_store.rb +0 -47
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/cache.rb +0 -228
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/callbacks.rb +0 -279
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/array/access.rb +0 -53
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/array/conversions.rb +0 -196
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/array/extract_options.rb +0 -20
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/array/grouping.rb +0 -106
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/array/random_access.rb +0 -12
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/array/wrapper.rb +0 -24
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/array.rb +0 -15
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/base64/encoding.rb +0 -16
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/base64.rb +0 -4
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb +0 -19
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/bigdecimal/conversions.rb +0 -37
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/bigdecimal.rb +0 -6
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/blank.rb +0 -58
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +0 -23
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/cgi.rb +0 -5
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/class/attribute_accessors.rb +0 -54
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/class/delegating_attributes.rb +0 -47
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb +0 -140
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/class/removal.rb +0 -50
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/class.rb +0 -4
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/date/behavior.rb +0 -42
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/date/calculations.rb +0 -230
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/date/conversions.rb +0 -107
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/date.rb +0 -10
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/date_time/calculations.rb +0 -126
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/date_time/conversions.rb +0 -96
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/date_time.rb +0 -12
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/duplicable.rb +0 -43
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/enumerable.rb +0 -116
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/exception.rb +0 -45
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/file/atomic.rb +0 -46
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/file.rb +0 -5
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/float/rounding.rb +0 -24
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/float/time.rb +0 -27
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/float.rb +0 -7
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash/conversions.rb +0 -237
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash/deep_merge.rb +0 -23
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb +0 -19
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash/except.rb +0 -25
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb +0 -143
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash/keys.rb +0 -52
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash/reverse_merge.rb +0 -35
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash/slice.rb +0 -40
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash.rb +0 -14
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/integer/even_odd.rb +0 -29
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/integer/inflections.rb +0 -20
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/integer/time.rb +0 -45
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/integer.rb +0 -9
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/kernel/agnostics.rb +0 -11
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/kernel/daemonizing.rb +0 -7
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb +0 -13
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb +0 -59
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/kernel/requires.rb +0 -24
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/kernel.rb +0 -5
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/load_error.rb +0 -38
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/logger.rb +0 -145
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb +0 -74
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/attr_accessor_with_default.rb +0 -31
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/attr_internal.rb +0 -32
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb +0 -58
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/delegation.rb +0 -121
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/inclusion.rb +0 -30
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/introspection.rb +0 -90
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb +0 -23
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/model_naming.rb +0 -23
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/synchronization.rb +0 -39
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module.rb +0 -23
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/name_error.rb +0 -17
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/numeric/bytes.rb +0 -44
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/numeric/conversions.rb +0 -19
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/numeric/time.rb +0 -81
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/numeric.rb +0 -9
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/object/conversions.rb +0 -15
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/object/extending.rb +0 -80
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/object/instance_variables.rb +0 -74
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/object/metaclass.rb +0 -13
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/object/misc.rb +0 -90
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/object.rb +0 -5
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/pathname/clean_within.rb +0 -14
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/pathname.rb +0 -7
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/proc.rb +0 -12
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/process/daemon.rb +0 -25
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/process.rb +0 -1
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/range/blockless_step.rb +0 -32
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/range/conversions.rb +0 -27
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/range/include_range.rb +0 -30
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/range/overlaps.rb +0 -15
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/range.rb +0 -11
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/rexml.rb +0 -41
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/access.rb +0 -82
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/behavior.rb +0 -13
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/conversions.rb +0 -28
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/filters.rb +0 -26
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb +0 -167
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/iterators.rb +0 -23
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/multibyte.rb +0 -81
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/starts_ends_with.rb +0 -35
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/xchar.rb +0 -11
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string.rb +0 -22
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/symbol.rb +0 -14
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/time/behavior.rb +0 -13
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/time/calculations.rb +0 -303
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/time/conversions.rb +0 -90
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/time/zones.rb +0 -86
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/time.rb +0 -42
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/try.rb +0 -36
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/uri.rb +0 -16
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext.rb +0 -4
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/dependencies.rb +0 -625
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/deprecation.rb +0 -196
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/duration.rb +0 -98
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/gzip.rb +0 -25
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/inflections.rb +0 -56
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/inflector.rb +0 -406
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/decoding.rb +0 -82
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/date.rb +0 -21
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/date_time.rb +0 -21
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/enumerable.rb +0 -12
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/false_class.rb +0 -5
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/hash.rb +0 -46
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/nil_class.rb +0 -5
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb +0 -5
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/object.rb +0 -6
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/regexp.rb +0 -5
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/string.rb +0 -36
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/symbol.rb +0 -5
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/time.rb +0 -21
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/true_class.rb +0 -5
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoding.rb +0 -31
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/variable.rb +0 -10
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json.rb +0 -23
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/locale/en.yml +0 -33
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/memoizable.rb +0 -100
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/message_encryptor.rb +0 -70
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/message_verifier.rb +0 -46
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/multibyte/chars.rb +0 -701
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/multibyte/exceptions.rb +0 -8
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/multibyte/unicode_database.rb +0 -71
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/multibyte.rb +0 -33
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/option_merger.rb +0 -23
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/ordered_hash.rb +0 -106
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/ordered_options.rb +0 -19
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/rescuable.rb +0 -108
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/secure_random.rb +0 -199
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/string_inquirer.rb +0 -21
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/test_case.rb +0 -39
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/testing/assertions.rb +0 -65
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/testing/declarative.rb +0 -21
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/testing/default.rb +0 -9
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/testing/deprecation.rb +0 -55
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/testing/performance.rb +0 -452
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb +0 -91
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/time_with_zone.rb +0 -334
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/values/time_zone.rb +0 -404
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/values/unicode_tables.dat +0 -0
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/blankslate.rb +0 -113
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/blankslate.rb +0 -20
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/css.rb +0 -250
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xchar.rb +0 -115
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlbase.rb +0 -139
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlevents.rb +0 -63
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlmarkup.rb +0 -328
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder.rb +0 -13
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/MIT-LICENSE +0 -20
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/README.textile +0 -20
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/Rakefile +0 -5
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/i18n.gemspec +0 -27
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb +0 -214
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/lib/i18n/exceptions.rb +0 -53
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/lib/i18n.rb +0 -199
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/all.rb +0 -5
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/i18n_exceptions_test.rb +0 -100
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/i18n_test.rb +0 -125
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/locale/en.rb +0 -1
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/locale/en.yml +0 -3
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb +0 -568
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/memcache-client-1.6.5/memcache.rb +0 -935
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/data_timezone.rb +0 -47
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/data_timezone_info.rb +0 -228
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Algiers.rb +0 -55
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Cairo.rb +0 -219
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Casablanca.rb +0 -40
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Harare.rb +0 -18
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Johannesburg.rb +0 -25
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Monrovia.rb +0 -22
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Nairobi.rb +0 -23
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Argentina/Buenos_Aires.rb +0 -166
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Argentina/San_Juan.rb +0 -86
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Bogota.rb +0 -23
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Caracas.rb +0 -23
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Chicago.rb +0 -283
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Chihuahua.rb +0 -136
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Denver.rb +0 -204
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Godthab.rb +0 -161
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Guatemala.rb +0 -27
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Halifax.rb +0 -274
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Indiana/Indianapolis.rb +0 -149
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Juneau.rb +0 -194
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/La_Paz.rb +0 -22
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Lima.rb +0 -35
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Los_Angeles.rb +0 -232
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Mazatlan.rb +0 -139
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Mexico_City.rb +0 -144
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Monterrey.rb +0 -131
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/New_York.rb +0 -282
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Phoenix.rb +0 -30
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Regina.rb +0 -74
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Santiago.rb +0 -205
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Sao_Paulo.rb +0 -171
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/St_Johns.rb +0 -288
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Tijuana.rb +0 -196
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Almaty.rb +0 -67
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Baghdad.rb +0 -73
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Baku.rb +0 -161
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Bangkok.rb +0 -20
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Chongqing.rb +0 -33
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Colombo.rb +0 -30
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Dhaka.rb +0 -27
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Hong_Kong.rb +0 -87
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Irkutsk.rb +0 -165
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Jakarta.rb +0 -30
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Jerusalem.rb +0 -163
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kabul.rb +0 -20
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kamchatka.rb +0 -163
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Karachi.rb +0 -30
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Katmandu.rb +0 -20
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kolkata.rb +0 -25
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Krasnoyarsk.rb +0 -163
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kuala_Lumpur.rb +0 -31
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kuwait.rb +0 -18
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Magadan.rb +0 -163
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Muscat.rb +0 -18
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Novosibirsk.rb +0 -164
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Rangoon.rb +0 -24
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Riyadh.rb +0 -18
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Seoul.rb +0 -34
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Shanghai.rb +0 -35
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Singapore.rb +0 -33
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Taipei.rb +0 -59
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tashkent.rb +0 -47
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tbilisi.rb +0 -78
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tehran.rb +0 -121
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tokyo.rb +0 -30
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Ulaanbaatar.rb +0 -65
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Urumqi.rb +0 -33
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Vladivostok.rb +0 -164
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yakutsk.rb +0 -163
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yekaterinburg.rb +0 -165
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yerevan.rb +0 -165
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/Azores.rb +0 -270
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/Cape_Verde.rb +0 -23
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/South_Georgia.rb +0 -18
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Adelaide.rb +0 -187
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Brisbane.rb +0 -35
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Darwin.rb +0 -29
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Hobart.rb +0 -193
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Melbourne.rb +0 -185
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Perth.rb +0 -37
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Sydney.rb +0 -185
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Etc/UTC.rb +0 -16
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Amsterdam.rb +0 -228
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Athens.rb +0 -185
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Belgrade.rb +0 -163
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Berlin.rb +0 -188
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Bratislava.rb +0 -13
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Brussels.rb +0 -232
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Bucharest.rb +0 -181
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Budapest.rb +0 -197
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Copenhagen.rb +0 -179
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Dublin.rb +0 -276
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Helsinki.rb +0 -163
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Istanbul.rb +0 -218
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Kiev.rb +0 -168
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Lisbon.rb +0 -268
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Ljubljana.rb +0 -13
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/London.rb +0 -288
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Madrid.rb +0 -211
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Minsk.rb +0 -170
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Moscow.rb +0 -181
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Paris.rb +0 -232
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Prague.rb +0 -187
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Riga.rb +0 -176
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Rome.rb +0 -215
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Sarajevo.rb +0 -13
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Skopje.rb +0 -13
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Sofia.rb +0 -173
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Stockholm.rb +0 -165
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Tallinn.rb +0 -172
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Vienna.rb +0 -183
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Vilnius.rb +0 -170
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Warsaw.rb +0 -212
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Zagreb.rb +0 -13
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Auckland.rb +0 -202
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Fiji.rb +0 -23
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Guam.rb +0 -22
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Honolulu.rb +0 -28
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Majuro.rb +0 -20
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Midway.rb +0 -25
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Noumea.rb +0 -25
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Pago_Pago.rb +0 -26
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Port_Moresby.rb +0 -20
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Tongatapu.rb +0 -27
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/info_timezone.rb +0 -52
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/linked_timezone.rb +0 -51
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/linked_timezone_info.rb +0 -44
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/offset_rationals.rb +0 -98
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/ruby_core_support.rb +0 -56
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/time_or_datetime.rb +0 -292
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb +0 -508
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_definition.rb +0 -56
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_info.rb +0 -40
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_offset_info.rb +0 -94
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_period.rb +0 -198
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_transition_info.rb +0 -129
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo.rb +0 -33
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor.rb +0 -29
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/version.rb +0 -9
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/whiny_nil.rb +0 -58
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/xml_mini/libxml.rb +0 -133
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/xml_mini/nokogiri.rb +0 -77
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/xml_mini/rexml.rb +0 -108
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support/xml_mini.rb +0 -31
- data/src/admin_panel/vendor/rails/activesupport/lib/active_support.rb +0 -59
- data/src/admin_panel/vendor/rails/activesupport/lib/activesupport.rb +0 -1
- data/src/admin_panel/vendor/rails/railties/CHANGELOG +0 -2156
- data/src/admin_panel/vendor/rails/railties/MIT-LICENSE +0 -20
- data/src/admin_panel/vendor/rails/railties/README +0 -243
- data/src/admin_panel/vendor/rails/railties/Rakefile +0 -364
- data/src/admin_panel/vendor/rails/railties/bin/about +0 -4
- data/src/admin_panel/vendor/rails/railties/bin/console +0 -3
- data/src/admin_panel/vendor/rails/railties/bin/dbconsole +0 -3
- data/src/admin_panel/vendor/rails/railties/bin/destroy +0 -3
- data/src/admin_panel/vendor/rails/railties/bin/generate +0 -3
- data/src/admin_panel/vendor/rails/railties/bin/performance/benchmarker +0 -3
- data/src/admin_panel/vendor/rails/railties/bin/performance/profiler +0 -3
- data/src/admin_panel/vendor/rails/railties/bin/plugin +0 -3
- data/src/admin_panel/vendor/rails/railties/bin/rails +0 -20
- data/src/admin_panel/vendor/rails/railties/bin/runner +0 -3
- data/src/admin_panel/vendor/rails/railties/bin/server +0 -3
- data/src/admin_panel/vendor/rails/railties/builtin/rails_info/rails/info.rb +0 -129
- data/src/admin_panel/vendor/rails/railties/builtin/rails_info/rails/info_controller.rb +0 -9
- data/src/admin_panel/vendor/rails/railties/builtin/rails_info/rails/info_helper.rb +0 -2
- data/src/admin_panel/vendor/rails/railties/builtin/rails_info/rails_info_controller.rb +0 -2
- data/src/admin_panel/vendor/rails/railties/configs/databases/frontbase.yml +0 -28
- data/src/admin_panel/vendor/rails/railties/configs/databases/ibm_db.yml +0 -62
- data/src/admin_panel/vendor/rails/railties/configs/databases/mysql.yml +0 -60
- data/src/admin_panel/vendor/rails/railties/configs/databases/oracle.yml +0 -39
- data/src/admin_panel/vendor/rails/railties/configs/databases/postgresql.yml +0 -51
- data/src/admin_panel/vendor/rails/railties/configs/databases/sqlite2.yml +0 -19
- data/src/admin_panel/vendor/rails/railties/configs/databases/sqlite3.yml +0 -22
- data/src/admin_panel/vendor/rails/railties/configs/initializers/backtrace_silencers.rb +0 -7
- data/src/admin_panel/vendor/rails/railties/configs/initializers/inflections.rb +0 -10
- data/src/admin_panel/vendor/rails/railties/configs/initializers/mime_types.rb +0 -5
- data/src/admin_panel/vendor/rails/railties/configs/initializers/new_rails_defaults.rb +0 -19
- data/src/admin_panel/vendor/rails/railties/configs/initializers/session_store.rb +0 -15
- data/src/admin_panel/vendor/rails/railties/configs/locales/en.yml +0 -5
- data/src/admin_panel/vendor/rails/railties/configs/routes.rb +0 -43
- data/src/admin_panel/vendor/rails/railties/dispatches/config.ru +0 -7
- data/src/admin_panel/vendor/rails/railties/dispatches/dispatch.fcgi +0 -24
- data/src/admin_panel/vendor/rails/railties/dispatches/dispatch.rb +0 -10
- data/src/admin_panel/vendor/rails/railties/dispatches/gateway.cgi +0 -97
- data/src/admin_panel/vendor/rails/railties/doc/README_FOR_APP +0 -2
- data/src/admin_panel/vendor/rails/railties/environments/boot.rb +0 -110
- data/src/admin_panel/vendor/rails/railties/environments/development.rb +0 -17
- data/src/admin_panel/vendor/rails/railties/environments/environment.rb +0 -41
- data/src/admin_panel/vendor/rails/railties/environments/production.rb +0 -28
- data/src/admin_panel/vendor/rails/railties/environments/test.rb +0 -28
- data/src/admin_panel/vendor/rails/railties/fresh_rakefile +0 -10
- data/src/admin_panel/vendor/rails/railties/helpers/application_controller.rb +0 -10
- data/src/admin_panel/vendor/rails/railties/helpers/application_helper.rb +0 -3
- data/src/admin_panel/vendor/rails/railties/helpers/performance_test.rb +0 -9
- data/src/admin_panel/vendor/rails/railties/helpers/test_helper.rb +0 -38
- data/src/admin_panel/vendor/rails/railties/html/404.html +0 -30
- data/src/admin_panel/vendor/rails/railties/html/422.html +0 -30
- data/src/admin_panel/vendor/rails/railties/html/500.html +0 -30
- data/src/admin_panel/vendor/rails/railties/html/favicon.ico +0 -0
- data/src/admin_panel/vendor/rails/railties/html/images/rails.png +0 -0
- data/src/admin_panel/vendor/rails/railties/html/index.html +0 -275
- data/src/admin_panel/vendor/rails/railties/html/javascripts/application.js +0 -2
- data/src/admin_panel/vendor/rails/railties/html/javascripts/controls.js +0 -963
- data/src/admin_panel/vendor/rails/railties/html/javascripts/dragdrop.js +0 -973
- data/src/admin_panel/vendor/rails/railties/html/javascripts/effects.js +0 -1128
- data/src/admin_panel/vendor/rails/railties/html/javascripts/prototype.js +0 -4320
- data/src/admin_panel/vendor/rails/railties/html/robots.txt +0 -5
- data/src/admin_panel/vendor/rails/railties/lib/code_statistics.rb +0 -107
- data/src/admin_panel/vendor/rails/railties/lib/commands/about.rb +0 -3
- data/src/admin_panel/vendor/rails/railties/lib/commands/console.rb +0 -45
- data/src/admin_panel/vendor/rails/railties/lib/commands/dbconsole.rb +0 -83
- data/src/admin_panel/vendor/rails/railties/lib/commands/destroy.rb +0 -6
- data/src/admin_panel/vendor/rails/railties/lib/commands/generate.rb +0 -6
- data/src/admin_panel/vendor/rails/railties/lib/commands/ncgi/listener +0 -86
- data/src/admin_panel/vendor/rails/railties/lib/commands/ncgi/tracker +0 -69
- data/src/admin_panel/vendor/rails/railties/lib/commands/performance/benchmarker.rb +0 -24
- data/src/admin_panel/vendor/rails/railties/lib/commands/performance/profiler.rb +0 -50
- data/src/admin_panel/vendor/rails/railties/lib/commands/plugin.rb +0 -968
- data/src/admin_panel/vendor/rails/railties/lib/commands/runner.rb +0 -54
- data/src/admin_panel/vendor/rails/railties/lib/commands/server.rb +0 -114
- data/src/admin_panel/vendor/rails/railties/lib/commands/update.rb +0 -4
- data/src/admin_panel/vendor/rails/railties/lib/commands.rb +0 -17
- data/src/admin_panel/vendor/rails/railties/lib/console_app.rb +0 -30
- data/src/admin_panel/vendor/rails/railties/lib/console_sandbox.rb +0 -6
- data/src/admin_panel/vendor/rails/railties/lib/console_with_helpers.rb +0 -5
- data/src/admin_panel/vendor/rails/railties/lib/dispatcher.rb +0 -24
- data/src/admin_panel/vendor/rails/railties/lib/fcgi_handler.rb +0 -239
- data/src/admin_panel/vendor/rails/railties/lib/initializer.rb +0 -1105
- data/src/admin_panel/vendor/rails/railties/lib/performance_test_help.rb +0 -5
- data/src/admin_panel/vendor/rails/railties/lib/rails/backtrace_cleaner.rb +0 -54
- data/src/admin_panel/vendor/rails/railties/lib/rails/gem_builder.rb +0 -21
- data/src/admin_panel/vendor/rails/railties/lib/rails/gem_dependency.rb +0 -282
- data/src/admin_panel/vendor/rails/railties/lib/rails/plugin/loader.rb +0 -191
- data/src/admin_panel/vendor/rails/railties/lib/rails/plugin/locator.rb +0 -100
- data/src/admin_panel/vendor/rails/railties/lib/rails/plugin.rb +0 -167
- data/src/admin_panel/vendor/rails/railties/lib/rails/rack/debugger.rb +0 -21
- data/src/admin_panel/vendor/rails/railties/lib/rails/rack/log_tailer.rb +0 -35
- data/src/admin_panel/vendor/rails/railties/lib/rails/rack/metal.rb +0 -51
- data/src/admin_panel/vendor/rails/railties/lib/rails/rack/static.rb +0 -46
- data/src/admin_panel/vendor/rails/railties/lib/rails/rack.rb +0 -8
- data/src/admin_panel/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb +0 -140
- data/src/admin_panel/vendor/rails/railties/lib/rails/version.rb +0 -9
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/base.rb +0 -266
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/commands.rb +0 -621
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generated_attribute.rb +0 -46
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/applications/app/USAGE +0 -9
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/applications/app/app_generator.rb +0 -258
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/applications/app/scm/git.rb +0 -16
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/applications/app/scm/scm.rb +0 -8
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/applications/app/scm/svn.rb +0 -7
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/applications/app/template_runner.rb +0 -401
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/controller/USAGE +0 -30
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/controller/controller_generator.rb +0 -43
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/controller.rb +0 -7
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/functional_test.rb +0 -8
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/helper.rb +0 -2
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/helper_test.rb +0 -4
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/view.html.erb +0 -2
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/helper/USAGE +0 -24
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/helper/helper_generator.rb +0 -25
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/helper/templates/helper.rb +0 -2
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/helper/templates/helper_test.rb +0 -4
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/USAGE +0 -8
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/integration_test_generator.rb +0 -16
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb +0 -10
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/mailer/USAGE +0 -16
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb +0 -30
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/fixture.erb +0 -3
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/fixture.rhtml +0 -0
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb +0 -15
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb +0 -20
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.erb +0 -3
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.rhtml +0 -0
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/metal/USAGE +0 -8
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/metal/metal_generator.rb +0 -8
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/metal/templates/metal.rb +0 -12
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/migration/USAGE +0 -29
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/migration/migration_generator.rb +0 -20
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/migration/templates/migration.rb +0 -11
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/model/USAGE +0 -27
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/model/model_generator.rb +0 -45
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml +0 -19
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/migration.rb +0 -16
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/model.rb +0 -5
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/unit_test.rb +0 -8
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/observer/USAGE +0 -13
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/observer/observer_generator.rb +0 -16
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/observer/templates/observer.rb +0 -2
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/observer/templates/unit_test.rb +0 -8
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/performance_test/USAGE +0 -8
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/performance_test/performance_test_generator.rb +0 -16
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/performance_test/templates/performance_test.rb +0 -9
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/USAGE +0 -25
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb +0 -39
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/MIT-LICENSE +0 -20
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/README +0 -13
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/Rakefile +0 -23
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/USAGE +0 -8
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/generator.rb +0 -8
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/init.rb +0 -1
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/install.rb +0 -1
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/plugin.rb +0 -1
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/tasks.rake +0 -4
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/test_helper.rb +0 -3
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/uninstall.rb +0 -1
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb +0 -8
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/resource/USAGE +0 -23
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/resource/resource_generator.rb +0 -76
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/controller.rb +0 -2
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/functional_test.rb +0 -8
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/helper.rb +0 -2
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/helper_test.rb +0 -4
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/USAGE +0 -29
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb +0 -102
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb +0 -85
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/functional_test.rb +0 -45
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/helper.rb +0 -2
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/helper_test.rb +0 -4
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/layout.html.erb +0 -17
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/style.css +0 -54
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.html.erb +0 -18
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb +0 -24
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb +0 -17
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_show.html.erb +0 -10
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/USAGE +0 -10
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/session_migration_generator.rb +0 -18
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb +0 -16
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/lookup.rb +0 -249
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/manifest.rb +0 -53
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/options.rb +0 -150
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/scripts/destroy.rb +0 -29
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/scripts/generate.rb +0 -7
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/scripts/update.rb +0 -12
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/scripts.rb +0 -89
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/secret_key_generator.rb +0 -24
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/simple_logger.rb +0 -46
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator/spec.rb +0 -44
- data/src/admin_panel/vendor/rails/railties/lib/rails_generator.rb +0 -43
- data/src/admin_panel/vendor/rails/railties/lib/railties_path.rb +0 -1
- data/src/admin_panel/vendor/rails/railties/lib/ruby_version_check.rb +0 -17
- data/src/admin_panel/vendor/rails/railties/lib/rubyprof_ext.rb +0 -35
- data/src/admin_panel/vendor/rails/railties/lib/source_annotation_extractor.rb +0 -102
- data/src/admin_panel/vendor/rails/railties/lib/tasks/annotations.rake +0 -20
- data/src/admin_panel/vendor/rails/railties/lib/tasks/databases.rake +0 -423
- data/src/admin_panel/vendor/rails/railties/lib/tasks/documentation.rake +0 -88
- data/src/admin_panel/vendor/rails/railties/lib/tasks/framework.rake +0 -143
- data/src/admin_panel/vendor/rails/railties/lib/tasks/gems.rake +0 -65
- data/src/admin_panel/vendor/rails/railties/lib/tasks/log.rake +0 -9
- data/src/admin_panel/vendor/rails/railties/lib/tasks/middleware.rake +0 -7
- data/src/admin_panel/vendor/rails/railties/lib/tasks/misc.rake +0 -63
- data/src/admin_panel/vendor/rails/railties/lib/tasks/rails.rb +0 -8
- data/src/admin_panel/vendor/rails/railties/lib/tasks/routes.rake +0 -17
- data/src/admin_panel/vendor/rails/railties/lib/tasks/statistics.rake +0 -17
- data/src/admin_panel/vendor/rails/railties/lib/tasks/testing.rake +0 -139
- data/src/admin_panel/vendor/rails/railties/lib/tasks/tmp.rake +0 -37
- data/src/admin_panel/vendor/rails/railties/lib/test_help.rb +0 -35
- data/src/admin_panel/vendor/rails/railties/lib/webrick_server.rb +0 -156
@@ -1,1602 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
require "cases/helper"
|
3
|
-
require 'models/topic'
|
4
|
-
require 'models/reply'
|
5
|
-
require 'models/person'
|
6
|
-
require 'models/developer'
|
7
|
-
require 'models/warehouse_thing'
|
8
|
-
require 'models/guid'
|
9
|
-
require 'models/owner'
|
10
|
-
require 'models/pet'
|
11
|
-
require 'models/event'
|
12
|
-
|
13
|
-
# The following methods in Topic are used in test_conditional_validation_*
|
14
|
-
class Topic
|
15
|
-
has_many :unique_replies, :dependent => :destroy, :foreign_key => "parent_id"
|
16
|
-
has_many :silly_unique_replies, :dependent => :destroy, :foreign_key => "parent_id"
|
17
|
-
|
18
|
-
def condition_is_true
|
19
|
-
true
|
20
|
-
end
|
21
|
-
|
22
|
-
def condition_is_true_but_its_not
|
23
|
-
false
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
class ProtectedPerson < ActiveRecord::Base
|
28
|
-
set_table_name 'people'
|
29
|
-
attr_accessor :addon
|
30
|
-
attr_protected :first_name
|
31
|
-
end
|
32
|
-
|
33
|
-
class UniqueReply < Reply
|
34
|
-
validates_uniqueness_of :content, :scope => 'parent_id'
|
35
|
-
end
|
36
|
-
|
37
|
-
class SillyUniqueReply < UniqueReply
|
38
|
-
end
|
39
|
-
|
40
|
-
class Wizard < ActiveRecord::Base
|
41
|
-
self.abstract_class = true
|
42
|
-
|
43
|
-
validates_uniqueness_of :name
|
44
|
-
end
|
45
|
-
|
46
|
-
class IneptWizard < Wizard
|
47
|
-
validates_uniqueness_of :city
|
48
|
-
end
|
49
|
-
|
50
|
-
class Conjurer < IneptWizard
|
51
|
-
end
|
52
|
-
|
53
|
-
class Thaumaturgist < IneptWizard
|
54
|
-
end
|
55
|
-
|
56
|
-
|
57
|
-
class ValidationsTest < ActiveRecord::TestCase
|
58
|
-
fixtures :topics, :developers, 'warehouse-things'
|
59
|
-
|
60
|
-
# Most of the tests mess with the validations of Topic, so lets repair it all the time.
|
61
|
-
# Other classes we mess with will be dealt with in the specific tests
|
62
|
-
repair_validations(Topic)
|
63
|
-
|
64
|
-
def test_single_field_validation
|
65
|
-
r = Reply.new
|
66
|
-
r.title = "There's no content!"
|
67
|
-
assert !r.valid?, "A reply without content shouldn't be saveable"
|
68
|
-
|
69
|
-
r.content = "Messa content!"
|
70
|
-
assert r.valid?, "A reply with content should be saveable"
|
71
|
-
end
|
72
|
-
|
73
|
-
def test_single_attr_validation_and_error_msg
|
74
|
-
r = Reply.new
|
75
|
-
r.title = "There's no content!"
|
76
|
-
assert !r.valid?
|
77
|
-
assert r.errors.invalid?("content"), "A reply without content should mark that attribute as invalid"
|
78
|
-
assert_equal "Empty", r.errors.on("content"), "A reply without content should contain an error"
|
79
|
-
assert_equal 1, r.errors.count
|
80
|
-
end
|
81
|
-
|
82
|
-
def test_double_attr_validation_and_error_msg
|
83
|
-
r = Reply.new
|
84
|
-
assert !r.valid?
|
85
|
-
|
86
|
-
assert r.errors.invalid?("title"), "A reply without title should mark that attribute as invalid"
|
87
|
-
assert_equal "Empty", r.errors.on("title"), "A reply without title should contain an error"
|
88
|
-
|
89
|
-
assert r.errors.invalid?("content"), "A reply without content should mark that attribute as invalid"
|
90
|
-
assert_equal "Empty", r.errors.on("content"), "A reply without content should contain an error"
|
91
|
-
|
92
|
-
assert_equal 2, r.errors.count
|
93
|
-
end
|
94
|
-
|
95
|
-
def test_error_on_create
|
96
|
-
r = Reply.new
|
97
|
-
r.title = "Wrong Create"
|
98
|
-
assert !r.valid?
|
99
|
-
assert r.errors.invalid?("title"), "A reply with a bad title should mark that attribute as invalid"
|
100
|
-
assert_equal "is Wrong Create", r.errors.on("title"), "A reply with a bad content should contain an error"
|
101
|
-
end
|
102
|
-
|
103
|
-
def test_error_on_update
|
104
|
-
r = Reply.new
|
105
|
-
r.title = "Bad"
|
106
|
-
r.content = "Good"
|
107
|
-
assert r.save, "First save should be successful"
|
108
|
-
|
109
|
-
r.title = "Wrong Update"
|
110
|
-
assert !r.save, "Second save should fail"
|
111
|
-
|
112
|
-
assert r.errors.invalid?("title"), "A reply with a bad title should mark that attribute as invalid"
|
113
|
-
assert_equal "is Wrong Update", r.errors.on("title"), "A reply with a bad content should contain an error"
|
114
|
-
end
|
115
|
-
|
116
|
-
def test_invalid_record_exception
|
117
|
-
assert_raise(ActiveRecord::RecordInvalid) { Reply.create! }
|
118
|
-
assert_raise(ActiveRecord::RecordInvalid) { Reply.new.save! }
|
119
|
-
|
120
|
-
begin
|
121
|
-
r = Reply.new
|
122
|
-
r.save!
|
123
|
-
flunk
|
124
|
-
rescue ActiveRecord::RecordInvalid => invalid
|
125
|
-
assert_equal r, invalid.record
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
|
-
def test_exception_on_create_bang_many
|
130
|
-
assert_raise(ActiveRecord::RecordInvalid) do
|
131
|
-
Reply.create!([ { "title" => "OK" }, { "title" => "Wrong Create" }])
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
|
-
def test_exception_on_create_bang_with_block
|
136
|
-
assert_raise(ActiveRecord::RecordInvalid) do
|
137
|
-
Reply.create!({ "title" => "OK" }) do |r|
|
138
|
-
r.content = nil
|
139
|
-
end
|
140
|
-
end
|
141
|
-
end
|
142
|
-
|
143
|
-
def test_exception_on_create_bang_many_with_block
|
144
|
-
assert_raise(ActiveRecord::RecordInvalid) do
|
145
|
-
Reply.create!([{ "title" => "OK" }, { "title" => "Wrong Create" }]) do |r|
|
146
|
-
r.content = nil
|
147
|
-
end
|
148
|
-
end
|
149
|
-
end
|
150
|
-
|
151
|
-
def test_scoped_create_without_attributes
|
152
|
-
Reply.with_scope(:create => {}) do
|
153
|
-
assert_raise(ActiveRecord::RecordInvalid) { Reply.create! }
|
154
|
-
end
|
155
|
-
end
|
156
|
-
|
157
|
-
def test_create_with_exceptions_using_scope_for_protected_attributes
|
158
|
-
assert_nothing_raised do
|
159
|
-
ProtectedPerson.with_scope( :create => { :first_name => "Mary" } ) do
|
160
|
-
person = ProtectedPerson.create! :addon => "Addon"
|
161
|
-
assert_equal person.first_name, "Mary", "scope should ignore attr_protected"
|
162
|
-
end
|
163
|
-
end
|
164
|
-
end
|
165
|
-
|
166
|
-
def test_create_with_exceptions_using_scope_and_empty_attributes
|
167
|
-
assert_nothing_raised do
|
168
|
-
ProtectedPerson.with_scope( :create => { :first_name => "Mary" } ) do
|
169
|
-
person = ProtectedPerson.create!
|
170
|
-
assert_equal person.first_name, "Mary", "should be ok when no attributes are passed to create!"
|
171
|
-
end
|
172
|
-
end
|
173
|
-
end
|
174
|
-
|
175
|
-
def test_single_error_per_attr_iteration
|
176
|
-
r = Reply.new
|
177
|
-
r.save
|
178
|
-
|
179
|
-
errors = []
|
180
|
-
r.errors.each { |attr, msg| errors << [attr, msg] }
|
181
|
-
|
182
|
-
assert errors.include?(["title", "Empty"])
|
183
|
-
assert errors.include?(["content", "Empty"])
|
184
|
-
end
|
185
|
-
|
186
|
-
def test_multiple_errors_per_attr_iteration_with_full_error_composition
|
187
|
-
r = Reply.new
|
188
|
-
r.title = "Wrong Create"
|
189
|
-
r.content = "Mismatch"
|
190
|
-
r.save
|
191
|
-
|
192
|
-
errors = []
|
193
|
-
r.errors.each_full { |error| errors << error }
|
194
|
-
|
195
|
-
assert_equal "Title is Wrong Create", errors[0]
|
196
|
-
assert_equal "Title is Content Mismatch", errors[1]
|
197
|
-
assert_equal 2, r.errors.count
|
198
|
-
end
|
199
|
-
|
200
|
-
def test_errors_on_base
|
201
|
-
r = Reply.new
|
202
|
-
r.content = "Mismatch"
|
203
|
-
r.save
|
204
|
-
r.errors.add_to_base "Reply is not dignifying"
|
205
|
-
|
206
|
-
errors = []
|
207
|
-
r.errors.each_full { |error| errors << error }
|
208
|
-
|
209
|
-
assert_equal "Reply is not dignifying", r.errors.on_base
|
210
|
-
|
211
|
-
assert errors.include?("Title Empty")
|
212
|
-
assert errors.include?("Reply is not dignifying")
|
213
|
-
assert_equal 2, r.errors.count
|
214
|
-
end
|
215
|
-
|
216
|
-
def test_create_without_validation
|
217
|
-
reply = Reply.new
|
218
|
-
assert !reply.save
|
219
|
-
assert reply.save(false)
|
220
|
-
end
|
221
|
-
|
222
|
-
def test_create_without_validation_bang
|
223
|
-
count = Reply.count
|
224
|
-
assert_nothing_raised { Reply.new.save_without_validation! }
|
225
|
-
assert count+1, Reply.count
|
226
|
-
end
|
227
|
-
|
228
|
-
def test_validates_each
|
229
|
-
hits = 0
|
230
|
-
Topic.validates_each(:title, :content, [:title, :content]) do |record, attr|
|
231
|
-
record.errors.add attr, 'gotcha'
|
232
|
-
hits += 1
|
233
|
-
end
|
234
|
-
t = Topic.new("title" => "valid", "content" => "whatever")
|
235
|
-
assert !t.save
|
236
|
-
assert_equal 4, hits
|
237
|
-
assert_equal %w(gotcha gotcha), t.errors.on(:title)
|
238
|
-
assert_equal %w(gotcha gotcha), t.errors.on(:content)
|
239
|
-
end
|
240
|
-
|
241
|
-
def test_no_title_confirmation
|
242
|
-
Topic.validates_confirmation_of(:title)
|
243
|
-
|
244
|
-
t = Topic.new(:author_name => "Plutarch")
|
245
|
-
assert t.valid?
|
246
|
-
|
247
|
-
t.title_confirmation = "Parallel Lives"
|
248
|
-
assert !t.valid?
|
249
|
-
|
250
|
-
t.title_confirmation = nil
|
251
|
-
t.title = "Parallel Lives"
|
252
|
-
assert t.valid?
|
253
|
-
|
254
|
-
t.title_confirmation = "Parallel Lives"
|
255
|
-
assert t.valid?
|
256
|
-
end
|
257
|
-
|
258
|
-
def test_title_confirmation
|
259
|
-
Topic.validates_confirmation_of(:title)
|
260
|
-
|
261
|
-
t = Topic.create("title" => "We should be confirmed","title_confirmation" => "")
|
262
|
-
assert !t.save
|
263
|
-
|
264
|
-
t.title_confirmation = "We should be confirmed"
|
265
|
-
assert t.save
|
266
|
-
end
|
267
|
-
|
268
|
-
def test_terms_of_service_agreement_no_acceptance
|
269
|
-
Topic.validates_acceptance_of(:terms_of_service, :on => :create)
|
270
|
-
|
271
|
-
t = Topic.create("title" => "We should not be confirmed")
|
272
|
-
assert t.save
|
273
|
-
end
|
274
|
-
|
275
|
-
def test_terms_of_service_agreement
|
276
|
-
Topic.validates_acceptance_of(:terms_of_service, :on => :create)
|
277
|
-
|
278
|
-
t = Topic.create("title" => "We should be confirmed","terms_of_service" => "")
|
279
|
-
assert !t.save
|
280
|
-
assert_equal "must be accepted", t.errors.on(:terms_of_service)
|
281
|
-
|
282
|
-
t.terms_of_service = "1"
|
283
|
-
assert t.save
|
284
|
-
end
|
285
|
-
|
286
|
-
|
287
|
-
def test_eula
|
288
|
-
Topic.validates_acceptance_of(:eula, :message => "must be abided", :on => :create)
|
289
|
-
|
290
|
-
t = Topic.create("title" => "We should be confirmed","eula" => "")
|
291
|
-
assert !t.save
|
292
|
-
assert_equal "must be abided", t.errors.on(:eula)
|
293
|
-
|
294
|
-
t.eula = "1"
|
295
|
-
assert t.save
|
296
|
-
end
|
297
|
-
|
298
|
-
def test_terms_of_service_agreement_with_accept_value
|
299
|
-
Topic.validates_acceptance_of(:terms_of_service, :on => :create, :accept => "I agree.")
|
300
|
-
|
301
|
-
t = Topic.create("title" => "We should be confirmed", "terms_of_service" => "")
|
302
|
-
assert !t.save
|
303
|
-
assert_equal "must be accepted", t.errors.on(:terms_of_service)
|
304
|
-
|
305
|
-
t.terms_of_service = "I agree."
|
306
|
-
assert t.save
|
307
|
-
end
|
308
|
-
|
309
|
-
def test_validates_acceptance_of_as_database_column
|
310
|
-
repair_validations(Reply) do
|
311
|
-
Reply.validates_acceptance_of(:author_name)
|
312
|
-
|
313
|
-
reply = Reply.create("author_name" => "Dan Brown")
|
314
|
-
assert_equal "Dan Brown", reply["author_name"]
|
315
|
-
end
|
316
|
-
end
|
317
|
-
|
318
|
-
def test_validates_acceptance_of_with_non_existant_table
|
319
|
-
Object.const_set :IncorporealModel, Class.new(ActiveRecord::Base)
|
320
|
-
|
321
|
-
assert_nothing_raised ActiveRecord::StatementInvalid do
|
322
|
-
IncorporealModel.validates_acceptance_of(:incorporeal_column)
|
323
|
-
end
|
324
|
-
end
|
325
|
-
|
326
|
-
def test_validate_presences
|
327
|
-
Topic.validates_presence_of(:title, :content)
|
328
|
-
|
329
|
-
t = Topic.create
|
330
|
-
assert !t.save
|
331
|
-
assert_equal "can't be blank", t.errors.on(:title)
|
332
|
-
assert_equal "can't be blank", t.errors.on(:content)
|
333
|
-
|
334
|
-
t.title = "something"
|
335
|
-
t.content = " "
|
336
|
-
|
337
|
-
assert !t.save
|
338
|
-
assert_equal "can't be blank", t.errors.on(:content)
|
339
|
-
|
340
|
-
t.content = "like stuff"
|
341
|
-
|
342
|
-
assert t.save
|
343
|
-
end
|
344
|
-
|
345
|
-
def test_validate_uniqueness
|
346
|
-
Topic.validates_uniqueness_of(:title)
|
347
|
-
|
348
|
-
t = Topic.new("title" => "I'm unique!")
|
349
|
-
assert t.save, "Should save t as unique"
|
350
|
-
|
351
|
-
t.content = "Remaining unique"
|
352
|
-
assert t.save, "Should still save t as unique"
|
353
|
-
|
354
|
-
t2 = Topic.new("title" => "I'm unique!")
|
355
|
-
assert !t2.valid?, "Shouldn't be valid"
|
356
|
-
assert !t2.save, "Shouldn't save t2 as unique"
|
357
|
-
assert_equal "has already been taken", t2.errors.on(:title)
|
358
|
-
|
359
|
-
t2.title = "Now Im really also unique"
|
360
|
-
assert t2.save, "Should now save t2 as unique"
|
361
|
-
end
|
362
|
-
|
363
|
-
def test_validates_uniquness_with_newline_chars
|
364
|
-
Topic.validates_uniqueness_of(:title, :case_sensitive => false)
|
365
|
-
|
366
|
-
t = Topic.new("title" => "new\nline")
|
367
|
-
assert t.save, "Should save t as unique"
|
368
|
-
end
|
369
|
-
|
370
|
-
def test_validate_uniqueness_with_scope
|
371
|
-
repair_validations(Reply) do
|
372
|
-
Reply.validates_uniqueness_of(:content, :scope => "parent_id")
|
373
|
-
|
374
|
-
t = Topic.create("title" => "I'm unique!")
|
375
|
-
|
376
|
-
r1 = t.replies.create "title" => "r1", "content" => "hello world"
|
377
|
-
assert r1.valid?, "Saving r1"
|
378
|
-
|
379
|
-
r2 = t.replies.create "title" => "r2", "content" => "hello world"
|
380
|
-
assert !r2.valid?, "Saving r2 first time"
|
381
|
-
|
382
|
-
r2.content = "something else"
|
383
|
-
assert r2.save, "Saving r2 second time"
|
384
|
-
|
385
|
-
t2 = Topic.create("title" => "I'm unique too!")
|
386
|
-
r3 = t2.replies.create "title" => "r3", "content" => "hello world"
|
387
|
-
assert r3.valid?, "Saving r3"
|
388
|
-
end
|
389
|
-
end
|
390
|
-
|
391
|
-
def test_validate_uniqueness_scoped_to_defining_class
|
392
|
-
t = Topic.create("title" => "What, me worry?")
|
393
|
-
|
394
|
-
r1 = t.unique_replies.create "title" => "r1", "content" => "a barrel of fun"
|
395
|
-
assert r1.valid?, "Saving r1"
|
396
|
-
|
397
|
-
r2 = t.silly_unique_replies.create "title" => "r2", "content" => "a barrel of fun"
|
398
|
-
assert !r2.valid?, "Saving r2"
|
399
|
-
|
400
|
-
# Should succeed as validates_uniqueness_of only applies to
|
401
|
-
# UniqueReply and its subclasses
|
402
|
-
r3 = t.replies.create "title" => "r2", "content" => "a barrel of fun"
|
403
|
-
assert r3.valid?, "Saving r3"
|
404
|
-
end
|
405
|
-
|
406
|
-
def test_validate_uniqueness_with_scope_array
|
407
|
-
repair_validations(Reply) do
|
408
|
-
Reply.validates_uniqueness_of(:author_name, :scope => [:author_email_address, :parent_id])
|
409
|
-
|
410
|
-
t = Topic.create("title" => "The earth is actually flat!")
|
411
|
-
|
412
|
-
r1 = t.replies.create "author_name" => "jeremy", "author_email_address" => "jeremy@rubyonrails.com", "title" => "You're crazy!", "content" => "Crazy reply"
|
413
|
-
assert r1.valid?, "Saving r1"
|
414
|
-
|
415
|
-
r2 = t.replies.create "author_name" => "jeremy", "author_email_address" => "jeremy@rubyonrails.com", "title" => "You're crazy!", "content" => "Crazy reply again..."
|
416
|
-
assert !r2.valid?, "Saving r2. Double reply by same author."
|
417
|
-
|
418
|
-
r2.author_email_address = "jeremy_alt_email@rubyonrails.com"
|
419
|
-
assert r2.save, "Saving r2 the second time."
|
420
|
-
|
421
|
-
r3 = t.replies.create "author_name" => "jeremy", "author_email_address" => "jeremy_alt_email@rubyonrails.com", "title" => "You're wrong", "content" => "It's cubic"
|
422
|
-
assert !r3.valid?, "Saving r3"
|
423
|
-
|
424
|
-
r3.author_name = "jj"
|
425
|
-
assert r3.save, "Saving r3 the second time."
|
426
|
-
|
427
|
-
r3.author_name = "jeremy"
|
428
|
-
assert !r3.save, "Saving r3 the third time."
|
429
|
-
end
|
430
|
-
end
|
431
|
-
|
432
|
-
def test_validate_case_insensitive_uniqueness
|
433
|
-
Topic.validates_uniqueness_of(:title, :parent_id, :case_sensitive => false, :allow_nil => true)
|
434
|
-
|
435
|
-
t = Topic.new("title" => "I'm unique!", :parent_id => 2)
|
436
|
-
assert t.save, "Should save t as unique"
|
437
|
-
|
438
|
-
t.content = "Remaining unique"
|
439
|
-
assert t.save, "Should still save t as unique"
|
440
|
-
|
441
|
-
t2 = Topic.new("title" => "I'm UNIQUE!", :parent_id => 1)
|
442
|
-
assert !t2.valid?, "Shouldn't be valid"
|
443
|
-
assert !t2.save, "Shouldn't save t2 as unique"
|
444
|
-
assert t2.errors.on(:title)
|
445
|
-
assert t2.errors.on(:parent_id)
|
446
|
-
assert_equal "has already been taken", t2.errors.on(:title)
|
447
|
-
|
448
|
-
t2.title = "I'm truly UNIQUE!"
|
449
|
-
assert !t2.valid?, "Shouldn't be valid"
|
450
|
-
assert !t2.save, "Shouldn't save t2 as unique"
|
451
|
-
assert_nil t2.errors.on(:title)
|
452
|
-
assert t2.errors.on(:parent_id)
|
453
|
-
|
454
|
-
t2.parent_id = 4
|
455
|
-
assert t2.save, "Should now save t2 as unique"
|
456
|
-
|
457
|
-
t2.parent_id = nil
|
458
|
-
t2.title = nil
|
459
|
-
assert t2.valid?, "should validate with nil"
|
460
|
-
assert t2.save, "should save with nil"
|
461
|
-
|
462
|
-
with_kcode('UTF8') do
|
463
|
-
t_utf8 = Topic.new("title" => "Я тоже уникальный!")
|
464
|
-
assert t_utf8.save, "Should save t_utf8 as unique"
|
465
|
-
|
466
|
-
# If database hasn't UTF-8 character set, this test fails
|
467
|
-
if Topic.find(t_utf8, :select => 'LOWER(title) AS title').title == "я тоже уникальный!"
|
468
|
-
t2_utf8 = Topic.new("title" => "я тоже УНИКАЛЬНЫЙ!")
|
469
|
-
assert !t2_utf8.valid?, "Shouldn't be valid"
|
470
|
-
assert !t2_utf8.save, "Shouldn't save t2_utf8 as unique"
|
471
|
-
end
|
472
|
-
end
|
473
|
-
end
|
474
|
-
|
475
|
-
def test_validate_case_sensitive_uniqueness
|
476
|
-
Topic.validates_uniqueness_of(:title, :case_sensitive => true, :allow_nil => true)
|
477
|
-
|
478
|
-
t = Topic.new("title" => "I'm unique!")
|
479
|
-
assert t.save, "Should save t as unique"
|
480
|
-
|
481
|
-
t.content = "Remaining unique"
|
482
|
-
assert t.save, "Should still save t as unique"
|
483
|
-
|
484
|
-
t2 = Topic.new("title" => "I'M UNIQUE!")
|
485
|
-
assert t2.valid?, "Should be valid"
|
486
|
-
assert t2.save, "Should save t2 as unique"
|
487
|
-
assert !t2.errors.on(:title)
|
488
|
-
assert !t2.errors.on(:parent_id)
|
489
|
-
assert_not_equal "has already been taken", t2.errors.on(:title)
|
490
|
-
|
491
|
-
t3 = Topic.new("title" => "I'M uNiQUe!")
|
492
|
-
assert t3.valid?, "Should be valid"
|
493
|
-
assert t3.save, "Should save t2 as unique"
|
494
|
-
assert !t3.errors.on(:title)
|
495
|
-
assert !t3.errors.on(:parent_id)
|
496
|
-
assert_not_equal "has already been taken", t3.errors.on(:title)
|
497
|
-
end
|
498
|
-
|
499
|
-
def test_validate_case_sensitive_uniqueness_with_attribute_passed_as_integer
|
500
|
-
Topic.validates_uniqueness_of(:title, :case_sensitve => true)
|
501
|
-
t = Topic.create!('title' => 101)
|
502
|
-
|
503
|
-
t2 = Topic.new('title' => 101)
|
504
|
-
assert !t2.valid?
|
505
|
-
assert t2.errors.on(:title)
|
506
|
-
end
|
507
|
-
|
508
|
-
def test_validate_uniqueness_with_non_standard_table_names
|
509
|
-
i1 = WarehouseThing.create(:value => 1000)
|
510
|
-
assert !i1.valid?, "i1 should not be valid"
|
511
|
-
assert i1.errors.on(:value), "Should not be empty"
|
512
|
-
end
|
513
|
-
|
514
|
-
def test_validates_uniqueness_inside_with_scope
|
515
|
-
Topic.validates_uniqueness_of(:title)
|
516
|
-
|
517
|
-
Topic.with_scope(:find => { :conditions => { :author_name => "David" } }) do
|
518
|
-
t1 = Topic.new("title" => "I'm unique!", "author_name" => "Mary")
|
519
|
-
assert t1.save
|
520
|
-
t2 = Topic.new("title" => "I'm unique!", "author_name" => "David")
|
521
|
-
assert !t2.valid?
|
522
|
-
end
|
523
|
-
end
|
524
|
-
|
525
|
-
def test_validate_uniqueness_with_columns_which_are_sql_keywords
|
526
|
-
repair_validations(Guid) do
|
527
|
-
Guid.validates_uniqueness_of :key
|
528
|
-
g = Guid.new
|
529
|
-
g.key = "foo"
|
530
|
-
assert_nothing_raised { !g.valid? }
|
531
|
-
end
|
532
|
-
end
|
533
|
-
|
534
|
-
def test_validate_uniqueness_with_limit
|
535
|
-
# Event.title is limited to 5 characters
|
536
|
-
e1 = Event.create(:title => "abcde")
|
537
|
-
assert e1.valid?, "Could not create an event with a unique, 5 character title"
|
538
|
-
e2 = Event.create(:title => "abcdefgh")
|
539
|
-
assert !e2.valid?, "Created an event whose title, with limit taken into account, is not unique"
|
540
|
-
end
|
541
|
-
|
542
|
-
def test_validate_straight_inheritance_uniqueness
|
543
|
-
w1 = IneptWizard.create(:name => "Rincewind", :city => "Ankh-Morpork")
|
544
|
-
assert w1.valid?, "Saving w1"
|
545
|
-
|
546
|
-
# Should use validation from base class (which is abstract)
|
547
|
-
w2 = IneptWizard.new(:name => "Rincewind", :city => "Quirm")
|
548
|
-
assert !w2.valid?, "w2 shouldn't be valid"
|
549
|
-
assert w2.errors.on(:name), "Should have errors for name"
|
550
|
-
assert_equal "has already been taken", w2.errors.on(:name), "Should have uniqueness message for name"
|
551
|
-
|
552
|
-
w3 = Conjurer.new(:name => "Rincewind", :city => "Quirm")
|
553
|
-
assert !w3.valid?, "w3 shouldn't be valid"
|
554
|
-
assert w3.errors.on(:name), "Should have errors for name"
|
555
|
-
assert_equal "has already been taken", w3.errors.on(:name), "Should have uniqueness message for name"
|
556
|
-
|
557
|
-
w4 = Conjurer.create(:name => "The Amazing Bonko", :city => "Quirm")
|
558
|
-
assert w4.valid?, "Saving w4"
|
559
|
-
|
560
|
-
w5 = Thaumaturgist.new(:name => "The Amazing Bonko", :city => "Lancre")
|
561
|
-
assert !w5.valid?, "w5 shouldn't be valid"
|
562
|
-
assert w5.errors.on(:name), "Should have errors for name"
|
563
|
-
assert_equal "has already been taken", w5.errors.on(:name), "Should have uniqueness message for name"
|
564
|
-
|
565
|
-
w6 = Thaumaturgist.new(:name => "Mustrum Ridcully", :city => "Quirm")
|
566
|
-
assert !w6.valid?, "w6 shouldn't be valid"
|
567
|
-
assert w6.errors.on(:city), "Should have errors for city"
|
568
|
-
assert_equal "has already been taken", w6.errors.on(:city), "Should have uniqueness message for city"
|
569
|
-
end
|
570
|
-
|
571
|
-
def test_validate_format
|
572
|
-
Topic.validates_format_of(:title, :content, :with => /^Validation\smacros \w+!$/, :message => "is bad data")
|
573
|
-
|
574
|
-
t = Topic.create("title" => "i'm incorrect", "content" => "Validation macros rule!")
|
575
|
-
assert !t.valid?, "Shouldn't be valid"
|
576
|
-
assert !t.save, "Shouldn't save because it's invalid"
|
577
|
-
assert_equal "is bad data", t.errors.on(:title)
|
578
|
-
assert_nil t.errors.on(:content)
|
579
|
-
|
580
|
-
t.title = "Validation macros rule!"
|
581
|
-
|
582
|
-
assert t.save
|
583
|
-
assert_nil t.errors.on(:title)
|
584
|
-
|
585
|
-
assert_raise(ArgumentError) { Topic.validates_format_of(:title, :content) }
|
586
|
-
end
|
587
|
-
|
588
|
-
def test_validate_format_with_allow_blank
|
589
|
-
Topic.validates_format_of(:title, :with => /^Validation\smacros \w+!$/, :allow_blank=>true)
|
590
|
-
assert !Topic.create("title" => "Shouldn't be valid").valid?
|
591
|
-
assert Topic.create("title" => "").valid?
|
592
|
-
assert Topic.create("title" => nil).valid?
|
593
|
-
assert Topic.create("title" => "Validation macros rule!").valid?
|
594
|
-
end
|
595
|
-
|
596
|
-
# testing ticket #3142
|
597
|
-
def test_validate_format_numeric
|
598
|
-
Topic.validates_format_of(:title, :content, :with => /^[1-9][0-9]*$/, :message => "is bad data")
|
599
|
-
|
600
|
-
t = Topic.create("title" => "72x", "content" => "6789")
|
601
|
-
assert !t.valid?, "Shouldn't be valid"
|
602
|
-
assert !t.save, "Shouldn't save because it's invalid"
|
603
|
-
assert_equal "is bad data", t.errors.on(:title)
|
604
|
-
assert_nil t.errors.on(:content)
|
605
|
-
|
606
|
-
t.title = "-11"
|
607
|
-
assert !t.valid?, "Shouldn't be valid"
|
608
|
-
|
609
|
-
t.title = "03"
|
610
|
-
assert !t.valid?, "Shouldn't be valid"
|
611
|
-
|
612
|
-
t.title = "z44"
|
613
|
-
assert !t.valid?, "Shouldn't be valid"
|
614
|
-
|
615
|
-
t.title = "5v7"
|
616
|
-
assert !t.valid?, "Shouldn't be valid"
|
617
|
-
|
618
|
-
t.title = "1"
|
619
|
-
|
620
|
-
assert t.save
|
621
|
-
assert_nil t.errors.on(:title)
|
622
|
-
end
|
623
|
-
|
624
|
-
def test_validate_format_with_formatted_message
|
625
|
-
Topic.validates_format_of(:title, :with => /^Valid Title$/, :message => "can't be {{value}}")
|
626
|
-
t = Topic.create(:title => 'Invalid title')
|
627
|
-
assert_equal "can't be Invalid title", t.errors.on(:title)
|
628
|
-
end
|
629
|
-
|
630
|
-
def test_validates_inclusion_of
|
631
|
-
Topic.validates_inclusion_of( :title, :in => %w( a b c d e f g ) )
|
632
|
-
|
633
|
-
assert !Topic.create("title" => "a!", "content" => "abc").valid?
|
634
|
-
assert !Topic.create("title" => "a b", "content" => "abc").valid?
|
635
|
-
assert !Topic.create("title" => nil, "content" => "def").valid?
|
636
|
-
|
637
|
-
t = Topic.create("title" => "a", "content" => "I know you are but what am I?")
|
638
|
-
assert t.valid?
|
639
|
-
t.title = "uhoh"
|
640
|
-
assert !t.valid?
|
641
|
-
assert t.errors.on(:title)
|
642
|
-
assert_equal "is not included in the list", t.errors["title"]
|
643
|
-
|
644
|
-
assert_raise(ArgumentError) { Topic.validates_inclusion_of( :title, :in => nil ) }
|
645
|
-
assert_raise(ArgumentError) { Topic.validates_inclusion_of( :title, :in => 0) }
|
646
|
-
|
647
|
-
assert_nothing_raised(ArgumentError) { Topic.validates_inclusion_of( :title, :in => "hi!" ) }
|
648
|
-
assert_nothing_raised(ArgumentError) { Topic.validates_inclusion_of( :title, :in => {} ) }
|
649
|
-
assert_nothing_raised(ArgumentError) { Topic.validates_inclusion_of( :title, :in => [] ) }
|
650
|
-
end
|
651
|
-
|
652
|
-
def test_validates_inclusion_of_with_allow_nil
|
653
|
-
Topic.validates_inclusion_of( :title, :in => %w( a b c d e f g ), :allow_nil=>true )
|
654
|
-
|
655
|
-
assert !Topic.create("title" => "a!", "content" => "abc").valid?
|
656
|
-
assert !Topic.create("title" => "", "content" => "abc").valid?
|
657
|
-
assert Topic.create("title" => nil, "content" => "abc").valid?
|
658
|
-
end
|
659
|
-
|
660
|
-
def test_numericality_with_getter_method
|
661
|
-
repair_validations(Developer) do
|
662
|
-
Developer.validates_numericality_of( :salary )
|
663
|
-
developer = Developer.new("name" => "michael", "salary" => nil)
|
664
|
-
developer.instance_eval("def salary; read_attribute('salary') ? read_attribute('salary') : 100000; end")
|
665
|
-
assert developer.valid?
|
666
|
-
end
|
667
|
-
end
|
668
|
-
|
669
|
-
def test_validates_length_of_with_allow_nil
|
670
|
-
Topic.validates_length_of( :title, :is => 5, :allow_nil=>true )
|
671
|
-
|
672
|
-
assert !Topic.create("title" => "ab").valid?
|
673
|
-
assert !Topic.create("title" => "").valid?
|
674
|
-
assert Topic.create("title" => nil).valid?
|
675
|
-
assert Topic.create("title" => "abcde").valid?
|
676
|
-
end
|
677
|
-
|
678
|
-
def test_validates_length_of_with_allow_blank
|
679
|
-
Topic.validates_length_of( :title, :is => 5, :allow_blank=>true )
|
680
|
-
|
681
|
-
assert !Topic.create("title" => "ab").valid?
|
682
|
-
assert Topic.create("title" => "").valid?
|
683
|
-
assert Topic.create("title" => nil).valid?
|
684
|
-
assert Topic.create("title" => "abcde").valid?
|
685
|
-
end
|
686
|
-
|
687
|
-
def test_validates_inclusion_of_with_formatted_message
|
688
|
-
Topic.validates_inclusion_of( :title, :in => %w( a b c d e f g ), :message => "option {{value}} is not in the list" )
|
689
|
-
|
690
|
-
assert Topic.create("title" => "a", "content" => "abc").valid?
|
691
|
-
|
692
|
-
t = Topic.create("title" => "uhoh", "content" => "abc")
|
693
|
-
assert !t.valid?
|
694
|
-
assert t.errors.on(:title)
|
695
|
-
assert_equal "option uhoh is not in the list", t.errors["title"]
|
696
|
-
end
|
697
|
-
|
698
|
-
def test_numericality_with_allow_nil_and_getter_method
|
699
|
-
repair_validations(Developer) do
|
700
|
-
Developer.validates_numericality_of( :salary, :allow_nil => true)
|
701
|
-
developer = Developer.new("name" => "michael", "salary" => nil)
|
702
|
-
developer.instance_eval("def salary; read_attribute('salary') ? read_attribute('salary') : 100000; end")
|
703
|
-
assert developer.valid?
|
704
|
-
end
|
705
|
-
end
|
706
|
-
|
707
|
-
def test_validates_exclusion_of
|
708
|
-
Topic.validates_exclusion_of( :title, :in => %w( abe monkey ) )
|
709
|
-
|
710
|
-
assert Topic.create("title" => "something", "content" => "abc").valid?
|
711
|
-
assert !Topic.create("title" => "monkey", "content" => "abc").valid?
|
712
|
-
end
|
713
|
-
|
714
|
-
def test_validates_exclusion_of_with_formatted_message
|
715
|
-
Topic.validates_exclusion_of( :title, :in => %w( abe monkey ), :message => "option {{value}} is restricted" )
|
716
|
-
|
717
|
-
assert Topic.create("title" => "something", "content" => "abc")
|
718
|
-
|
719
|
-
t = Topic.create("title" => "monkey")
|
720
|
-
assert !t.valid?
|
721
|
-
assert t.errors.on(:title)
|
722
|
-
assert_equal "option monkey is restricted", t.errors["title"]
|
723
|
-
end
|
724
|
-
|
725
|
-
def test_validates_length_of_using_minimum
|
726
|
-
Topic.validates_length_of :title, :minimum => 5
|
727
|
-
|
728
|
-
t = Topic.create("title" => "valid", "content" => "whatever")
|
729
|
-
assert t.valid?
|
730
|
-
|
731
|
-
t.title = "not"
|
732
|
-
assert !t.valid?
|
733
|
-
assert t.errors.on(:title)
|
734
|
-
assert_equal "is too short (minimum is 5 characters)", t.errors["title"]
|
735
|
-
|
736
|
-
t.title = ""
|
737
|
-
assert !t.valid?
|
738
|
-
assert t.errors.on(:title)
|
739
|
-
assert_equal "is too short (minimum is 5 characters)", t.errors["title"]
|
740
|
-
|
741
|
-
t.title = nil
|
742
|
-
assert !t.valid?
|
743
|
-
assert t.errors.on(:title)
|
744
|
-
assert_equal "is too short (minimum is 5 characters)", t.errors["title"]
|
745
|
-
end
|
746
|
-
|
747
|
-
def test_optionally_validates_length_of_using_minimum
|
748
|
-
Topic.validates_length_of :title, :minimum => 5, :allow_nil => true
|
749
|
-
|
750
|
-
t = Topic.create("title" => "valid", "content" => "whatever")
|
751
|
-
assert t.valid?
|
752
|
-
|
753
|
-
t.title = nil
|
754
|
-
assert t.valid?
|
755
|
-
end
|
756
|
-
|
757
|
-
def test_validates_length_of_using_maximum
|
758
|
-
Topic.validates_length_of :title, :maximum => 5
|
759
|
-
|
760
|
-
t = Topic.create("title" => "valid", "content" => "whatever")
|
761
|
-
assert t.valid?
|
762
|
-
|
763
|
-
t.title = "notvalid"
|
764
|
-
assert !t.valid?
|
765
|
-
assert t.errors.on(:title)
|
766
|
-
assert_equal "is too long (maximum is 5 characters)", t.errors["title"]
|
767
|
-
|
768
|
-
t.title = ""
|
769
|
-
assert t.valid?
|
770
|
-
|
771
|
-
t.title = nil
|
772
|
-
assert !t.valid?
|
773
|
-
end
|
774
|
-
|
775
|
-
def test_optionally_validates_length_of_using_maximum
|
776
|
-
Topic.validates_length_of :title, :maximum => 5, :allow_nil => true
|
777
|
-
|
778
|
-
t = Topic.create("title" => "valid", "content" => "whatever")
|
779
|
-
assert t.valid?
|
780
|
-
|
781
|
-
t.title = nil
|
782
|
-
assert t.valid?
|
783
|
-
end
|
784
|
-
|
785
|
-
def test_validates_length_of_using_within
|
786
|
-
Topic.validates_length_of(:title, :content, :within => 3..5)
|
787
|
-
|
788
|
-
t = Topic.new("title" => "a!", "content" => "I'm ooooooooh so very long")
|
789
|
-
assert !t.valid?
|
790
|
-
assert_equal "is too short (minimum is 3 characters)", t.errors.on(:title)
|
791
|
-
assert_equal "is too long (maximum is 5 characters)", t.errors.on(:content)
|
792
|
-
|
793
|
-
t.title = nil
|
794
|
-
t.content = nil
|
795
|
-
assert !t.valid?
|
796
|
-
assert_equal "is too short (minimum is 3 characters)", t.errors.on(:title)
|
797
|
-
assert_equal "is too short (minimum is 3 characters)", t.errors.on(:content)
|
798
|
-
|
799
|
-
t.title = "abe"
|
800
|
-
t.content = "mad"
|
801
|
-
assert t.valid?
|
802
|
-
end
|
803
|
-
|
804
|
-
def test_optionally_validates_length_of_using_within
|
805
|
-
Topic.validates_length_of :title, :content, :within => 3..5, :allow_nil => true
|
806
|
-
|
807
|
-
t = Topic.create('title' => 'abc', 'content' => 'abcd')
|
808
|
-
assert t.valid?
|
809
|
-
|
810
|
-
t.title = nil
|
811
|
-
assert t.valid?
|
812
|
-
end
|
813
|
-
|
814
|
-
def test_optionally_validates_length_of_using_within_on_create
|
815
|
-
Topic.validates_length_of :title, :content, :within => 5..10, :on => :create, :too_long => "my string is too long: {{count}}"
|
816
|
-
|
817
|
-
t = Topic.create("title" => "thisisnotvalid", "content" => "whatever")
|
818
|
-
assert !t.save
|
819
|
-
assert t.errors.on(:title)
|
820
|
-
assert_equal "my string is too long: 10", t.errors[:title]
|
821
|
-
|
822
|
-
t.title = "butthisis"
|
823
|
-
assert t.save
|
824
|
-
|
825
|
-
t.title = "few"
|
826
|
-
assert t.save
|
827
|
-
|
828
|
-
t.content = "andthisislong"
|
829
|
-
assert t.save
|
830
|
-
|
831
|
-
t.content = t.title = "iamfine"
|
832
|
-
assert t.save
|
833
|
-
end
|
834
|
-
|
835
|
-
def test_optionally_validates_length_of_using_within_on_update
|
836
|
-
Topic.validates_length_of :title, :content, :within => 5..10, :on => :update, :too_short => "my string is too short: {{count}}"
|
837
|
-
|
838
|
-
t = Topic.create("title" => "vali", "content" => "whatever")
|
839
|
-
assert !t.save
|
840
|
-
assert t.errors.on(:title)
|
841
|
-
|
842
|
-
t.title = "not"
|
843
|
-
assert !t.save
|
844
|
-
assert t.errors.on(:title)
|
845
|
-
assert_equal "my string is too short: 5", t.errors[:title]
|
846
|
-
|
847
|
-
t.title = "valid"
|
848
|
-
t.content = "andthisistoolong"
|
849
|
-
assert !t.save
|
850
|
-
assert t.errors.on(:content)
|
851
|
-
|
852
|
-
t.content = "iamfine"
|
853
|
-
assert t.save
|
854
|
-
end
|
855
|
-
|
856
|
-
def test_validates_length_of_using_is
|
857
|
-
Topic.validates_length_of :title, :is => 5
|
858
|
-
|
859
|
-
t = Topic.create("title" => "valid", "content" => "whatever")
|
860
|
-
assert t.valid?
|
861
|
-
|
862
|
-
t.title = "notvalid"
|
863
|
-
assert !t.valid?
|
864
|
-
assert t.errors.on(:title)
|
865
|
-
assert_equal "is the wrong length (should be 5 characters)", t.errors["title"]
|
866
|
-
|
867
|
-
t.title = ""
|
868
|
-
assert !t.valid?
|
869
|
-
|
870
|
-
t.title = nil
|
871
|
-
assert !t.valid?
|
872
|
-
end
|
873
|
-
|
874
|
-
def test_optionally_validates_length_of_using_is
|
875
|
-
Topic.validates_length_of :title, :is => 5, :allow_nil => true
|
876
|
-
|
877
|
-
t = Topic.create("title" => "valid", "content" => "whatever")
|
878
|
-
assert t.valid?
|
879
|
-
|
880
|
-
t.title = nil
|
881
|
-
assert t.valid?
|
882
|
-
end
|
883
|
-
|
884
|
-
def test_validates_length_of_using_bignum
|
885
|
-
bigmin = 2 ** 30
|
886
|
-
bigmax = 2 ** 32
|
887
|
-
bigrange = bigmin...bigmax
|
888
|
-
assert_nothing_raised do
|
889
|
-
Topic.validates_length_of :title, :is => bigmin + 5
|
890
|
-
Topic.validates_length_of :title, :within => bigrange
|
891
|
-
Topic.validates_length_of :title, :in => bigrange
|
892
|
-
Topic.validates_length_of :title, :minimum => bigmin
|
893
|
-
Topic.validates_length_of :title, :maximum => bigmax
|
894
|
-
end
|
895
|
-
end
|
896
|
-
|
897
|
-
def test_validates_length_with_globally_modified_error_message
|
898
|
-
ActiveSupport::Deprecation.silence do
|
899
|
-
ActiveRecord::Errors.default_error_messages[:too_short] = 'tu est trops petit hombre {{count}}'
|
900
|
-
end
|
901
|
-
Topic.validates_length_of :title, :minimum => 10
|
902
|
-
t = Topic.create(:title => 'too short')
|
903
|
-
assert !t.valid?
|
904
|
-
|
905
|
-
assert_equal 'tu est trops petit hombre 10', t.errors['title']
|
906
|
-
end
|
907
|
-
|
908
|
-
def test_validates_size_of_association
|
909
|
-
repair_validations(Owner) do
|
910
|
-
assert_nothing_raised { Owner.validates_size_of :pets, :minimum => 1 }
|
911
|
-
o = Owner.new('name' => 'nopets')
|
912
|
-
assert !o.save
|
913
|
-
assert o.errors.on(:pets)
|
914
|
-
pet = o.pets.build('name' => 'apet')
|
915
|
-
assert o.valid?
|
916
|
-
end
|
917
|
-
end
|
918
|
-
|
919
|
-
def test_validates_size_of_association_using_within
|
920
|
-
repair_validations(Owner) do
|
921
|
-
assert_nothing_raised { Owner.validates_size_of :pets, :within => 1..2 }
|
922
|
-
o = Owner.new('name' => 'nopets')
|
923
|
-
assert !o.save
|
924
|
-
assert o.errors.on(:pets)
|
925
|
-
|
926
|
-
pet = o.pets.build('name' => 'apet')
|
927
|
-
assert o.valid?
|
928
|
-
|
929
|
-
2.times { o.pets.build('name' => 'apet') }
|
930
|
-
assert !o.save
|
931
|
-
assert o.errors.on(:pets)
|
932
|
-
end
|
933
|
-
end
|
934
|
-
|
935
|
-
def test_validates_length_of_nasty_params
|
936
|
-
assert_raise(ArgumentError) { Topic.validates_length_of(:title, :minimum=>6, :maximum=>9) }
|
937
|
-
assert_raise(ArgumentError) { Topic.validates_length_of(:title, :within=>6, :maximum=>9) }
|
938
|
-
assert_raise(ArgumentError) { Topic.validates_length_of(:title, :within=>6, :minimum=>9) }
|
939
|
-
assert_raise(ArgumentError) { Topic.validates_length_of(:title, :within=>6, :is=>9) }
|
940
|
-
assert_raise(ArgumentError) { Topic.validates_length_of(:title, :minimum=>"a") }
|
941
|
-
assert_raise(ArgumentError) { Topic.validates_length_of(:title, :maximum=>"a") }
|
942
|
-
assert_raise(ArgumentError) { Topic.validates_length_of(:title, :within=>"a") }
|
943
|
-
assert_raise(ArgumentError) { Topic.validates_length_of(:title, :is=>"a") }
|
944
|
-
end
|
945
|
-
|
946
|
-
def test_validates_length_of_custom_errors_for_minimum_with_message
|
947
|
-
Topic.validates_length_of( :title, :minimum=>5, :message=>"boo {{count}}" )
|
948
|
-
t = Topic.create("title" => "uhoh", "content" => "whatever")
|
949
|
-
assert !t.valid?
|
950
|
-
assert t.errors.on(:title)
|
951
|
-
assert_equal "boo 5", t.errors["title"]
|
952
|
-
end
|
953
|
-
|
954
|
-
def test_validates_length_of_custom_errors_for_minimum_with_too_short
|
955
|
-
Topic.validates_length_of( :title, :minimum=>5, :too_short=>"hoo {{count}}" )
|
956
|
-
t = Topic.create("title" => "uhoh", "content" => "whatever")
|
957
|
-
assert !t.valid?
|
958
|
-
assert t.errors.on(:title)
|
959
|
-
assert_equal "hoo 5", t.errors["title"]
|
960
|
-
end
|
961
|
-
|
962
|
-
def test_validates_length_of_custom_errors_for_maximum_with_message
|
963
|
-
Topic.validates_length_of( :title, :maximum=>5, :message=>"boo {{count}}" )
|
964
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
965
|
-
assert !t.valid?
|
966
|
-
assert t.errors.on(:title)
|
967
|
-
assert_equal "boo 5", t.errors["title"]
|
968
|
-
end
|
969
|
-
|
970
|
-
def test_validates_length_of_custom_errors_for_in
|
971
|
-
Topic.validates_length_of(:title, :in => 10..20, :message => "hoo {{count}}")
|
972
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
973
|
-
assert !t.valid?
|
974
|
-
assert t.errors.on(:title)
|
975
|
-
assert_equal "hoo 10", t.errors["title"]
|
976
|
-
|
977
|
-
t = Topic.create("title" => "uhohuhohuhohuhohuhohuhohuhohuhoh", "content" => "whatever")
|
978
|
-
assert !t.valid?
|
979
|
-
assert t.errors.on(:title)
|
980
|
-
assert_equal "hoo 20", t.errors["title"]
|
981
|
-
end
|
982
|
-
|
983
|
-
def test_validates_length_of_custom_errors_for_maximum_with_too_long
|
984
|
-
Topic.validates_length_of( :title, :maximum=>5, :too_long=>"hoo {{count}}" )
|
985
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
986
|
-
assert !t.valid?
|
987
|
-
assert t.errors.on(:title)
|
988
|
-
assert_equal "hoo 5", t.errors["title"]
|
989
|
-
end
|
990
|
-
|
991
|
-
def test_validates_length_of_custom_errors_for_is_with_message
|
992
|
-
Topic.validates_length_of( :title, :is=>5, :message=>"boo {{count}}" )
|
993
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
994
|
-
assert !t.valid?
|
995
|
-
assert t.errors.on(:title)
|
996
|
-
assert_equal "boo 5", t.errors["title"]
|
997
|
-
end
|
998
|
-
|
999
|
-
def test_validates_length_of_custom_errors_for_is_with_wrong_length
|
1000
|
-
Topic.validates_length_of( :title, :is=>5, :wrong_length=>"hoo {{count}}" )
|
1001
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
1002
|
-
assert !t.valid?
|
1003
|
-
assert t.errors.on(:title)
|
1004
|
-
assert_equal "hoo 5", t.errors["title"]
|
1005
|
-
end
|
1006
|
-
|
1007
|
-
def test_validates_length_of_using_minimum_utf8
|
1008
|
-
with_kcode('UTF8') do
|
1009
|
-
Topic.validates_length_of :title, :minimum => 5
|
1010
|
-
|
1011
|
-
t = Topic.create("title" => "一二三四五", "content" => "whatever")
|
1012
|
-
assert t.valid?
|
1013
|
-
|
1014
|
-
t.title = "一二三四"
|
1015
|
-
assert !t.valid?
|
1016
|
-
assert t.errors.on(:title)
|
1017
|
-
assert_equal "is too short (minimum is 5 characters)", t.errors["title"]
|
1018
|
-
end
|
1019
|
-
end
|
1020
|
-
|
1021
|
-
def test_validates_length_of_using_maximum_utf8
|
1022
|
-
with_kcode('UTF8') do
|
1023
|
-
Topic.validates_length_of :title, :maximum => 5
|
1024
|
-
|
1025
|
-
t = Topic.create("title" => "一二三四五", "content" => "whatever")
|
1026
|
-
assert t.valid?
|
1027
|
-
|
1028
|
-
t.title = "一二34五六"
|
1029
|
-
assert !t.valid?
|
1030
|
-
assert t.errors.on(:title)
|
1031
|
-
assert_equal "is too long (maximum is 5 characters)", t.errors["title"]
|
1032
|
-
end
|
1033
|
-
end
|
1034
|
-
|
1035
|
-
def test_validates_length_of_using_within_utf8
|
1036
|
-
with_kcode('UTF8') do
|
1037
|
-
Topic.validates_length_of(:title, :content, :within => 3..5)
|
1038
|
-
|
1039
|
-
t = Topic.new("title" => "一二", "content" => "12三四五六七")
|
1040
|
-
assert !t.valid?
|
1041
|
-
assert_equal "is too short (minimum is 3 characters)", t.errors.on(:title)
|
1042
|
-
assert_equal "is too long (maximum is 5 characters)", t.errors.on(:content)
|
1043
|
-
t.title = "一二三"
|
1044
|
-
t.content = "12三"
|
1045
|
-
assert t.valid?
|
1046
|
-
end
|
1047
|
-
end
|
1048
|
-
|
1049
|
-
def test_optionally_validates_length_of_using_within_utf8
|
1050
|
-
with_kcode('UTF8') do
|
1051
|
-
Topic.validates_length_of :title, :within => 3..5, :allow_nil => true
|
1052
|
-
|
1053
|
-
t = Topic.create(:title => "一二三四五")
|
1054
|
-
assert t.valid?, t.errors.inspect
|
1055
|
-
|
1056
|
-
t = Topic.create(:title => "一二三")
|
1057
|
-
assert t.valid?, t.errors.inspect
|
1058
|
-
|
1059
|
-
t.title = nil
|
1060
|
-
assert t.valid?, t.errors.inspect
|
1061
|
-
end
|
1062
|
-
end
|
1063
|
-
|
1064
|
-
def test_optionally_validates_length_of_using_within_on_create_utf8
|
1065
|
-
with_kcode('UTF8') do
|
1066
|
-
Topic.validates_length_of :title, :within => 5..10, :on => :create, :too_long => "長すぎます: {{count}}"
|
1067
|
-
|
1068
|
-
t = Topic.create("title" => "一二三四五六七八九十A", "content" => "whatever")
|
1069
|
-
assert !t.save
|
1070
|
-
assert t.errors.on(:title)
|
1071
|
-
assert_equal "長すぎます: 10", t.errors[:title]
|
1072
|
-
|
1073
|
-
t.title = "一二三四五六七八九"
|
1074
|
-
assert t.save
|
1075
|
-
|
1076
|
-
t.title = "一二3"
|
1077
|
-
assert t.save
|
1078
|
-
|
1079
|
-
t.content = "一二三四五六七八九十"
|
1080
|
-
assert t.save
|
1081
|
-
|
1082
|
-
t.content = t.title = "一二三四五六"
|
1083
|
-
assert t.save
|
1084
|
-
end
|
1085
|
-
end
|
1086
|
-
|
1087
|
-
def test_optionally_validates_length_of_using_within_on_update_utf8
|
1088
|
-
with_kcode('UTF8') do
|
1089
|
-
Topic.validates_length_of :title, :within => 5..10, :on => :update, :too_short => "短すぎます: {{count}}"
|
1090
|
-
|
1091
|
-
t = Topic.create("title" => "一二三4", "content" => "whatever")
|
1092
|
-
assert !t.save
|
1093
|
-
assert t.errors.on(:title)
|
1094
|
-
|
1095
|
-
t.title = "1二三4"
|
1096
|
-
assert !t.save
|
1097
|
-
assert t.errors.on(:title)
|
1098
|
-
assert_equal "短すぎます: 5", t.errors[:title]
|
1099
|
-
|
1100
|
-
t.title = "一二三四五六七八九十A"
|
1101
|
-
assert !t.save
|
1102
|
-
assert t.errors.on(:title)
|
1103
|
-
|
1104
|
-
t.title = "一二345"
|
1105
|
-
assert t.save
|
1106
|
-
end
|
1107
|
-
end
|
1108
|
-
|
1109
|
-
def test_validates_length_of_using_is_utf8
|
1110
|
-
with_kcode('UTF8') do
|
1111
|
-
Topic.validates_length_of :title, :is => 5
|
1112
|
-
|
1113
|
-
t = Topic.create("title" => "一二345", "content" => "whatever")
|
1114
|
-
assert t.valid?
|
1115
|
-
|
1116
|
-
t.title = "一二345六"
|
1117
|
-
assert !t.valid?
|
1118
|
-
assert t.errors.on(:title)
|
1119
|
-
assert_equal "is the wrong length (should be 5 characters)", t.errors["title"]
|
1120
|
-
end
|
1121
|
-
end
|
1122
|
-
|
1123
|
-
def test_validates_length_of_with_block
|
1124
|
-
Topic.validates_length_of :content, :minimum => 5, :too_short=>"Your essay must be at least {{count}} words.",
|
1125
|
-
:tokenizer => lambda {|str| str.scan(/\w+/) }
|
1126
|
-
t = Topic.create!(:content => "this content should be long enough")
|
1127
|
-
assert t.valid?
|
1128
|
-
|
1129
|
-
t.content = "not long enough"
|
1130
|
-
assert !t.valid?
|
1131
|
-
assert t.errors.on(:content)
|
1132
|
-
assert_equal "Your essay must be at least 5 words.", t.errors[:content]
|
1133
|
-
end
|
1134
|
-
|
1135
|
-
def test_validates_size_of_association_utf8
|
1136
|
-
repair_validations(Owner) do
|
1137
|
-
with_kcode('UTF8') do
|
1138
|
-
assert_nothing_raised { Owner.validates_size_of :pets, :minimum => 1 }
|
1139
|
-
o = Owner.new('name' => 'あいうえおかきくけこ')
|
1140
|
-
assert !o.save
|
1141
|
-
assert o.errors.on(:pets)
|
1142
|
-
o.pets.build('name' => 'あいうえおかきくけこ')
|
1143
|
-
assert o.valid?
|
1144
|
-
end
|
1145
|
-
end
|
1146
|
-
end
|
1147
|
-
|
1148
|
-
def test_validates_associated_many
|
1149
|
-
Topic.validates_associated( :replies )
|
1150
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
1151
|
-
t.replies << [r = Reply.new("title" => "A reply"), r2 = Reply.new("title" => "Another reply", "content" => "non-empty"), r3 = Reply.new("title" => "Yet another reply"), r4 = Reply.new("title" => "The last reply", "content" => "non-empty")]
|
1152
|
-
assert !t.valid?
|
1153
|
-
assert t.errors.on(:replies)
|
1154
|
-
assert_equal 1, r.errors.count # make sure all associated objects have been validated
|
1155
|
-
assert_equal 0, r2.errors.count
|
1156
|
-
assert_equal 1, r3.errors.count
|
1157
|
-
assert_equal 0, r4.errors.count
|
1158
|
-
r.content = r3.content = "non-empty"
|
1159
|
-
assert t.valid?
|
1160
|
-
end
|
1161
|
-
|
1162
|
-
def test_validates_associated_one
|
1163
|
-
repair_validations(Reply) do
|
1164
|
-
Reply.validates_associated( :topic )
|
1165
|
-
Topic.validates_presence_of( :content )
|
1166
|
-
r = Reply.new("title" => "A reply", "content" => "with content!")
|
1167
|
-
r.topic = Topic.create("title" => "uhohuhoh")
|
1168
|
-
assert !r.valid?
|
1169
|
-
assert r.errors.on(:topic)
|
1170
|
-
r.topic.content = "non-empty"
|
1171
|
-
assert r.valid?
|
1172
|
-
end
|
1173
|
-
end
|
1174
|
-
|
1175
|
-
def test_validate_block
|
1176
|
-
Topic.validate { |topic| topic.errors.add("title", "will never be valid") }
|
1177
|
-
t = Topic.create("title" => "Title", "content" => "whatever")
|
1178
|
-
assert !t.valid?
|
1179
|
-
assert t.errors.on(:title)
|
1180
|
-
assert_equal "will never be valid", t.errors["title"]
|
1181
|
-
end
|
1182
|
-
|
1183
|
-
def test_invalid_validator
|
1184
|
-
Topic.validate 3
|
1185
|
-
assert_raise(ArgumentError) { t = Topic.create }
|
1186
|
-
end
|
1187
|
-
|
1188
|
-
def test_throw_away_typing
|
1189
|
-
d = Developer.new("name" => "David", "salary" => "100,000")
|
1190
|
-
assert !d.valid?
|
1191
|
-
assert_equal 100, d.salary
|
1192
|
-
assert_equal "100,000", d.salary_before_type_cast
|
1193
|
-
end
|
1194
|
-
|
1195
|
-
def test_validates_acceptance_of_with_custom_error_using_quotes
|
1196
|
-
repair_validations(Developer) do
|
1197
|
-
Developer.validates_acceptance_of :salary, :message=> "This string contains 'single' and \"double\" quotes"
|
1198
|
-
d = Developer.new
|
1199
|
-
d.salary = "0"
|
1200
|
-
assert !d.valid?
|
1201
|
-
assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:salary).last
|
1202
|
-
end
|
1203
|
-
end
|
1204
|
-
|
1205
|
-
def test_validates_confirmation_of_with_custom_error_using_quotes
|
1206
|
-
repair_validations(Developer) do
|
1207
|
-
Developer.validates_confirmation_of :name, :message=> "confirm 'single' and \"double\" quotes"
|
1208
|
-
d = Developer.new
|
1209
|
-
d.name = "John"
|
1210
|
-
d.name_confirmation = "Johnny"
|
1211
|
-
assert !d.valid?
|
1212
|
-
assert_equal "confirm 'single' and \"double\" quotes", d.errors.on(:name)
|
1213
|
-
end
|
1214
|
-
end
|
1215
|
-
|
1216
|
-
def test_validates_format_of_with_custom_error_using_quotes
|
1217
|
-
repair_validations(Developer) do
|
1218
|
-
Developer.validates_format_of :name, :with => /^(A-Z*)$/, :message=> "format 'single' and \"double\" quotes"
|
1219
|
-
d = Developer.new
|
1220
|
-
d.name = d.name_confirmation = "John 32"
|
1221
|
-
assert !d.valid?
|
1222
|
-
assert_equal "format 'single' and \"double\" quotes", d.errors.on(:name)
|
1223
|
-
end
|
1224
|
-
end
|
1225
|
-
|
1226
|
-
def test_validates_inclusion_of_with_custom_error_using_quotes
|
1227
|
-
repair_validations(Developer) do
|
1228
|
-
Developer.validates_inclusion_of :salary, :in => 1000..80000, :message=> "This string contains 'single' and \"double\" quotes"
|
1229
|
-
d = Developer.new
|
1230
|
-
d.salary = "90,000"
|
1231
|
-
assert !d.valid?
|
1232
|
-
assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:salary).last
|
1233
|
-
end
|
1234
|
-
end
|
1235
|
-
|
1236
|
-
def test_validates_length_of_with_custom_too_long_using_quotes
|
1237
|
-
repair_validations(Developer) do
|
1238
|
-
Developer.validates_length_of :name, :maximum => 4, :too_long=> "This string contains 'single' and \"double\" quotes"
|
1239
|
-
d = Developer.new
|
1240
|
-
d.name = "Jeffrey"
|
1241
|
-
assert !d.valid?
|
1242
|
-
assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:name)
|
1243
|
-
end
|
1244
|
-
end
|
1245
|
-
|
1246
|
-
def test_validates_length_of_with_custom_too_short_using_quotes
|
1247
|
-
repair_validations(Developer) do
|
1248
|
-
Developer.validates_length_of :name, :minimum => 4, :too_short=> "This string contains 'single' and \"double\" quotes"
|
1249
|
-
d = Developer.new
|
1250
|
-
d.name = "Joe"
|
1251
|
-
assert !d.valid?
|
1252
|
-
assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:name)
|
1253
|
-
end
|
1254
|
-
end
|
1255
|
-
|
1256
|
-
def test_validates_length_of_with_custom_message_using_quotes
|
1257
|
-
repair_validations(Developer) do
|
1258
|
-
Developer.validates_length_of :name, :minimum => 4, :message=> "This string contains 'single' and \"double\" quotes"
|
1259
|
-
d = Developer.new
|
1260
|
-
d.name = "Joe"
|
1261
|
-
assert !d.valid?
|
1262
|
-
assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:name)
|
1263
|
-
end
|
1264
|
-
end
|
1265
|
-
|
1266
|
-
def test_validates_presence_of_with_custom_message_using_quotes
|
1267
|
-
repair_validations(Developer) do
|
1268
|
-
Developer.validates_presence_of :non_existent, :message=> "This string contains 'single' and \"double\" quotes"
|
1269
|
-
d = Developer.new
|
1270
|
-
d.name = "Joe"
|
1271
|
-
assert !d.valid?
|
1272
|
-
assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:non_existent)
|
1273
|
-
end
|
1274
|
-
end
|
1275
|
-
|
1276
|
-
def test_validates_uniqueness_of_with_custom_message_using_quotes
|
1277
|
-
repair_validations(Developer) do
|
1278
|
-
Developer.validates_uniqueness_of :name, :message=> "This string contains 'single' and \"double\" quotes"
|
1279
|
-
d = Developer.new
|
1280
|
-
d.name = "David"
|
1281
|
-
assert !d.valid?
|
1282
|
-
assert_equal "This string contains 'single' and \"double\" quotes", d.errors.on(:name)
|
1283
|
-
end
|
1284
|
-
end
|
1285
|
-
|
1286
|
-
def test_validates_associated_with_custom_message_using_quotes
|
1287
|
-
repair_validations(Reply) do
|
1288
|
-
Reply.validates_associated :topic, :message=> "This string contains 'single' and \"double\" quotes"
|
1289
|
-
Topic.validates_presence_of :content
|
1290
|
-
r = Reply.create("title" => "A reply", "content" => "with content!")
|
1291
|
-
r.topic = Topic.create("title" => "uhohuhoh")
|
1292
|
-
assert !r.valid?
|
1293
|
-
assert_equal "This string contains 'single' and \"double\" quotes", r.errors.on(:topic)
|
1294
|
-
end
|
1295
|
-
end
|
1296
|
-
|
1297
|
-
def test_if_validation_using_method_true
|
1298
|
-
# When the method returns true
|
1299
|
-
Topic.validates_length_of( :title, :maximum=>5, :too_long=>"hoo {{count}}", :if => :condition_is_true )
|
1300
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
1301
|
-
assert !t.valid?
|
1302
|
-
assert t.errors.on(:title)
|
1303
|
-
assert_equal "hoo 5", t.errors["title"]
|
1304
|
-
end
|
1305
|
-
|
1306
|
-
def test_unless_validation_using_method_true
|
1307
|
-
# When the method returns true
|
1308
|
-
Topic.validates_length_of( :title, :maximum=>5, :too_long=>"hoo {{count}}", :unless => :condition_is_true )
|
1309
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
1310
|
-
assert t.valid?
|
1311
|
-
assert !t.errors.on(:title)
|
1312
|
-
end
|
1313
|
-
|
1314
|
-
def test_if_validation_using_method_false
|
1315
|
-
# When the method returns false
|
1316
|
-
Topic.validates_length_of( :title, :maximum=>5, :too_long=>"hoo {{count}}", :if => :condition_is_true_but_its_not )
|
1317
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
1318
|
-
assert t.valid?
|
1319
|
-
assert !t.errors.on(:title)
|
1320
|
-
end
|
1321
|
-
|
1322
|
-
def test_unless_validation_using_method_false
|
1323
|
-
# When the method returns false
|
1324
|
-
Topic.validates_length_of( :title, :maximum=>5, :too_long=>"hoo {{count}}", :unless => :condition_is_true_but_its_not )
|
1325
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
1326
|
-
assert !t.valid?
|
1327
|
-
assert t.errors.on(:title)
|
1328
|
-
assert_equal "hoo 5", t.errors["title"]
|
1329
|
-
end
|
1330
|
-
|
1331
|
-
def test_if_validation_using_string_true
|
1332
|
-
# When the evaluated string returns true
|
1333
|
-
Topic.validates_length_of( :title, :maximum=>5, :too_long=>"hoo {{count}}", :if => "a = 1; a == 1" )
|
1334
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
1335
|
-
assert !t.valid?
|
1336
|
-
assert t.errors.on(:title)
|
1337
|
-
assert_equal "hoo 5", t.errors["title"]
|
1338
|
-
end
|
1339
|
-
|
1340
|
-
def test_unless_validation_using_string_true
|
1341
|
-
# When the evaluated string returns true
|
1342
|
-
Topic.validates_length_of( :title, :maximum=>5, :too_long=>"hoo {{count}}", :unless => "a = 1; a == 1" )
|
1343
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
1344
|
-
assert t.valid?
|
1345
|
-
assert !t.errors.on(:title)
|
1346
|
-
end
|
1347
|
-
|
1348
|
-
def test_if_validation_using_string_false
|
1349
|
-
# When the evaluated string returns false
|
1350
|
-
Topic.validates_length_of( :title, :maximum=>5, :too_long=>"hoo {{count}}", :if => "false")
|
1351
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
1352
|
-
assert t.valid?
|
1353
|
-
assert !t.errors.on(:title)
|
1354
|
-
end
|
1355
|
-
|
1356
|
-
def test_unless_validation_using_string_false
|
1357
|
-
# When the evaluated string returns false
|
1358
|
-
Topic.validates_length_of( :title, :maximum=>5, :too_long=>"hoo {{count}}", :unless => "false")
|
1359
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
1360
|
-
assert !t.valid?
|
1361
|
-
assert t.errors.on(:title)
|
1362
|
-
assert_equal "hoo 5", t.errors["title"]
|
1363
|
-
end
|
1364
|
-
|
1365
|
-
def test_if_validation_using_block_true
|
1366
|
-
# When the block returns true
|
1367
|
-
Topic.validates_length_of( :title, :maximum=>5, :too_long=>"hoo {{count}}",
|
1368
|
-
:if => Proc.new { |r| r.content.size > 4 } )
|
1369
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
1370
|
-
assert !t.valid?
|
1371
|
-
assert t.errors.on(:title)
|
1372
|
-
assert_equal "hoo 5", t.errors["title"]
|
1373
|
-
end
|
1374
|
-
|
1375
|
-
def test_unless_validation_using_block_true
|
1376
|
-
# When the block returns true
|
1377
|
-
Topic.validates_length_of( :title, :maximum=>5, :too_long=>"hoo {{count}}",
|
1378
|
-
:unless => Proc.new { |r| r.content.size > 4 } )
|
1379
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
1380
|
-
assert t.valid?
|
1381
|
-
assert !t.errors.on(:title)
|
1382
|
-
end
|
1383
|
-
|
1384
|
-
def test_if_validation_using_block_false
|
1385
|
-
# When the block returns false
|
1386
|
-
Topic.validates_length_of( :title, :maximum=>5, :too_long=>"hoo {{count}}",
|
1387
|
-
:if => Proc.new { |r| r.title != "uhohuhoh"} )
|
1388
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
1389
|
-
assert t.valid?
|
1390
|
-
assert !t.errors.on(:title)
|
1391
|
-
end
|
1392
|
-
|
1393
|
-
def test_unless_validation_using_block_false
|
1394
|
-
# When the block returns false
|
1395
|
-
Topic.validates_length_of( :title, :maximum=>5, :too_long=>"hoo {{count}}",
|
1396
|
-
:unless => Proc.new { |r| r.title != "uhohuhoh"} )
|
1397
|
-
t = Topic.create("title" => "uhohuhoh", "content" => "whatever")
|
1398
|
-
assert !t.valid?
|
1399
|
-
assert t.errors.on(:title)
|
1400
|
-
assert_equal "hoo 5", t.errors["title"]
|
1401
|
-
end
|
1402
|
-
|
1403
|
-
def test_validates_associated_missing
|
1404
|
-
repair_validations(Reply) do
|
1405
|
-
Reply.validates_presence_of(:topic)
|
1406
|
-
r = Reply.create("title" => "A reply", "content" => "with content!")
|
1407
|
-
assert !r.valid?
|
1408
|
-
assert r.errors.on(:topic)
|
1409
|
-
|
1410
|
-
r.topic = Topic.find :first
|
1411
|
-
assert r.valid?
|
1412
|
-
end
|
1413
|
-
end
|
1414
|
-
|
1415
|
-
def test_errors_to_xml
|
1416
|
-
r = Reply.new :title => "Wrong Create"
|
1417
|
-
assert !r.valid?
|
1418
|
-
xml = r.errors.to_xml(:skip_instruct => true)
|
1419
|
-
assert_equal "<errors>", xml.first(8)
|
1420
|
-
assert xml.include?("<error>Title is Wrong Create</error>")
|
1421
|
-
assert xml.include?("<error>Content Empty</error>")
|
1422
|
-
end
|
1423
|
-
|
1424
|
-
def test_validation_order
|
1425
|
-
Topic.validates_presence_of :title
|
1426
|
-
Topic.validates_length_of :title, :minimum => 2
|
1427
|
-
|
1428
|
-
t = Topic.new("title" => "")
|
1429
|
-
assert !t.valid?
|
1430
|
-
assert_equal "can't be blank", t.errors.on("title").first
|
1431
|
-
end
|
1432
|
-
|
1433
|
-
def test_invalid_should_be_the_opposite_of_valid
|
1434
|
-
Topic.validates_presence_of :title
|
1435
|
-
|
1436
|
-
t = Topic.new
|
1437
|
-
assert t.invalid?
|
1438
|
-
assert t.errors.invalid?(:title)
|
1439
|
-
|
1440
|
-
t.title = 'Things are going to change'
|
1441
|
-
assert !t.invalid?
|
1442
|
-
end
|
1443
|
-
|
1444
|
-
# previous implementation of validates_presence_of eval'd the
|
1445
|
-
# string with the wrong binding, this regression test is to
|
1446
|
-
# ensure that it works correctly
|
1447
|
-
def test_validation_with_if_as_string
|
1448
|
-
Topic.validates_presence_of(:title)
|
1449
|
-
Topic.validates_presence_of(:author_name, :if => "title.to_s.match('important')")
|
1450
|
-
|
1451
|
-
t = Topic.new
|
1452
|
-
assert !t.valid?, "A topic without a title should not be valid"
|
1453
|
-
assert !t.errors.invalid?("author_name"), "A topic without an 'important' title should not require an author"
|
1454
|
-
|
1455
|
-
t.title = "Just a title"
|
1456
|
-
assert t.valid?, "A topic with a basic title should be valid"
|
1457
|
-
|
1458
|
-
t.title = "A very important title"
|
1459
|
-
assert !t.valid?, "A topic with an important title, but without an author, should not be valid"
|
1460
|
-
assert t.errors.invalid?("author_name"), "A topic with an 'important' title should require an author"
|
1461
|
-
|
1462
|
-
t.author_name = "Hubert J. Farnsworth"
|
1463
|
-
assert t.valid?, "A topic with an important title and author should be valid"
|
1464
|
-
end
|
1465
|
-
end
|
1466
|
-
|
1467
|
-
|
1468
|
-
class ValidatesNumericalityTest < ActiveRecord::TestCase
|
1469
|
-
NIL = [nil]
|
1470
|
-
BLANK = ["", " ", " \t \r \n"]
|
1471
|
-
BIGDECIMAL_STRINGS = %w(12345678901234567890.1234567890) # 30 significent digits
|
1472
|
-
FLOAT_STRINGS = %w(0.0 +0.0 -0.0 10.0 10.5 -10.5 -0.0001 -090.1 90.1e1 -90.1e5 -90.1e-5 90e-5)
|
1473
|
-
INTEGER_STRINGS = %w(0 +0 -0 10 +10 -10 0090 -090)
|
1474
|
-
FLOATS = [0.0, 10.0, 10.5, -10.5, -0.0001] + FLOAT_STRINGS
|
1475
|
-
INTEGERS = [0, 10, -10] + INTEGER_STRINGS
|
1476
|
-
BIGDECIMAL = BIGDECIMAL_STRINGS.collect! { |bd| BigDecimal.new(bd) }
|
1477
|
-
JUNK = ["not a number", "42 not a number", "0xdeadbeef", "00-1", "--3", "+-3", "+3-1", "-+019.0", "12.12.13.12", "123\nnot a number"]
|
1478
|
-
INFINITY = [1.0/0.0]
|
1479
|
-
|
1480
|
-
repair_validations(Topic)
|
1481
|
-
|
1482
|
-
def test_default_validates_numericality_of
|
1483
|
-
Topic.validates_numericality_of :approved
|
1484
|
-
|
1485
|
-
invalid!(NIL + BLANK + JUNK)
|
1486
|
-
valid!(FLOATS + INTEGERS + BIGDECIMAL + INFINITY)
|
1487
|
-
end
|
1488
|
-
|
1489
|
-
def test_validates_numericality_of_with_nil_allowed
|
1490
|
-
Topic.validates_numericality_of :approved, :allow_nil => true
|
1491
|
-
|
1492
|
-
invalid!(JUNK)
|
1493
|
-
valid!(NIL + BLANK + FLOATS + INTEGERS + BIGDECIMAL + INFINITY)
|
1494
|
-
end
|
1495
|
-
|
1496
|
-
def test_validates_numericality_of_with_integer_only
|
1497
|
-
Topic.validates_numericality_of :approved, :only_integer => true
|
1498
|
-
|
1499
|
-
invalid!(NIL + BLANK + JUNK + FLOATS + BIGDECIMAL + INFINITY)
|
1500
|
-
valid!(INTEGERS)
|
1501
|
-
end
|
1502
|
-
|
1503
|
-
def test_validates_numericality_of_with_integer_only_and_nil_allowed
|
1504
|
-
Topic.validates_numericality_of :approved, :only_integer => true, :allow_nil => true
|
1505
|
-
|
1506
|
-
invalid!(JUNK + FLOATS + BIGDECIMAL + INFINITY)
|
1507
|
-
valid!(NIL + BLANK + INTEGERS)
|
1508
|
-
end
|
1509
|
-
|
1510
|
-
def test_validates_numericality_with_greater_than
|
1511
|
-
Topic.validates_numericality_of :approved, :greater_than => 10
|
1512
|
-
|
1513
|
-
invalid!([-10, 10], 'must be greater than 10')
|
1514
|
-
valid!([11])
|
1515
|
-
end
|
1516
|
-
|
1517
|
-
def test_validates_numericality_with_greater_than_or_equal
|
1518
|
-
Topic.validates_numericality_of :approved, :greater_than_or_equal_to => 10
|
1519
|
-
|
1520
|
-
invalid!([-9, 9], 'must be greater than or equal to 10')
|
1521
|
-
valid!([10])
|
1522
|
-
end
|
1523
|
-
|
1524
|
-
def test_validates_numericality_with_equal_to
|
1525
|
-
Topic.validates_numericality_of :approved, :equal_to => 10
|
1526
|
-
|
1527
|
-
invalid!([-10, 11] + INFINITY, 'must be equal to 10')
|
1528
|
-
valid!([10])
|
1529
|
-
end
|
1530
|
-
|
1531
|
-
def test_validates_numericality_with_less_than
|
1532
|
-
Topic.validates_numericality_of :approved, :less_than => 10
|
1533
|
-
|
1534
|
-
invalid!([10], 'must be less than 10')
|
1535
|
-
valid!([-9, 9])
|
1536
|
-
end
|
1537
|
-
|
1538
|
-
def test_validates_numericality_with_less_than_or_equal_to
|
1539
|
-
Topic.validates_numericality_of :approved, :less_than_or_equal_to => 10
|
1540
|
-
|
1541
|
-
invalid!([11], 'must be less than or equal to 10')
|
1542
|
-
valid!([-10, 10])
|
1543
|
-
end
|
1544
|
-
|
1545
|
-
def test_validates_numericality_with_odd
|
1546
|
-
Topic.validates_numericality_of :approved, :odd => true
|
1547
|
-
|
1548
|
-
invalid!([-2, 2], 'must be odd')
|
1549
|
-
valid!([-1, 1])
|
1550
|
-
end
|
1551
|
-
|
1552
|
-
def test_validates_numericality_with_even
|
1553
|
-
Topic.validates_numericality_of :approved, :even => true
|
1554
|
-
|
1555
|
-
invalid!([-1, 1], 'must be even')
|
1556
|
-
valid!([-2, 2])
|
1557
|
-
end
|
1558
|
-
|
1559
|
-
def test_validates_numericality_with_greater_than_less_than_and_even
|
1560
|
-
Topic.validates_numericality_of :approved, :greater_than => 1, :less_than => 4, :even => true
|
1561
|
-
|
1562
|
-
invalid!([1, 3, 4])
|
1563
|
-
valid!([2])
|
1564
|
-
end
|
1565
|
-
|
1566
|
-
def test_validates_numericality_with_numeric_message
|
1567
|
-
Topic.validates_numericality_of :approved, :less_than => 4, :message => "smaller than {{count}}"
|
1568
|
-
topic = Topic.new("title" => "numeric test", "approved" => 10)
|
1569
|
-
|
1570
|
-
assert !topic.valid?
|
1571
|
-
assert_equal "smaller than 4", topic.errors.on(:approved)
|
1572
|
-
|
1573
|
-
Topic.validates_numericality_of :approved, :greater_than => 4, :message => "greater than {{count}}"
|
1574
|
-
topic = Topic.new("title" => "numeric test", "approved" => 1)
|
1575
|
-
|
1576
|
-
assert !topic.valid?
|
1577
|
-
assert_equal "greater than 4", topic.errors.on(:approved)
|
1578
|
-
end
|
1579
|
-
|
1580
|
-
private
|
1581
|
-
def invalid!(values, error=nil)
|
1582
|
-
with_each_topic_approved_value(values) do |topic, value|
|
1583
|
-
assert !topic.valid?, "#{value.inspect} not rejected as a number"
|
1584
|
-
assert topic.errors.on(:approved)
|
1585
|
-
assert_equal error, topic.errors.on(:approved) if error
|
1586
|
-
end
|
1587
|
-
end
|
1588
|
-
|
1589
|
-
def valid!(values)
|
1590
|
-
with_each_topic_approved_value(values) do |topic, value|
|
1591
|
-
assert topic.valid?, "#{value.inspect} not accepted as a number"
|
1592
|
-
end
|
1593
|
-
end
|
1594
|
-
|
1595
|
-
def with_each_topic_approved_value(values)
|
1596
|
-
topic = Topic.new("title" => "numeric test", "content" => "whatever")
|
1597
|
-
values.each do |value|
|
1598
|
-
topic.approved = value
|
1599
|
-
yield topic, value
|
1600
|
-
end
|
1601
|
-
end
|
1602
|
-
end
|