decidim 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.codeclimate.yml +1 -0
- data/.rubocop.yml +12 -7
- data/Gemfile +0 -4
- data/Gemfile.lock +74 -71
- data/README.md +1 -0
- data/Rakefile +12 -1
- data/codecov.yml +3 -1
- data/decidim-admin/Rakefile +1 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/application.scss.erb +6 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/extra/_action-icon.scss +1 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/extra/_dropdown_inverted.scss +38 -0
- data/decidim-admin/app/commands/decidim/admin/activate_participatory_process_step.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/copy_participatory_process.rb +113 -0
- data/decidim-admin/app/commands/decidim/admin/create_attachment.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/create_category.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/create_feature.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/create_newsletter.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/create_participatory_process.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/create_participatory_process_admin.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/create_participatory_process_group.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/create_participatory_process_step.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/create_scope.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/create_static_page.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/deactivate_participatory_process_step.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/deliver_newsletter.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/destroy_category.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/destroy_feature.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/destroy_participatory_process_step.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/hide_resource.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/publish_participatory_process.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/reject_user_group.rb +33 -0
- data/decidim-admin/app/commands/decidim/admin/reorder_participatory_process_steps.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/unpublish_participatory_process.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/unreport_resource.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/update_attachment.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/update_category.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/update_feature.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/update_feature_permissions.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/update_newsletter.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/update_organization.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/update_participatory_process.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/update_participatory_process_admin.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/update_participatory_process_group.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/update_participatory_process_step.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/update_scope.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/update_static_page.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/update_user_groups.rb +44 -0
- data/decidim-admin/app/commands/decidim/admin/verify_user_group.rb +32 -0
- data/decidim-admin/app/constraints/decidim/admin/organization_dashboard_constraint.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/application_controller.rb +2 -2
- data/decidim-admin/app/controllers/decidim/admin/categories_controller.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/concerns/has_attachments.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/concerns/participatory_process_admin.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/dashboard_controller.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/exports_controller.rb +39 -0
- data/decidim-admin/app/controllers/decidim/admin/feature_permissions_controller.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/features/base_controller.rb +3 -0
- data/decidim-admin/app/controllers/decidim/admin/features_controller.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/moderations_controller.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/organization_controller.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_attachments_controller.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_copies_controller.rb +47 -0
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_groups_controller.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_publications_controller.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_step_activations_controller.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_step_ordering_controller.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_steps_controller.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_user_roles_controller.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/participatory_processes_controller.rb +5 -0
- data/decidim-admin/app/controllers/decidim/admin/scopes_controller.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/static_pages_controller.rb +1 -0
- data/decidim-admin/app/controllers/decidim/admin/user_groups_controller.rb +32 -4
- data/decidim-admin/app/controllers/decidim/admin/users_controller.rb +1 -0
- data/decidim-admin/app/forms/decidim/admin/attachment_form.rb +1 -0
- data/decidim-admin/app/forms/decidim/admin/category_form.rb +1 -0
- data/decidim-admin/app/forms/decidim/admin/feature_form.rb +1 -0
- data/decidim-admin/app/forms/decidim/admin/newsletter_form.rb +1 -0
- data/decidim-admin/app/forms/decidim/admin/organization_form.rb +1 -0
- data/decidim-admin/app/forms/decidim/admin/participatory_process_copy_form.rb +34 -0
- data/decidim-admin/app/forms/decidim/admin/participatory_process_form.rb +1 -0
- data/decidim-admin/app/forms/decidim/admin/participatory_process_group_form.rb +1 -0
- data/decidim-admin/app/forms/decidim/admin/participatory_process_step_form.rb +1 -0
- data/decidim-admin/app/forms/decidim/admin/participatory_process_user_role_form.rb +1 -0
- data/decidim-admin/app/forms/decidim/admin/permission_form.rb +1 -0
- data/decidim-admin/app/forms/decidim/admin/permissions_form.rb +1 -0
- data/decidim-admin/app/forms/decidim/admin/scope_form.rb +1 -0
- data/decidim-admin/app/forms/decidim/admin/static_page_form.rb +1 -0
- data/decidim-admin/app/helpers/decidim/admin/application_helper.rb +1 -8
- data/decidim-admin/app/helpers/decidim/admin/attributes_display_helper.rb +1 -0
- data/decidim-admin/app/helpers/decidim/admin/exports_helper.rb +18 -0
- data/decidim-admin/app/helpers/decidim/admin/feature_settings_helper.rb +1 -0
- data/decidim-admin/app/helpers/decidim/admin/icon_link_helper.rb +1 -0
- data/decidim-admin/app/helpers/decidim/admin/menu_helper.rb +18 -0
- data/decidim-admin/app/helpers/decidim/admin/process_groups_for_select_helper.rb +1 -0
- data/decidim-admin/app/helpers/decidim/admin/processes_for_select_helper.rb +1 -0
- data/decidim-admin/app/jobs/decidim/admin/application_job.rb +1 -0
- data/decidim-admin/app/jobs/decidim/admin/newsletter_delivery_job.rb +1 -0
- data/decidim-admin/app/jobs/decidim/admin/newsletter_job.rb +1 -0
- data/decidim-admin/app/mailers/decidim/admin/application_mailer.rb +1 -0
- data/decidim-admin/app/models/decidim/admin/abilities/admin_user.rb +2 -1
- data/decidim-admin/app/models/decidim/admin/abilities/base.rb +1 -0
- data/decidim-admin/app/models/decidim/admin/abilities/collaborator_user.rb +1 -0
- data/decidim-admin/app/models/decidim/admin/abilities/participatory_process_admin.rb +1 -0
- data/decidim-admin/app/models/decidim/admin/application_record.rb +1 -0
- data/decidim-admin/app/models/decidim/admin/participatory_process_user_role.rb +3 -2
- data/decidim-admin/app/queries/decidim/admin/manageable_participatory_processes_for_user.rb +1 -0
- data/decidim-admin/app/queries/decidim/admin/process_admin_roles_for_process.rb +1 -0
- data/decidim-admin/app/queries/decidim/admin/process_admins.rb +1 -0
- data/decidim-admin/app/queries/decidim/admin/user_groups_evaluation.rb +54 -0
- data/decidim-admin/app/views/decidim/admin/exports/_dropdown.html.erb +10 -0
- data/decidim-admin/app/views/decidim/admin/participatory_process_copies/_form.html.erb +38 -0
- data/decidim-admin/app/views/decidim/admin/participatory_process_copies/new.html.erb +7 -0
- data/decidim-admin/app/views/decidim/admin/participatory_processes/index.html.erb +2 -0
- data/decidim-admin/app/views/decidim/admin/scopes/new.html.erb +0 -1
- data/decidim-admin/app/views/decidim/admin/user_groups/index.html.erb +67 -5
- data/decidim-admin/app/views/layouts/decidim/admin/_application.html.erb +1 -1
- data/decidim-admin/app/views/layouts/decidim/admin/_title_bar.html.erb +1 -1
- data/decidim-admin/bin/rails +1 -0
- data/decidim-admin/config/i18n-tasks.yml +6 -6
- data/decidim-admin/config/locales/ca.yml +36 -2
- data/decidim-admin/config/locales/en.yml +36 -2
- data/decidim-admin/config/locales/es.yml +37 -3
- data/decidim-admin/config/locales/eu.yml +41 -3
- data/decidim-admin/config/locales/fi.yml +0 -3
- data/decidim-admin/config/locales/fr.yml +0 -3
- data/decidim-admin/config/routes.rb +4 -0
- data/decidim-admin/db/seeds.rb +1 -0
- data/decidim-admin/decidim-admin.gemspec +0 -1
- data/decidim-admin/lib/decidim/admin.rb +1 -0
- data/decidim-admin/lib/decidim/admin/engine.rb +51 -0
- data/decidim-admin/lib/decidim/admin/features.rb +1 -0
- data/decidim-admin/lib/decidim/admin/test/factories.rb +1 -0
- data/decidim-admin/lib/decidim/admin/test/manage_attachments_examples.rb +1 -0
- data/decidim-admin/spec/commands/activate_participatory_process_step_spec.rb +1 -0
- data/decidim-admin/spec/commands/copy_participatory_process_spec.rb +128 -0
- data/decidim-admin/spec/commands/create_category_spec.rb +1 -0
- data/decidim-admin/spec/commands/create_feature_spec.rb +1 -0
- data/decidim-admin/spec/commands/create_newsletter_spec.rb +1 -0
- data/decidim-admin/spec/commands/create_participatory_process_admin_spec.rb +1 -0
- data/decidim-admin/spec/commands/create_participatory_process_spec.rb +1 -0
- data/decidim-admin/spec/commands/create_scope_spec.rb +1 -0
- data/decidim-admin/spec/commands/create_static_page_spec.rb +1 -0
- data/decidim-admin/spec/commands/deactivate_participatory_process_step_spec.rb +1 -0
- data/decidim-admin/spec/commands/deliver_newsletter_spec.rb +1 -0
- data/decidim-admin/spec/commands/destroy_category_spec.rb +1 -0
- data/decidim-admin/spec/commands/destroy_feature_spec.rb +1 -0
- data/decidim-admin/spec/commands/destroy_participatory_process_step_spec.rb +1 -0
- data/decidim-admin/spec/commands/hide_resource_spec.rb +1 -0
- data/decidim-admin/spec/commands/publish_participatory_process_spec.rb +1 -0
- data/decidim-admin/spec/commands/reject_user_group_spec.rb +61 -0
- data/decidim-admin/spec/commands/reorder_participatory_process_steps_spec.rb +1 -0
- data/decidim-admin/spec/commands/unpublish_participatory_process_spec.rb +1 -0
- data/decidim-admin/spec/commands/unreport_resource_spec.rb +1 -0
- data/decidim-admin/spec/commands/update_category_spec.rb +1 -0
- data/decidim-admin/spec/commands/update_feature_spec.rb +1 -0
- data/decidim-admin/spec/commands/update_newsletter_spec.rb +1 -0
- data/decidim-admin/spec/commands/update_organization_spec.rb +1 -0
- data/decidim-admin/spec/commands/update_participatory_process_spec.rb +1 -0
- data/decidim-admin/spec/commands/update_scope_spec.rb +1 -0
- data/decidim-admin/spec/commands/update_static_page_spec.rb +1 -0
- data/decidim-admin/spec/commands/verify_user_group_spec.rb +61 -0
- data/decidim-admin/spec/controllers/exports_controller_spec.rb +49 -0
- data/decidim-admin/spec/controllers/participatory_processes_controller_spec.rb +1 -1
- data/decidim-admin/spec/controllers/static_pages_controller_spec.rb +1 -0
- data/decidim-admin/spec/factories.rb +1 -0
- data/decidim-admin/spec/features/admin_copy_participatory_process_spec.rb +108 -0
- data/decidim-admin/spec/features/admin_invite_spec.rb +1 -0
- data/decidim-admin/spec/features/admin_manages_feature_permissions_spec.rb +1 -0
- data/decidim-admin/spec/features/admin_manages_features_spec.rb +1 -1
- data/decidim-admin/spec/features/admin_manages_newsletters_spec.rb +0 -1
- data/decidim-admin/spec/features/admin_manages_organization_admins_spec.rb +1 -0
- data/decidim-admin/spec/features/admin_manages_organization_scopes_spec.rb +1 -0
- data/decidim-admin/spec/features/admin_manages_organization_spec.rb +0 -1
- data/decidim-admin/spec/features/admin_manages_participatory_process_groups_spec.rb +1 -1
- data/decidim-admin/spec/features/admin_manages_user_groups_spec.rb +14 -2
- data/decidim-admin/spec/features/static_pages_spec.rb +1 -0
- data/decidim-admin/spec/forms/category_form_spec.rb +1 -1
- data/decidim-admin/spec/forms/newsletter_form_spec.rb +1 -1
- data/decidim-admin/spec/forms/organization_form_spec.rb +1 -0
- data/decidim-admin/spec/forms/participatory_process_form_spec.rb +1 -1
- data/decidim-admin/spec/forms/participatory_process_group_form_spec.rb +1 -1
- data/decidim-admin/spec/forms/participatory_process_step_form_spec.rb +1 -1
- data/decidim-admin/spec/forms/participatory_process_user_role_form_spec.rb +1 -0
- data/decidim-admin/spec/forms/scope_form_spec.rb +1 -0
- data/decidim-admin/spec/forms/static_page_form_spec.rb +1 -1
- data/decidim-admin/spec/helpers/aria_selected_link_to_helper_spec.rb +1 -0
- data/decidim-admin/spec/helpers/exports_helper_spec.rb +27 -0
- data/decidim-admin/spec/helpers/feature_settings_helper_spec.rb +1 -0
- data/decidim-admin/spec/helpers/menu_helper_spec.rb +39 -0
- data/decidim-admin/spec/i18n_spec.rb +7 -0
- data/{decidim-proposals → decidim-admin}/spec/jobs/export_job_spec.rb +10 -10
- data/decidim-admin/spec/jobs/newsletter_delivery_job_spec.rb +1 -0
- data/decidim-admin/spec/jobs/newsletter_job_spec.rb +1 -0
- data/decidim-admin/spec/models/abilities/admin_user_spec.rb +1 -0
- data/decidim-admin/spec/models/abilities/collaborator_user_spec.rb +1 -0
- data/decidim-admin/spec/models/abilities/participatory_process_admin_spec.rb +1 -0
- data/decidim-admin/spec/models/participatory_process_user_role_spec.rb +1 -0
- data/decidim-admin/spec/organization_dashboard_constraint_spec.rb +1 -0
- data/decidim-admin/spec/queries/manageable_participatory_processes_for_user_spec.rb +1 -0
- data/decidim-admin/spec/queries/process_admin_roles_for_process_spec.rb +1 -0
- data/decidim-admin/spec/queries/process_admins_spec.rb +1 -0
- data/decidim-admin/spec/queries/user_group_evaluation_spec.rb +94 -0
- data/decidim-admin/spec/shared/manage_process_admins_examples.rb +1 -0
- data/decidim-admin/spec/shared/manage_process_attachments_examples.rb +1 -0
- data/decidim-admin/spec/shared/manage_process_categories_examples.rb +1 -0
- data/decidim-admin/spec/shared/manage_process_steps_examples.rb +1 -1
- data/decidim-admin/spec/shared/manage_processes_examples.rb +2 -2
- data/decidim-admin/spec/shared/participatory_admin_shared_context.rb +1 -0
- data/decidim-admin/spec/spec_helper.rb +1 -0
- data/decidim-admin/spec/support/processes_menu_links_helpers.rb +1 -0
- data/decidim-admin/spec/views/decidim/static_pages/_form.html.erb_spec.rb +1 -0
- data/decidim-api/Rakefile +1 -0
- data/decidim-api/app/assets/javascripts/decidim/api/docs.js.es6 +2 -0
- data/decidim-api/app/controllers/decidim/api/application_controller.rb +1 -0
- data/decidim-api/app/controllers/decidim/api/documentation_controller.rb +1 -0
- data/decidim-api/app/controllers/decidim/api/queries_controller.rb +1 -0
- data/decidim-api/bin/rails +1 -0
- data/decidim-api/config/routes.rb +1 -0
- data/decidim-api/decidim-api.gemspec +1 -1
- data/decidim-api/lib/decidim/api.rb +1 -0
- data/decidim-api/lib/decidim/api/engine.rb +1 -0
- data/decidim-api/lib/decidim/api/mutation_type.rb +1 -0
- data/decidim-api/lib/decidim/api/query_type.rb +1 -0
- data/decidim-api/lib/decidim/api/schema.rb +1 -0
- data/decidim-api/lib/decidim/api/test/type_context.rb +1 -0
- data/decidim-api/spec/controllers/queries_controller_spec.rb +1 -0
- data/decidim-api/spec/factories.rb +1 -0
- data/decidim-api/spec/features/documentation_spec.rb +1 -0
- data/decidim-api/spec/features/graphiql_spec.rb +1 -0
- data/decidim-api/spec/i18n_spec.rb +7 -0
- data/decidim-api/spec/spec_helper.rb +1 -0
- data/decidim-api/spec/types/query_type_spec.rb +1 -0
- data/decidim-budgets/Rakefile +1 -0
- data/decidim-budgets/app/commands/decidim/budgets/add_line_item.rb +1 -0
- data/decidim-budgets/app/commands/decidim/budgets/admin/create_project.rb +1 -0
- data/decidim-budgets/app/commands/decidim/budgets/admin/update_project.rb +1 -0
- data/decidim-budgets/app/commands/decidim/budgets/cancel_order.rb +1 -0
- data/decidim-budgets/app/commands/decidim/budgets/checkout.rb +1 -0
- data/decidim-budgets/app/commands/decidim/budgets/remove_line_item.rb +1 -0
- data/decidim-budgets/app/controllers/decidim/budgets/admin/application_controller.rb +1 -0
- data/decidim-budgets/app/controllers/decidim/budgets/admin/attachments_controller.rb +1 -0
- data/decidim-budgets/app/controllers/decidim/budgets/admin/projects_controller.rb +1 -0
- data/decidim-budgets/app/forms/decidim/budgets/admin/project_form.rb +1 -0
- data/decidim-budgets/app/helpers/decidim/budgets/application_helper.rb +1 -0
- data/decidim-budgets/app/helpers/decidim/budgets/projects_helper.rb +1 -0
- data/decidim-budgets/app/models/decidim/budgets/application_record.rb +1 -0
- data/decidim-budgets/app/models/decidim/budgets/line_item.rb +3 -2
- data/decidim-budgets/app/models/decidim/budgets/order.rb +4 -3
- data/decidim-budgets/app/models/decidim/budgets/project.rb +2 -1
- data/decidim-budgets/app/queries/decidim/budgets/filtered_projects.rb +1 -0
- data/decidim-budgets/app/services/decidim/budgets/project_search.rb +1 -0
- data/decidim-budgets/bin/rails +2 -1
- data/decidim-budgets/config/i18n-tasks.yml +4 -1
- data/decidim-budgets/config/locales/eu.yml +4 -0
- data/decidim-budgets/decidim-budgets.gemspec +1 -1
- data/decidim-budgets/lib/decidim/budgets.rb +2 -1
- data/decidim-budgets/lib/decidim/budgets/admin.rb +1 -0
- data/decidim-budgets/lib/decidim/budgets/admin_engine.rb +1 -0
- data/decidim-budgets/lib/decidim/budgets/{list_engine.rb → engine.rb} +2 -1
- data/decidim-budgets/lib/decidim/budgets/feature.rb +1 -1
- data/decidim-budgets/lib/decidim/budgets/test/factories.rb +1 -0
- data/decidim-budgets/spec/commands/add_line_item_spec.rb +1 -0
- data/decidim-budgets/spec/commands/cancel_order_spec.rb +1 -0
- data/decidim-budgets/spec/commands/checkout_spec.rb +1 -0
- data/decidim-budgets/spec/commands/create_project_spec.rb +1 -0
- data/decidim-budgets/spec/commands/remove_line_item_spec.rb +1 -0
- data/decidim-budgets/spec/commands/update_project_spec.rb +1 -0
- data/decidim-budgets/spec/factories.rb +1 -0
- data/decidim-budgets/spec/features/comments_spec.rb +1 -0
- data/decidim-budgets/spec/features/orders_spec.rb +1 -1
- data/decidim-budgets/spec/forms/project_form_spec.rb +1 -0
- data/decidim-budgets/spec/i18n_spec.rb +7 -0
- data/decidim-budgets/spec/queries/decidim/budgets/filtered_projects_spec.rb +1 -0
- data/decidim-budgets/spec/services/project_search_spec.rb +1 -0
- data/decidim-budgets/spec/shared/admin_shared_context.rb +1 -0
- data/decidim-budgets/spec/shared/manage_attachments_examples.rb +1 -0
- data/decidim-budgets/spec/shared/manage_projects_examples.rb +1 -0
- data/decidim-budgets/spec/spec_helper.rb +1 -0
- data/decidim-comments/.gitignore +0 -1
- data/decidim-comments/Rakefile +1 -0
- data/decidim-comments/app/assets/javascripts/decidim/comments/bundle.js +0 -0
- data/decidim-comments/app/commands/decidim/comments/create_comment.rb +1 -0
- data/decidim-comments/app/commands/decidim/comments/vote_comment.rb +1 -0
- data/decidim-comments/app/forms/decidim/comments/comment_form.rb +1 -0
- data/decidim-comments/app/frontend/comments/comment_order_selector.component.tsx +0 -1
- data/decidim-comments/app/frontend/comments/down_vote_button.component.test.tsx +2 -2
- data/decidim-comments/app/frontend/comments/down_vote_button.component.tsx +2 -2
- data/decidim-comments/app/frontend/comments/up_vote_button.component.test.tsx +2 -2
- data/decidim-comments/app/frontend/comments/up_vote_button.component.tsx +2 -2
- data/decidim-comments/app/frontend/fragments/comment_thread.fragment.graphql +0 -3
- data/decidim-comments/app/frontend/support/schema.ts +51 -16
- data/decidim-comments/app/mailers/decidim/comments/comment_notification_mailer.rb +1 -0
- data/decidim-comments/app/models/decidim/comments/abilities/admin_user.rb +1 -0
- data/decidim-comments/app/models/decidim/comments/abilities/process_admin_user.rb +1 -0
- data/decidim-comments/app/models/decidim/comments/application_record.rb +1 -0
- data/decidim-comments/app/models/decidim/comments/comment.rb +3 -2
- data/decidim-comments/app/models/decidim/comments/comment_vote.rb +3 -2
- data/decidim-comments/app/models/decidim/comments/seed.rb +1 -0
- data/decidim-comments/app/queries/decidim/comments/sorted_comments.rb +1 -0
- data/decidim-comments/app/resolvers/decidim/comments/vote_comment_resolver.rb +1 -0
- data/decidim-comments/app/types/decidim/comments/commentable_interface.rb +1 -0
- data/decidim-comments/app/types/decidim/comments/commentable_mutation_type.rb +1 -0
- data/decidim-comments/app/types/decidim/comments/commentable_type.rb +1 -0
- data/decidim-comments/bin/rails +1 -0
- data/decidim-comments/config/i18n-tasks.yml +2 -3
- data/decidim-comments/lib/decidim/comments.rb +3 -0
- data/decidim-comments/lib/decidim/comments/admin.rb +1 -0
- data/decidim-comments/lib/decidim/comments/admin_engine.rb +1 -0
- data/decidim-comments/lib/decidim/comments/api/add_comment_type.rb +1 -0
- data/decidim-comments/lib/decidim/comments/api/comment_mutation_type.rb +1 -0
- data/decidim-comments/lib/decidim/comments/api/comment_type.rb +1 -0
- data/decidim-comments/lib/decidim/comments/comment_serializer.rb +37 -0
- data/decidim-comments/lib/decidim/comments/comments_helper.rb +1 -0
- data/decidim-comments/lib/decidim/comments/engine.rb +1 -0
- data/decidim-comments/lib/decidim/comments/export.rb +22 -0
- data/decidim-comments/lib/decidim/comments/mutation_extensions.rb +1 -0
- data/decidim-comments/lib/decidim/comments/query_extensions.rb +1 -0
- data/decidim-comments/lib/decidim/comments/test/factories.rb +1 -0
- data/decidim-comments/spec/commands/create_comment_spec.rb +1 -0
- data/decidim-comments/spec/commands/vote_comment_spec.rb +5 -6
- data/decidim-comments/spec/factories.rb +1 -0
- data/decidim-comments/spec/features/comments_spec.rb +1 -0
- data/decidim-comments/spec/features/notifications_spec.rb +1 -0
- data/decidim-comments/spec/features/report_comment_spec.rb +1 -0
- data/decidim-comments/spec/forms/comment_form_spec.rb +1 -0
- data/decidim-comments/spec/helpers/comments_helper_spec.rb +1 -0
- data/decidim-comments/spec/i18n_spec.rb +7 -0
- data/decidim-comments/spec/lib/comment_serializer_spec.rb +44 -0
- data/decidim-comments/spec/lib/export_spec.rb +27 -0
- data/decidim-comments/spec/mailers/comment_notification_mailer_spec.rb +1 -0
- data/decidim-comments/spec/models/abilities/admin_user_spec.rb +1 -0
- data/decidim-comments/spec/models/abilities/process_admin_user_spec.rb +1 -0
- data/decidim-comments/spec/models/comment_spec.rb +1 -0
- data/decidim-comments/spec/models/comment_vote_spec.rb +1 -0
- data/decidim-comments/spec/models/seed_spec.rb +1 -0
- data/decidim-comments/spec/queries/sorted_comments_spec.rb +1 -0
- data/decidim-comments/spec/shared/admin_shared_context.rb +1 -0
- data/decidim-comments/spec/spec_helper.rb +1 -0
- data/decidim-comments/spec/types/comment_mutation_type_spec.rb +1 -0
- data/decidim-comments/spec/types/comment_type_spec.rb +1 -0
- data/decidim-comments/spec/types/commentable_mutation_type_spec.rb +1 -0
- data/decidim-comments/spec/types/commentable_type_spec.rb +1 -0
- data/decidim-comments/spec/types/mutation_type_spec.rb +1 -0
- data/decidim-comments/spec/types/query_type_spec.rb +1 -0
- data/decidim-dev/Rakefile +1 -0
- data/decidim-dev/app/assets/images/decidim/dummy.svg +4 -0
- data/decidim-dev/config/i18n-tasks.yml +3 -1
- data/decidim-dev/config/locales/ca.yml +4 -0
- data/decidim-dev/config/locales/en.yml +4 -0
- data/decidim-dev/config/locales/es.yml +4 -0
- data/decidim-dev/config/locales/eu.yml +4 -0
- data/decidim-dev/decidim-dev.gemspec +6 -6
- data/decidim-dev/lib/decidim/dev/common_rake.rb +2 -5
- data/decidim-dev/lib/decidim/dev/dummy_authorization_handler.rb +1 -0
- data/decidim-dev/lib/decidim/dev/railtie.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/authorization_shared_examples.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/base_spec_helper.rb +2 -1
- data/decidim-dev/lib/decidim/dev/test/{i18n_spec.rb → i18n_shared_examples.rb} +9 -6
- data/decidim-dev/lib/decidim/dev/test/rspec_support/action_mailer.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/authorization_handlers.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/capybara.rb +3 -3
- data/decidim-dev/lib/decidim/dev/test/rspec_support/database_cleaner.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/engine_routes.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/factory_girl.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/feature.rb +30 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/feature_context.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/geocoder.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/html_matchers.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/i18n.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/translation_helpers.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/warden.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/webmock.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/wisper.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/spec_helper.rb +1 -0
- data/decidim-dev/lib/generators/decidim/dummy_generator.rb +3 -6
- data/decidim-dev/lib/generators/decidim/templates/autoprefixer_initializer.rb +2 -1
- data/decidim-dev/lib/generators/decidim/templates/decidim_dev.rb +1 -0
- data/decidim-dev/lib/tasks/locale_checker.rake +21 -0
- data/decidim-dev/lib/tasks/test_app.rake +1 -2
- data/decidim-dev/spec/i18n_spec.rb +7 -0
- data/decidim-meetings/Rakefile +1 -0
- data/decidim-meetings/app/commands/decidim/meetings/admin/close_meeting.rb +1 -0
- data/decidim-meetings/app/commands/decidim/meetings/admin/create_meeting.rb +1 -0
- data/decidim-meetings/app/commands/decidim/meetings/admin/update_meeting.rb +1 -0
- data/decidim-meetings/app/controllers/decidim/meetings/admin/application_controller.rb +1 -0
- data/decidim-meetings/app/controllers/decidim/meetings/admin/attachments_controller.rb +1 -0
- data/decidim-meetings/app/controllers/decidim/meetings/admin/meeting_closes_controller.rb +1 -0
- data/decidim-meetings/app/controllers/decidim/meetings/admin/meetings_controller.rb +1 -0
- data/decidim-meetings/app/controllers/decidim/meetings/meeting_widgets_controller.rb +1 -0
- data/decidim-meetings/app/forms/decidim/meetings/admin/close_meeting_form.rb +1 -0
- data/decidim-meetings/app/forms/decidim/meetings/admin/meeting_form.rb +1 -0
- data/decidim-meetings/app/helpers/decidim/meetings/admin/application_helper.rb +1 -0
- data/decidim-meetings/app/helpers/decidim/meetings/application_helper.rb +1 -0
- data/decidim-meetings/app/helpers/decidim/meetings/map_helper.rb +1 -0
- data/decidim-meetings/app/models/decidim/meetings/application_record.rb +1 -0
- data/decidim-meetings/app/services/decidim/meetings/meeting_search.rb +1 -0
- data/decidim-meetings/bin/rails +2 -1
- data/decidim-meetings/config/i18n-tasks.yml +2 -1
- data/decidim-meetings/config/locales/eu.yml +7 -0
- data/decidim-meetings/decidim-meetings.gemspec +2 -2
- data/decidim-meetings/lib/decidim/meetings.rb +2 -1
- data/decidim-meetings/lib/decidim/meetings/admin.rb +1 -0
- data/decidim-meetings/lib/decidim/meetings/{list_engine.rb → engine.rb} +2 -1
- data/decidim-meetings/lib/decidim/meetings/feature.rb +1 -1
- data/decidim-meetings/lib/decidim/meetings/test/factories.rb +1 -0
- data/decidim-meetings/spec/commands/close_meeting_spec.rb +1 -0
- data/decidim-meetings/spec/commands/create_meeting_spec.rb +1 -0
- data/decidim-meetings/spec/commands/update_meeting_spec.rb +1 -0
- data/decidim-meetings/spec/factories.rb +1 -0
- data/decidim-meetings/spec/features/explore_meetings_spec.rb +1 -0
- data/decidim-meetings/spec/forms/close_meeting_form_spec.rb +1 -0
- data/decidim-meetings/spec/forms/meeting_form_spec.rb +1 -0
- data/decidim-meetings/spec/i18n_spec.rb +7 -0
- data/decidim-meetings/spec/services/meeting_search_spec.rb +1 -0
- data/decidim-meetings/spec/shared/admin_shared_context.rb +1 -0
- data/decidim-meetings/spec/shared/manage_attachments_examples.rb +1 -0
- data/decidim-meetings/spec/shared/manage_meetings_examples.rb +1 -0
- data/decidim-meetings/spec/spec_helper.rb +1 -0
- data/decidim-pages/Rakefile +1 -0
- data/decidim-pages/app/commands/decidim/pages/admin/update_page.rb +1 -0
- data/decidim-pages/app/commands/decidim/pages/copy_page.rb +26 -0
- data/decidim-pages/app/commands/decidim/pages/create_page.rb +1 -0
- data/decidim-pages/app/commands/decidim/pages/destroy_page.rb +1 -0
- data/decidim-pages/app/controllers/decidim/pages/admin/pages_controller.rb +1 -0
- data/decidim-pages/app/forms/decidim/pages/admin/page_form.rb +1 -0
- data/decidim-pages/app/helpers/decidim/pages/application_helper.rb +1 -0
- data/decidim-pages/app/models/decidim/pages/application_record.rb +1 -0
- data/decidim-pages/app/models/decidim/pages/page.rb +1 -0
- data/decidim-pages/bin/rails +1 -0
- data/decidim-pages/config/i18n-tasks.yml +2 -1
- data/decidim-pages/config/locales/eu.yml +1 -0
- data/decidim-pages/lib/decidim/pages.rb +1 -0
- data/decidim-pages/lib/decidim/pages/admin.rb +1 -0
- data/decidim-pages/lib/decidim/pages/admin_engine.rb +1 -0
- data/decidim-pages/lib/decidim/pages/engine.rb +1 -0
- data/decidim-pages/lib/decidim/pages/feature.rb +6 -0
- data/decidim-pages/spec/commands/copy_page_spec.rb +47 -0
- data/decidim-pages/spec/commands/create_page_spec.rb +1 -0
- data/decidim-pages/spec/commands/destroy_page_spec.rb +1 -0
- data/decidim-pages/spec/commands/update_page_spec.rb +1 -0
- data/decidim-pages/spec/factories.rb +1 -0
- data/decidim-pages/spec/features/admin_spec.rb +1 -1
- data/decidim-pages/spec/features/comments_spec.rb +1 -0
- data/decidim-pages/spec/features/page_show_spec.rb +1 -1
- data/decidim-pages/spec/forms/page_form_spec.rb +1 -1
- data/decidim-pages/spec/i18n_spec.rb +7 -0
- data/decidim-pages/spec/models/page_spec.rb +1 -0
- data/decidim-pages/spec/spec_helper.rb +1 -0
- data/decidim-proposals/Rakefile +1 -0
- data/decidim-proposals/app/commands/decidim/proposals/admin/answer_proposal.rb +1 -0
- data/decidim-proposals/app/commands/decidim/proposals/admin/create_proposal.rb +1 -0
- data/decidim-proposals/app/commands/decidim/proposals/create_proposal.rb +1 -0
- data/decidim-proposals/app/commands/decidim/proposals/create_proposal_export.rb +1 -0
- data/decidim-proposals/app/controllers/concerns/decidim/proposals/orderable.rb +64 -0
- data/decidim-proposals/app/controllers/decidim/proposals/admin/application_controller.rb +1 -0
- data/decidim-proposals/app/controllers/decidim/proposals/admin/proposal_answers_controller.rb +1 -0
- data/decidim-proposals/app/controllers/decidim/proposals/admin/proposals_controller.rb +1 -0
- data/decidim-proposals/app/controllers/decidim/proposals/proposals_controller.rb +2 -33
- data/decidim-proposals/app/forms/decidim/proposals/admin/proposal_answer_form.rb +1 -0
- data/decidim-proposals/app/forms/decidim/proposals/admin/proposal_form.rb +1 -0
- data/decidim-proposals/app/forms/decidim/proposals/proposal_form.rb +1 -0
- data/decidim-proposals/app/helpers/decidim/proposals/application_helper.rb +1 -1
- data/decidim-proposals/app/helpers/decidim/proposals/map_helper.rb +1 -0
- data/decidim-proposals/app/helpers/decidim/proposals/proposal_votes_helper.rb +1 -0
- data/decidim-proposals/app/models/decidim/proposals/abilities/admin_user.rb +1 -0
- data/decidim-proposals/app/models/decidim/proposals/abilities/current_user.rb +2 -1
- data/decidim-proposals/app/models/decidim/proposals/abilities/process_admin_user.rb +1 -0
- data/decidim-proposals/app/models/decidim/proposals/application_record.rb +1 -0
- data/decidim-proposals/app/models/decidim/proposals/proposal.rb +9 -1
- data/decidim-proposals/app/models/decidim/proposals/proposal_vote.rb +3 -2
- data/decidim-proposals/app/queries/decidim/proposals/filtered_proposals.rb +1 -0
- data/decidim-proposals/app/services/decidim/proposals/proposal_search.rb +1 -0
- data/decidim-proposals/app/views/decidim/proposals/admin/proposals/index.html.erb +1 -8
- data/decidim-proposals/app/views/decidim/proposals/proposals/_proposal.html.erb +1 -1
- data/decidim-proposals/app/views/decidim/proposals/proposals/_proposals.html.erb +2 -2
- data/decidim-proposals/app/views/decidim/proposals/proposals/_vote_button.html.erb +4 -10
- data/decidim-proposals/app/views/decidim/proposals/proposals/show.html.erb +2 -2
- data/decidim-proposals/bin/rails +1 -0
- data/decidim-proposals/config/i18n-tasks.yml +4 -1
- data/decidim-proposals/config/initializers/social_share_button.rb +1 -0
- data/decidim-proposals/config/locales/ca.yml +3 -3
- data/decidim-proposals/config/locales/en.yml +3 -4
- data/decidim-proposals/config/locales/es.yml +3 -3
- data/decidim-proposals/config/locales/eu.yml +10 -0
- data/decidim-proposals/config/locales/fr.yml +0 -3
- data/decidim-proposals/lib/decidim/proposals.rb +2 -0
- data/decidim-proposals/lib/decidim/proposals/admin.rb +1 -0
- data/decidim-proposals/lib/decidim/proposals/admin_engine.rb +1 -4
- data/decidim-proposals/lib/decidim/proposals/engine.rb +1 -0
- data/decidim-proposals/lib/decidim/proposals/feature.rb +20 -0
- data/decidim-proposals/{app/services → lib}/decidim/proposals/proposal_serializer.rb +1 -1
- data/decidim-proposals/lib/decidim/proposals/test/factories.rb +9 -0
- data/decidim-proposals/spec/commands/decidim/proposals/admin_create_proposal_spec.rb +1 -0
- data/decidim-proposals/spec/commands/decidim/proposals/answer_proposal_spec.rb +1 -0
- data/decidim-proposals/spec/commands/decidim/proposals/create_proposal_spec.rb +1 -0
- data/decidim-proposals/spec/{helpers/proposal_order_helper_spec.rb → controllers/concerns/orderable_test.rb} +13 -6
- data/decidim-proposals/spec/controllers/decidim/admin/proposal_answers_controller_spec.rb +1 -0
- data/decidim-proposals/spec/controllers/decidim/proposal_votes_controller_spec.rb +4 -5
- data/decidim-proposals/spec/controllers/decidim/proposals_controller_spec.rb +1 -0
- data/decidim-proposals/spec/factories.rb +1 -0
- data/decidim-proposals/spec/features/comments_spec.rb +1 -0
- data/decidim-proposals/spec/features/proposals_spec.rb +102 -30
- data/decidim-proposals/spec/features/report_proposal_spec.rb +1 -0
- data/decidim-proposals/spec/features/vote_proposal_spec.rb +39 -19
- data/decidim-proposals/spec/forms/decidim/proposals/admin_proposal_form_spec.rb +1 -0
- data/decidim-proposals/spec/forms/decidim/proposals/proposal_answer_form_spec.rb +1 -0
- data/decidim-proposals/spec/forms/decidim/proposals/proposal_form_spec.rb +1 -0
- data/decidim-proposals/spec/helpers/application_helper_spec.rb +1 -0
- data/decidim-proposals/spec/helpers/proposal_votes_helper_spec.rb +1 -0
- data/decidim-proposals/spec/i18n_spec.rb +7 -0
- data/decidim-proposals/spec/lib/decidim/proposals/feature_spec.rb +1 -0
- data/decidim-proposals/spec/models/decidim/proposals/abilities/admin_user_spec.rb +1 -0
- data/decidim-proposals/spec/models/decidim/proposals/abilities/process_admin_user_spec.rb +1 -0
- data/decidim-proposals/spec/models/decidim/proposals/proposal_spec.rb +1 -0
- data/decidim-proposals/spec/models/decidim/proposals/proposal_vote_spec.rb +1 -0
- data/decidim-proposals/spec/queries/decidim/proposals/filtered_proposals_spec.rb +1 -0
- data/decidim-proposals/spec/services/decidim/proposals/proposal_search_spec.rb +1 -0
- data/decidim-proposals/spec/services/decidim/proposals/proposal_serializer_spec.rb +1 -0
- data/decidim-proposals/spec/shared/admin_shared_context.rb +1 -0
- data/decidim-proposals/spec/shared/create_proposal_examples.rb +1 -0
- data/decidim-proposals/spec/shared/export_proposals_examples.rb +3 -2
- data/decidim-proposals/spec/shared/manage_proposals_examples.rb +1 -0
- data/decidim-proposals/spec/shared/proposal_form_examples.rb +1 -0
- data/decidim-proposals/spec/spec_helper.rb +1 -0
- data/decidim-results/Rakefile +1 -0
- data/decidim-results/app/commands/decidim/results/admin/create_result.rb +1 -0
- data/decidim-results/app/commands/decidim/results/admin/update_result.rb +1 -0
- data/decidim-results/app/controllers/decidim/results/admin/application_controller.rb +1 -0
- data/decidim-results/app/controllers/decidim/results/admin/results_controller.rb +1 -0
- data/decidim-results/app/controllers/decidim/results/result_widgets_controller.rb +1 -0
- data/decidim-results/app/forms/decidim/results/admin/result_form.rb +1 -0
- data/decidim-results/app/helpers/decidim/results/application_helper.rb +1 -0
- data/decidim-results/app/models/decidim/results/application_record.rb +1 -0
- data/decidim-results/app/models/decidim/results/result.rb +1 -0
- data/decidim-results/app/queries/decidim/results/filtered_results.rb +1 -0
- data/decidim-results/app/services/decidim/results/result_search.rb +1 -0
- data/decidim-results/app/services/decidim/results/result_stats_calculator.rb +1 -0
- data/decidim-results/bin/rails +2 -1
- data/decidim-results/config/i18n-tasks.yml +2 -1
- data/decidim-results/config/locales/eu.yml +3 -0
- data/decidim-results/decidim-results.gemspec +1 -1
- data/decidim-results/lib/decidim/results.rb +2 -1
- data/decidim-results/lib/decidim/results/admin.rb +1 -0
- data/decidim-results/lib/decidim/results/admin_engine.rb +1 -0
- data/decidim-results/lib/decidim/results/{list_engine.rb → engine.rb} +2 -1
- data/decidim-results/lib/decidim/results/feature.rb +1 -1
- data/decidim-results/lib/decidim/results/test/factories.rb +1 -0
- data/decidim-results/spec/commands/create_result_spec.rb +1 -0
- data/decidim-results/spec/commands/update_result_spec.rb +1 -0
- data/decidim-results/spec/controllers/results_controller_spec.rb +1 -0
- data/decidim-results/spec/factories.rb +1 -0
- data/decidim-results/spec/features/comments_spec.rb +1 -0
- data/decidim-results/spec/features/explore_results_spec.rb +1 -0
- data/decidim-results/spec/forms/result_form_spec.rb +1 -0
- data/decidim-results/spec/i18n_spec.rb +7 -0
- data/decidim-results/spec/queries/decidim/results/filtered_results_spec.rb +1 -0
- data/decidim-results/spec/services/result_search_spec.rb +1 -0
- data/decidim-results/spec/services/result_stats_calculator_spec.rb +1 -0
- data/decidim-results/spec/shared/admin_shared_context.rb +1 -0
- data/decidim-results/spec/shared/manage_results_examples.rb +1 -0
- data/decidim-results/spec/spec_helper.rb +1 -0
- data/decidim-system/Rakefile +1 -0
- data/decidim-system/app/assets/stylesheets/decidim/system/_sidebar.scss +9 -2
- data/decidim-system/app/commands/decidim/system/create_admin.rb +1 -0
- data/decidim-system/app/commands/decidim/system/create_default_pages.rb +1 -0
- data/decidim-system/app/commands/decidim/system/register_organization.rb +1 -0
- data/decidim-system/app/commands/decidim/system/update_admin.rb +1 -0
- data/decidim-system/app/commands/decidim/system/update_organization.rb +1 -0
- data/decidim-system/app/controllers/decidim/system/admins_controller.rb +1 -0
- data/decidim-system/app/controllers/decidim/system/application_controller.rb +3 -0
- data/decidim-system/app/controllers/decidim/system/dashboard_controller.rb +1 -0
- data/decidim-system/app/controllers/decidim/system/devise/passwords_controller.rb +1 -0
- data/decidim-system/app/controllers/decidim/system/devise/sessions_controller.rb +1 -0
- data/decidim-system/app/controllers/decidim/system/organizations_controller.rb +1 -0
- data/decidim-system/app/forms/decidim/system/admin_form.rb +1 -0
- data/decidim-system/app/forms/decidim/system/register_organization_form.rb +1 -0
- data/decidim-system/app/forms/decidim/system/update_organization_form.rb +1 -0
- data/decidim-system/app/helpers/decidim/system/application_helper.rb +1 -0
- data/decidim-system/app/helpers/decidim/system/menu_helper.rb +14 -0
- data/decidim-system/app/jobs/decidim/system/application_job.rb +1 -0
- data/decidim-system/app/mailers/decidim/system/application_mailer.rb +1 -0
- data/decidim-system/app/models/decidim/system/admin.rb +1 -0
- data/decidim-system/app/models/decidim/system/application_record.rb +1 -0
- data/decidim-system/app/views/layouts/decidim/system/_sidebar.html.erb +1 -5
- data/decidim-system/bin/rails +1 -0
- data/decidim-system/config/i18n-tasks.yml +6 -6
- data/decidim-system/config/locales/eu.yml +3 -0
- data/decidim-system/config/routes.rb +1 -0
- data/decidim-system/db/seeds.rb +1 -0
- data/decidim-system/lib/decidim/system.rb +1 -0
- data/decidim-system/lib/decidim/system/engine.rb +20 -0
- data/decidim-system/spec/commands/decidim/system/create_admin_spec.rb +1 -0
- data/decidim-system/spec/commands/decidim/system/create_default_pages_spec.rb +1 -0
- data/decidim-system/spec/commands/decidim/system/register_organization_spec.rb +1 -0
- data/decidim-system/spec/commands/decidim/system/update_organization_spec.rb +1 -0
- data/decidim-system/spec/factories.rb +1 -0
- data/decidim-system/spec/features/sessions_spec.rb +1 -0
- data/decidim-system/spec/helpers/menu_helper_spec.rb +28 -0
- data/decidim-system/spec/i18n_spec.rb +7 -0
- data/decidim-system/spec/models/admin_spec.rb +1 -0
- data/decidim-system/spec/spec_helper.rb +1 -0
- data/docs/features_and_components.md +15 -0
- data/docs/getting_started.md +10 -0
- data/docs/how_to_create_a_plugin.md +7 -16
- data/lib/decidim.rb +1 -0
- data/lib/generators/decidim/app_builder.rb +1 -0
- data/lib/generators/decidim/app_generator.rb +7 -0
- data/lib/generators/decidim/demo_generator.rb +1 -0
- data/lib/generators/decidim/docker_generator.rb +1 -4
- data/lib/generators/decidim/install_generator.rb +4 -3
- data/lib/generators/decidim/templates/authorization_handler.rb +1 -0
- data/lib/generators/decidim/templates/carrierwave.rb +1 -0
- data/lib/generators/decidim/templates/initializer.rb +1 -0
- data/lib/generators/decidim/templates/social_share_button.rb +1 -0
- data/package.json +10 -9
- data/yarn.lock +708 -862
- metadata +73 -37
- data/.hound.yml +0 -10
- data/decidim-admin/app/assets/stylesheets/decidim/admin/application.scss +0 -2
- data/decidim-admin/app/assets/stylesheets/decidim/admin/extra/_sidebar.scss +0 -102
- data/decidim-admin/app/views/layouts/decidim/admin/_language_chooser.html.erb +0 -14
- data/decidim-admin/app/views/layouts/decidim/admin/_main_nav.html.erb +0 -11
- data/decidim-proposals/app/controllers/decidim/proposals/admin/exports_controller.rb +0 -24
- data/decidim-proposals/app/helpers/decidim/proposals/proposal_order_helper.rb +0 -16
- data/decidim-proposals/app/jobs/decidim/proposals/export_job.rb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c8fcf4e11caf0088eeee5c33f819e22aaa67b07
|
4
|
+
data.tar.gz: c076acb7e36b18f70ca8887ae2c2605745090b05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32016ca7230acaead8ba5de7077a90539f83ee2efb7c8cd6c69c5daba488a0c1efb86d3f3425b7188ff21995401768604e5fa54032fc088fe9ea5b5aeefa7eb4
|
7
|
+
data.tar.gz: 0aa20db1ec9aebb4f3a6a5be1561749dbee4b28c14b416bb43c9bd199919782d56da9fb63688a3b52f7aa4042c25a96ea5543e2204f6ca8f141a5b5480bf29b7
|
data/.codeclimate.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -294,7 +294,7 @@ Style/BracesAroundHashParameters:
|
|
294
294
|
|
295
295
|
# Indentation of `when`.
|
296
296
|
Style/CaseIndentation:
|
297
|
-
|
297
|
+
EnforcedStyle: case
|
298
298
|
SupportedStyles:
|
299
299
|
- case
|
300
300
|
- end
|
@@ -454,6 +454,7 @@ Style/EmptyLinesAroundModuleBody:
|
|
454
454
|
# AutoCorrectEncodingComment must match the regex
|
455
455
|
# /#.*coding\s?[:=]\s?(?:UTF|utf)-8/
|
456
456
|
Style/Encoding:
|
457
|
+
Enabled: true
|
457
458
|
EnforcedStyle: never
|
458
459
|
SupportedStyles:
|
459
460
|
- when_needed
|
@@ -1139,6 +1140,10 @@ Metrics/PerceivedComplexity:
|
|
1139
1140
|
|
1140
1141
|
##################### Lint ##################################
|
1141
1142
|
|
1143
|
+
# TODO: This cop was buggy in 0.48.1. Reenable when upgrading to 0.49.0
|
1144
|
+
Lint/AmbiguousBlockAssociation:
|
1145
|
+
Enabled: false
|
1146
|
+
|
1142
1147
|
# Allow safe assignment in conditions.
|
1143
1148
|
Lint/AssignmentInCondition:
|
1144
1149
|
AllowSafeAssignment: true
|
@@ -1150,7 +1155,7 @@ Lint/BlockAlignment:
|
|
1150
1155
|
# The value `start_of_line` means it should be aligned with the whole
|
1151
1156
|
# expression's starting line.
|
1152
1157
|
# The value `either` means both are allowed.
|
1153
|
-
|
1158
|
+
EnforcedStyleAlignWith: either
|
1154
1159
|
|
1155
1160
|
# Align ends correctly.
|
1156
1161
|
Lint/EndAlignment:
|
@@ -1161,7 +1166,7 @@ Lint/EndAlignment:
|
|
1161
1166
|
# situations, `end` should still be aligned with the keyword.
|
1162
1167
|
# The value `start_of_line` means that `end` should be aligned with the start
|
1163
1168
|
# of the line which the matching keyword appears on.
|
1164
|
-
|
1169
|
+
EnforcedStyleAlignWith: keyword
|
1165
1170
|
AutoCorrect: false
|
1166
1171
|
|
1167
1172
|
Lint/DefEndAlignment:
|
@@ -1169,7 +1174,7 @@ Lint/DefEndAlignment:
|
|
1169
1174
|
# The value `start_of_line` means that `end` should be aligned with method
|
1170
1175
|
# calls like `private`, `public`, etc, if present in front of the `def`
|
1171
1176
|
# keyword on the same line.
|
1172
|
-
|
1177
|
+
EnforcedStyleAlignWith: start_of_line
|
1173
1178
|
AutoCorrect: false
|
1174
1179
|
|
1175
1180
|
Lint/InheritException:
|
@@ -1277,7 +1282,7 @@ Rails/TimeZone:
|
|
1277
1282
|
- flexible
|
1278
1283
|
|
1279
1284
|
Rails/UniqBeforePluck:
|
1280
|
-
|
1285
|
+
EnforcedStyle: conservative
|
1281
1286
|
AutoCorrect: false
|
1282
1287
|
|
1283
1288
|
Rails/Validation:
|
@@ -1287,13 +1292,13 @@ Rails/Validation:
|
|
1287
1292
|
Metrics/BlockLength:
|
1288
1293
|
Exclude:
|
1289
1294
|
- 'decidim-admin/app/controllers/decidim/admin/concerns/has_attachments.rb'
|
1295
|
+
- 'decidim-admin/lib/decidim/admin/engine.rb'
|
1290
1296
|
- 'decidim-api/lib/decidim/api/schema.rb'
|
1291
|
-
- 'decidim-core/app/controllers/concerns/decidim/needs_authorization.rb'
|
1292
|
-
- 'decidim-core/app/controllers/concerns/decidim/filter_resource.rb'
|
1293
1297
|
- 'decidim-core/config/initializers/devise.rb'
|
1294
1298
|
- 'decidim-core/lib/decidim/core/api/translated_field_type.rb'
|
1295
1299
|
- 'decidim-core/lib/decidim/resourceable.rb'
|
1296
1300
|
- 'decidim-comments/lib/decidim/comments/api/comment_type.rb'
|
1301
|
+
- 'decidim-*/app/controllers/concerns/**/*'
|
1297
1302
|
- 'decidim-*/**/routes.rb'
|
1298
1303
|
- 'decidim-*/**/*/types/**/*'
|
1299
1304
|
- 'decidim-*/lib/**/*/test/**/*'
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,23 +1,22 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
decidim (0.
|
5
|
-
decidim-admin (= 0.
|
6
|
-
decidim-api (= 0.
|
7
|
-
decidim-budgets (= 0.
|
8
|
-
decidim-comments (= 0.
|
9
|
-
decidim-core (= 0.
|
10
|
-
decidim-meetings (= 0.
|
11
|
-
decidim-pages (= 0.
|
12
|
-
decidim-proposals (= 0.
|
13
|
-
decidim-results (= 0.
|
14
|
-
decidim-system (= 0.
|
4
|
+
decidim (0.2.0)
|
5
|
+
decidim-admin (= 0.2.0)
|
6
|
+
decidim-api (= 0.2.0)
|
7
|
+
decidim-budgets (= 0.2.0)
|
8
|
+
decidim-comments (= 0.2.0)
|
9
|
+
decidim-core (= 0.2.0)
|
10
|
+
decidim-meetings (= 0.2.0)
|
11
|
+
decidim-pages (= 0.2.0)
|
12
|
+
decidim-proposals (= 0.2.0)
|
13
|
+
decidim-results (= 0.2.0)
|
14
|
+
decidim-system (= 0.2.0)
|
15
15
|
rails (~> 5.0.2)
|
16
16
|
rails-i18n (~> 5.0.2)
|
17
|
-
decidim-admin (0.
|
17
|
+
decidim-admin (0.2.0)
|
18
18
|
active_link_to (~> 1.0.0)
|
19
|
-
|
20
|
-
decidim-core (= 0.1.0)
|
19
|
+
decidim-core (= 0.2.0)
|
21
20
|
devise (~> 4.2)
|
22
21
|
devise-i18n (~> 1.1.0)
|
23
22
|
devise_invitable (~> 1.7.0)
|
@@ -26,29 +25,29 @@ PATH
|
|
26
25
|
rails (~> 5.0.2)
|
27
26
|
rectify (~> 0.9.1)
|
28
27
|
sassc-rails (~> 1.3.0)
|
29
|
-
decidim-api (0.
|
28
|
+
decidim-api (0.2.0)
|
30
29
|
graphiql-rails (~> 1.4.1)
|
31
|
-
graphql (~> 1.
|
30
|
+
graphql (~> 1.6.0)
|
32
31
|
rack-cors (~> 0.4.0)
|
33
32
|
rails (~> 5.0.2)
|
34
33
|
sprockets-es6 (~> 0.9.2)
|
35
|
-
decidim-budgets (0.
|
36
|
-
decidim-comments (= 0.
|
37
|
-
decidim-core (= 0.
|
34
|
+
decidim-budgets (0.2.0)
|
35
|
+
decidim-comments (= 0.2.0)
|
36
|
+
decidim-core (= 0.2.0)
|
38
37
|
kaminari (~> 1.0.1)
|
39
38
|
rectify (~> 0.9.1)
|
40
39
|
searchlight (~> 4.1.0)
|
41
|
-
decidim-comments (0.
|
42
|
-
decidim-core (= 0.
|
40
|
+
decidim-comments (0.2.0)
|
41
|
+
decidim-core (= 0.2.0)
|
43
42
|
jquery-rails (~> 4.0)
|
44
43
|
rails (~> 5.0.2)
|
45
|
-
decidim-core (0.
|
44
|
+
decidim-core (0.2.0)
|
46
45
|
active_link_to (~> 1.0.4)
|
47
|
-
autoprefixer-rails (~>
|
48
|
-
cancancan (~>
|
49
|
-
carrierwave (~> 1.
|
46
|
+
autoprefixer-rails (~> 7.1.1)
|
47
|
+
cancancan (~> 2.0.0)
|
48
|
+
carrierwave (~> 1.1.0)
|
50
49
|
date_validator (~> 0.9.0)
|
51
|
-
decidim-api (= 0.
|
50
|
+
decidim-api (= 0.2.0)
|
52
51
|
devise (~> 4.2)
|
53
52
|
devise-i18n (~> 1.1.0)
|
54
53
|
file_validators (~> 2.1.0)
|
@@ -62,7 +61,7 @@ PATH
|
|
62
61
|
nokogiri (~> 1.7.1)
|
63
62
|
omniauth (~> 1.6.1)
|
64
63
|
omniauth-facebook (~> 4.0.0)
|
65
|
-
omniauth-google-oauth2 (~> 0.
|
64
|
+
omniauth-google-oauth2 (~> 0.5.0)
|
66
65
|
omniauth-twitter (~> 1.4.0)
|
67
66
|
pg (~> 0.20.0)
|
68
67
|
premailer-rails (~> 1.9.5)
|
@@ -74,33 +73,33 @@ PATH
|
|
74
73
|
sprockets-es6 (~> 0.9.2)
|
75
74
|
truncato (~> 0.7.9)
|
76
75
|
wisper (~> 2.0.0)
|
77
|
-
decidim-meetings (0.
|
76
|
+
decidim-meetings (0.2.0)
|
78
77
|
date_validator (~> 0.9)
|
79
|
-
decidim-core (= 0.
|
80
|
-
httparty (~> 0.
|
78
|
+
decidim-core (= 0.2.0)
|
79
|
+
httparty (~> 0.15.0)
|
81
80
|
jquery-tmpl-rails (~> 1.1.0)
|
82
81
|
kaminari (~> 1.0.1)
|
83
82
|
rectify (~> 0.8)
|
84
83
|
searchlight (~> 4.1.0)
|
85
|
-
decidim-pages (0.
|
86
|
-
decidim-comments (= 0.
|
87
|
-
decidim-core (= 0.
|
84
|
+
decidim-pages (0.2.0)
|
85
|
+
decidim-comments (= 0.2.0)
|
86
|
+
decidim-core (= 0.2.0)
|
88
87
|
rectify (~> 0.9.1)
|
89
|
-
decidim-proposals (0.
|
90
|
-
decidim-comments (= 0.
|
91
|
-
decidim-core (= 0.
|
88
|
+
decidim-proposals (0.2.0)
|
89
|
+
decidim-comments (= 0.2.0)
|
90
|
+
decidim-core (= 0.2.0)
|
92
91
|
kaminari (~> 1.0.1)
|
93
92
|
rectify (~> 0.9.1)
|
94
93
|
social-share-button (~> 0.10.0)
|
95
|
-
decidim-results (0.
|
96
|
-
decidim-comments (= 0.
|
97
|
-
decidim-core (= 0.
|
94
|
+
decidim-results (0.2.0)
|
95
|
+
decidim-comments (= 0.2.0)
|
96
|
+
decidim-core (= 0.2.0)
|
98
97
|
kaminari (~> 1.0.1)
|
99
98
|
rectify (~> 0.9.1)
|
100
99
|
searchlight (~> 4.1.0)
|
101
|
-
decidim-system (0.
|
100
|
+
decidim-system (0.2.0)
|
102
101
|
active_link_to (~> 1.0.0)
|
103
|
-
decidim-core (= 0.
|
102
|
+
decidim-core (= 0.2.0)
|
104
103
|
devise (~> 4.2)
|
105
104
|
devise-i18n (~> 1.1.0)
|
106
105
|
devise_invitable (~> 1.7.1)
|
@@ -113,26 +112,26 @@ PATH
|
|
113
112
|
PATH
|
114
113
|
remote: decidim-dev
|
115
114
|
specs:
|
116
|
-
decidim-dev (0.
|
115
|
+
decidim-dev (0.2.0)
|
117
116
|
byebug
|
118
|
-
capybara (~> 2.
|
117
|
+
capybara (~> 2.14.0)
|
119
118
|
capybara-screenshot (~> 1.0.14)
|
120
119
|
codecov (~> 0.1.9)
|
121
|
-
database_cleaner (~> 1.
|
122
|
-
db-query-matchers (~> 0.
|
123
|
-
decidim (= 0.
|
120
|
+
database_cleaner (~> 1.6.0)
|
121
|
+
db-query-matchers (~> 0.9.0)
|
122
|
+
decidim (= 0.2.0)
|
124
123
|
factory_girl_rails
|
125
124
|
faker (~> 1.7.3)
|
126
|
-
i18n-tasks (= 0.9.
|
125
|
+
i18n-tasks (= 0.9.15)
|
127
126
|
launchy
|
128
127
|
letter_opener_web (~> 1.3.0)
|
129
128
|
listen (~> 3.1.0)
|
130
|
-
poltergeist (~> 1.
|
129
|
+
poltergeist (~> 1.15.0)
|
131
130
|
rails-controller-testing (~> 1.0.1)
|
132
131
|
rspec-html-matchers (~> 0.9.1)
|
133
132
|
rspec-rails (~> 3.5)
|
134
133
|
rspec-repeat (~> 1.0.2)
|
135
|
-
rubocop (~> 0.
|
134
|
+
rubocop (~> 0.49.0)
|
136
135
|
simplecov (~> 0.13)
|
137
136
|
webmock (~> 3.0.1)
|
138
137
|
wisper-rspec (~> 0.0.3)
|
@@ -184,7 +183,7 @@ GEM
|
|
184
183
|
public_suffix (~> 2.0, >= 2.0.2)
|
185
184
|
arel (7.1.4)
|
186
185
|
ast (2.3.0)
|
187
|
-
autoprefixer-rails (
|
186
|
+
autoprefixer-rails (7.1.1)
|
188
187
|
execjs
|
189
188
|
axiom-types (0.1.1)
|
190
189
|
descendants_tracker (~> 0.0.4)
|
@@ -197,8 +196,8 @@ GEM
|
|
197
196
|
bcrypt (3.1.11)
|
198
197
|
builder (3.2.3)
|
199
198
|
byebug (9.0.6)
|
200
|
-
cancancan (
|
201
|
-
capybara (2.
|
199
|
+
cancancan (2.0.0)
|
200
|
+
capybara (2.14.0)
|
202
201
|
addressable
|
203
202
|
mime-types (>= 1.16)
|
204
203
|
nokogiri (>= 1.3.3)
|
@@ -208,7 +207,7 @@ GEM
|
|
208
207
|
capybara-screenshot (1.0.14)
|
209
208
|
capybara (>= 1.0, < 3)
|
210
209
|
launchy
|
211
|
-
carrierwave (1.
|
210
|
+
carrierwave (1.1.0)
|
212
211
|
activemodel (>= 4.0.0)
|
213
212
|
activesupport (>= 4.0.0)
|
214
213
|
mime-types (>= 1.16)
|
@@ -219,9 +218,9 @@ GEM
|
|
219
218
|
url
|
220
219
|
coercible (1.0.0)
|
221
220
|
descendants_tracker (~> 0.0.1)
|
222
|
-
coffee-rails (4.2.
|
221
|
+
coffee-rails (4.2.2)
|
223
222
|
coffee-script (>= 2.2.0)
|
224
|
-
railties (>= 4.0.0
|
223
|
+
railties (>= 4.0.0)
|
225
224
|
coffee-script (2.4.1)
|
226
225
|
coffee-script-source
|
227
226
|
execjs
|
@@ -231,11 +230,13 @@ GEM
|
|
231
230
|
safe_yaml (~> 1.0.0)
|
232
231
|
css_parser (1.5.0)
|
233
232
|
addressable
|
234
|
-
database_cleaner (1.
|
233
|
+
database_cleaner (1.6.1)
|
235
234
|
date_validator (0.9.0)
|
236
235
|
activemodel
|
237
236
|
activesupport
|
238
|
-
db-query-matchers (0.
|
237
|
+
db-query-matchers (0.9.0)
|
238
|
+
activesupport (>= 4.0, <= 6.0)
|
239
|
+
rspec (~> 3.0)
|
239
240
|
descendants_tracker (0.0.4)
|
240
241
|
thread_safe (~> 0.3, >= 0.3.1)
|
241
242
|
devise (4.3.0)
|
@@ -285,16 +286,16 @@ GEM
|
|
285
286
|
activesupport (>= 4.2.0)
|
286
287
|
graphiql-rails (1.4.1)
|
287
288
|
rails
|
288
|
-
graphql (1.
|
289
|
+
graphql (1.6.1)
|
289
290
|
hashdiff (0.3.4)
|
290
291
|
hashie (3.5.5)
|
291
292
|
high_voltage (3.0.0)
|
292
293
|
highline (1.7.8)
|
293
294
|
htmlentities (4.3.4)
|
294
|
-
httparty (0.
|
295
|
+
httparty (0.15.5)
|
295
296
|
multi_xml (>= 0.5.2)
|
296
|
-
i18n (0.8.
|
297
|
-
i18n-tasks (0.9.
|
297
|
+
i18n (0.8.4)
|
298
|
+
i18n-tasks (0.9.15)
|
298
299
|
activesupport (>= 4.0.2)
|
299
300
|
ast (>= 2.1.0)
|
300
301
|
easy_translate (>= 0.5.0)
|
@@ -353,10 +354,10 @@ GEM
|
|
353
354
|
multi_json (1.12.1)
|
354
355
|
multi_xml (0.6.0)
|
355
356
|
multipart-post (2.0.0)
|
356
|
-
nio4r (2.
|
357
|
+
nio4r (2.1.0)
|
357
358
|
nokogiri (1.7.2)
|
358
359
|
mini_portile2 (~> 2.1.0)
|
359
|
-
oauth (0.5.
|
360
|
+
oauth (0.5.3)
|
360
361
|
oauth2 (1.3.1)
|
361
362
|
faraday (>= 0.8, < 0.12)
|
362
363
|
jwt (~> 1.0)
|
@@ -368,8 +369,8 @@ GEM
|
|
368
369
|
rack (>= 1.6.2, < 3)
|
369
370
|
omniauth-facebook (4.0.0)
|
370
371
|
omniauth-oauth2 (~> 1.2)
|
371
|
-
omniauth-google-oauth2 (0.
|
372
|
-
jwt (~> 1.5
|
372
|
+
omniauth-google-oauth2 (0.5.0)
|
373
|
+
jwt (~> 1.5)
|
373
374
|
multi_json (~> 1.3)
|
374
375
|
omniauth (>= 1.1.1)
|
375
376
|
omniauth-oauth2 (>= 1.3.1)
|
@@ -383,10 +384,11 @@ GEM
|
|
383
384
|
omniauth-oauth (~> 1.1)
|
384
385
|
rack
|
385
386
|
orm_adapter (0.5.0)
|
387
|
+
parallel (1.11.2)
|
386
388
|
parser (2.4.0.0)
|
387
389
|
ast (~> 2.2)
|
388
390
|
pg (0.20.0)
|
389
|
-
poltergeist (1.
|
391
|
+
poltergeist (1.15.0)
|
390
392
|
capybara (~> 2.1)
|
391
393
|
cliver (~> 0.3.1)
|
392
394
|
websocket-driver (>= 0.2.0)
|
@@ -475,8 +477,9 @@ GEM
|
|
475
477
|
rspec-repeat (1.0.2)
|
476
478
|
rspec (~> 3.0)
|
477
479
|
rspec-support (3.6.0)
|
478
|
-
rubocop (0.
|
479
|
-
|
480
|
+
rubocop (0.49.1)
|
481
|
+
parallel (~> 1.10)
|
482
|
+
parser (>= 2.3.3.1, < 3.0)
|
480
483
|
powerpack (~> 0.1)
|
481
484
|
rainbow (>= 1.99.1, < 3.0)
|
482
485
|
ruby-progressbar (~> 1.7)
|
@@ -485,7 +488,7 @@ GEM
|
|
485
488
|
ruby_dep (1.5.0)
|
486
489
|
rubyzip (1.2.1)
|
487
490
|
safe_yaml (1.0.4)
|
488
|
-
sass (3.4.
|
491
|
+
sass (3.4.24)
|
489
492
|
sassc (1.11.2)
|
490
493
|
bundler
|
491
494
|
ffi (~> 1.9.6)
|
@@ -545,7 +548,7 @@ GEM
|
|
545
548
|
websocket-extensions (0.1.2)
|
546
549
|
wisper (2.0.0)
|
547
550
|
wisper-rspec (0.0.3)
|
548
|
-
xpath (2.
|
551
|
+
xpath (2.1.0)
|
549
552
|
nokogiri (~> 1.3)
|
550
553
|
|
551
554
|
PLATFORMS
|
@@ -559,4 +562,4 @@ RUBY VERSION
|
|
559
562
|
ruby 2.4.1p111
|
560
563
|
|
561
564
|
BUNDLED WITH
|
562
|
-
1.
|
565
|
+
1.15.0
|
data/README.md
CHANGED
@@ -38,6 +38,7 @@ Decidim is a participatory democracy framework written on Ruby on Rails original
|
|
38
38
|
|
39
39
|
- [Get started with Decidim](#getting-started-with-decidim)
|
40
40
|
- [Contribute to the project](#how-to-contribute)
|
41
|
+
- [Decidim components](#components)
|
41
42
|
- [How to test Decidim engines](#testing)
|
42
43
|
- [Create & browse development app](#browse-decidim)
|
43
44
|
- [Check current components](#components)
|
data/Rakefile
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
require "bundler/gem_tasks"
|
3
4
|
require "rspec/core/rake_task"
|
4
5
|
require_relative "lib/generators/decidim/app_generator"
|
@@ -17,13 +18,14 @@ desc "Runs all tests in all Decidim engines"
|
|
17
18
|
task test_all: ["decidim:generate_test_app"] do
|
18
19
|
DECIDIM_GEMS.each do |gem_name|
|
19
20
|
Dir.chdir("#{File.dirname(__FILE__)}/decidim-#{gem_name}") do
|
21
|
+
puts "Running #{gem_name}'s tests..."
|
20
22
|
sh "rake"
|
21
23
|
end
|
22
24
|
end
|
23
25
|
end
|
24
26
|
|
25
27
|
desc "Pushes a new build for each gem."
|
26
|
-
task release_all: [:webpack] do
|
28
|
+
task release_all: [:check_locale_completeness, :webpack] do
|
27
29
|
sh "rake release"
|
28
30
|
DECIDIM_GEMS.each do |gem_name|
|
29
31
|
Dir.chdir("#{File.dirname(__FILE__)}/decidim-#{gem_name}") do
|
@@ -32,6 +34,15 @@ task release_all: [:webpack] do
|
|
32
34
|
end
|
33
35
|
end
|
34
36
|
|
37
|
+
desc "Makes sure all official locales are complete and clean."
|
38
|
+
task :check_locale_completeness do
|
39
|
+
DECIDIM_GEMS.each do |gem_name|
|
40
|
+
Dir.chdir("#{File.dirname(__FILE__)}/decidim-#{gem_name}") do
|
41
|
+
system({ "ENFORCED_LOCALES" => "en,ca,es" }, "rspec spec/i18n_spec.rb")
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
35
46
|
desc "Generates a development app."
|
36
47
|
task :development_app do
|
37
48
|
Dir.chdir(File.dirname(__FILE__)) do
|