decidim-chatbot 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.erb_lint.yml +2134 -0
- data/.github/workflows/website.yml +57 -0
- data/.gitignore +13 -0
- data/.gitlab-ci.yml +204 -0
- data/.node-version +1 -0
- data/.nvmrc +1 -0
- data/.rspec +2 -0
- data/.rubocop.yml +17 -0
- data/.ruby-version +1 -0
- data/.simplecov +36 -0
- data/CONTRIBUTING.md +54 -0
- data/Gemfile +50 -0
- data/Gemfile.lock +1013 -0
- data/LICENSE.md +661 -0
- data/README.md +62 -0
- data/Rakefile +54 -0
- data/app/commands/decidim/chatbot/admin/destroy_item.rb +25 -0
- data/app/commands/decidim/chatbot/admin/menu_items/update_exit.rb +12 -0
- data/app/commands/decidim/chatbot/admin/menu_items/update_login.rb +12 -0
- data/app/commands/decidim/chatbot/admin/menu_items/update_propose_proposals.rb +12 -0
- data/app/commands/decidim/chatbot/admin/menu_items/update_read_blogs.rb +12 -0
- data/app/commands/decidim/chatbot/admin/menu_items/update_read_proposals.rb +12 -0
- data/app/commands/decidim/chatbot/admin/menu_items/update_vote_on_proposal.rb +12 -0
- data/app/commands/decidim/chatbot/admin/notifications/update_manual.rb +12 -0
- data/app/commands/decidim/chatbot/admin/notifications/update_phase.rb +12 -0
- data/app/commands/decidim/chatbot/admin/persist_item.rb +47 -0
- data/app/commands/decidim/chatbot/admin/reorder_items.rb +51 -0
- data/app/commands/decidim/chatbot/admin/send_test_notification.rb +74 -0
- data/app/commands/decidim/chatbot/admin/unsubscribe_user.rb +35 -0
- data/app/commands/decidim/chatbot/admin/update_chatbot.rb +17 -0
- data/app/commands/decidim/chatbot/notifications/deliver.rb +30 -0
- data/app/commands/decidim/chatbot/notifications/enqueue_phase.rb +67 -0
- data/app/commands/decidim/chatbot/notifications/send.rb +115 -0
- data/app/commands/decidim/chatbot/whatsapp/create_from_phone.rb +95 -0
- data/app/commands/decidim/chatbot/whatsapp/sync_phone.rb +56 -0
- data/app/controllers/decidim/api/rest_full/chatbot/base_controller.rb +52 -0
- data/app/controllers/decidim/api/rest_full/chatbot/chatbot_menu_items_controller.rb +49 -0
- data/app/controllers/decidim/api/rest_full/chatbot/chatbot_users_controller.rb +46 -0
- data/app/controllers/decidim/api/rest_full/chatbot/chatbots_controller.rb +40 -0
- data/app/controllers/decidim/chatbot/admin/chatbot_edit.rb +85 -0
- data/app/controllers/decidim/chatbot/admin/chatbots/generals_controller.rb +43 -0
- data/app/controllers/decidim/chatbot/admin/chatbots/menu_items_controller.rb +32 -0
- data/app/controllers/decidim/chatbot/admin/chatbots/notifications_controller.rb +92 -0
- data/app/controllers/decidim/chatbot/admin/chatbots/users/filterable.rb +33 -0
- data/app/controllers/decidim/chatbot/admin/chatbots/users_controller.rb +53 -0
- data/app/controllers/decidim/chatbot/admin/chatbots/whatsapps_controller.rb +59 -0
- data/app/controllers/decidim/chatbot/admin/chatbots_controller.rb +20 -0
- data/app/controllers/decidim/chatbot/admin/items_crud.rb +183 -0
- data/app/forms/decidim/chatbot/admin/chatbot_form.rb +20 -0
- data/app/forms/decidim/chatbot/admin/config_form.rb +20 -0
- data/app/forms/decidim/chatbot/admin/menu_item_form.rb +80 -0
- data/app/forms/decidim/chatbot/admin/menu_items/component_id_form.rb +60 -0
- data/app/forms/decidim/chatbot/admin/menu_items/exit_form.rb +24 -0
- data/app/forms/decidim/chatbot/admin/menu_items/login_form.rb +35 -0
- data/app/forms/decidim/chatbot/admin/menu_items/propose_proposals_form.rb +23 -0
- data/app/forms/decidim/chatbot/admin/menu_items/propose_proposals_labels.rb +53 -0
- data/app/forms/decidim/chatbot/admin/menu_items/read_blogs_form.rb +23 -0
- data/app/forms/decidim/chatbot/admin/menu_items/read_content_labels.rb +51 -0
- data/app/forms/decidim/chatbot/admin/menu_items/read_proposals_form.rb +23 -0
- data/app/forms/decidim/chatbot/admin/menu_items/vote_on_proposal_form.rb +123 -0
- data/app/forms/decidim/chatbot/admin/notification_item_form.rb +111 -0
- data/app/forms/decidim/chatbot/admin/notifications/manual_form.rb +13 -0
- data/app/forms/decidim/chatbot/admin/notifications/phase_form.rb +79 -0
- data/app/forms/decidim/chatbot/admin/notifications/template_fields.rb +60 -0
- data/app/forms/decidim/chatbot/admin/notifications/test_form.rb +179 -0
- data/app/helpers/decidim/chatbot/admin/items_helper.rb +44 -0
- data/app/jobs/decidim/chatbot/chatbot_webhook_job.rb +59 -0
- data/app/jobs/decidim/chatbot/send_notification_job.rb +33 -0
- data/app/models/decidim/chatbot/chatbot.rb +47 -0
- data/app/models/decidim/chatbot/item.rb +99 -0
- data/app/packs/.keep +0 -0
- data/app/presenters/decidim/chatbot/admin_log/chatbot_presenter.rb +42 -0
- data/app/presenters/decidim/chatbot/admin_log/item_presenter.rb +32 -0
- data/app/queries/decidim/chatbot/admin/proposal_vote_mode.rb +41 -0
- data/app/queries/decidim/chatbot/whatsapp_users.rb +58 -0
- data/app/serializers/decidim/api/rest_full/chatbot/chatbot_menu_item_serializer.rb +113 -0
- data/app/serializers/decidim/api/rest_full/chatbot/chatbot_notification_serializer.rb +19 -0
- data/app/serializers/decidim/api/rest_full/chatbot/chatbot_serializer.rb +66 -0
- data/app/serializers/decidim/api/rest_full/chatbot/chatbot_user_identity_serializer.rb +23 -0
- data/app/serializers/decidim/api/rest_full/chatbot/chatbot_user_serializer.rb +28 -0
- data/app/serializers/decidim/api/rest_full/chatbot/chatbot_webhook_serializer.rb +21 -0
- data/app/services/decidim/chatbot/chatbot_webhook_handler.rb +40 -0
- data/app/services/decidim/chatbot/notifications/bindings.rb +87 -0
- data/app/services/decidim/chatbot/whatsapp/body_parameters.rb +29 -0
- data/app/services/decidim/chatbot/whatsapp/graph_client.rb +136 -0
- data/app/services/decidim/chatbot/whatsapp/status_mapper.rb +93 -0
- data/app/services/decidim/chatbot/whatsapp/template_manager_url.rb +35 -0
- data/app/views/decidim/chatbot/admin/chatbots/generals/_menu_preview.html.erb +49 -0
- data/app/views/decidim/chatbot/admin/chatbots/generals/edit.html.erb +79 -0
- data/app/views/decidim/chatbot/admin/chatbots/index.html.erb +50 -0
- data/app/views/decidim/chatbot/admin/chatbots/menu_items/_form.html.erb +2 -0
- data/app/views/decidim/chatbot/admin/chatbots/menu_items/edit.html.erb +2 -0
- data/app/views/decidim/chatbot/admin/chatbots/menu_items/index.html.erb +43 -0
- data/app/views/decidim/chatbot/admin/chatbots/menu_items/new.html.erb +12 -0
- data/app/views/decidim/chatbot/admin/chatbots/notifications/_form.html.erb +4 -0
- data/app/views/decidim/chatbot/admin/chatbots/notifications/_manual_fields.html.erb +8 -0
- data/app/views/decidim/chatbot/admin/chatbots/notifications/_phase_fields.html.erb +6 -0
- data/app/views/decidim/chatbot/admin/chatbots/notifications/edit.html.erb +3 -0
- data/app/views/decidim/chatbot/admin/chatbots/notifications/index.html.erb +40 -0
- data/app/views/decidim/chatbot/admin/chatbots/notifications/new.html.erb +11 -0
- data/app/views/decidim/chatbot/admin/chatbots/notifications/test.html.erb +35 -0
- data/app/views/decidim/chatbot/admin/chatbots/tabs/_whatsapp.html.erb +47 -0
- data/app/views/decidim/chatbot/admin/chatbots/users/_filters.html.erb +23 -0
- data/app/views/decidim/chatbot/admin/chatbots/users/index.html.erb +56 -0
- data/app/views/decidim/chatbot/admin/chatbots/whatsapps/show.html.erb +5 -0
- data/app/views/decidim/chatbot/admin/shared/_item_form.html.erb +64 -0
- data/app/views/decidim/chatbot/admin/shared/_row_actions.html.erb +28 -0
- data/app/views/decidim/chatbot/admin/shared/_tabs_menu.html.erb +13 -0
- data/app/views/decidim/chatbot/admin/shared/_type_fields.html.erb +2 -0
- data/app/views/decidim/chatbot/admin/shared/_type_picker.html.erb +15 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_component_id.html.erb +9 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_exit.html.erb +5 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_login.html.erb +8 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_manual.html.erb +16 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_phase.html.erb +46 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_propose_proposals.html.erb +10 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_read_blogs.html.erb +16 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_read_proposals.html.erb +16 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_vote_on_proposal.html.erb +26 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/vote/_shows_abstention_label.html.erb +7 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/vote/_shows_vote_label.html.erb +7 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/vote/_shows_votes_closed_warning.html.erb +6 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/vote/_shows_weight_labels.html.erb +15 -0
- data/bin/check +13 -0
- data/bin/ci-setup +38 -0
- data/bin/gen-node-client +112 -0
- data/bin/gen-openapi +248 -0
- data/bin/i18n-tasks +27 -0
- data/bin/postversion +17 -0
- data/config/i18n-tasks.yml +38 -0
- data/config/locales/decidim_chatbot.en.yml +323 -0
- data/config/locales/decidim_chatbot.fr.yml +29 -0
- data/contrib/decidim-node-client/.gitignore +4 -0
- data/contrib/decidim-node-client/.npmignore +1 -0
- data/contrib/decidim-node-client/.openapi-generator/FILES +8 -0
- data/contrib/decidim-node-client/.openapi-generator/VERSION +1 -0
- data/contrib/decidim-node-client/.openapi-generator-ignore +13 -0
- data/contrib/decidim-node-client/.yarnrc.yml +5 -0
- data/contrib/decidim-node-client/README.md +37 -0
- data/contrib/decidim-node-client/api.ts +14193 -0
- data/contrib/decidim-node-client/base.ts +70 -0
- data/contrib/decidim-node-client/common.ts +185 -0
- data/contrib/decidim-node-client/configuration.ts +138 -0
- data/contrib/decidim-node-client/git_push.sh +57 -0
- data/contrib/decidim-node-client/index.ts +16 -0
- data/contrib/decidim-node-client/package.json +49 -0
- data/contrib/decidim-node-client/packup.config.ts +7 -0
- data/contrib/decidim-node-client/tsconfig.json +25 -0
- data/contrib/decidim-node-client/yarn.lock +2367 -0
- data/crowdin.yml +15 -0
- data/db/migrate/20260725120000_create_decidim_chatbot_chatbots.rb +20 -0
- data/db/migrate/20260822120000_create_decidim_chatbot_items.rb +20 -0
- data/db/migrate/20260824120000_add_menu_and_error_copy_to_decidim_chatbot_chatbots.rb +13 -0
- data/db/migrate/20260824140000_add_enabled_to_decidim_chatbot_items.rb +7 -0
- data/decidim-chatbot.gemspec +40 -0
- data/docker-compose.ci.yml +59 -0
- data/docker-compose.yml +47 -0
- data/lib/decidim/chatbot/admin_engine.rb +67 -0
- data/lib/decidim/chatbot/admin_menu.rb +41 -0
- data/lib/decidim/chatbot/default_manifests.rb +91 -0
- data/lib/decidim/chatbot/engine.rb +107 -0
- data/lib/decidim/chatbot/manifest.rb +31 -0
- data/lib/decidim/chatbot/menu_item_label_keys.rb +26 -0
- data/lib/decidim/chatbot/registry.rb +42 -0
- data/lib/decidim/chatbot/rest_full_ability.rb +24 -0
- data/lib/decidim/chatbot/settings_tab.rb +18 -0
- data/lib/decidim/chatbot/test_definitions.rb +352 -0
- data/lib/decidim/chatbot/variable_interpolator.rb +30 -0
- data/lib/decidim/chatbot/version.rb +21 -0
- data/lib/decidim/chatbot/webhook_publisher.rb +29 -0
- data/lib/decidim/chatbot.rb +41 -0
- data/lib/decidim-chatbot.rb +3 -0
- data/lib/tasks/chatbot.rake +64 -0
- data/openapi/openapi.json +37801 -0
- data/openapitools.json +7 -0
- data/package.json +22 -0
- data/prettier.config.js +15 -0
- data/spec/commands/decidim/chatbot/admin/destroy_item_spec.rb +24 -0
- data/spec/commands/decidim/chatbot/admin/persist_item_spec.rb +80 -0
- data/spec/commands/decidim/chatbot/admin/reorder_items_spec.rb +53 -0
- data/spec/commands/decidim/chatbot/admin/send_test_notification_spec.rb +105 -0
- data/spec/commands/decidim/chatbot/admin/unsubscribe_user_spec.rb +46 -0
- data/spec/commands/decidim/chatbot/admin/update_chatbot_spec.rb +56 -0
- data/spec/commands/decidim/chatbot/notifications/enqueue_phase_spec.rb +59 -0
- data/spec/commands/decidim/chatbot/notifications/send_spec.rb +101 -0
- data/spec/commands/decidim/chatbot/whatsapp/create_from_phone_spec.rb +122 -0
- data/spec/commands/decidim/chatbot/whatsapp/sync_phone_spec.rb +110 -0
- data/spec/controllers/decidim/chatbot/admin/chatbots_controller_spec.rb +25 -0
- data/spec/factories/chatbot.rb +44 -0
- data/spec/forms/decidim/chatbot/admin/chatbot_form_spec.rb +41 -0
- data/spec/forms/decidim/chatbot/admin/config_form_spec.rb +30 -0
- data/spec/forms/decidim/chatbot/admin/menu_item_form_spec.rb +49 -0
- data/spec/forms/decidim/chatbot/admin/menu_items/component_id_form_spec.rb +54 -0
- data/spec/forms/decidim/chatbot/admin/menu_items/component_id_forms_spec.rb +512 -0
- data/spec/forms/decidim/chatbot/admin/menu_items/exit_form_spec.rb +39 -0
- data/spec/forms/decidim/chatbot/admin/menu_items/login_form_spec.rb +101 -0
- data/spec/forms/decidim/chatbot/admin/menu_items/propose_proposals_form_prefill_spec.rb +26 -0
- data/spec/forms/decidim/chatbot/admin/menu_items/read_blogs_form_prefill_spec.rb +22 -0
- data/spec/forms/decidim/chatbot/admin/notifications/manual_form_spec.rb +130 -0
- data/spec/forms/decidim/chatbot/admin/notifications/phase_form_spec.rb +79 -0
- data/spec/forms/decidim/chatbot/admin/notifications/test_form_spec.rb +172 -0
- data/spec/jobs/decidim/chatbot/chatbot_webhook_job_spec.rb +47 -0
- data/spec/jobs/decidim/chatbot/send_notification_job_spec.rb +53 -0
- data/spec/lib/decidim/chatbot/engine_spec.rb +44 -0
- data/spec/lib/decidim/chatbot/registry_spec.rb +30 -0
- data/spec/lib/decidim/chatbot/settings_tab_spec.rb +21 -0
- data/spec/lib/decidim/chatbot/variable_interpolator_spec.rb +34 -0
- data/spec/lib/decidim/chatbot/whatsapp/status_mapper_spec.rb +64 -0
- data/spec/lib/decidim/chatbot_spec.rb +59 -0
- data/spec/models/decidim/chatbot/chatbot_spec.rb +23 -0
- data/spec/models/decidim/chatbot/item_spec.rb +88 -0
- data/spec/presenters/decidim/chatbot/admin_log/chatbot_presenter_spec.rb +64 -0
- data/spec/queries/decidim/chatbot/admin/proposal_vote_mode_spec.rb +74 -0
- data/spec/queries/decidim/chatbot/whatsapp_users_spec.rb +57 -0
- data/spec/requests/decidim/api/rest_full/chatbot/chatbot_menu_items_controller_spec.rb +344 -0
- data/spec/requests/decidim/api/rest_full/chatbot/chatbot_users_controller_spec.rb +140 -0
- data/spec/requests/decidim/api/rest_full/chatbot/chatbots_controller_spec.rb +195 -0
- data/spec/requests/decidim/chatbot/admin/chatbots/notifications_controller_spec.rb +44 -0
- data/spec/requests/decidim/chatbot/admin/tenant_isolation_spec.rb +133 -0
- data/spec/requests/decidim/chatbot/admin/unsubscribe_user_spec.rb +28 -0
- data/spec/serializers/decidim/api/rest_full/chatbot/chatbot_menu_item_serializer_spec.rb +321 -0
- data/spec/serializers/decidim/api/rest_full/chatbot/chatbot_serializer_spec.rb +49 -0
- data/spec/serializers/decidim/api/rest_full/chatbot/chatbot_user_serializer_spec.rb +40 -0
- data/spec/services/decidim/chatbot/chatbot_webhook_handler_spec.rb +43 -0
- data/spec/services/decidim/chatbot/notifications/bindings_spec.rb +86 -0
- data/spec/services/decidim/chatbot/whatsapp/body_parameters_spec.rb +22 -0
- data/spec/services/decidim/chatbot/whatsapp/graph_client_spec.rb +205 -0
- data/spec/services/decidim/chatbot/whatsapp/template_manager_url_spec.rb +33 -0
- data/spec/spec_helper.rb +33 -0
- data/spec/support/allow_all_hosts.rb +9 -0
- data/spec/support/chatbot_admin.rb +16 -0
- data/spec/support/decidim_factories.rb +7 -0
- data/spec/support/decidim_system_factories.rb +3 -0
- data/spec/support/devise.rb +5 -0
- data/spec/support/rack_test_system_driver.rb +43 -0
- data/spec/support/whatsapp_graph.rb +15 -0
- data/spec/swagger_helper.rb +47 -0
- data/spec/system/decidim/chatbot/admin/admin_can_send_manual_when_ready_spec.rb +35 -0
- data/spec/system/decidim/chatbot/admin/admin_configures_vote_on_proposal_menu_item_spec.rb +84 -0
- data/spec/system/decidim/chatbot/admin/admin_confirms_send_now_recipient_count_spec.rb +40 -0
- data/spec/system/decidim/chatbot/admin/admin_creates_menu_item_with_demo_field_spec.rb +65 -0
- data/spec/system/decidim/chatbot/admin/admin_creates_phase_and_manual_notifications_spec.rb +52 -0
- data/spec/system/decidim/chatbot/admin/admin_does_not_see_other_org_processes_in_phase_select_spec.rb +27 -0
- data/spec/system/decidim/chatbot/admin/admin_does_not_see_other_organization_chatbots_spec.rb +25 -0
- data/spec/system/decidim/chatbot/admin/admin_is_redirected_when_chatbot_is_disabled_spec.rb +28 -0
- data/spec/system/decidim/chatbot/admin/admin_lists_organization_chatbots_spec.rb +36 -0
- data/spec/system/decidim/chatbot/admin/admin_manual_notification_sends_with_nickname_spec.rb +68 -0
- data/spec/system/decidim/chatbot/admin/admin_navigates_chatbot_main_tabs_spec.rb +52 -0
- data/spec/system/decidim/chatbot/admin/admin_phase_notification_sends_on_step_change_spec.rb +79 -0
- data/spec/system/decidim/chatbot/admin/admin_picks_published_blog_component_spec.rb +205 -0
- data/spec/system/decidim/chatbot/admin/admin_picks_published_participatory_space_spec.rb +45 -0
- data/spec/system/decidim/chatbot/admin/admin_reorders_chatbot_menu_items_spec.rb +29 -0
- data/spec/system/decidim/chatbot/admin/admin_sees_disabled_menu_item_faded_on_the_table_spec.rb +23 -0
- data/spec/system/decidim/chatbot/admin/admin_sees_disabled_notification_item_faded_on_the_table_spec.rb +40 -0
- data/spec/system/decidim/chatbot/admin/admin_sees_notification_facts_and_frozen_template_name_spec.rb +71 -0
- data/spec/system/decidim/chatbot/admin/admin_sees_propose_proposals_defaults_prefilled_spec.rb +119 -0
- data/spec/system/decidim/chatbot/admin/admin_sees_type_specific_fields_spec.rb +89 -0
- data/spec/system/decidim/chatbot/admin/admin_sees_whatsapp_facts_and_can_sync_spec.rb +48 -0
- data/spec/system/decidim/chatbot/admin/admin_sees_whatsapp_template_edit_link_spec.rb +37 -0
- data/spec/system/decidim/chatbot/admin/admin_tests_notification_spec.rb +125 -0
- data/spec/system/decidim/chatbot/admin/admin_unchecks_enabled_on_a_menu_item_spec.rb +30 -0
- data/spec/system/decidim/chatbot/admin/admin_unsubscribes_whatsapp_user_from_chatbot_spec.rb +35 -0
- data/spec/system/decidim/chatbot/admin/admin_updates_welcome_message_from_general_tab_spec.rb +84 -0
- data/spec/system/decidim/chatbot/system/admin_updates_organization_chatbot_settings_spec.rb +33 -0
- data/spec/tasks/chatbot_create_spec.rb +99 -0
- data/spec/tasks/chatbot_sync_spec.rb +90 -0
- data/website/.node-version +1 -0
- data/website/.nvmrc +1 -0
- data/website/docs/developer/_category_.json +4 -0
- data/website/docs/developer/contribute.md +87 -0
- data/website/docs/index.md +42 -0
- data/website/docs/integrate/_category_.json +4 -0
- data/website/docs/integrate/index.md +214 -0
- data/website/docusaurus.config.ts +93 -0
- data/website/package.json +37 -0
- data/website/sidebars.ts +7 -0
- data/website/src/css/custom.css +37 -0
- data/website/static/api-docs.html +2218 -0
- data/website/static/img/logo.svg +1 -0
- data/website/static/openapi.json +37801 -0
- data/website/tsconfig.json +6 -0
- data/website/yarn.lock +9782 -0
- data/yarn.lock +1003 -0
- metadata +424 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: Website
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
name: Build Docusaurus
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
with:
|
|
18
|
+
fetch-depth: 0
|
|
19
|
+
|
|
20
|
+
- name: Enable Corepack
|
|
21
|
+
run: corepack enable
|
|
22
|
+
|
|
23
|
+
- uses: actions/setup-node@v4
|
|
24
|
+
with:
|
|
25
|
+
node-version: 22
|
|
26
|
+
cache: yarn
|
|
27
|
+
cache-dependency-path: website/yarn.lock
|
|
28
|
+
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
working-directory: website
|
|
31
|
+
run: yarn install --frozen-lockfile
|
|
32
|
+
|
|
33
|
+
- name: Build website
|
|
34
|
+
working-directory: website
|
|
35
|
+
run: yarn build
|
|
36
|
+
|
|
37
|
+
- name: Upload build artifact
|
|
38
|
+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
39
|
+
uses: actions/upload-pages-artifact@v3
|
|
40
|
+
with:
|
|
41
|
+
path: website/build
|
|
42
|
+
|
|
43
|
+
deploy:
|
|
44
|
+
name: Deploy to GitHub Pages
|
|
45
|
+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
46
|
+
needs: build
|
|
47
|
+
runs-on: ubuntu-latest
|
|
48
|
+
permissions:
|
|
49
|
+
pages: write
|
|
50
|
+
id-token: write
|
|
51
|
+
environment:
|
|
52
|
+
name: github-pages
|
|
53
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
54
|
+
steps:
|
|
55
|
+
- name: Deploy to GitHub Pages
|
|
56
|
+
id: deployment
|
|
57
|
+
uses: actions/deploy-pages@v4
|
data/.gitignore
ADDED
data/.gitlab-ci.yml
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
##
|
|
2
|
+
# Decidim chatbot module CI (aligned with decidim-toggle).
|
|
3
|
+
# Local pre-push: ./bin/check (RuboCop, erblint, Prettier, i18n-tasks, OpenAPI, RSpec).
|
|
4
|
+
# npm: decidim-client::publish uses node:22 + GitLab CI_JOB_TOKEN (builtin); it does not regenerate the client.
|
|
5
|
+
# Required CI/CD variables for Crowdin / gem publish:
|
|
6
|
+
# - CROWDIN_PERSONAL_TOKEN, CROWDIN_PROJECT_ID, TRANSLATIONBOT_ID,
|
|
7
|
+
# TRANSLATIONBOT_ACCESS_TOKEN, GEM_HOST_API_KEY
|
|
8
|
+
##
|
|
9
|
+
stages:
|
|
10
|
+
- lint
|
|
11
|
+
- test
|
|
12
|
+
- translate
|
|
13
|
+
- publish
|
|
14
|
+
variables:
|
|
15
|
+
POSTGRES_DB: decidim_test
|
|
16
|
+
POSTGRES_USER: decidim
|
|
17
|
+
POSTGRES_PASSWORD: "TEST-insecure_password"
|
|
18
|
+
|
|
19
|
+
services:
|
|
20
|
+
- postgres:17
|
|
21
|
+
- redis:latest
|
|
22
|
+
|
|
23
|
+
.development_rules:
|
|
24
|
+
rules:
|
|
25
|
+
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
|
26
|
+
when: never
|
|
27
|
+
- if: '$CI_COMMIT_BRANCH == "main"'
|
|
28
|
+
when: always
|
|
29
|
+
- if: '$CI_COMMIT_TAG'
|
|
30
|
+
when: always
|
|
31
|
+
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
32
|
+
when: always
|
|
33
|
+
.publication_rules:
|
|
34
|
+
rules:
|
|
35
|
+
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
|
36
|
+
when: never
|
|
37
|
+
- if: '$CI_COMMIT_BRANCH == "main"'
|
|
38
|
+
when: always
|
|
39
|
+
- if: '$CI_COMMIT_TAG'
|
|
40
|
+
when: always
|
|
41
|
+
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
42
|
+
when: manual
|
|
43
|
+
|
|
44
|
+
ruby::rubocop:
|
|
45
|
+
extends: .development_rules
|
|
46
|
+
image: ruby:3.4.7
|
|
47
|
+
stage: lint
|
|
48
|
+
script:
|
|
49
|
+
- bundle
|
|
50
|
+
- bundle exec rubocop .
|
|
51
|
+
|
|
52
|
+
ruby::erb:
|
|
53
|
+
extends: .development_rules
|
|
54
|
+
image: ruby:3.4.7
|
|
55
|
+
stage: lint
|
|
56
|
+
script:
|
|
57
|
+
- bundle
|
|
58
|
+
- bundle exec erb_lint --lint-all --enable-all-linters
|
|
59
|
+
|
|
60
|
+
node::prettier:
|
|
61
|
+
extends: .development_rules
|
|
62
|
+
image: node:22
|
|
63
|
+
stage: lint
|
|
64
|
+
script:
|
|
65
|
+
- yarn install --frozen-lockfile
|
|
66
|
+
- yarn format:check
|
|
67
|
+
|
|
68
|
+
node::docs:
|
|
69
|
+
extends: .development_rules
|
|
70
|
+
image: node:22
|
|
71
|
+
stage: lint
|
|
72
|
+
script:
|
|
73
|
+
- cd website
|
|
74
|
+
- yarn install
|
|
75
|
+
- yarn build
|
|
76
|
+
|
|
77
|
+
ruby::i18n:
|
|
78
|
+
extends: .development_rules
|
|
79
|
+
image: ruby:3.4.7
|
|
80
|
+
stage: lint
|
|
81
|
+
script:
|
|
82
|
+
- bundle
|
|
83
|
+
- bundle exec i18n-tasks missing --config config/i18n-tasks.yml
|
|
84
|
+
|
|
85
|
+
ruby::openapi:
|
|
86
|
+
extends: .development_rules
|
|
87
|
+
image: ruby:3.4.7
|
|
88
|
+
stage: lint
|
|
89
|
+
script:
|
|
90
|
+
- ./bin/gen-openapi --check
|
|
91
|
+
|
|
92
|
+
crowdin::lint:
|
|
93
|
+
extends: .development_rules
|
|
94
|
+
image: node:22
|
|
95
|
+
stage: lint
|
|
96
|
+
script:
|
|
97
|
+
- npm install -g @crowdin/cli
|
|
98
|
+
- crowdin status -T $CROWDIN_PERSONAL_TOKEN -i $CROWDIN_PROJECT_ID --no-progress
|
|
99
|
+
allow_failure: true
|
|
100
|
+
|
|
101
|
+
ruby::rubygem:
|
|
102
|
+
image: ruby:3.4.7
|
|
103
|
+
stage: publish
|
|
104
|
+
script:
|
|
105
|
+
- echo "---" > .credentials
|
|
106
|
+
- |
|
|
107
|
+
echo ":ci_rubygems_api_key: $GEM_HOST_API_KEY" >> .credentials
|
|
108
|
+
- chmod 0600 .credentials
|
|
109
|
+
- gem build decidim*.gemspec
|
|
110
|
+
- gem push decidim*.gem -k ci_rubygems_api_key --config-file .credentials
|
|
111
|
+
only:
|
|
112
|
+
- tags
|
|
113
|
+
|
|
114
|
+
crowdin::upload:
|
|
115
|
+
stage: translate
|
|
116
|
+
image: node:22
|
|
117
|
+
script:
|
|
118
|
+
- npm install -g @crowdin/cli
|
|
119
|
+
- crowdin upload -T $CROWDIN_PERSONAL_TOKEN -i $CROWDIN_PROJECT_ID --no-progress
|
|
120
|
+
- crowdin status -T $CROWDIN_PERSONAL_TOKEN -i $CROWDIN_PROJECT_ID --no-progress
|
|
121
|
+
when: manual
|
|
122
|
+
|
|
123
|
+
crowdin::merge_request:
|
|
124
|
+
stage: translate
|
|
125
|
+
image: node:22
|
|
126
|
+
rules:
|
|
127
|
+
- if: '$CI_COMMIT_BRANCH == "main" && $GITLAB_USER_ID != $TRANSLATIONBOT_ID'
|
|
128
|
+
when: always
|
|
129
|
+
before_script:
|
|
130
|
+
- apt-get update && apt-get install -y git
|
|
131
|
+
script:
|
|
132
|
+
- git config --global user.email "mr-translations"
|
|
133
|
+
- git config --global user.name "$TRANSLATIONBOT_ID"
|
|
134
|
+
- npm install -g @crowdin/cli
|
|
135
|
+
- crowdin download -T $CROWDIN_PERSONAL_TOKEN -i $CROWDIN_PROJECT_ID --no-progress
|
|
136
|
+
- crowdin status -T $CROWDIN_PERSONAL_TOKEN -i $CROWDIN_PROJECT_ID --no-progress
|
|
137
|
+
- export BRANCH_NAME="i18n/$(date +%Y%m%d%H%M%S)"
|
|
138
|
+
- export ORIGIN="crowdin_$(date +%Y%m%d%H%M%S)"
|
|
139
|
+
- git remote add $ORIGIN https://$TRANSLATIONBOT_ID:$TRANSLATIONBOT_ACCESS_TOKEN@$CI_SERVER_HOST/$CI_PROJECT_PATH.git
|
|
140
|
+
- git checkout -b $BRANCH_NAME
|
|
141
|
+
- git add config/locales
|
|
142
|
+
- git commit -m "Crowdin Updates"
|
|
143
|
+
- git push $ORIGIN HEAD:$BRANCH_NAME -o merge_request.create -o merge_request.target=main
|
|
144
|
+
|
|
145
|
+
decidim-client::publish:
|
|
146
|
+
image: node:22
|
|
147
|
+
stage: publish
|
|
148
|
+
variables:
|
|
149
|
+
CI: 1
|
|
150
|
+
before_script:
|
|
151
|
+
- apt-get update -y && apt-get install -y jq
|
|
152
|
+
- cd contrib/decidim-node-client
|
|
153
|
+
- corepack enable
|
|
154
|
+
- yarn
|
|
155
|
+
script:
|
|
156
|
+
- yarn build
|
|
157
|
+
- touch .npmrc
|
|
158
|
+
- echo "@${CI_PROJECT_ROOT_NAMESPACE}:registry=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/" >> .npmrc
|
|
159
|
+
- echo "${CI_API_V4_URL#http*:}/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=\${CI_JOB_TOKEN}" >> .npmrc
|
|
160
|
+
- npm publish --non-interactive --access=public --registry=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/
|
|
161
|
+
extends: .publication_rules
|
|
162
|
+
|
|
163
|
+
ruby::rspec:
|
|
164
|
+
image: ruby:3.4.7
|
|
165
|
+
stage: test
|
|
166
|
+
extends: .development_rules
|
|
167
|
+
artifacts:
|
|
168
|
+
reports:
|
|
169
|
+
coverage_report:
|
|
170
|
+
coverage_format: cobertura
|
|
171
|
+
path: coverage/coverage.xml
|
|
172
|
+
variables:
|
|
173
|
+
DATABASE_HOST: "postgres"
|
|
174
|
+
DATABASE_PASSWORD: "TEST-insecure_password"
|
|
175
|
+
DATABASE_USERNAME: "decidim"
|
|
176
|
+
DISABLED_DOCKER_COMPOSE: "true"
|
|
177
|
+
TRAEFIK_REDIS_URL: "redis://localhost:6379/1"
|
|
178
|
+
NODE_MAJOR: 22
|
|
179
|
+
SIMPLECOV: 1
|
|
180
|
+
CI: 1
|
|
181
|
+
DECIDIM_FORCE_SSL: "false"
|
|
182
|
+
DISABLE_SPRING: 1
|
|
183
|
+
before_script:
|
|
184
|
+
# System specs need Chromium/Chrome + matching chromedriver; plain ruby:* images omit the browser,
|
|
185
|
+
# so chromedriver can exit before binding and Selenium retries until ECONNREFUSED.
|
|
186
|
+
# ruby-vips (Active Storage / Decidim 0.32) needs libvips; plain ruby:* images omit it,
|
|
187
|
+
# so rake test_app fails at environment boot with LoadError on libvips.so.42.
|
|
188
|
+
- apt-get update -qq && apt-get install -y ca-certificates curl gnupg wget libvips42
|
|
189
|
+
- wget -q -O /tmp/google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
190
|
+
- apt-get install -y /tmp/google-chrome.deb || (apt-get -f install -y && apt-get install -y /tmp/google-chrome.deb)
|
|
191
|
+
- rm -f /tmp/google-chrome.deb
|
|
192
|
+
- mkdir -p /etc/apt/keyrings
|
|
193
|
+
- curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
|
194
|
+
- echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
|
195
|
+
- apt-get update && apt-get install -y -qq nodejs
|
|
196
|
+
- npm install -g yarn --force
|
|
197
|
+
- gem install bundler
|
|
198
|
+
- bundle config set path 'vendor'
|
|
199
|
+
- RAILS_ENV=development bundle install -j $(nproc)
|
|
200
|
+
- bundle exec rake test_app
|
|
201
|
+
# CI=1 turns on dummy eager_load; dummy_signature_handler needs Initiatives first.
|
|
202
|
+
- sed -i 's/config.eager_load = ENV\["CI"\].present?/config.eager_load = false/' spec/decidim_dummy_app/config/environments/test.rb
|
|
203
|
+
script:
|
|
204
|
+
- unset DATABASE_URL && RAILS_ENV=test bundle exec rspec
|
data/.node-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
22
|
data/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
22
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
inherit_gem:
|
|
2
|
+
decidim-dev: rubocop-decidim.yml
|
|
3
|
+
|
|
4
|
+
Naming/FileName:
|
|
5
|
+
Exclude:
|
|
6
|
+
- lib/decidim-chatbot.rb
|
|
7
|
+
|
|
8
|
+
Naming/VariableNumber:
|
|
9
|
+
AllowedPatterns:
|
|
10
|
+
- '\Aerror_\d{3}\z'
|
|
11
|
+
|
|
12
|
+
RSpec/DescribeClass:
|
|
13
|
+
Exclude:
|
|
14
|
+
- spec/system/**/*
|
|
15
|
+
- spec/tasks/**/*
|
|
16
|
+
- spec/requests/decidim/chatbot/admin/tenant_isolation_spec.rb
|
|
17
|
+
- spec/requests/decidim/chatbot/admin/unsubscribe_user_spec.rb
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.4.7
|
data/.simplecov
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "simplecov-cobertura" if ENV["CI"]
|
|
4
|
+
|
|
5
|
+
SimpleCov.start do
|
|
6
|
+
enable_coverage :branch
|
|
7
|
+
|
|
8
|
+
minimum_coverage line: 90
|
|
9
|
+
minimum_coverage branch: 85
|
|
10
|
+
|
|
11
|
+
add_filter "/spec/"
|
|
12
|
+
add_filter "/vendor/"
|
|
13
|
+
add_filter "lib/decidim/chatbot/version.rb"
|
|
14
|
+
add_filter "lib/decidim-chatbot.rb"
|
|
15
|
+
add_filter "lib/tasks/"
|
|
16
|
+
# Boot-time initializers: packs path + RestFull Extension.register.
|
|
17
|
+
add_filter "lib/decidim/chatbot/engine.rb"
|
|
18
|
+
|
|
19
|
+
track_files "{app,lib}/**/*.rb"
|
|
20
|
+
|
|
21
|
+
add_group "Commands", "app/commands"
|
|
22
|
+
add_group "Controllers", "app/controllers"
|
|
23
|
+
add_group "Forms", "app/forms"
|
|
24
|
+
add_group "Models", "app/models"
|
|
25
|
+
add_group "Services", "app/services"
|
|
26
|
+
add_group "Lib", "lib"
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
if ENV["CI"]
|
|
30
|
+
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new(
|
|
31
|
+
[
|
|
32
|
+
SimpleCov::Formatter::HTMLFormatter,
|
|
33
|
+
SimpleCov::Formatter::CoberturaFormatter
|
|
34
|
+
]
|
|
35
|
+
)
|
|
36
|
+
end
|
data/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Contributing to decidim-chatbot
|
|
2
|
+
|
|
3
|
+
## Quick links
|
|
4
|
+
|
|
5
|
+
- **Doc site (local):** `cd website && yarn && yarn start`
|
|
6
|
+
- **Doc site (build):** `cd website && yarn build`
|
|
7
|
+
- **Tests and lint:** `./bin/check` — RuboCop, erblint, Prettier, i18n-tasks, OpenAPI, RSpec
|
|
8
|
+
- **CI-parity (local):** `docker compose -f docker-compose.ci.yml run --rm ci`
|
|
9
|
+
- **CI-parity RSpec:** `docker compose -f docker-compose.ci.yml run --rm rspec`
|
|
10
|
+
- **Host install guide:** [website docs — Install and configure](website/docs/integrate/index.md)
|
|
11
|
+
|
|
12
|
+
## Doc site map
|
|
13
|
+
|
|
14
|
+
| Path | Persona | Content |
|
|
15
|
+
| --- | --- | --- |
|
|
16
|
+
| `website/docs/index.md` | Integrator | Overview |
|
|
17
|
+
| `website/docs/integrate/` | System admin / host integrator | Gemfile, System Toggle, phone ID, rake, admin, API |
|
|
18
|
+
| `website/docs/developer/` | Gem contributor | `bin/check`, local CI compose, Docker mounts, RestFull extension, node client regen |
|
|
19
|
+
|
|
20
|
+
Sidebar is Docusaurus **autogenerated** from `website/docs/`. Prefer that over one-off sidebar entries.
|
|
21
|
+
|
|
22
|
+
## Development
|
|
23
|
+
|
|
24
|
+
Prefer Docker (`octree/decidim-dev:0.32`):
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
docker compose up -d
|
|
28
|
+
docker compose exec chatbot bash -lc 'bundle && yarn && bundle exec rake test_app && ./bin/check'
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
`spec/decidim_dummy_app` is gitignored. Generate it once after cloning (or after removing it) with `bundle exec rake test_app`. CI runs the same task in `ruby::rspec` before RSpec.
|
|
32
|
+
|
|
33
|
+
Compose sets `DATABASE_URL=postgresql://decidim:pleaseChangeMe@chatbot_db:5432/decidim` (single app DB). On Ruby 3.4 / Rails 8 that override wins over `database.yml`. `rake test_app`, `./bin/check`, and CI `ruby::rspec` **unset** it so dummy apps use `*_development` / `*_test`. If you run RSpec by hand: `unset DATABASE_URL`.
|
|
34
|
+
|
|
35
|
+
`decidim-restfull-core`, `decidim-restfull-blogs`, and `decidim-restfull-proposals` pin Gemfile tag `v0.3.11`; `decidim-toggle` stays on git `main`. Compose still mounts `../decidim-restfull` so `bin/gen-openapi` can merge the sibling `openapi.json`. Set `DECIDIM_RESTFULL_PATH` (default `/home/decidim-restfull` in the container) if that tree lives elsewhere.
|
|
36
|
+
|
|
37
|
+
TypeScript client regen is **not** in `./bin/check`. Same command as restfull: `yarn gen:node-client` (`bin/gen-node-client --validate --input openapi/openapi.json`). Compose image `octree/decidim-dev:0.32` has Node 22 and no JRE; OpenAPI Generator needs Java:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
docker run --rm -v "$PWD:/workspace" -w /workspace node:22-bookworm bash -lc 'corepack enable && apt-get update && apt-get install -y --no-install-recommends default-jre-headless && yarn && yarn gen:node-client'
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Output: `contrib/decidim-node-client` (`@octree/decidim-chatbot`).
|
|
44
|
+
|
|
45
|
+
## Local CI (GitLab parity)
|
|
46
|
+
|
|
47
|
+
`docker-compose.ci.yml` uses `ruby:3.4.7` + `postgres:17` + `redis` (same as `.gitlab-ci.yml` `ruby::rspec`). It mounts `.:/app` and `../decidim-restfull:/home/decidim-restfull`. Env matches that job (`DATABASE_HOST=postgres`, `DATABASE_USERNAME=decidim`, `DATABASE_PASSWORD=TEST-insecure_password`, `DISABLED_DOCKER_COMPOSE=true`, `TRAEFIK_REDIS_URL=redis://redis:6379/1`, `NODE_MAJOR=22`, `SIMPLECOV=1`, `CI=1`, `DECIDIM_FORCE_SSL=false`, `DECIDIM_RESTFULL_PATH=/home/decidim-restfull`, `DISABLE_SPRING=1`). `bin/ci-setup` runs the GitLab `before_script`, then dummy `bin/shakapacker` (packs under `spec/decidim_dummy_app/public/packs/manifest.json`; the binary’s exit code is ignored).
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
docker compose -f docker-compose.ci.yml run --rm ci
|
|
51
|
+
docker compose -f docker-compose.ci.yml run --rm rspec
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
`ci` is the merge-request gate (`bin/check` + website `yarn build`). `rspec` is specs only. Crowdin and gem publish stay GitLab-only (tokens).
|
data/Gemfile
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
source "https://rubygems.org"
|
|
4
|
+
|
|
5
|
+
ruby "3.4.7"
|
|
6
|
+
|
|
7
|
+
base_path = "./"
|
|
8
|
+
base_path = "../../" if File.basename(__dir__) == "decidim_dummy_app"
|
|
9
|
+
base_path = "../" if File.basename(__dir__) == "development_app"
|
|
10
|
+
require_relative "#{base_path}lib/decidim/chatbot/version"
|
|
11
|
+
|
|
12
|
+
DECIDIM_VERSION = Decidim::Chatbot.decidim_version
|
|
13
|
+
|
|
14
|
+
gem "bootsnap", "~> 1.4"
|
|
15
|
+
gem "decidim", *Array(DECIDIM_VERSION)
|
|
16
|
+
gem "decidim-chatbot", path: base_path
|
|
17
|
+
|
|
18
|
+
gem "decidim-restfull-blogs",
|
|
19
|
+
git: "https://git.octree.ch/decidim/vocacity/decidim-modules/decidim-module-rest_full",
|
|
20
|
+
tag: "v0.3.11"
|
|
21
|
+
gem "decidim-restfull-core",
|
|
22
|
+
git: "https://git.octree.ch/decidim/vocacity/decidim-modules/decidim-module-rest_full",
|
|
23
|
+
tag: "v0.3.11"
|
|
24
|
+
gem "decidim-restfull-proposals",
|
|
25
|
+
git: "https://git.octree.ch/decidim/vocacity/decidim-modules/decidim-module-rest_full",
|
|
26
|
+
tag: "v0.3.11"
|
|
27
|
+
|
|
28
|
+
gem "decidim-toggle",
|
|
29
|
+
git: "https://git.octree.ch/decidim/vocacity/decidim-modules/decidim-toggle",
|
|
30
|
+
branch: "main"
|
|
31
|
+
|
|
32
|
+
gem "activerecord-session_store", "~> 2.0"
|
|
33
|
+
gem "puma", ">= 6.3.1"
|
|
34
|
+
|
|
35
|
+
group :development, :test do
|
|
36
|
+
gem "brakeman", "~> 6.1"
|
|
37
|
+
gem "byebug", "~> 11.0", platform: :mri
|
|
38
|
+
gem "decidim-dev", *Array(DECIDIM_VERSION)
|
|
39
|
+
gem "i18n-tasks", "~> 1.0"
|
|
40
|
+
gem "parallel_tests", "~> 4.2"
|
|
41
|
+
gem "rswag-specs"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
group :development do
|
|
45
|
+
gem "letter_opener_web", "~> 2.0"
|
|
46
|
+
gem "listen", "~> 3.1"
|
|
47
|
+
gem "web-console", "~> 4.2"
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
gem "faker", "~> 3.6"
|