wice_grid 3.6.2 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +41 -0
- data/.circleci/run-build-locally.sh +7 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- data/.gitignore +5 -2
- data/Appraisals +11 -0
- data/CHANGELOG.md +38 -1
- data/Gemfile.lock +299 -0
- data/README.md +77 -34
- data/config/locales/ja.yml +3 -3
- data/gemfiles/rails_5.0.gemfile +7 -0
- data/gemfiles/rails_5.0.gemfile.lock +291 -0
- data/gemfiles/rails_5.1.gemfile +7 -0
- data/gemfiles/rails_5.1.gemfile.lock +291 -0
- data/gemfiles/rails_5.2.gemfile +7 -0
- data/gemfiles/rails_5.2.gemfile.lock +299 -0
- data/lib/wice/columns.rb +13 -6
- data/lib/wice/columns/column_integer.rb +11 -1
- data/lib/wice/columns/column_rails_datetime_helper.rb +3 -2
- data/lib/wice/columns/column_range.rb +6 -4
- data/lib/wice/grid_renderer.rb +23 -7
- data/lib/wice/helpers/bs_calendar_helpers.rb +9 -1
- data/lib/wice/helpers/wice_grid_view_helpers.rb +6 -6
- data/lib/wice/wice_grid_controller.rb +7 -5
- data/lib/wice/wice_grid_core_ext.rb +5 -1
- data/lib/wice/wice_grid_misc.rb +1 -1
- data/lib/wice_grid.rb +86 -59
- data/spec/acceptance_helper.rb +58 -0
- data/spec/features/action_column_request_spec.rb +280 -0
- data/spec/features/adding_rows_request_spec.rb +21 -0
- data/spec/features/all_records_request_spec.rb +18 -0
- data/spec/features/auto_reloads2_request_spec.rb +349 -0
- data/spec/features/auto_reloads3_request_spec.rb +130 -0
- data/spec/features/auto_reloads_request_spec.rb +348 -0
- data/spec/features/basics1_request_spec.rb +11 -0
- data/spec/features/basics2_request_spec.rb +10 -0
- data/spec/features/basics3_request_spec.rb +29 -0
- data/spec/features/basics4_request_spec.rb +19 -0
- data/spec/features/basics5_request_spec.rb +13 -0
- data/spec/features/basics6_request_spec.rb +22 -0
- data/spec/features/blockless_column_definition_spec.rb +27 -0
- data/spec/features/buttons_request_spec.rb +172 -0
- data/spec/features/csv_and_detached_filters_spec.rb +10 -0
- data/spec/features/csv_export_request_spec.rb +13 -0
- data/spec/features/custom_filter_params_request_spec.rb +29 -0
- data/spec/features/custom_filters1_request_spec.rb +155 -0
- data/spec/features/custom_filters2_request_spec.rb +53 -0
- data/spec/features/custom_filters3_request_spec.rb +50 -0
- data/spec/features/custom_filters4_request_spec.rb +13 -0
- data/spec/features/custom_ordering_on_calculated_request_spec.rb +30 -0
- data/spec/features/custom_ordering_request_spec.rb +36 -0
- data/spec/features/custom_ordering_with_arel_request_spec.rb +36 -0
- data/spec/features/custom_ordering_with_proc_request_spec.rb +44 -0
- data/spec/features/custom_ordering_with_ruby_request_spec.rb +30 -0
- data/spec/features/dates_request_spec.rb +56 -0
- data/spec/features/detached_filters_spec.rb +10 -0
- data/spec/features/detached_filters_two_grids_spec.rb +127 -0
- data/spec/features/disable_all_filters_spec.rb +22 -0
- data/spec/features/hiding_checkboxes_in_action_column_request_spec.rb +294 -0
- data/spec/features/integration_with_application_view_request_spec.rb +43 -0
- data/spec/features/integration_with_forms_request_spec.rb +141 -0
- data/spec/features/joining_tables_spec.rb +40 -0
- data/spec/features/localization_request_spec.rb +24 -0
- data/spec/features/many_grids_on_page_request_spec.rb +104 -0
- data/spec/features/negation_request_spec.rb +25 -0
- data/spec/features/no_records_request_spec.rb +26 -0
- data/spec/features/numeric_filters_request_spec.rb +10 -0
- data/spec/features/resultset_processings2_request_spec.rb +27 -0
- data/spec/features/resultset_processings_request_spec.rb +30 -0
- data/spec/features/saved_queries_request_spec.rb +120 -0
- data/spec/features/shared.rb +1005 -0
- data/spec/features/shared_detached_filters.rb +158 -0
- data/spec/features/styling_spec.rb +15 -0
- data/spec/features/two_associations_spec.rb +48 -0
- data/spec/features/upper_pagination_panel_request_spec.rb +23 -0
- data/spec/features/when_filtered_spec.rb +209 -0
- data/spec/fixtures/.gitkeep +0 -0
- data/spec/fixtures/companies.yml +21 -0
- data/spec/fixtures/priorities.yml +31 -0
- data/spec/fixtures/project_roles.yml +25 -0
- data/spec/fixtures/projects.yml +22 -0
- data/spec/fixtures/statuses.yml +55 -0
- data/spec/fixtures/tasks.yml +751 -0
- data/spec/fixtures/tasks_users.yml +2089 -0
- data/spec/fixtures/users.yml +61 -0
- data/spec/fixtures/versions.yml +78 -0
- data/spec/models/company_spec.rb +6 -0
- data/spec/models/priority_spec.rb +6 -0
- data/spec/models/project_spec.rb +11 -0
- data/spec/models/status_spec.rb +6 -0
- data/spec/models/task_spec.rb +12 -0
- data/spec/models/user_project_participation_spec.rb +7 -0
- data/spec/models/user_spec.rb +12 -0
- data/spec/models/version_spec.rb +5 -0
- data/spec/rails_helper.rb +15 -0
- data/spec/spec_helper.rb +10 -9
- data/spec/support/test_app/Rakefile +3 -0
- data/spec/support/test_app/app/assets/javascripts/application.js +20 -0
- data/spec/support/test_app/app/assets/javascripts/common.js.coffee +6 -0
- data/spec/support/test_app/app/assets/javascripts/jquery.ui.datepicker.locales.js +56 -0
- data/spec/support/test_app/app/assets/stylesheets/adding_rows.scss +3 -0
- data/spec/support/test_app/app/assets/stylesheets/application.scss +46 -0
- data/spec/support/test_app/app/assets/stylesheets/csv_and_detached_filters.scss +3 -0
- data/spec/support/test_app/app/assets/stylesheets/many_grids_on_page.scss +3 -0
- data/spec/support/test_app/app/controllers/action_column_controller.rb +15 -0
- data/spec/support/test_app/app/controllers/adding_rows_controller.rb +14 -0
- data/spec/support/test_app/app/controllers/all_records_controller.rb +14 -0
- data/spec/support/test_app/app/controllers/application_controller.rb +99 -0
- data/spec/support/test_app/app/controllers/auto_reloads2_controller.rb +14 -0
- data/spec/support/test_app/app/controllers/auto_reloads3_controller.rb +20 -0
- data/spec/support/test_app/app/controllers/auto_reloads_controller.rb +14 -0
- data/spec/support/test_app/app/controllers/basics1_controller.rb +6 -0
- data/spec/support/test_app/app/controllers/basics2_controller.rb +6 -0
- data/spec/support/test_app/app/controllers/basics3_controller.rb +6 -0
- data/spec/support/test_app/app/controllers/basics4_controller.rb +6 -0
- data/spec/support/test_app/app/controllers/basics5_controller.rb +6 -0
- data/spec/support/test_app/app/controllers/basics6_controller.rb +11 -0
- data/spec/support/test_app/app/controllers/blockless_column_definition_controller.rb +6 -0
- data/spec/support/test_app/app/controllers/buttons_controller.rb +6 -0
- data/spec/support/test_app/app/controllers/csv_and_detached_filters_controller.rb +13 -0
- data/spec/support/test_app/app/controllers/csv_export_controller.rb +28 -0
- data/spec/support/test_app/app/controllers/custom_filter_params_controller.rb +6 -0
- data/spec/support/test_app/app/controllers/custom_filters1_controller.rb +9 -0
- data/spec/support/test_app/app/controllers/custom_filters2_controller.rb +14 -0
- data/spec/support/test_app/app/controllers/custom_filters3_controller.rb +12 -0
- data/spec/support/test_app/app/controllers/custom_filters4_controller.rb +12 -0
- data/spec/support/test_app/app/controllers/custom_ordering_controller.rb +18 -0
- data/spec/support/test_app/app/controllers/custom_ordering_on_calculated_controller.rb +6 -0
- data/spec/support/test_app/app/controllers/custom_ordering_with_arel_controller.rb +18 -0
- data/spec/support/test_app/app/controllers/custom_ordering_with_proc_controller.rb +11 -0
- data/spec/support/test_app/app/controllers/custom_ordering_with_ruby_controller.rb +6 -0
- data/spec/support/test_app/app/controllers/dates_controller.rb +8 -0
- data/spec/support/test_app/app/controllers/detached_filters_controller.rb +6 -0
- data/spec/support/test_app/app/controllers/detached_filters_two_grids_controller.rb +7 -0
- data/spec/support/test_app/app/controllers/disable_all_filters_controller.rb +6 -0
- data/spec/support/test_app/app/controllers/hiding_checkboxes_in_action_column_controller.rb +13 -0
- data/spec/support/test_app/app/controllers/home_controller.rb +3 -0
- data/spec/support/test_app/app/controllers/integration_with_application_view_controller.rb +16 -0
- data/spec/support/test_app/app/controllers/integration_with_forms_controller.rb +11 -0
- data/spec/support/test_app/app/controllers/joining_tables_controller.rb +11 -0
- data/spec/support/test_app/app/controllers/localization_controller.rb +26 -0
- data/spec/support/test_app/app/controllers/many_grids_on_page_controller.rb +7 -0
- data/spec/support/test_app/app/controllers/negation_controller.rb +14 -0
- data/spec/support/test_app/app/controllers/no_records_controller.rb +8 -0
- data/spec/support/test_app/app/controllers/null_values_controller.rb +10 -0
- data/spec/support/test_app/app/controllers/numeric_filters_controller.rb +6 -0
- data/spec/support/test_app/app/controllers/queries_controller.rb +4 -0
- data/spec/support/test_app/app/controllers/resultset_processings2_controller.rb +29 -0
- data/spec/support/test_app/app/controllers/resultset_processings_controller.rb +30 -0
- data/spec/support/test_app/app/controllers/saved_queries_controller.rb +14 -0
- data/spec/support/test_app/app/controllers/styling_controller.rb +7 -0
- data/spec/support/test_app/app/controllers/tasks_controller.rb +14 -0
- data/spec/support/test_app/app/controllers/two_associations_controller.rb +6 -0
- data/spec/support/test_app/app/controllers/upper_pagination_panel_controller.rb +6 -0
- data/spec/support/test_app/app/controllers/when_filtered_controller.rb +6 -0
- data/spec/support/test_app/app/helpers/application_helper.rb +82 -0
- data/spec/support/test_app/app/mailers/.gitkeep +0 -0
- data/spec/support/test_app/app/models/.gitkeep +0 -0
- data/spec/support/test_app/app/models/company.rb +5 -0
- data/spec/support/test_app/app/models/populate.rb +84 -0
- data/spec/support/test_app/app/models/priority.rb +10 -0
- data/spec/support/test_app/app/models/project.rb +14 -0
- data/spec/support/test_app/app/models/project_role.rb +3 -0
- data/spec/support/test_app/app/models/status.rb +10 -0
- data/spec/support/test_app/app/models/task.rb +11 -0
- data/spec/support/test_app/app/models/to_dropdown_mixin.rb +16 -0
- data/spec/support/test_app/app/models/user.rb +8 -0
- data/spec/support/test_app/app/models/user_project_participation.rb +6 -0
- data/spec/support/test_app/app/models/version.rb +6 -0
- data/spec/support/test_app/app/views/action_column/_grid.html.erb +35 -0
- data/spec/support/test_app/app/views/action_column/index.html.haml +45 -0
- data/spec/support/test_app/app/views/adding_rows/_grid.html.erb +58 -0
- data/spec/support/test_app/app/views/adding_rows/index.html.haml +37 -0
- data/spec/support/test_app/app/views/all_records/_grid.html.erb +30 -0
- data/spec/support/test_app/app/views/all_records/index.html.haml +12 -0
- data/spec/support/test_app/app/views/auto_reloads/_grid.html.erb +32 -0
- data/spec/support/test_app/app/views/auto_reloads/index.html.haml +15 -0
- data/spec/support/test_app/app/views/auto_reloads2/_grid.html.erb +32 -0
- data/spec/support/test_app/app/views/auto_reloads2/index.html.haml +65 -0
- data/spec/support/test_app/app/views/auto_reloads3/_grid.html.erb +25 -0
- data/spec/support/test_app/app/views/auto_reloads3/index.html.haml +78 -0
- data/spec/support/test_app/app/views/basics1/_grid.html.erb +26 -0
- data/spec/support/test_app/app/views/basics1/index.html.haml +13 -0
- data/spec/support/test_app/app/views/basics2/_grid.html.erb +27 -0
- data/spec/support/test_app/app/views/basics2/index.html.haml +12 -0
- data/spec/support/test_app/app/views/basics3/_grid.html.erb +28 -0
- data/spec/support/test_app/app/views/basics3/index.html.haml +13 -0
- data/spec/support/test_app/app/views/basics4/_grid.html.erb +21 -0
- data/spec/support/test_app/app/views/basics4/index.html.haml +12 -0
- data/spec/support/test_app/app/views/basics5/_grid.html.erb +19 -0
- data/spec/support/test_app/app/views/basics5/index.html.haml +12 -0
- data/spec/support/test_app/app/views/basics6/_grid.html.erb +19 -0
- data/spec/support/test_app/app/views/basics6/index.html.haml +23 -0
- data/spec/support/test_app/app/views/blockless_column_definition/_grid.html.erb +19 -0
- data/spec/support/test_app/app/views/blockless_column_definition/index.html.haml +15 -0
- data/spec/support/test_app/app/views/buttons/_grid.html.erb +20 -0
- data/spec/support/test_app/app/views/buttons/index.html.haml +30 -0
- data/spec/support/test_app/app/views/csv_and_detached_filters/_grid.html.erb +23 -0
- data/spec/support/test_app/app/views/csv_and_detached_filters/index.html.haml +58 -0
- data/spec/support/test_app/app/views/csv_export/_projects_grid.html.erb +17 -0
- data/spec/support/test_app/app/views/csv_export/_tasks_grid.html.erb +43 -0
- data/spec/support/test_app/app/views/csv_export/index.html.haml +90 -0
- data/spec/support/test_app/app/views/custom_filter_params/_grid.html.erb +12 -0
- data/spec/support/test_app/app/views/custom_filter_params/index.html.haml +12 -0
- data/spec/support/test_app/app/views/custom_filters1/_g1.html.erb +8 -0
- data/spec/support/test_app/app/views/custom_filters1/_g2.html.erb +9 -0
- data/spec/support/test_app/app/views/custom_filters1/_g3.html.erb +9 -0
- data/spec/support/test_app/app/views/custom_filters1/_g4.html.erb +8 -0
- data/spec/support/test_app/app/views/custom_filters1/index.html.haml +30 -0
- data/spec/support/test_app/app/views/custom_filters2/_grid.html.erb +30 -0
- data/spec/support/test_app/app/views/custom_filters2/index.html.haml +41 -0
- data/spec/support/test_app/app/views/custom_filters3/_grid.html.erb +18 -0
- data/spec/support/test_app/app/views/custom_filters3/index.html.haml +16 -0
- data/spec/support/test_app/app/views/custom_filters4/_grid.html.erb +20 -0
- data/spec/support/test_app/app/views/custom_filters4/index.html.haml +12 -0
- data/spec/support/test_app/app/views/custom_ordering/_grid.html.erb +10 -0
- data/spec/support/test_app/app/views/custom_ordering/index.html.haml +24 -0
- data/spec/support/test_app/app/views/custom_ordering_on_calculated/_grid.html.erb +14 -0
- data/spec/support/test_app/app/views/custom_ordering_on_calculated/index.html.haml +23 -0
- data/spec/support/test_app/app/views/custom_ordering_with_arel/_grid.html.erb +10 -0
- data/spec/support/test_app/app/views/custom_ordering_with_arel/index.html.haml +24 -0
- data/spec/support/test_app/app/views/custom_ordering_with_proc/_grid.html.erb +10 -0
- data/spec/support/test_app/app/views/custom_ordering_with_proc/index.html.haml +21 -0
- data/spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb +10 -0
- data/spec/support/test_app/app/views/custom_ordering_with_ruby/index.html.haml +23 -0
- data/spec/support/test_app/app/views/dates/_grid.html.erb +25 -0
- data/spec/support/test_app/app/views/dates/index.html.haml +52 -0
- data/spec/support/test_app/app/views/detached_filters/_grid.html.erb +23 -0
- data/spec/support/test_app/app/views/detached_filters/index.html.haml +79 -0
- data/spec/support/test_app/app/views/detached_filters_two_grids/_grid.html.erb +23 -0
- data/spec/support/test_app/app/views/detached_filters_two_grids/index.html.haml +85 -0
- data/spec/support/test_app/app/views/disable_all_filters/_grid.html.erb +21 -0
- data/spec/support/test_app/app/views/disable_all_filters/index.html.haml +14 -0
- data/spec/support/test_app/app/views/hiding_checkboxes_in_action_column/_grid.html.erb +34 -0
- data/spec/support/test_app/app/views/hiding_checkboxes_in_action_column/index.html.haml +32 -0
- data/spec/support/test_app/app/views/integration_with_application_view/_grid.html.erb +27 -0
- data/spec/support/test_app/app/views/integration_with_application_view/index.html.haml +33 -0
- data/spec/support/test_app/app/views/integration_with_forms/_grid.html.erb +23 -0
- data/spec/support/test_app/app/views/integration_with_forms/index.html.haml +18 -0
- data/spec/support/test_app/app/views/joining_tables/_grid.html.erb +23 -0
- data/spec/support/test_app/app/views/joining_tables/index.html.haml +26 -0
- data/spec/support/test_app/app/views/layouts/application.html.haml +61 -0
- data/spec/support/test_app/app/views/localization/_grid.html.erb +36 -0
- data/spec/support/test_app/app/views/localization/index.html.haml +20 -0
- data/spec/support/test_app/app/views/many_grids_on_page/_tasks_grid1.html.erb +12 -0
- data/spec/support/test_app/app/views/many_grids_on_page/_tasks_grid2.html.erb +12 -0
- data/spec/support/test_app/app/views/many_grids_on_page/index.html.haml +26 -0
- data/spec/support/test_app/app/views/negation/_grid.html.erb +30 -0
- data/spec/support/test_app/app/views/negation/index.html.haml +15 -0
- data/spec/support/test_app/app/views/no_records/_empty_grid.html.haml +1 -0
- data/spec/support/test_app/app/views/no_records/_grid1.html.erb +11 -0
- data/spec/support/test_app/app/views/no_records/_grid2.html.erb +9 -0
- data/spec/support/test_app/app/views/no_records/_grid3.html.erb +9 -0
- data/spec/support/test_app/app/views/no_records/index.html.haml +24 -0
- data/spec/support/test_app/app/views/null_values/_grid.html.erb +17 -0
- data/spec/support/test_app/app/views/null_values/index.html.haml +21 -0
- data/spec/support/test_app/app/views/numeric_filters/_grid.html.erb +19 -0
- data/spec/support/test_app/app/views/numeric_filters/index.html.haml +12 -0
- data/spec/support/test_app/app/views/resultset_processings/_grid.html.erb +27 -0
- data/spec/support/test_app/app/views/resultset_processings/index.html.haml +50 -0
- data/spec/support/test_app/app/views/resultset_processings2/_grid.html.erb +27 -0
- data/spec/support/test_app/app/views/resultset_processings2/index.html.haml +48 -0
- data/spec/support/test_app/app/views/saved_queries/_grid.html.erb +30 -0
- data/spec/support/test_app/app/views/saved_queries/index.html.haml +15 -0
- data/spec/support/test_app/app/views/styling/_grid1.html.erb +12 -0
- data/spec/support/test_app/app/views/styling/_grid2.html.erb +31 -0
- data/spec/support/test_app/app/views/styling/index.html.haml +65 -0
- data/spec/support/test_app/app/views/tasks/_grid.html.erb +19 -0
- data/spec/support/test_app/app/views/tasks/index.html.haml +1 -0
- data/spec/support/test_app/app/views/two_associations/_grid.html.erb +13 -0
- data/spec/support/test_app/app/views/two_associations/index.html.haml +13 -0
- data/spec/support/test_app/app/views/upper_pagination_panel/_grid.html.erb +27 -0
- data/spec/support/test_app/app/views/upper_pagination_panel/index.html.haml +14 -0
- data/spec/support/test_app/app/views/when_filtered/_grid.html.erb +19 -0
- data/spec/support/test_app/app/views/when_filtered/index.html.haml +15 -0
- data/spec/support/test_app/bin/rails +4 -0
- data/spec/support/test_app/bin/rake +4 -0
- data/spec/support/test_app/config.ru +5 -0
- data/spec/support/test_app/config/application.rb +70 -0
- data/spec/support/test_app/config/boot.rb +7 -0
- data/spec/support/test_app/config/database.travis.yml +27 -0
- data/spec/support/test_app/config/database.yml +16 -0
- data/spec/support/test_app/config/database.yml.mysql +19 -0
- data/spec/support/test_app/config/database.yml.postgresql +18 -0
- data/spec/support/test_app/config/environment.rb +6 -0
- data/spec/support/test_app/config/environments/development.rb +34 -0
- data/spec/support/test_app/config/environments/production.rb +66 -0
- data/spec/support/test_app/config/environments/test.rb +34 -0
- data/spec/support/test_app/config/initializers/backtrace_silencers.rb +8 -0
- data/spec/support/test_app/config/initializers/inflections.rb +16 -0
- data/spec/support/test_app/config/initializers/mime_types.rb +6 -0
- data/spec/support/test_app/config/initializers/secret_token.rb +12 -0
- data/spec/support/test_app/config/initializers/session_store.rb +9 -0
- data/spec/support/test_app/config/initializers/wice_grid_config.rb +163 -0
- data/spec/support/test_app/config/initializers/wrap_parameters.rb +15 -0
- data/spec/support/test_app/config/locales/en.yml +5 -0
- data/spec/support/test_app/config/locales/wice_grid.yml +550 -0
- data/spec/support/test_app/config/puma.rb +15 -0
- data/spec/support/test_app/config/routes.rb +125 -0
- data/spec/support/test_app/db/migrate/20120224193505_create_tasks.rb +27 -0
- data/spec/support/test_app/db/migrate/20120224193517_create_users.rb +12 -0
- data/spec/support/test_app/db/migrate/20120224193522_create_projects.rb +14 -0
- data/spec/support/test_app/db/migrate/20120224193529_create_priorities.rb +13 -0
- data/spec/support/test_app/db/migrate/20120224193537_create_statuses.rb +13 -0
- data/spec/support/test_app/db/migrate/20120224193543_create_versions.rb +15 -0
- data/spec/support/test_app/db/migrate/20120224193550_create_project_roles.rb +12 -0
- data/spec/support/test_app/db/migrate/20120224193610_create_companies.rb +12 -0
- data/spec/support/test_app/db/migrate/20120224195351_create_user_project_participations.rb +16 -0
- data/spec/support/test_app/db/migrate/20120224195521_add_tasks_users.rb +11 -0
- data/spec/support/test_app/db/migrate/20120610091944_create_wice_grid_serialized_queries.rb +14 -0
- data/spec/support/test_app/db/schema.rb +139 -0
- data/spec/support/test_app/db/seeds.rb +10 -0
- data/spec/support/test_app/lib/ar_fixtures.rb +100 -0
- data/spec/support/test_app/lib/assets/.gitkeep +0 -0
- data/spec/support/test_app/lib/tasks/.gitkeep +0 -0
- data/spec/support/test_app/lib/tasks/ar_fixtures.rake +45 -0
- data/spec/support/test_app/public/404.html +26 -0
- data/spec/support/test_app/public/422.html +26 -0
- data/spec/support/test_app/public/500.html +25 -0
- data/spec/support/test_app/public/favicon.ico +0 -0
- data/spec/support/test_app/public/robots.txt +5 -0
- data/spec/wice/grid_output_buffer_spec.rb +2 -2
- data/spec/wice/table_column_matrix_spec.rb +1 -1
- data/vendor/assets/javascripts/wice_grid_init.js.coffee +16 -4
- data/vendor/assets/javascripts/wice_grid_saved_queries_init.js.coffee +1 -0
- data/wice_grid.gemspec +29 -9
- metadata +606 -62
- data/release_notes/RELEASE_NOTES_3.2.pre1.rdoc +0 -81
- data/release_notes/RELEASE_NOTES_3.2.pre2.rdoc +0 -6
- data/release_notes/RELEASE_NOTES_3.3.0.rdoc +0 -21
- data/spec/support/wice_grid_test_config.rb +0 -173
- data/test/readme.txt +0 -1
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
user_00013:
|
3
|
+
id: 13
|
4
|
+
name: Wikus van de Merwe
|
5
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
6
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
7
|
+
user_00014:
|
8
|
+
id: 14
|
9
|
+
name: Grey Bradnam
|
10
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
11
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
12
|
+
user_00015:
|
13
|
+
id: 15
|
14
|
+
name: Christopher Johnson
|
15
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
16
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
17
|
+
user_00016:
|
18
|
+
id: 16
|
19
|
+
name: Piet Smit
|
20
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
21
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
22
|
+
user_00017:
|
23
|
+
id: 17
|
24
|
+
name: Fundiswa Mhlanga
|
25
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
26
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
27
|
+
user_00018:
|
28
|
+
id: 18
|
29
|
+
name: Tania van de Merwe
|
30
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
31
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
32
|
+
user_00019:
|
33
|
+
id: 19
|
34
|
+
name: Obesandjo
|
35
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
36
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
37
|
+
user_00020:
|
38
|
+
id: 20
|
39
|
+
name: Dirk Michaels
|
40
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
41
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
42
|
+
user_00021:
|
43
|
+
id: 21
|
44
|
+
name: Ross Pienaar
|
45
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
46
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
47
|
+
user_00022:
|
48
|
+
id: 22
|
49
|
+
name: Koobus Venter
|
50
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
51
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
52
|
+
user_00023:
|
53
|
+
id: 23
|
54
|
+
name: Dirk Michaels
|
55
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
56
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
57
|
+
user_00024:
|
58
|
+
id: 24
|
59
|
+
name: Sarah Livingstone
|
60
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
61
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
@@ -0,0 +1,78 @@
|
|
1
|
+
---
|
2
|
+
version_00012:
|
3
|
+
id: 12
|
4
|
+
name: '1.0'
|
5
|
+
project_id: 4
|
6
|
+
status: development
|
7
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
8
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
9
|
+
version_00013:
|
10
|
+
id: 13
|
11
|
+
name: '1.1'
|
12
|
+
project_id: 4
|
13
|
+
status: development
|
14
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
15
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
16
|
+
version_00014:
|
17
|
+
id: 14
|
18
|
+
name: '1.2'
|
19
|
+
project_id: 4
|
20
|
+
status: production
|
21
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
22
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
23
|
+
version_00015:
|
24
|
+
id: 15
|
25
|
+
name: '2.0'
|
26
|
+
project_id: 4
|
27
|
+
status: testing
|
28
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
29
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
30
|
+
version_00016:
|
31
|
+
id: 16
|
32
|
+
name: '3.0'
|
33
|
+
project_id: 4
|
34
|
+
status: production
|
35
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
36
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
37
|
+
version_00017:
|
38
|
+
id: 17
|
39
|
+
name: '1.0'
|
40
|
+
project_id: 5
|
41
|
+
status: development
|
42
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
43
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
44
|
+
version_00018:
|
45
|
+
id: 18
|
46
|
+
name: '88.1'
|
47
|
+
project_id: 5
|
48
|
+
status: production
|
49
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
50
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
51
|
+
version_00019:
|
52
|
+
id: 19
|
53
|
+
name: '99.0'
|
54
|
+
project_id: 5
|
55
|
+
status: production
|
56
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
57
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
58
|
+
version_00020:
|
59
|
+
id: 20
|
60
|
+
name: '6.0'
|
61
|
+
project_id: 6
|
62
|
+
status: testing
|
63
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
64
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
65
|
+
version_00021:
|
66
|
+
id: 21
|
67
|
+
name: '7.1'
|
68
|
+
project_id: 6
|
69
|
+
status: production
|
70
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
71
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
72
|
+
version_00022:
|
73
|
+
id: 22
|
74
|
+
name: '8.0'
|
75
|
+
project_id: 6
|
76
|
+
status: testing
|
77
|
+
created_at: 2012-02-26 22:11:12.000000000 Z
|
78
|
+
updated_at: 2012-02-26 22:11:12.000000000 Z
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
describe Project do
|
4
|
+
it {is_expected.to have_many(:tasks)}
|
5
|
+
it { is_expected.to have_many(:tasks)}
|
6
|
+
it { is_expected.to have_many(:user_project_participations)}
|
7
|
+
it { is_expected.to have_many(:users)}
|
8
|
+
it { is_expected.to have_many(:versions)}
|
9
|
+
it { is_expected.to belong_to(:customer)}
|
10
|
+
it { is_expected.to belong_to(:supplier)}
|
11
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
describe Task do
|
4
|
+
it { is_expected.to belong_to(:created_by)}
|
5
|
+
it { is_expected.to belong_to(:project)}
|
6
|
+
it { is_expected.to belong_to(:priority)}
|
7
|
+
it { is_expected.to belong_to(:status)}
|
8
|
+
it { is_expected.to belong_to(:relevant_version)}
|
9
|
+
it { is_expected.to belong_to(:expected_version)}
|
10
|
+
|
11
|
+
it { is_expected.to have_and_belong_to_many(:assigned_users)}
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
describe User do
|
4
|
+
it { is_expected.to have_many(:created_tasks)}
|
5
|
+
|
6
|
+
|
7
|
+
it { is_expected.to have_and_belong_to_many(:assigned_tasks)}
|
8
|
+
|
9
|
+
|
10
|
+
it { is_expected.to have_many(:user_project_participations)}
|
11
|
+
it { is_expected.to have_many(:projects)}
|
12
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails/all'
|
2
|
+
require 'rspec/rails'
|
3
|
+
require 'shoulda/matchers'
|
4
|
+
require 'support/test_app/config/environment'
|
5
|
+
|
6
|
+
ActiveRecord::Migration.maintain_test_schema!
|
7
|
+
|
8
|
+
# set up db
|
9
|
+
# be sure to update the schema if required by doing
|
10
|
+
# - cd spec/support/rails_app
|
11
|
+
# - rake db:migrate
|
12
|
+
ActiveRecord::Schema.verbose = false
|
13
|
+
load 'support/test_app/db/schema.rb' # db agnostic
|
14
|
+
|
15
|
+
require 'spec_helper'
|
data/spec/spec_helper.rb
CHANGED
@@ -18,16 +18,18 @@
|
|
18
18
|
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
19
19
|
|
20
20
|
require 'rspec'
|
21
|
-
require 'coveralls'
|
22
|
-
require 'codeclimate-test-reporter'
|
23
21
|
require 'simplecov'
|
22
|
+
require 'byebug'
|
24
23
|
|
25
|
-
SimpleCov.
|
26
|
-
|
27
|
-
SimpleCov::Formatter::HTMLFormatter
|
28
|
-
|
29
|
-
|
30
|
-
|
24
|
+
SimpleCov.start do
|
25
|
+
formatter = SimpleCov::Formatter::MultiFormatter.new([
|
26
|
+
SimpleCov::Formatter::HTMLFormatter
|
27
|
+
])
|
28
|
+
|
29
|
+
add_filter "/spec/"
|
30
|
+
|
31
|
+
minimum_coverage 87.53
|
32
|
+
end
|
31
33
|
|
32
34
|
begin
|
33
35
|
require 'support/active_record'
|
@@ -42,7 +44,6 @@ end
|
|
42
44
|
|
43
45
|
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib'))
|
44
46
|
require 'wice_grid'
|
45
|
-
require 'support/wice_grid_test_config'
|
46
47
|
|
47
48
|
ActiveRecord::ConnectionAdapters::Column.send(:include, ::Wice::WiceGridExtentionToActiveRecordColumn)
|
48
49
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// the compiled file.
|
9
|
+
//
|
10
|
+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
11
|
+
// GO AFTER THE REQUIRES BELOW.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require jquery_ujs
|
15
|
+
//= require jquery-ui
|
16
|
+
//= require jquery.ui.datepicker.locales
|
17
|
+
//= require bootstrap
|
18
|
+
//= require wice_grid
|
19
|
+
//= require turbolinks
|
20
|
+
//= require_tree .
|
@@ -0,0 +1,56 @@
|
|
1
|
+
$.datepicker.regional['en'] = {
|
2
|
+
closeText: 'Done',
|
3
|
+
prevText: 'Prev',
|
4
|
+
nextText: 'Next',
|
5
|
+
currentText: 'Today',
|
6
|
+
monthNames: ['January','February','March','April','May','June',
|
7
|
+
'July','August','September','October','November','December'],
|
8
|
+
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
|
9
|
+
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
10
|
+
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
11
|
+
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
12
|
+
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
|
13
|
+
weekHeader: 'Wk',
|
14
|
+
dateFormat: 'dd/mm/yy',
|
15
|
+
firstDay: 1,
|
16
|
+
isRTL: false,
|
17
|
+
showMonthAfterYear: false,
|
18
|
+
yearSuffix: ''};
|
19
|
+
|
20
|
+
$.datepicker.regional['fr'] = {
|
21
|
+
closeText: 'Fermer',
|
22
|
+
prevText: '<Préc',
|
23
|
+
nextText: 'Suiv>',
|
24
|
+
currentText: 'Courant',
|
25
|
+
monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin',
|
26
|
+
'Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
|
27
|
+
monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun',
|
28
|
+
'Jul','Aoû','Sep','Oct','Nov','Déc'],
|
29
|
+
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
|
30
|
+
dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'],
|
31
|
+
dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'],
|
32
|
+
weekHeader: 'Sm',
|
33
|
+
dateFormat: 'dd/mm/yy',
|
34
|
+
firstDay: 1,
|
35
|
+
isRTL: false,
|
36
|
+
showMonthAfterYear: false,
|
37
|
+
yearSuffix: ''};
|
38
|
+
|
39
|
+
$.datepicker.regional.nl = {
|
40
|
+
closeText: 'Sluiten',
|
41
|
+
prevText: '←',
|
42
|
+
nextText: '→',
|
43
|
+
currentText: 'Vandaag',
|
44
|
+
monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni',
|
45
|
+
'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
|
46
|
+
monthNamesShort: ['jan', 'feb', 'maa', 'apr', 'mei', 'jun',
|
47
|
+
'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
|
48
|
+
dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
|
49
|
+
dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'],
|
50
|
+
dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
|
51
|
+
weekHeader: 'Wk',
|
52
|
+
dateFormat: 'dd/mm/yy',
|
53
|
+
firstDay: 1,
|
54
|
+
isRTL: false,
|
55
|
+
showMonthAfterYear: false,
|
56
|
+
yearSuffix: ''};
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*= require_self
|
12
|
+
*= require_tree .
|
13
|
+
*= require jquery-ui/humanity
|
14
|
+
*/
|
15
|
+
|
16
|
+
@import "bootstrap";
|
17
|
+
@import "wice_grid";
|
18
|
+
|
19
|
+
@import "font-awesome-sprockets";
|
20
|
+
@import "font-awesome";
|
21
|
+
|
22
|
+
|
23
|
+
body {padding-top: 20px;}
|
24
|
+
header{padding-bottom: 20px;}
|
25
|
+
header h1{font-size: 48px;}
|
26
|
+
|
27
|
+
.well h2 {margin-bottom: 20px;}
|
28
|
+
|
29
|
+
.external-buttons {margin-bottom: 20px;}
|
30
|
+
|
31
|
+
input.range-start, input.range-end{width: 100px;}
|
32
|
+
|
33
|
+
header h1 {float: left; margin-left: 20px;}
|
34
|
+
header .example-navigator {float: right; margin-right: 120px}
|
35
|
+
li.next {margin-left: 10px;}
|
36
|
+
.clear {clear:both;}
|
37
|
+
|
38
|
+
.wice-grid.table-striped tbody tr:nth-child(odd) td.active-filter {
|
39
|
+
background-color: #f9f9e9;
|
40
|
+
}
|
41
|
+
|
42
|
+
.wice-grid.table-striped tbody tr td.active-filter {
|
43
|
+
background-color: #f9f9e9;
|
44
|
+
}
|
45
|
+
|
46
|
+
footer .sources {float: right;}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
class ActionColumnController < ::ApplicationController
|
3
|
+
def index
|
4
|
+
|
5
|
+
@tasks_grid = initialize_grid(Task,
|
6
|
+
include: [:priority, :status, :project, :assigned_users],
|
7
|
+
name: 'g',
|
8
|
+
order: 'id'
|
9
|
+
)
|
10
|
+
|
11
|
+
if params[:g] && params[:g][:selected]
|
12
|
+
@selected = params[:g][:selected]
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
class AddingRowsController < ApplicationController
|
3
|
+
def index
|
4
|
+
@tasks_grid = initialize_grid(Task,
|
5
|
+
include: [:priority, :status, :project, :assigned_users],
|
6
|
+
order: 'statuses.name',
|
7
|
+
custom_order: {
|
8
|
+
'tasks.priority_id' => 'priorities.name',
|
9
|
+
'tasks.status_id' => 'statuses.position',
|
10
|
+
'tasks.project_id' => 'projects.name'
|
11
|
+
}
|
12
|
+
)
|
13
|
+
end
|
14
|
+
end
|