decidim 0.0.2 → 0.0.3
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/.travis.yml +12 -0
- data/Dockerfile +2 -0
- data/Gemfile.lock +80 -54
- data/README.md +15 -2
- data/decidim-admin/app/assets/javascripts/decidim/admin/application.js.es6 +3 -2
- data/decidim-admin/app/assets/javascripts/decidim/admin/tab_focus.js.es6 +1 -1
- data/decidim-admin/app/assets/stylesheets/decidim/admin/_foundation_and_overrides.scss +1 -1
- data/decidim-admin/app/commands/decidim/admin/{create_participatory_process_attachment.rb → create_attachment.rb} +6 -7
- data/decidim-admin/app/commands/decidim/admin/create_participatory_process.rb +12 -3
- data/decidim-admin/app/commands/decidim/admin/{update_participatory_process_attachment.rb → update_attachment.rb} +7 -6
- data/decidim-admin/app/commands/decidim/admin/update_feature.rb +2 -1
- data/decidim-admin/app/commands/decidim/admin/update_organization.rb +1 -0
- data/decidim-admin/app/commands/decidim/admin/update_participatory_process.rb +16 -4
- data/decidim-admin/app/constraints/decidim/admin/organization_dashboard_constraint.rb +1 -1
- data/decidim-admin/app/controllers/decidim/admin/application_controller.rb +2 -2
- data/decidim-admin/app/controllers/decidim/admin/concerns/has_attachments.rb +116 -0
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_attachments_controller.rb +5 -67
- data/decidim-admin/app/controllers/decidim/admin/users_controller.rb +5 -5
- data/decidim-admin/app/forms/decidim/admin/{participatory_process_attachment_form.rb → attachment_form.rb} +2 -2
- data/decidim-admin/app/forms/decidim/admin/feature_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_form.rb +8 -1
- data/decidim-admin/app/helpers/decidim/admin/application_helper.rb +1 -0
- data/decidim-admin/app/helpers/decidim/admin/feature_settings_helper.rb +29 -0
- data/decidim-admin/app/models/decidim/admin/abilities/admin_user.rb +4 -4
- data/decidim-admin/app/models/decidim/admin/abilities/base.rb +3 -3
- data/decidim-admin/app/models/decidim/admin/abilities/participatory_process_admin.rb +15 -7
- data/decidim-admin/app/views/decidim/admin/{participatory_process_attachments → attachments}/_form.html.erb +0 -0
- data/decidim-admin/app/views/decidim/admin/attachments/edit.html.erb +9 -0
- data/decidim-admin/app/views/decidim/admin/attachments/index.html.erb +37 -0
- data/decidim-admin/app/views/decidim/admin/attachments/new.html.erb +9 -0
- data/decidim-admin/app/views/decidim/admin/attachments/show.html.erb +25 -0
- data/decidim-admin/app/views/decidim/admin/features/_form.html.erb +1 -0
- data/decidim-admin/app/views/decidim/admin/features/_settings_fields.html.erb +6 -3
- data/decidim-admin/app/views/decidim/admin/organization/_form.html.erb +4 -0
- data/decidim-admin/app/views/decidim/admin/participatory_processes/_form.html.erb +16 -0
- data/decidim-admin/app/views/decidim/admin/participatory_processes/show.html.erb +11 -1
- data/decidim-admin/app/views/layouts/decidim/admin/_header.html.erb +2 -2
- data/decidim-admin/app/views/layouts/decidim/admin/_sidebar.html.erb +1 -1
- data/decidim-admin/app/views/layouts/decidim/admin/participatory_process.html.erb +2 -2
- data/decidim-admin/config/locales/ca.yml +29 -27
- data/decidim-admin/config/locales/en.yml +29 -27
- data/decidim-admin/config/locales/es.yml +29 -27
- data/decidim-admin/config/routes.rb +1 -1
- data/decidim-admin/db/migrate/20170128112958_change_user_groups_verified_to_timestamp.rb +9 -0
- data/decidim-admin/decidim-admin.gemspec +0 -1
- data/decidim-admin/lib/decidim/admin/engine.rb +2 -2
- data/decidim-admin/lib/decidim/admin/test/manage_attachments_examples.rb +103 -0
- data/decidim-admin/spec/commands/create_category_spec.rb +1 -1
- data/decidim-admin/spec/commands/create_feature_spec.rb +1 -1
- data/decidim-admin/spec/commands/create_participatory_process_spec.rb +32 -2
- data/decidim-admin/spec/commands/create_static_page_spec.rb +1 -1
- data/decidim-admin/spec/commands/destroy_category_spec.rb +1 -1
- data/decidim-admin/spec/commands/destroy_feature_spec.rb +2 -2
- data/decidim-admin/spec/commands/destroy_participatory_process_step_spec.rb +1 -1
- data/decidim-admin/spec/commands/update_category_spec.rb +1 -1
- data/decidim-admin/spec/commands/update_feature_spec.rb +3 -1
- data/decidim-admin/spec/commands/update_organization_spec.rb +12 -2
- data/decidim-admin/spec/commands/update_static_page_spec.rb +1 -1
- data/decidim-admin/spec/features/admin_manages_organization_admins_spec.rb +1 -1
- data/decidim-admin/spec/features/admin_manages_organization_scopes_spec.rb +1 -1
- data/decidim-admin/spec/features/admin_manages_participatory_processes_spec.rb +1 -1
- data/decidim-admin/spec/features/static_pages_spec.rb +1 -1
- data/decidim-admin/spec/forms/participatory_process_form_spec.rb +32 -2
- data/decidim-admin/spec/forms/participatory_process_step_form_spec.rb +3 -3
- data/decidim-admin/spec/forms/scope_form_spec.rb +2 -2
- data/decidim-admin/spec/forms/static_page_form_spec.rb +2 -2
- data/decidim-admin/spec/helpers/feature_settings_helper_spec.rb +56 -0
- data/decidim-admin/spec/models/abilities/admin_user_spec.rb +7 -6
- data/decidim-admin/spec/models/abilities/participatory_process_admin_spec.rb +5 -8
- data/decidim-admin/spec/shared/manage_process_admins_examples.rb +1 -1
- data/decidim-admin/spec/shared/manage_process_attachments_examples.rb +4 -94
- data/decidim-admin/spec/shared/manage_process_categories_examples.rb +2 -1
- data/decidim-admin/spec/shared/manage_process_steps_examples.rb +1 -1
- data/decidim-admin/spec/shared/manage_processes_examples.rb +4 -3
- data/decidim-admin/spec/views/decidim/static_pages/_form.html.erb_spec.rb +2 -2
- data/decidim-api/app/views/layouts/decidim/api/documentation.html.erb +1 -1
- data/decidim-api/decidim-api.gemspec +1 -1
- data/decidim-api/lib/decidim/api.rb +1 -0
- data/decidim-api/lib/decidim/api/schema.rb +5 -0
- data/decidim-api/lib/decidim/api/test/type_context.rb +1 -0
- data/decidim-api/lib/decidim/api/types/author_interface.rb +13 -0
- data/decidim-api/spec/types/query_type_spec.rb +1 -1
- data/decidim-api/spec/types/translated_field_type_spec.rb +1 -1
- data/decidim-budgets/.gitignore +7 -0
- data/decidim-budgets/README.md +23 -0
- data/decidim-budgets/Rakefile +2 -0
- data/decidim-budgets/app/assets/config/decidim_budgets_manifest.js +1 -0
- data/decidim-budgets/app/assets/images/decidim/budgets/icon.svg +4 -0
- data/decidim-budgets/app/assets/javascripts/decidim/budgets/projects.js.es6 +28 -0
- data/decidim-budgets/app/assets/stylesheets/decidim/budgets/_budgets.scss +1 -0
- data/decidim-budgets/app/assets/stylesheets/decidim/budgets/budget/_budget-list.scss +32 -0
- data/decidim-budgets/app/assets/stylesheets/decidim/budgets/budget/_budget-meter.scss +78 -0
- data/decidim-budgets/app/assets/stylesheets/decidim/budgets/budget/_progress.scss +17 -0
- data/decidim-budgets/app/commands/decidim/budgets/add_line_item.rb +43 -0
- data/decidim-budgets/app/commands/decidim/budgets/admin/create_project.rb +52 -0
- data/decidim-budgets/app/commands/decidim/budgets/admin/update_project.rb +56 -0
- data/decidim-budgets/app/commands/decidim/budgets/cancel_order.rb +36 -0
- data/decidim-budgets/app/commands/decidim/budgets/checkout.rb +34 -0
- data/decidim-budgets/app/commands/decidim/budgets/remove_line_item.rb +35 -0
- data/decidim-budgets/app/controllers/concerns/decidim/budgets/needs_current_order.rb +27 -0
- data/decidim-budgets/app/controllers/decidim/budgets/admin/application_controller.rb +14 -0
- data/decidim-budgets/app/controllers/decidim/budgets/admin/projects_controller.rb +69 -0
- data/decidim-budgets/app/controllers/decidim/budgets/application_controller.rb +13 -0
- data/decidim-budgets/app/controllers/decidim/budgets/line_items_controller.rb +43 -0
- data/decidim-budgets/app/controllers/decidim/budgets/orders_controller.rb +38 -0
- data/decidim-budgets/app/controllers/decidim/budgets/projects_controller.rb +44 -0
- data/decidim-budgets/app/forms/decidim/budgets/admin/project_form.rb +44 -0
- data/decidim-budgets/app/helpers/decidim/budgets/application_helper.rb +12 -0
- data/decidim-budgets/app/helpers/decidim/budgets/projects_helper.rb +29 -0
- data/decidim-budgets/app/models/decidim/budgets/application_record.rb +9 -0
- data/decidim-budgets/app/models/decidim/budgets/line_item.rb +20 -0
- data/decidim-budgets/app/models/decidim/budgets/order.rb +52 -0
- data/decidim-budgets/app/models/decidim/budgets/project.rb +15 -0
- data/decidim-budgets/app/services/decidim/budgets/project_search.rb +58 -0
- data/decidim-budgets/app/views/decidim/budgets/admin/projects/_form.html.erb +31 -0
- data/decidim-budgets/app/views/decidim/budgets/admin/projects/edit.html.erb +9 -0
- data/decidim-budgets/app/views/decidim/budgets/admin/projects/index.html.erb +27 -0
- data/{decidim-admin/app/views/decidim/admin/participatory_process_attachments → decidim-budgets/app/views/decidim/budgets/admin/projects}/new.html.erb +0 -0
- data/decidim-budgets/app/views/decidim/budgets/line_items/update_budget.js.erb +21 -0
- data/decidim-budgets/app/views/decidim/budgets/projects/_budget_confirm.html.erb +30 -0
- data/decidim-budgets/app/views/decidim/budgets/projects/_budget_excess.html.erb +14 -0
- data/decidim-budgets/app/views/decidim/budgets/projects/_budget_summary.html.erb +46 -0
- data/decidim-budgets/app/views/decidim/budgets/projects/_count.html.erb +1 -0
- data/decidim-budgets/app/views/decidim/budgets/projects/_filters.html.erb +24 -0
- data/decidim-budgets/app/views/decidim/budgets/projects/_linked_projects.html.erb +12 -0
- data/decidim-budgets/app/views/decidim/budgets/projects/_order_progress.html.erb +34 -0
- data/decidim-budgets/app/views/decidim/budgets/projects/_order_selected_projects.html.erb +25 -0
- data/decidim-budgets/app/views/decidim/budgets/projects/_order_total_budget.html.erb +1 -0
- data/decidim-budgets/app/views/decidim/budgets/projects/_project.html.erb +40 -0
- data/decidim-budgets/app/views/decidim/budgets/projects/_project_budget_button.html.erb +9 -0
- data/decidim-budgets/app/views/decidim/budgets/projects/_projects.html.erb +8 -0
- data/decidim-budgets/app/views/decidim/budgets/projects/_tags.html.erb +10 -0
- data/decidim-budgets/app/views/decidim/budgets/projects/index.html.erb +26 -0
- data/decidim-budgets/app/views/decidim/budgets/projects/index.js.erb +2 -0
- data/decidim-budgets/app/views/decidim/budgets/projects/show.html.erb +48 -0
- data/decidim-budgets/bin/rails +14 -0
- data/decidim-budgets/config/i18n-tasks.yml +4 -0
- data/decidim-budgets/config/locales/ca.yml +84 -0
- data/decidim-budgets/config/locales/en.yml +95 -0
- data/decidim-budgets/config/locales/es.yml +84 -0
- data/decidim-budgets/db/migrate/20170127114122_create_projects.rb +15 -0
- data/decidim-budgets/db/migrate/20170130095615_create_orders.rb +13 -0
- data/decidim-budgets/db/migrate/20170130101825_create_line_items.rb +10 -0
- data/decidim-budgets/decidim-budgets.gemspec +24 -0
- data/decidim-budgets/lib/decidim/budgets.rb +11 -0
- data/decidim-budgets/lib/decidim/budgets/admin.rb +9 -0
- data/decidim-budgets/lib/decidim/budgets/admin_engine.rb +22 -0
- data/decidim-budgets/lib/decidim/budgets/feature.rb +59 -0
- data/decidim-budgets/lib/decidim/budgets/list_engine.rb +30 -0
- data/decidim-budgets/lib/decidim/budgets/test/factories.rb +43 -0
- data/decidim-budgets/spec/commands/add_line_item_spec.rb +48 -0
- data/decidim-budgets/spec/commands/cancel_order_spec.rb +42 -0
- data/decidim-budgets/spec/commands/checkout_spec.rb +45 -0
- data/decidim-budgets/spec/commands/create_project_spec.rb +72 -0
- data/decidim-budgets/spec/commands/remove_line_item_spec.rb +31 -0
- data/decidim-budgets/spec/commands/update_project_spec.rb +65 -0
- data/decidim-budgets/spec/factories.rb +4 -0
- data/decidim-budgets/spec/features/admin_manages_projects_spec.rb +16 -0
- data/decidim-budgets/spec/features/orders_spec.rb +149 -0
- data/decidim-budgets/spec/features/process_admin_manages_projects_spec.rb +17 -0
- data/decidim-budgets/spec/forms/project_form_spec.rb +115 -0
- data/decidim-budgets/spec/models/line_item_spec.rb +35 -0
- data/decidim-budgets/spec/models/order_spec.rb +45 -0
- data/decidim-budgets/spec/models/project_spec.rb +30 -0
- data/decidim-budgets/spec/services/project_search_spec.rb +97 -0
- data/decidim-budgets/spec/shared/admin_shared_context.rb +11 -0
- data/decidim-budgets/spec/shared/manage_projects_examples.rb +104 -0
- data/decidim-budgets/spec/spec_helper.rb +2 -0
- data/decidim-comments/app/assets/javascripts/decidim/comments/bundle.js +0 -0
- data/decidim-comments/app/commands/decidim/comments/create_comment.rb +2 -1
- data/decidim-comments/app/forms/decidim/comments/comment_form.rb +1 -0
- data/decidim-comments/app/frontend/application/apollo_client.js +1 -1
- data/decidim-comments/app/frontend/application/application.component.jsx +1 -1
- data/decidim-comments/app/frontend/comments/add_comment_form.component.jsx +76 -20
- data/decidim-comments/app/frontend/comments/add_comment_form.component.test.jsx +77 -22
- data/decidim-comments/app/frontend/comments/add_comment_form.fragment.graphql +6 -0
- data/decidim-comments/app/frontend/comments/add_comment_form.mutation.graphql +2 -2
- data/decidim-comments/app/frontend/comments/comment.component.jsx +15 -15
- data/decidim-comments/app/frontend/comments/comment.component.test.jsx +42 -41
- data/decidim-comments/app/frontend/comments/comment_order_selector.component.jsx +1 -1
- data/decidim-comments/app/frontend/comments/comment_thread.component.jsx +7 -7
- data/decidim-comments/app/frontend/comments/comment_thread.component.test.jsx +21 -19
- data/decidim-comments/app/frontend/comments/comments.component.jsx +21 -17
- data/decidim-comments/app/frontend/comments/comments.component.test.jsx +47 -32
- data/decidim-comments/app/frontend/comments/comments.query.graphql +6 -3
- data/decidim-comments/app/frontend/comments/down_vote_button.component.jsx +21 -10
- data/decidim-comments/app/frontend/comments/up_vote_button.component.jsx +23 -12
- data/decidim-comments/app/frontend/comments/vote_button.component.jsx +15 -7
- data/decidim-comments/app/frontend/comments/vote_button_component.test.jsx +7 -2
- data/decidim-comments/app/frontend/entry.js +1 -8
- data/decidim-comments/app/frontend/support/generate_user_data.js +13 -0
- data/decidim-comments/app/frontend/support/generate_user_group_data.js +14 -0
- data/decidim-comments/app/helpers/decidim/comments/comments_helper.rb +10 -15
- data/decidim-comments/app/models/decidim/comments/comment.rb +5 -7
- data/decidim-comments/app/types/decidim/comments/comment_type.rb +5 -1
- data/decidim-comments/config/locales/ca.yml +5 -1
- data/decidim-comments/config/locales/en.yml +4 -1
- data/decidim-comments/config/locales/es.yml +5 -1
- data/decidim-comments/db/migrate/20170123102043_add_user_group_id_to_comments.rb +5 -0
- data/decidim-comments/decidim-comments.gemspec +0 -1
- data/decidim-comments/lib/decidim/comments/engine.rb +0 -1
- data/decidim-comments/lib/decidim/comments/mutation_extensions.rb +2 -1
- data/decidim-comments/spec/commands/create_comment_spec.rb +6 -3
- data/decidim-comments/spec/commands/vote_comment_spec.rb +4 -4
- data/decidim-comments/spec/features/comments_spec.rb +27 -3
- data/decidim-comments/spec/forms/comment_form_spec.rb +6 -3
- data/decidim-comments/spec/models/comment_spec.rb +25 -32
- data/decidim-comments/spec/queries/comments_with_replies_spec.rb +2 -2
- data/decidim-comments/spec/types/comment_type_spec.rb +2 -2
- data/decidim-comments/spec/types/query_type_spec.rb +5 -5
- data/decidim-dev/app/views/decidim/dummy_resource/_linked_dummys.html.erb +5 -0
- data/decidim-dev/config/locales/en.yml +5 -0
- data/decidim-dev/decidim-dev.gemspec +3 -3
- data/decidim-dev/lib/decidim/dev/assets/avatar.jpg +0 -0
- data/decidim-dev/lib/decidim/dev/assets/icon.png +0 -0
- data/decidim-dev/lib/decidim/dev/test/base_spec_helper.rb +1 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/action_mailer.rb +1 -1
- data/decidim-dev/lib/decidim/dev/test/rspec_support/engine_routes.rb +9 -5
- data/decidim-dev/lib/decidim/dev/test/rspec_support/feature.rb +24 -0
- data/decidim-meetings/app/assets/config/decidim_meetings_manifest.js +2 -0
- data/decidim-meetings/app/assets/javascripts/decidim/meetings/map.js.es6.erb +92 -0
- data/decidim-meetings/app/assets/stylesheets/decidim/meetings/map.css +1 -0
- data/decidim-meetings/app/commands/decidim/meetings/admin/close_meeting.rb +53 -0
- data/decidim-meetings/app/commands/decidim/meetings/admin/create_meeting.rb +15 -3
- data/decidim-meetings/app/commands/decidim/meetings/admin/update_meeting.rb +15 -3
- data/decidim-meetings/app/controllers/decidim/meetings/admin/application_controller.rb +9 -0
- data/decidim-meetings/app/controllers/decidim/meetings/admin/attachments_controller.rb +29 -0
- data/decidim-meetings/app/controllers/decidim/meetings/admin/meeting_closes_controller.rb +38 -0
- data/decidim-meetings/app/controllers/decidim/meetings/admin/meetings_controller.rb +0 -12
- data/decidim-meetings/app/controllers/decidim/meetings/meetings_controller.rb +11 -9
- data/decidim-meetings/app/forms/decidim/meetings/admin/close_meeting_form.rb +31 -0
- data/decidim-meetings/app/forms/decidim/meetings/admin/meeting_form.rb +0 -2
- data/decidim-meetings/app/helpers/decidim/meetings/admin/application_helper.rb +12 -0
- data/decidim-meetings/app/helpers/decidim/meetings/application_helper.rb +1 -0
- data/decidim-meetings/app/helpers/decidim/meetings/map_helper.rb +46 -0
- data/decidim-meetings/app/models/decidim/meetings/meeting.rb +11 -15
- data/decidim-meetings/app/services/decidim/meetings/meeting_search.rb +0 -1
- data/decidim-meetings/app/services/decidim/meetings/static_map_generator.rb +50 -0
- data/decidim-meetings/app/views/decidim/meetings/admin/meeting_closes/_form.html.erb +23 -0
- data/decidim-meetings/app/views/decidim/meetings/admin/meeting_closes/edit.html.erb +9 -0
- data/decidim-meetings/app/views/decidim/meetings/admin/meetings/_form.html.erb +2 -6
- data/decidim-meetings/app/views/decidim/meetings/admin/meetings/index.html.erb +14 -0
- data/decidim-meetings/app/views/decidim/meetings/meetings/_datetime.html.erb +8 -0
- data/decidim-meetings/app/views/decidim/meetings/meetings/_filters.html.erb +2 -2
- data/decidim-meetings/app/views/decidim/meetings/meetings/_filters_small_view.html.erb +18 -0
- data/decidim-meetings/app/views/decidim/meetings/meetings/_linked_meetings.html.erb +22 -0
- data/decidim-meetings/app/views/decidim/meetings/meetings/_meetings.html.erb +3 -10
- data/decidim-meetings/app/views/decidim/meetings/meetings/index.html.erb +42 -0
- data/decidim-meetings/app/views/decidim/meetings/meetings/index.js.erb +6 -0
- data/decidim-meetings/app/views/decidim/meetings/meetings/show.html.erb +33 -7
- data/decidim-meetings/bin/rails +1 -1
- data/decidim-meetings/config/i18n-tasks.yml +2 -0
- data/decidim-meetings/config/locales/ca.yml +37 -4
- data/decidim-meetings/config/locales/en.yml +34 -1
- data/decidim-meetings/config/locales/es.yml +36 -3
- data/decidim-meetings/db/migrate/20170110142105_close_a_meeting.rb +9 -0
- data/decidim-meetings/db/migrate/20170123151650_add_latitude_and_longitude_to_meetings.rb +6 -0
- data/decidim-meetings/db/migrate/20170129153716_remove_short_description_from_meetings.rb +5 -0
- data/decidim-meetings/decidim-meetings.gemspec +7 -0
- data/decidim-meetings/lib/decidim/meetings/admin_engine.rb +31 -1
- data/decidim-meetings/lib/decidim/meetings/feature.rb +20 -6
- data/decidim-meetings/lib/decidim/meetings/list_engine.rb +10 -1
- data/decidim-meetings/lib/decidim/meetings/seeds/Exampledocument.pdf +0 -0
- data/decidim-meetings/lib/decidim/meetings/seeds/city.jpeg +0 -0
- data/decidim-meetings/lib/decidim/meetings/test/factories.rb +23 -0
- data/decidim-meetings/spec/commands/close_meeting_spec.rb +78 -0
- data/decidim-meetings/spec/commands/create_meeting_spec.rb +22 -3
- data/decidim-meetings/spec/commands/update_meeting_spec.rb +32 -3
- data/decidim-meetings/spec/controllers/meetings_controller_spec.rb +41 -0
- data/decidim-meetings/spec/factories.rb +3 -13
- data/decidim-meetings/spec/features/admin_manages_meetings_attachments_spec.rb +10 -0
- data/decidim-meetings/spec/features/explore_meetings_spec.rb +55 -1
- data/decidim-meetings/spec/features/process_admin_manages_meetings_attachments_spec.rb +12 -0
- data/decidim-meetings/spec/forms/close_meeting_form_spec.rb +90 -0
- data/decidim-meetings/spec/forms/meeting_form_spec.rb +1 -7
- data/decidim-meetings/spec/models/meeting_spec.rb +42 -24
- data/decidim-meetings/spec/services/meeting_search_spec.rb +1 -17
- data/decidim-meetings/spec/services/static_map_generator_spec.rb +33 -0
- data/decidim-meetings/spec/shared/manage_attachments_examples.rb +17 -0
- data/decidim-meetings/spec/shared/manage_meetings_examples.rb +58 -8
- data/decidim-meetings/spec/spec_helper.rb +5 -0
- data/decidim-meetings/spec/support/geocoder.rb +7 -0
- data/decidim-meetings/vendor/assets/javascripts/leaflet-svg-icon.js +179 -0
- data/decidim-meetings/vendor/assets/javascripts/leaflet-tilelayer-here.js +166 -0
- data/decidim-meetings/vendor/assets/javascripts/leaflet.js +9 -0
- data/decidim-meetings/vendor/assets/stylesheets/leaflet.css +624 -0
- data/decidim-pages/app/models/decidim/pages/page.rb +10 -1
- data/decidim-pages/app/views/decidim/pages/application/show.html.erb +2 -1
- data/decidim-pages/spec/commands/create_page_spec.rb +2 -2
- data/decidim-pages/spec/commands/destroy_page_spec.rb +1 -1
- data/decidim-pages/spec/commands/update_page_spec.rb +1 -1
- data/decidim-pages/spec/factories.rb +1 -1
- data/decidim-pages/spec/features/admin_spec.rb +1 -0
- data/decidim-pages/spec/models/page_spec.rb +15 -0
- data/decidim-proposals/app/assets/stylesheets/decidim/proposals/social_share.css.scss +5 -0
- data/decidim-proposals/app/commands/decidim/proposals/admin/answer_proposal.rb +43 -0
- data/decidim-proposals/app/commands/decidim/proposals/create_proposal.rb +1 -0
- data/decidim-proposals/app/controllers/decidim/proposals/admin/proposal_answers_controller.rb +37 -0
- data/decidim-proposals/app/controllers/decidim/proposals/admin/proposals_controller.rb +1 -0
- data/decidim-proposals/app/controllers/decidim/proposals/proposal_votes_controller.rb +18 -7
- data/decidim-proposals/app/controllers/decidim/proposals/proposals_controller.rb +8 -7
- data/decidim-proposals/app/forms/decidim/proposals/admin/proposal_answer_form.rb +18 -0
- data/decidim-proposals/app/forms/decidim/proposals/proposal_form.rb +1 -0
- data/decidim-proposals/app/helpers/decidim/proposals/application_helper.rb +17 -0
- data/decidim-proposals/app/helpers/decidim/proposals/proposal_votes_helper.rb +19 -0
- data/decidim-proposals/app/models/decidim/proposals/abilities/current_user.rb +59 -0
- data/decidim-proposals/app/models/decidim/proposals/proposal.rb +30 -33
- data/decidim-proposals/app/models/decidim/proposals/proposal_vote.rb +2 -0
- data/decidim-proposals/app/services/decidim/proposals/proposal_search.rb +11 -0
- data/decidim-proposals/app/views/decidim/proposals/admin/proposal_answers/edit.html.erb +15 -0
- data/decidim-proposals/app/views/decidim/proposals/admin/proposals/index.html.erb +8 -0
- data/decidim-proposals/app/views/decidim/proposals/proposal_votes/update_buttons_and_counters.js.erb +20 -0
- data/decidim-proposals/app/views/decidim/proposals/proposals/_filters.html.erb +3 -1
- data/decidim-proposals/app/views/decidim/proposals/proposals/_filters_small_view.html.erb +18 -0
- data/decidim-proposals/app/views/decidim/proposals/proposals/_linked_proposals.html.erb +27 -0
- data/decidim-proposals/app/views/decidim/proposals/proposals/_proposal.html.erb +3 -2
- data/decidim-proposals/app/views/decidim/proposals/proposals/_proposal_badge.html.erb +3 -0
- data/decidim-proposals/app/views/decidim/proposals/proposals/_remaining_votes_count.html.erb +1 -0
- data/decidim-proposals/app/views/decidim/proposals/proposals/_share.html.erb +1 -1
- data/decidim-proposals/app/views/decidim/proposals/proposals/_vote_button.html.erb +16 -4
- data/decidim-proposals/app/views/decidim/proposals/proposals/_votes_limit.html.erb +23 -0
- data/decidim-proposals/app/views/decidim/proposals/proposals/index.html.erb +13 -3
- data/decidim-proposals/app/views/decidim/proposals/proposals/new.html.erb +6 -0
- data/decidim-proposals/app/views/decidim/proposals/proposals/show.html.erb +15 -2
- data/decidim-proposals/config/i18n-tasks.yml +3 -0
- data/decidim-proposals/config/locales/ca.yml +54 -1
- data/decidim-proposals/config/locales/en.yml +54 -0
- data/decidim-proposals/config/locales/es.yml +54 -1
- data/decidim-proposals/db/migrate/20170120151202_add_user_group_id_to_proposals.rb +5 -0
- data/decidim-proposals/db/migrate/20170131092413_add_answers_to_proposals.rb +7 -0
- data/decidim-proposals/decidim-proposals.gemspec +3 -0
- data/decidim-proposals/lib/decidim/proposals/admin_engine.rb +3 -1
- data/decidim-proposals/lib/decidim/proposals/engine.rb +7 -1
- data/decidim-proposals/lib/decidim/proposals/feature.rb +28 -1
- data/decidim-proposals/lib/decidim/proposals/test/factories.rb +83 -0
- data/decidim-proposals/spec/commands/decidim/proposals/admin_create_proposal_spec.rb +14 -0
- data/decidim-proposals/spec/commands/decidim/proposals/answer_proposal_spec.rb +53 -0
- data/decidim-proposals/spec/commands/decidim/proposals/create_proposal_spec.rb +3 -56
- data/decidim-proposals/spec/controllers/decidim/admin/proposal_answers_controller_spec.rb +45 -0
- data/decidim-proposals/spec/controllers/decidim/proposal_votes_controller_spec.rb +113 -0
- data/decidim-proposals/spec/controllers/decidim/proposals_controller_spec.rb +53 -0
- data/decidim-proposals/spec/factories.rb +1 -23
- data/decidim-proposals/spec/features/proposals_spec.rb +201 -38
- data/decidim-proposals/spec/features/vote_proposal_spec.rb +83 -11
- data/decidim-proposals/spec/forms/decidim/proposals/admin_proposal_form_spec.rb +13 -0
- data/decidim-proposals/spec/forms/decidim/proposals/proposal_answer_form_spec.rb +50 -0
- data/decidim-proposals/spec/forms/decidim/proposals/proposal_form_spec.rb +5 -93
- data/decidim-proposals/spec/helpers/application_helper_spec.rb +33 -0
- data/decidim-proposals/spec/helpers/proposal_votes_helper_spec.rb +53 -0
- data/decidim-proposals/spec/lib/decidim/proposals/feature_spec.rb +1 -1
- data/decidim-proposals/spec/models/decidim/proposals/proposal_spec.rb +21 -19
- data/decidim-proposals/spec/models/decidim/proposals/proposal_vote_spec.rb +19 -1
- data/decidim-proposals/spec/services/decidim/proposals/proposal_search_spec.rb +66 -25
- data/decidim-proposals/spec/shared/create_proposal_examples.rb +69 -0
- data/decidim-proposals/spec/shared/manage_proposals_examples.rb +49 -0
- data/decidim-proposals/spec/shared/proposal_form_examples.rb +100 -0
- data/decidim-results/.gitignore +7 -0
- data/decidim-results/README.md +23 -0
- data/decidim-results/Rakefile +2 -0
- data/decidim-results/app/assets/images/decidim/results/icon.svg +1 -0
- data/decidim-results/app/commands/decidim/results/admin/create_result.rb +65 -0
- data/decidim-results/app/commands/decidim/results/admin/update_result.rb +69 -0
- data/decidim-results/app/controllers/decidim/results/admin/application_controller.rb +14 -0
- data/decidim-results/app/controllers/decidim/results/admin/results_controller.rb +69 -0
- data/decidim-results/app/controllers/decidim/results/application_controller.rb +13 -0
- data/decidim-results/app/controllers/decidim/results/results_controller.rb +42 -0
- data/decidim-results/app/forms/decidim/results/admin/result_form.rb +40 -0
- data/decidim-results/app/helpers/decidim/results/application_helper.rb +11 -0
- data/decidim-results/app/models/decidim/results/application_record.rb +9 -0
- data/decidim-results/app/models/decidim/results/result.rb +15 -0
- data/decidim-results/app/services/decidim/results/result_search.rb +44 -0
- data/decidim-results/app/services/decidim/results/result_stats_calculator.rb +51 -0
- data/decidim-results/app/views/decidim/results/admin/results/_form.html.erb +23 -0
- data/decidim-results/app/views/decidim/results/admin/results/edit.html.erb +9 -0
- data/decidim-results/app/views/decidim/results/admin/results/index.html.erb +27 -0
- data/decidim-results/app/views/decidim/results/admin/results/new.html.erb +9 -0
- data/decidim-results/app/views/decidim/results/results/_count.html.erb +1 -0
- data/decidim-results/app/views/decidim/results/results/_filters.html.erb +22 -0
- data/decidim-results/app/views/decidim/results/results/_linked_results.html.erb +12 -0
- data/decidim-results/app/views/decidim/results/results/_results.html.erb +16 -0
- data/decidim-results/app/views/decidim/results/results/_tags.html.erb +10 -0
- data/decidim-results/app/views/decidim/results/results/index.html.erb +22 -0
- data/decidim-results/app/views/decidim/results/results/index.js.erb +2 -0
- data/decidim-results/app/views/decidim/results/results/show.html.erb +52 -0
- data/decidim-results/bin/rails +14 -0
- data/decidim-results/config/i18n-tasks.yml +5 -0
- data/decidim-results/config/locales/ca.yml +61 -0
- data/decidim-results/config/locales/en.yml +62 -0
- data/decidim-results/config/locales/es.yml +61 -0
- data/decidim-results/db/migrate/20170116104125_create_results.rb +14 -0
- data/decidim-results/db/migrate/20170129164553_remove_short_description_from_results.rb +5 -0
- data/decidim-results/decidim-results.gemspec +26 -0
- data/decidim-results/lib/decidim/results.rb +11 -0
- data/decidim-results/lib/decidim/results/admin.rb +9 -0
- data/decidim-results/lib/decidim/results/admin_engine.rb +22 -0
- data/decidim-results/lib/decidim/results/feature.rb +52 -0
- data/decidim-results/lib/decidim/results/list_engine.rb +19 -0
- data/decidim-results/lib/decidim/results/test/factories.rb +11 -0
- data/decidim-results/spec/commands/create_result_spec.rb +90 -0
- data/decidim-results/spec/commands/update_result_spec.rb +83 -0
- data/decidim-results/spec/factories.rb +6 -0
- data/decidim-results/spec/features/admin_manages_results_spec.rb +16 -0
- data/decidim-results/spec/features/explore_results_spec.rb +186 -0
- data/decidim-results/spec/features/process_admin_manages_results_spec.rb +17 -0
- data/decidim-results/spec/forms/result_form_spec.rb +91 -0
- data/decidim-results/spec/models/result_spec.rb +18 -0
- data/decidim-results/spec/services/result_search_spec.rb +97 -0
- data/decidim-results/spec/services/result_stats_calculator_spec.rb +93 -0
- data/decidim-results/spec/shared/admin_shared_context.rb +11 -0
- data/decidim-results/spec/shared/manage_results_examples.rb +96 -0
- data/decidim-results/spec/spec_helper.rb +2 -0
- data/decidim-system/app/assets/javascripts/decidim/system/application.js.es6 +1 -3
- data/decidim-system/app/views/layouts/decidim/system/_header.html.erb +2 -2
- data/decidim-system/decidim-system.gemspec +0 -1
- data/decidim-system/lib/decidim/system/engine.rb +0 -1
- data/decidim-system/spec/features/manage_admins_spec.rb +1 -1
- data/decidim-system/spec/features/organizations_spec.rb +1 -1
- data/decidim.gemspec +2 -0
- data/docs/how_to_create_a_plugin.md +0 -2
- data/lib/decidim.rb +2 -0
- data/lib/generators/decidim/install_generator.rb +1 -0
- data/lib/generators/decidim/templates/Gemfile.erb +10 -1
- data/lib/generators/decidim/templates/initializer.rb +9 -0
- data/lib/generators/decidim/templates/secrets.yml.erb +3 -0
- data/lib/generators/decidim/templates/social_share_button.rb +1 -1
- data/package.json +2 -3
- data/yarn.lock +10 -8
- metadata +265 -32
- data/decidim-admin/app/helpers/decidim/admin/aria_selected_link_to_helper.rb +0 -28
- data/decidim-admin/app/views/decidim/admin/participatory_process_attachments/edit.html.erb +0 -9
- data/decidim-admin/app/views/decidim/admin/participatory_process_attachments/index.html.erb +0 -37
- data/decidim-admin/app/views/decidim/admin/participatory_process_attachments/show.html.erb +0 -25
- data/decidim-comments/app/frontend/support/generate_current_user_data.js +0 -13
- data/decidim-comments/app/types/decidim/comments/author_type.rb +0 -15
- data/decidim-comments/spec/types/author_type_spec.rb +0 -21
- data/decidim-dev/lib/decidim/dev/assets/avatar.svg +0 -14
- data/decidim-proposals/app/views/decidim/proposals/proposal_votes/create.js.erb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87eb409fe358de2fd25fc2ad9a666eaf073cb45b
|
4
|
+
data.tar.gz: c09f08acc49fb022dfd5fa6c5dcd5361f0438f53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cde38e84e33301f84f820b345e15dac160b199c32e0772b02a85718836efb7fde6314efa4ab726676f286d33ac9733d25554f951156b0bb80578ec42d3309a5
|
7
|
+
data.tar.gz: c13ad956c5b71be8527b70ad32a039a97649eb39962f8d888fc4866172fd7c252a7284918816ef21da58baaf0d403ab4b959412a60cc01da5bc4d700d7cd3173
|
data/.travis.yml
CHANGED
@@ -15,6 +15,8 @@ env:
|
|
15
15
|
global:
|
16
16
|
- BUNDLE_GEMFILE="$TRAVIS_BUILD_DIR/Gemfile"
|
17
17
|
- BUNDLE_PATH="$HOME/.bundle"
|
18
|
+
- PHANTOMJS_VERSION=2.1.1
|
19
|
+
- PHANTOMJS_BIN="$HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin/phantomjs"
|
18
20
|
matrix:
|
19
21
|
- GEM=. DB=postgres
|
20
22
|
- GEM=decidim-admin DB=postgres
|
@@ -25,10 +27,19 @@ env:
|
|
25
27
|
- GEM=decidim-comments DB=postgres
|
26
28
|
- GEM=decidim-meetings DB=postgres
|
27
29
|
- GEM=decidim-proposals DB=postgres
|
30
|
+
- GEM=decidim-results DB=postgres
|
31
|
+
- GEM=decidim-budgets DB=postgres
|
28
32
|
|
29
33
|
before_install:
|
34
|
+
# Upgrade PhantomJS
|
35
|
+
- "export PATH=$HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH"
|
36
|
+
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then rm -rf $HOME/travis_phantomjs; mkdir -p $HOME/travis_phantomjs; fi"
|
37
|
+
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -O $HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2; fi"
|
38
|
+
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then tar -xvf $HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $HOME/travis_phantomjs; fi"
|
39
|
+
- "phantomjs --version"
|
30
40
|
# Repo for newer Node.js versions
|
31
41
|
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
|
42
|
+
- gem update --system
|
32
43
|
- yarn
|
33
44
|
|
34
45
|
bundler_args: --jobs=3 --retry=3 --deployment --path="$HOME/.bundle"
|
@@ -39,6 +50,7 @@ cache:
|
|
39
50
|
- $TRAVIS_BUILD_DIR/.yarn-cache
|
40
51
|
- $TRAVIS_BUILD_DIR/node_modules
|
41
52
|
- $BUNDLE_PATH
|
53
|
+
- $HOME/travis_phantomjs
|
42
54
|
|
43
55
|
script:
|
44
56
|
- cd $GEM;
|
data/Dockerfile
CHANGED
@@ -24,6 +24,8 @@ ADD decidim-pages/decidim-pages.gemspec /tmp/decidim-pages/decidim-pages.gemspec
|
|
24
24
|
ADD decidim-comments/decidim-comments.gemspec /tmp/decidim-comments/decidim-comments.gemspec
|
25
25
|
ADD decidim-meetings/decidim-meetings.gemspec /tmp/decidim-meetings/decidim-meetings.gemspec
|
26
26
|
ADD decidim-proposals/decidim-proposals.gemspec /tmp/decidim-proposals/decidim-proposals.gemspec
|
27
|
+
ADD decidim-results/decidim-results.gemspec /tmp/decidim-results/decidim-results.gemspec
|
28
|
+
ADD decidim-budgets/decidim-budgets.gemspec /tmp/decidim-proposals/decidim-budgets.gemspec
|
27
29
|
|
28
30
|
ADD package.json /tmp/package.json
|
29
31
|
ADD yarn.lock /tmp/yarn.lock
|
data/Gemfile.lock
CHANGED
@@ -1,32 +1,46 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
decidim (0.0.
|
5
|
-
decidim-admin (= 0.0.
|
6
|
-
decidim-api (= 0.0.
|
7
|
-
decidim-
|
8
|
-
decidim-
|
9
|
-
decidim-
|
10
|
-
decidim-
|
11
|
-
decidim-
|
12
|
-
decidim-
|
4
|
+
decidim (0.0.3)
|
5
|
+
decidim-admin (= 0.0.3)
|
6
|
+
decidim-api (= 0.0.3)
|
7
|
+
decidim-budgets (= 0.0.3)
|
8
|
+
decidim-comments (= 0.0.3)
|
9
|
+
decidim-core (= 0.0.3)
|
10
|
+
decidim-meetings (= 0.0.3)
|
11
|
+
decidim-pages (= 0.0.3)
|
12
|
+
decidim-proposals (= 0.0.3)
|
13
|
+
decidim-results (= 0.0.3)
|
14
|
+
decidim-system (= 0.0.3)
|
13
15
|
rails (~> 5.0.0, >= 5.0.0.1)
|
14
16
|
rails-i18n (~> 5.0.0, >= 5.0.0.1)
|
15
|
-
decidim-
|
16
|
-
decidim-comments (= 0.0.
|
17
|
-
decidim-core (= 0.0.
|
17
|
+
decidim-budgets (0.0.3)
|
18
|
+
decidim-comments (= 0.0.3)
|
19
|
+
decidim-core (= 0.0.3)
|
20
|
+
kaminari (~> 1.0.0.rc1)
|
21
|
+
rectify (~> 0.8)
|
22
|
+
searchlight (~> 4.1.0)
|
23
|
+
decidim-proposals (0.0.3)
|
24
|
+
decidim-comments (= 0.0.3)
|
25
|
+
decidim-core (= 0.0.3)
|
18
26
|
kaminari (~> 1.0.1)
|
19
27
|
rectify (~> 0.8.0)
|
20
28
|
social-share-button (~> 0.8.8)
|
29
|
+
decidim-results (0.0.3)
|
30
|
+
decidim-comments (= 0.0.3)
|
31
|
+
decidim-core (= 0.0.3)
|
32
|
+
kaminari (~> 1.0.0.rc1)
|
33
|
+
rectify (~> 0.8)
|
34
|
+
searchlight (~> 4.1.0)
|
21
35
|
|
22
36
|
PATH
|
23
37
|
remote: decidim-admin
|
24
38
|
specs:
|
25
|
-
decidim-admin (0.0.
|
39
|
+
decidim-admin (0.0.3)
|
26
40
|
active_link_to (~> 1.0.0)
|
27
41
|
cancancan (~> 1.15.0)
|
28
42
|
carrierwave (~> 1.0.0.rc)
|
29
|
-
decidim-core (= 0.0.
|
43
|
+
decidim-core (= 0.0.3)
|
30
44
|
devise (~> 4.2)
|
31
45
|
devise-i18n (~> 1.1.0)
|
32
46
|
devise_invitable (~> 1.7.0)
|
@@ -35,14 +49,13 @@ PATH
|
|
35
49
|
rails (~> 5.0.0, >= 5.0.0.1)
|
36
50
|
rectify (~> 0.8.0)
|
37
51
|
sassc-rails (~> 1.3.0)
|
38
|
-
turbolinks (~> 5.0.0, >= 5.0.0.1)
|
39
52
|
|
40
53
|
PATH
|
41
54
|
remote: decidim-api
|
42
55
|
specs:
|
43
|
-
decidim-api (0.0.
|
56
|
+
decidim-api (0.0.3)
|
44
57
|
graphiql-rails (~> 1.4.1)
|
45
|
-
graphql (~> 1.4.
|
58
|
+
graphql (~> 1.4.2)
|
46
59
|
rack-cors (~> 0.4.0)
|
47
60
|
rails (~> 5.0.0, >= 5.0.0.1)
|
48
61
|
sprockets-es6 (~> 0.9.2)
|
@@ -50,21 +63,20 @@ PATH
|
|
50
63
|
PATH
|
51
64
|
remote: decidim-comments
|
52
65
|
specs:
|
53
|
-
decidim-comments (0.0.
|
54
|
-
decidim-core (= 0.0.
|
66
|
+
decidim-comments (0.0.3)
|
67
|
+
decidim-core (= 0.0.3)
|
55
68
|
jquery-rails (~> 4.0)
|
56
69
|
rails (~> 5.0.0, >= 5.0.0.1)
|
57
|
-
turbolinks (~> 5.0.0, >= 5.0.0.1)
|
58
70
|
|
59
71
|
PATH
|
60
72
|
remote: decidim-core
|
61
73
|
specs:
|
62
|
-
decidim-core (0.0.
|
74
|
+
decidim-core (0.0.3)
|
63
75
|
active_link_to (~> 1.0.0)
|
64
76
|
cancancan (~> 1.15.0)
|
65
77
|
carrierwave (~> 1.0.0)
|
66
78
|
date_validator (~> 0.9.0)
|
67
|
-
decidim-api (= 0.0.
|
79
|
+
decidim-api (= 0.0.3)
|
68
80
|
devise (~> 4.2)
|
69
81
|
devise-i18n (~> 1.1.0)
|
70
82
|
file_validators (~> 2.1.0)
|
@@ -80,44 +92,46 @@ PATH
|
|
80
92
|
pg (~> 0.19.0)
|
81
93
|
rails (~> 5.0.0, >= 5.0.0.1)
|
82
94
|
rectify (~> 0.8.0)
|
83
|
-
redis (~> 3.3.
|
95
|
+
redis (~> 3.3.3)
|
84
96
|
roadie (~> 3.2.1)
|
85
97
|
roadie-rails (~> 1.0)
|
86
98
|
sassc-rails (~> 1.3.0)
|
87
99
|
sprockets-es6 (~> 0.9.2)
|
88
100
|
truncato (~> 0.7.9)
|
89
|
-
turbolinks (~> 5.0.0, >= 5.0.0.1)
|
90
101
|
|
91
102
|
PATH
|
92
103
|
remote: decidim-dev
|
93
104
|
specs:
|
94
|
-
decidim-dev (0.0.
|
105
|
+
decidim-dev (0.0.3)
|
95
106
|
byebug
|
96
|
-
capybara (~> 2.
|
107
|
+
capybara (~> 2.12.0)
|
97
108
|
capybara-screenshot (~> 1.0.14)
|
98
109
|
codecov (~> 0.1.9)
|
99
110
|
database_cleaner (~> 1.5.0)
|
100
111
|
db-query-matchers (~> 0.7.0)
|
101
|
-
decidim (= 0.0.
|
112
|
+
decidim (= 0.0.3)
|
102
113
|
factory_girl_rails
|
103
114
|
faker (~> 1.7.2)
|
104
115
|
i18n-tasks (= 0.9.8)
|
105
116
|
launchy
|
106
117
|
listen (~> 3.1.0)
|
107
|
-
poltergeist (~> 1.
|
118
|
+
poltergeist (~> 1.13.0)
|
108
119
|
rails-controller-testing (~> 1.0.1)
|
109
120
|
rspec-rails (~> 3.5)
|
110
121
|
rspec-repeat (~> 1.0.2)
|
111
122
|
rubocop (~> 0.47)
|
112
|
-
simplecov (~> 0.
|
123
|
+
simplecov (~> 0.13)
|
113
124
|
wisper-rspec
|
114
125
|
|
115
126
|
PATH
|
116
127
|
remote: decidim-meetings
|
117
128
|
specs:
|
118
|
-
decidim-meetings (0.0.
|
129
|
+
decidim-meetings (0.0.3)
|
119
130
|
date_validator (~> 0.9)
|
120
|
-
decidim-core (= 0.0.
|
131
|
+
decidim-core (= 0.0.3)
|
132
|
+
geocoder (~> 1.4.1)
|
133
|
+
httparty (~> 0.14.0)
|
134
|
+
jquery-tmpl-rails (~> 1.1.0)
|
121
135
|
kaminari (~> 1.0.1)
|
122
136
|
rectify (~> 0.8)
|
123
137
|
searchlight (~> 4.1.0)
|
@@ -125,17 +139,17 @@ PATH
|
|
125
139
|
PATH
|
126
140
|
remote: decidim-pages
|
127
141
|
specs:
|
128
|
-
decidim-pages (0.0.
|
129
|
-
decidim-comments (= 0.0.
|
130
|
-
decidim-core (= 0.0.
|
142
|
+
decidim-pages (0.0.3)
|
143
|
+
decidim-comments (= 0.0.3)
|
144
|
+
decidim-core (= 0.0.3)
|
131
145
|
rectify (~> 0.8.0)
|
132
146
|
|
133
147
|
PATH
|
134
148
|
remote: decidim-system
|
135
149
|
specs:
|
136
|
-
decidim-system (0.0.
|
150
|
+
decidim-system (0.0.3)
|
137
151
|
active_link_to (~> 1.0.0)
|
138
|
-
decidim-core (= 0.0.
|
152
|
+
decidim-core (= 0.0.3)
|
139
153
|
devise (~> 4.2)
|
140
154
|
devise-i18n (~> 1.1.0)
|
141
155
|
devise_invitable (~> 1.7.0)
|
@@ -144,7 +158,6 @@ PATH
|
|
144
158
|
rails (~> 5.0.0, >= 5.0.0.1)
|
145
159
|
rectify (~> 0.8.0)
|
146
160
|
sassc-rails (~> 1.3.0)
|
147
|
-
turbolinks (~> 5.0.0, >= 5.0.0.1)
|
148
161
|
|
149
162
|
GEM
|
150
163
|
remote: https://rubygems.org/
|
@@ -204,7 +217,7 @@ GEM
|
|
204
217
|
builder (3.2.3)
|
205
218
|
byebug (9.0.6)
|
206
219
|
cancancan (1.15.0)
|
207
|
-
capybara (2.
|
220
|
+
capybara (2.12.0)
|
208
221
|
addressable
|
209
222
|
mime-types (>= 1.16)
|
210
223
|
nokogiri (>= 1.3.3)
|
@@ -233,6 +246,8 @@ GEM
|
|
233
246
|
execjs
|
234
247
|
coffee-script-source (1.12.2)
|
235
248
|
concurrent-ruby (1.0.4)
|
249
|
+
crack (0.4.3)
|
250
|
+
safe_yaml (~> 1.0.0)
|
236
251
|
css_parser (1.4.7)
|
237
252
|
addressable
|
238
253
|
database_cleaner (1.5.3)
|
@@ -252,7 +267,7 @@ GEM
|
|
252
267
|
devise_invitable (1.7.0)
|
253
268
|
actionmailer (>= 4.0.0)
|
254
269
|
devise (>= 4.0.0)
|
255
|
-
diff-lcs (1.
|
270
|
+
diff-lcs (1.3)
|
256
271
|
docile (1.1.5)
|
257
272
|
easy_translate (0.5.0)
|
258
273
|
json
|
@@ -284,16 +299,20 @@ GEM
|
|
284
299
|
activesupport (>= 4.1)
|
285
300
|
railties (>= 4.1)
|
286
301
|
tzinfo (~> 1.2, >= 1.2.2)
|
302
|
+
geocoder (1.4.2)
|
287
303
|
globalid (0.3.7)
|
288
304
|
activesupport (>= 4.1.0)
|
289
305
|
graphiql-rails (1.4.1)
|
290
306
|
rails
|
291
|
-
graphql (1.4.
|
292
|
-
|
307
|
+
graphql (1.4.2)
|
308
|
+
hashdiff (0.3.2)
|
309
|
+
hashie (3.5.1)
|
293
310
|
high_voltage (3.0.0)
|
294
311
|
highline (1.7.8)
|
295
312
|
htmlentities (4.3.4)
|
296
|
-
|
313
|
+
httparty (0.14.0)
|
314
|
+
multi_xml (>= 0.5.2)
|
315
|
+
i18n (0.8.0)
|
297
316
|
i18n-tasks (0.9.8)
|
298
317
|
activesupport (>= 4.0.2)
|
299
318
|
ast (>= 2.1.0)
|
@@ -309,6 +328,8 @@ GEM
|
|
309
328
|
rails-dom-testing (>= 1, < 3)
|
310
329
|
railties (>= 4.2.0)
|
311
330
|
thor (>= 0.14, < 2.0)
|
331
|
+
jquery-tmpl-rails (1.1.0)
|
332
|
+
rails (>= 3.1.0)
|
312
333
|
json (2.0.3)
|
313
334
|
jwt (1.5.6)
|
314
335
|
kaminari (1.0.1)
|
@@ -376,14 +397,14 @@ GEM
|
|
376
397
|
parser (2.3.3.1)
|
377
398
|
ast (~> 2.2)
|
378
399
|
pg (0.19.0)
|
379
|
-
poltergeist (1.
|
400
|
+
poltergeist (1.13.0)
|
380
401
|
capybara (~> 2.1)
|
381
402
|
cliver (~> 0.3.1)
|
382
403
|
websocket-driver (>= 0.2.0)
|
383
404
|
powerpack (0.1.1)
|
384
405
|
public_suffix (2.0.5)
|
385
406
|
rack (2.0.1)
|
386
|
-
rack-cors (0.4.
|
407
|
+
rack-cors (0.4.1)
|
387
408
|
rack-test (0.6.3)
|
388
409
|
rack (>= 1.0)
|
389
410
|
rails (5.0.1)
|
@@ -419,7 +440,7 @@ GEM
|
|
419
440
|
rainbow (2.2.1)
|
420
441
|
rake (12.0.0)
|
421
442
|
rb-fsevent (0.9.8)
|
422
|
-
rb-inotify (0.9.
|
443
|
+
rb-inotify (0.9.8)
|
423
444
|
ffi (>= 0.5.0)
|
424
445
|
rectify (0.8.0)
|
425
446
|
activemodel (>= 4.1.0)
|
@@ -427,7 +448,7 @@ GEM
|
|
427
448
|
activesupport (>= 4.1.0)
|
428
449
|
virtus (~> 1.0.5)
|
429
450
|
wisper (>= 1.6.1)
|
430
|
-
redis (3.3.
|
451
|
+
redis (3.3.3)
|
431
452
|
responders (2.3.0)
|
432
453
|
railties (>= 4.2.0, < 5.1)
|
433
454
|
roadie (3.2.1)
|
@@ -467,8 +488,9 @@ GEM
|
|
467
488
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
468
489
|
ruby-progressbar (1.8.1)
|
469
490
|
ruby_dep (1.5.0)
|
491
|
+
safe_yaml (1.0.4)
|
470
492
|
sass (3.4.23)
|
471
|
-
sassc (1.11.
|
493
|
+
sassc (1.11.2)
|
472
494
|
bundler
|
473
495
|
ffi (~> 1.9.6)
|
474
496
|
sass (>= 3.3.0)
|
@@ -480,7 +502,7 @@ GEM
|
|
480
502
|
sprockets-rails
|
481
503
|
tilt
|
482
504
|
searchlight (4.1.0)
|
483
|
-
simplecov (0.
|
505
|
+
simplecov (0.13.0)
|
484
506
|
docile (~> 1.1.0)
|
485
507
|
json (>= 1.8, < 3)
|
486
508
|
simplecov-html (~> 0.10.0)
|
@@ -505,14 +527,11 @@ GEM
|
|
505
527
|
thor (0.19.4)
|
506
528
|
thread (0.2.2)
|
507
529
|
thread_safe (0.3.5)
|
508
|
-
tilt (2.0.
|
530
|
+
tilt (2.0.6)
|
509
531
|
tins (1.13.0)
|
510
532
|
truncato (0.7.9)
|
511
533
|
htmlentities (~> 4.3.1)
|
512
534
|
nokogiri (~> 1.7.0)
|
513
|
-
turbolinks (5.0.1)
|
514
|
-
turbolinks-source (~> 5)
|
515
|
-
turbolinks-source (5.0.0)
|
516
535
|
tzinfo (1.2.2)
|
517
536
|
thread_safe (~> 0.1)
|
518
537
|
unicode-display_width (1.1.3)
|
@@ -522,9 +541,13 @@ GEM
|
|
522
541
|
coercible (~> 1.0)
|
523
542
|
descendants_tracker (~> 0.0, >= 0.0.3)
|
524
543
|
equalizer (~> 0.0, >= 0.0.9)
|
525
|
-
warden (1.2.
|
544
|
+
warden (1.2.7)
|
526
545
|
rack (>= 1.0)
|
527
|
-
|
546
|
+
webmock (2.3.2)
|
547
|
+
addressable (>= 2.3.6)
|
548
|
+
crack (>= 0.3.2)
|
549
|
+
hashdiff
|
550
|
+
websocket-driver (0.6.5)
|
528
551
|
websocket-extensions (>= 0.1.0)
|
529
552
|
websocket-extensions (0.1.2)
|
530
553
|
wisper (1.6.1)
|
@@ -545,9 +568,12 @@ DEPENDENCIES
|
|
545
568
|
decidim-dev!
|
546
569
|
decidim-meetings!
|
547
570
|
decidim-pages!
|
571
|
+
decidim-proposals (= 0.0.3)
|
572
|
+
decidim-results (= 0.0.3)
|
548
573
|
decidim-system!
|
549
574
|
rake (~> 12.0.0)
|
550
575
|
rspec (~> 3.0)
|
576
|
+
webmock (~> 2.3.2)
|
551
577
|
|
552
578
|
RUBY VERSION
|
553
579
|
ruby 2.4.0p0
|
data/README.md
CHANGED
@@ -29,6 +29,7 @@
|
|
29
29
|
- [Use Docker to deploy "Decidim"](#docker-instructions)
|
30
30
|
- [Check current components](#components)
|
31
31
|
- [Further configuration](#further-configuration)
|
32
|
+
- [Technical tradeoffs](#technical-tradeoffs)
|
32
33
|
|
33
34
|
---
|
34
35
|
|
@@ -88,10 +89,10 @@ And don't forget to run the upgrade script:
|
|
88
89
|
|
89
90
|
```
|
90
91
|
$ rails decidim:upgrade
|
92
|
+
|
91
93
|
```
|
92
94
|
|
93
95
|
If new migrations appear, remember to:
|
94
|
-
|
95
96
|
```
|
96
97
|
$ rails db:migrate
|
97
98
|
```
|
@@ -101,7 +102,9 @@ $ rails db:migrate
|
|
101
102
|
You can use Docker instead of installing the gems yourself. Run `docker-compose build` and then you can generate a new decidim application using `docker-compose run --rm decidim bundle exec bin/decidim <app-name>`.
|
102
103
|
|
103
104
|
Also you can run it as a standalone container like this:
|
104
|
-
`docker run --rm codegram/decidim bundle exec bin/decidim
|
105
|
+
`docker run --rm -v $(pwd):/tmp -it codegram/decidim bundle exec bin/decidim /tmp/<app-name>`
|
106
|
+
|
107
|
+
Now you have a new Decidim app created at `<app-name>` 🎉
|
105
108
|
|
106
109
|
## How to contribute
|
107
110
|
|
@@ -170,4 +173,14 @@ After you create a development app (`bundle exec rake development_app`):
|
|
170
173
|
|
171
174
|
- [Social providers integration](https://github.com/AjuntamentdeBarcelona/decidim/blob/master/docs/social_providers.md): Enable sign up from social networks.
|
172
175
|
|
176
|
+
## Technical tradeoffs
|
177
|
+
|
178
|
+
### Turbolinks
|
179
|
+
|
180
|
+
Decidim doesn't support `turbolinks` so it isn't included on our generated apps and it's removed for existing Rails applications which install the Decidim engine.
|
181
|
+
|
182
|
+
The main reason for this is we are injecting some scripts into the body for some individual pages and Turbolinks loads the scripts in parallel. For some libraries like [leaflet](http://leafletjs.com/) it's very inconvenient because its plugins extend an existing global object.
|
183
|
+
|
184
|
+
The support of Turbolinks was dropped in [d8c7d9f](https://github.com/AjuntamentdeBarcelona/decidim/commit/d8c7d9f63e4d75307e8f7a0360bef977fab209b6). If you're interested in bringing turbolinks back, further discussion is welcome.
|
185
|
+
|
173
186
|
TODO: Improve guide.
|
@@ -3,7 +3,6 @@
|
|
3
3
|
// = require jquery
|
4
4
|
// = require jquery_ujs
|
5
5
|
// = require foundation
|
6
|
-
// = require turbolinks
|
7
6
|
// = require html.sortable
|
8
7
|
// = require ./sort_steps
|
9
8
|
// = require ./tab_focus
|
@@ -15,4 +14,6 @@ const pageLoad = () => {
|
|
15
14
|
sortSteps();
|
16
15
|
};
|
17
16
|
|
18
|
-
$(
|
17
|
+
$(() => {
|
18
|
+
pageLoad();
|
19
|
+
});
|