decidim-dev 0.29.3 → 0.30.0.rc1
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 +4 -4
 - data/app/models/decidim/dev/dummy_resource.rb +4 -2
 - data/app/views/decidim/dev/dummy_resources/show.html.erb +1 -1
 - data/config/locales/ar.yml +1 -1
 - data/config/locales/bg.yml +1 -1
 - data/config/locales/ca.yml +3 -1
 - data/config/locales/cs.yml +3 -1
 - data/config/locales/de.yml +3 -1
 - data/config/locales/el.yml +1 -1
 - data/config/locales/en.yml +2 -0
 - data/config/locales/es-MX.yml +3 -1
 - data/config/locales/es-PY.yml +3 -1
 - data/config/locales/es.yml +3 -1
 - data/config/locales/eu.yml +3 -1
 - data/config/locales/fi-plain.yml +3 -1
 - data/config/locales/fi.yml +3 -1
 - data/config/locales/fr-CA.yml +1 -1
 - data/config/locales/fr.yml +1 -1
 - data/config/locales/gl.yml +1 -1
 - data/config/locales/hu.yml +1 -1
 - data/config/locales/id-ID.yml +1 -1
 - data/config/locales/it.yml +1 -1
 - data/config/locales/ja.yml +3 -1
 - data/config/locales/lt.yml +1 -1
 - data/config/locales/lv.yml +1 -1
 - data/config/locales/nl.yml +1 -1
 - data/config/locales/no.yml +1 -1
 - data/config/locales/pl.yml +1 -1
 - data/config/locales/pt-BR.yml +1 -1
 - data/config/locales/pt.yml +1 -1
 - data/config/locales/ro-RO.yml +2 -2
 - data/config/locales/ru.yml +1 -1
 - data/config/locales/sk.yml +1 -1
 - data/config/locales/sv.yml +3 -1
 - data/config/locales/tr-TR.yml +1 -1
 - data/config/locales/zh-CN.yml +1 -1
 - data/config/locales/zh-TW.yml +1 -1
 - data/config/rubocop/disabled.yml +0 -27
 - data/config/rubocop/faker.yml +1 -1
 - data/config/rubocop/graphql.yml +23 -0
 - data/config/rubocop/rspec.yml +1 -0
 - data/config/rubocop/ruby.yml +1 -1
 - data/decidim-dev.gemspec +12 -6
 - data/lib/decidim/dev/auth_engine.rb +2 -0
 - data/lib/decidim/dev/component.rb +1 -2
 - data/lib/decidim/dev/test/rspec_support/capybara.rb +10 -25
 - data/lib/decidim/dev/test/rspec_support/component.rb +2 -0
 - data/lib/decidim/dev/test/rspec_support/component_context.rb +13 -7
 - data/lib/decidim/dev/test/rspec_support/confirmation_helpers.rb +4 -4
 - data/lib/decidim/dev/test/rspec_support/controller_example_group.rb +8 -0
 - data/lib/decidim/dev/test/rspec_support/screenshot_helper.rb +2 -2
 - data/lib/decidim/dev/test/rspec_support/translation_helpers.rb +0 -1
 - data/lib/decidim/dev/version.rb +1 -1
 - data/lib/tasks/generators.rake +2 -1
 - data/lib/tasks/lighthouse_report.rake +3 -3
 - data/rubocop-decidim.yml +1 -0
 - metadata +100 -24
 - data/app/presenters/decidim/dev/dummy_resource_presenter.rb +0 -13
 - data/config/locales/ca-IT.yml +0 -68
 - data/lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb +0 -21
 
    
        data/config/rubocop/rspec.yml
    CHANGED
    
    
    
        data/config/rubocop/ruby.yml
    CHANGED
    
    | 
         @@ -66,7 +66,7 @@ AllCops: 
     | 
|
| 
       66 
66 
     | 
    
         
             
              # If a value is specified for TargetRubyVersion then it is used.
         
     | 
| 
       67 
67 
     | 
    
         
             
              # Else if .ruby-version exists and it contains an MRI version it is used.
         
     | 
| 
       68 
68 
     | 
    
         
             
              # Otherwise we fallback to the oldest officially supported Ruby version (2.0).
         
     | 
| 
       69 
     | 
    
         
            -
              TargetRubyVersion: 3. 
     | 
| 
      
 69 
     | 
    
         
            +
              TargetRubyVersion: 3.3
         
     | 
| 
       70 
70 
     | 
    
         | 
| 
       71 
71 
     | 
    
         
             
            # Indent private/protected/public as deep as method definitions
         
     | 
| 
       72 
72 
     | 
    
         
             
            Layout/AccessModifierIndentation:
         
     | 
    
        data/decidim-dev.gemspec
    CHANGED
    
    | 
         @@ -19,7 +19,7 @@ Gem::Specification.new do |s| 
     | 
|
| 
       19 
19 
     | 
    
         
             
                "homepage_uri" => "https://decidim.org",
         
     | 
| 
       20 
20 
     | 
    
         
             
                "source_code_uri" => "https://github.com/decidim/decidim"
         
     | 
| 
       21 
21 
     | 
    
         
             
              }
         
     | 
| 
       22 
     | 
    
         
            -
              s.required_ruby_version = "~> 3. 
     | 
| 
      
 22 
     | 
    
         
            +
              s.required_ruby_version = "~> 3.3.0"
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
       24 
24 
     | 
    
         
             
              s.name = "decidim-dev"
         
     | 
| 
       25 
25 
     | 
    
         
             
              s.summary = "Decidim dev tools"
         
     | 
| 
         @@ -33,17 +33,22 @@ Gem::Specification.new do |s| 
     | 
|
| 
       33 
33 
     | 
    
         
             
              end
         
     | 
| 
       34 
34 
     | 
    
         | 
| 
       35 
35 
     | 
    
         
             
              s.add_dependency "capybara", "~> 3.39"
         
     | 
| 
       36 
     | 
    
         
            -
              s.add_dependency "decidim", Decidim::Dev.version
         
     | 
| 
      
 36 
     | 
    
         
            +
              s.add_dependency "decidim-admin", Decidim::Dev.version
         
     | 
| 
      
 37 
     | 
    
         
            +
              s.add_dependency "decidim-api", Decidim::Dev.version
         
     | 
| 
      
 38 
     | 
    
         
            +
              s.add_dependency "decidim-comments", Decidim::Dev.version
         
     | 
| 
      
 39 
     | 
    
         
            +
              s.add_dependency "decidim-core", Decidim::Dev.version
         
     | 
| 
      
 40 
     | 
    
         
            +
              s.add_dependency "decidim-generators", Decidim::Dev.version
         
     | 
| 
      
 41 
     | 
    
         
            +
              s.add_dependency "decidim-verifications", Decidim::Dev.version
         
     | 
| 
       37 
42 
     | 
    
         
             
              s.add_dependency "factory_bot_rails", "~> 6.2"
         
     | 
| 
       38 
43 
     | 
    
         
             
              s.add_dependency "faker", "~> 3.2"
         
     | 
| 
       39 
44 
     | 
    
         | 
| 
       40 
     | 
    
         
            -
              s.add_dependency "bullet", "~>  
     | 
| 
      
 45 
     | 
    
         
            +
              s.add_dependency "bullet", "~> 8.0.0"
         
     | 
| 
       41 
46 
     | 
    
         
             
              s.add_dependency "byebug", "~> 11.0"
         
     | 
| 
       42 
     | 
    
         
            -
              s.add_dependency "erb_lint", "~> 0. 
     | 
| 
      
 47 
     | 
    
         
            +
              s.add_dependency "erb_lint", "~> 0.8.0"
         
     | 
| 
       43 
48 
     | 
    
         
             
              s.add_dependency "i18n-tasks", "~> 1.0"
         
     | 
| 
       44 
49 
     | 
    
         
             
              s.add_dependency "nokogiri", "~> 1.16", ">= 1.16.2"
         
     | 
| 
       45 
50 
     | 
    
         
             
              s.add_dependency "parallel_tests", "~> 4.2"
         
     | 
| 
       46 
     | 
    
         
            -
              s.add_dependency "puma", "~> 6. 
     | 
| 
      
 51 
     | 
    
         
            +
              s.add_dependency "puma", "~> 6.5"
         
     | 
| 
       47 
52 
     | 
    
         
             
              s.add_dependency "rails-controller-testing", "~> 1.0"
         
     | 
| 
       48 
53 
     | 
    
         
             
              s.add_dependency "rspec", "~> 3.12"
         
     | 
| 
       49 
54 
     | 
    
         
             
              s.add_dependency "rspec-cells", "~> 0.3.7"
         
     | 
| 
         @@ -51,10 +56,11 @@ Gem::Specification.new do |s| 
     | 
|
| 
       51 
56 
     | 
    
         
             
              s.add_dependency "rspec_junit_formatter", "~> 0.6.0"
         
     | 
| 
       52 
57 
     | 
    
         
             
              s.add_dependency "rspec-rails", "~> 6.0"
         
     | 
| 
       53 
58 
     | 
    
         
             
              s.add_dependency "rspec-retry", "~> 0.6.2"
         
     | 
| 
       54 
     | 
    
         
            -
              s.add_dependency "rubocop", "~> 1. 
     | 
| 
      
 59 
     | 
    
         
            +
              s.add_dependency "rubocop", "~> 1.69.0"
         
     | 
| 
       55 
60 
     | 
    
         
             
              s.add_dependency "rubocop-capybara", "~> 2.21"
         
     | 
| 
       56 
61 
     | 
    
         
             
              s.add_dependency "rubocop-factory_bot", "~> 2.26"
         
     | 
| 
       57 
62 
     | 
    
         
             
              s.add_dependency "rubocop-faker", "~> 1.1"
         
     | 
| 
      
 63 
     | 
    
         
            +
              s.add_dependency "rubocop-graphql", "~> 1.5"
         
     | 
| 
       58 
64 
     | 
    
         
             
              s.add_dependency "rubocop-performance", "~> 1.21"
         
     | 
| 
       59 
65 
     | 
    
         
             
              s.add_dependency "rubocop-rails", "~> 2.25"
         
     | 
| 
       60 
66 
     | 
    
         
             
              s.add_dependency "rubocop-rspec", "~> 3.0"
         
     | 
| 
         @@ -11,8 +11,7 @@ Decidim.register_component(:dummy) do |component| 
     | 
|
| 
       11 
11 
     | 
    
         
             
              component.permissions_class_name = "Decidim::Dev::Permissions"
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
       13 
13 
     | 
    
         
             
              component.settings(:global) do |settings|
         
     | 
| 
       14 
     | 
    
         
            -
                settings.attribute : 
     | 
| 
       15 
     | 
    
         
            -
                settings.attribute :scope_id, type: :scope
         
     | 
| 
      
 14 
     | 
    
         
            +
                settings.attribute :taxonomy_filters, type: :taxonomy_filters, default: []
         
     | 
| 
       16 
15 
     | 
    
         
             
                settings.attribute :comments_enabled, type: :boolean, default: true
         
     | 
| 
       17 
16 
     | 
    
         
             
                settings.attribute :comments_max_length, type: :integer, required: false
         
     | 
| 
       18 
17 
     | 
    
         
             
                settings.attribute :resources_permissions_enabled, type: :boolean, default: true
         
     | 
| 
         @@ -32,6 +32,8 @@ end 
     | 
|
| 
       32 
32 
     | 
    
         | 
| 
       33 
33 
     | 
    
         
             
            1.step do
         
     | 
| 
       34 
34 
     | 
    
         
             
              port = rand(5000..6999)
         
     | 
| 
      
 35 
     | 
    
         
            +
              next if port == 6379 # Reserved for Redis
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
       35 
37 
     | 
    
         
             
              begin
         
     | 
| 
       36 
38 
     | 
    
         
             
                redis = Redis.new
         
     | 
| 
       37 
39 
     | 
    
         
             
                reserved_ports = (redis.get("decidim_test_capybara_reserved_ports") || "").split(",").map(&:to_i)
         
     | 
| 
         @@ -66,6 +68,13 @@ Capybara.register_driver :headless_chrome do |app| 
     | 
|
| 
       66 
68 
     | 
    
         
             
                                "--window-size=1920,1080"
         
     | 
| 
       67 
69 
     | 
    
         
             
                              end
         
     | 
| 
       68 
70 
     | 
    
         
             
              options.args << "--ignore-certificate-errors" if ENV["TEST_SSL"]
         
     | 
| 
      
 71 
     | 
    
         
            +
             
     | 
| 
      
 72 
     | 
    
         
            +
              options.add_preference(:download,
         
     | 
| 
      
 73 
     | 
    
         
            +
                                     directory_upgrade: true,
         
     | 
| 
      
 74 
     | 
    
         
            +
                                     prompt_for_download: false,
         
     | 
| 
      
 75 
     | 
    
         
            +
                                     default_directory: DownloadHelper::PATH.to_s)
         
     | 
| 
      
 76 
     | 
    
         
            +
              options.add_preference(:browser, set_download_behavior: { behavior: "allow" })
         
     | 
| 
      
 77 
     | 
    
         
            +
             
     | 
| 
       69 
78 
     | 
    
         
             
              Capybara::Selenium::Driver.new(
         
     | 
| 
       70 
79 
     | 
    
         
             
                app,
         
     | 
| 
       71 
80 
     | 
    
         
             
                browser: :chrome,
         
     | 
| 
         @@ -111,7 +120,7 @@ Capybara.register_driver :iphone do |app| 
     | 
|
| 
       111 
120 
     | 
    
         
             
              options.args << "--no-sandbox"
         
     | 
| 
       112 
121 
     | 
    
         
             
              # Do not limit browser resources
         
     | 
| 
       113 
122 
     | 
    
         
             
              options.args << "--disable-dev-shm-usage"
         
     | 
| 
       114 
     | 
    
         
            -
              options.add_emulation(device_name: "iPhone  
     | 
| 
      
 123 
     | 
    
         
            +
              options.add_emulation(device_name: "iPhone XR")
         
     | 
| 
       115 
124 
     | 
    
         | 
| 
       116 
125 
     | 
    
         
             
              Capybara::Selenium::Driver.new(
         
     | 
| 
       117 
126 
     | 
    
         
             
                app,
         
     | 
| 
         @@ -139,33 +148,9 @@ Capybara.save_path = Rails.root.join("tmp/screenshots") 
     | 
|
| 
       139 
148 
     | 
    
         
             
            Capybara.default_max_wait_time = 10
         
     | 
| 
       140 
149 
     | 
    
         | 
| 
       141 
150 
     | 
    
         
             
            RSpec.configure do |config|
         
     | 
| 
       142 
     | 
    
         
            -
              config.before :all, type: :system do
         
     | 
| 
       143 
     | 
    
         
            -
                if ENV["BIG_SCREEN_SIZE"].present?
         
     | 
| 
       144 
     | 
    
         
            -
                  warn "[DECIDIM] ChromeDriver Workaround is being active: Setting window size to 1920x3000."
         
     | 
| 
       145 
     | 
    
         
            -
                else
         
     | 
| 
       146 
     | 
    
         
            -
                  warn "[DECIDIM] ChromeDriver Workaround is being active: Setting window size to 1920x1080."
         
     | 
| 
       147 
     | 
    
         
            -
                end
         
     | 
| 
       148 
     | 
    
         
            -
              end
         
     | 
| 
       149 
     | 
    
         
            -
             
     | 
| 
       150 
151 
     | 
    
         
             
              config.before :each, type: :system do
         
     | 
| 
       151 
152 
     | 
    
         
             
                driven_by(:headless_chrome)
         
     | 
| 
       152 
153 
     | 
    
         | 
| 
       153 
     | 
    
         
            -
                # Workaround for flaky spec related to resolution change
         
     | 
| 
       154 
     | 
    
         
            -
                #
         
     | 
| 
       155 
     | 
    
         
            -
                # For some unknown reason, depending on the order run for these specs, the resolution is changed to
         
     | 
| 
       156 
     | 
    
         
            -
                # 800x600, which breaks the drag and drop. This forces the resolution to be 1920x1080.
         
     | 
| 
       157 
     | 
    
         
            -
                # One possible culprit for the screen resolution change is the alert error intercepting which messes with the window focus.
         
     | 
| 
       158 
     | 
    
         
            -
                # This has been reported to SeleniumHQ, https://github.com/SeleniumHQ/selenium/issues/13553
         
     | 
| 
       159 
     | 
    
         
            -
                # and to the chromedriver project, https://bugs.chromium.org/p/chromedriver/issues/detail?id=4709
         
     | 
| 
       160 
     | 
    
         
            -
                #
         
     | 
| 
       161 
     | 
    
         
            -
                # Note to future maintainers: If you remove this workaround, please make sure to check if the issue has been fixed.
         
     | 
| 
       162 
     | 
    
         
            -
                # If that is the case, please remove this comment, workaround, and the above warning that starts with "[DECIDIM] ChromeDriver Workaround".
         
     | 
| 
       163 
     | 
    
         
            -
                if ENV["BIG_SCREEN_SIZE"].present?
         
     | 
| 
       164 
     | 
    
         
            -
                  current_window.resize_to(1920, 3000)
         
     | 
| 
       165 
     | 
    
         
            -
                else
         
     | 
| 
       166 
     | 
    
         
            -
                  current_window.resize_to(1920, 1080)
         
     | 
| 
       167 
     | 
    
         
            -
                end
         
     | 
| 
       168 
     | 
    
         
            -
             
     | 
| 
       169 
154 
     | 
    
         
             
                switch_to_default_host
         
     | 
| 
       170 
155 
     | 
    
         
             
                domain = (try(:organization) || try(:current_organization))&.host
         
     | 
| 
       171 
156 
     | 
    
         
             
                if domain
         
     | 
| 
         @@ -16,6 +16,7 @@ RSpec.configure do |config| 
     | 
|
| 
       16 
16 
     | 
    
         
             
                      t.float :latitude
         
     | 
| 
       17 
17 
     | 
    
         
             
                      t.float :longitude
         
     | 
| 
       18 
18 
     | 
    
         
             
                      t.datetime :published_at
         
     | 
| 
      
 19 
     | 
    
         
            +
                      t.datetime :deleted_at
         
     | 
| 
       19 
20 
     | 
    
         
             
                      t.integer :coauthorships_count, null: false, default: 0
         
     | 
| 
       20 
21 
     | 
    
         
             
                      t.integer :endorsements_count, null: false, default: 0
         
     | 
| 
       21 
22 
     | 
    
         
             
                      t.integer :comments_count, null: false, default: 0
         
     | 
| 
         @@ -50,6 +51,7 @@ RSpec.configure do |config| 
     | 
|
| 
       50 
51 
     | 
    
         
             
                      t.float :latitude
         
     | 
| 
       51 
52 
     | 
    
         
             
                      t.float :longitude
         
     | 
| 
       52 
53 
     | 
    
         
             
                      t.datetime :published_at
         
     | 
| 
      
 54 
     | 
    
         
            +
                      t.datetime :deleted_at
         
     | 
| 
       53 
55 
     | 
    
         
             
                      t.integer :coauthorships_count, null: false, default: 0
         
     | 
| 
       54 
56 
     | 
    
         
             
                      t.integer :endorsements_count, null: false, default: 0
         
     | 
| 
       55 
57 
     | 
    
         
             
                      t.integer :comments_count, null: false, default: 0
         
     | 
| 
         @@ -22,7 +22,7 @@ end 
     | 
|
| 
       22 
22 
     | 
    
         | 
| 
       23 
23 
     | 
    
         
             
            shared_context "with a component" do
         
     | 
| 
       24 
24 
     | 
    
         
             
              let(:manifest) { Decidim.find_component_manifest(manifest_name) }
         
     | 
| 
       25 
     | 
    
         
            -
              let(:user) { create 
     | 
| 
      
 25 
     | 
    
         
            +
              let(:user) { create(:user, :confirmed, organization:) }
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
       27 
27 
     | 
    
         
             
              let!(:organization) { create(:organization, *organization_traits, available_authorizations: %w(dummy_authorization_handler another_dummy_authorization_handler)) }
         
     | 
| 
       28 
28 
     | 
    
         | 
| 
         @@ -38,8 +38,14 @@ shared_context "with a component" do 
     | 
|
| 
       38 
38 
     | 
    
         
             
                       participatory_space:)
         
     | 
| 
       39 
39 
     | 
    
         
             
              end
         
     | 
| 
       40 
40 
     | 
    
         | 
| 
       41 
     | 
    
         
            -
              let!(:category) { create 
     | 
| 
       42 
     | 
    
         
            -
              let!(:scope) { create 
     | 
| 
      
 41 
     | 
    
         
            +
              let!(:category) { create(:category, participatory_space:) }
         
     | 
| 
      
 42 
     | 
    
         
            +
              let!(:scope) { create(:scope, organization:) }
         
     | 
| 
      
 43 
     | 
    
         
            +
              let(:root_taxonomy) { create(:taxonomy, organization:) }
         
     | 
| 
      
 44 
     | 
    
         
            +
              let!(:taxonomy) { create(:taxonomy, organization:, parent: root_taxonomy) }
         
     | 
| 
      
 45 
     | 
    
         
            +
              let(:taxonomy_filter) { create(:taxonomy_filter, internal_name:, name:, participatory_space_manifests: [participatory_space.manifest.name], root_taxonomy:) }
         
     | 
| 
      
 46 
     | 
    
         
            +
              let!(:taxonomy_filter_item) { create(:taxonomy_filter_item, taxonomy_filter:, taxonomy_item: taxonomy) }
         
     | 
| 
      
 47 
     | 
    
         
            +
              let(:internal_name) { { "en" => "Internal taxonomy filter name" } }
         
     | 
| 
      
 48 
     | 
    
         
            +
              let(:name) { { "en" => "Public taxonomy filter name" } }
         
     | 
| 
       43 
49 
     | 
    
         | 
| 
       44 
50 
     | 
    
         
             
              let(:organization_traits) { [] }
         
     | 
| 
       45 
51 
     | 
    
         | 
| 
         @@ -91,10 +97,10 @@ shared_context "when managing a component as an admin" do 
     | 
|
| 
       91 
97 
     | 
    
         
             
              let(:admin_component_organization_traits) { [] }
         
     | 
| 
       92 
98 
     | 
    
         | 
| 
       93 
99 
     | 
    
         
             
              let(:user) do
         
     | 
| 
       94 
     | 
    
         
            -
                create 
     | 
| 
      
 100 
     | 
    
         
            +
                create(:user,
         
     | 
| 
       95 
101 
     | 
    
         
             
                       :admin,
         
     | 
| 
       96 
102 
     | 
    
         
             
                       :confirmed,
         
     | 
| 
       97 
     | 
    
         
            -
                       organization:
         
     | 
| 
      
 103 
     | 
    
         
            +
                       organization:)
         
     | 
| 
       98 
104 
     | 
    
         
             
              end
         
     | 
| 
       99 
105 
     | 
    
         
             
            end
         
     | 
| 
       100 
106 
     | 
    
         | 
| 
         @@ -102,9 +108,9 @@ shared_context "when managing a component as a process admin" do 
     | 
|
| 
       102 
108 
     | 
    
         
             
              include_context "when managing a component"
         
     | 
| 
       103 
109 
     | 
    
         | 
| 
       104 
110 
     | 
    
         
             
              let(:user) do
         
     | 
| 
       105 
     | 
    
         
            -
                create 
     | 
| 
      
 111 
     | 
    
         
            +
                create(:process_admin,
         
     | 
| 
       106 
112 
     | 
    
         
             
                       :confirmed,
         
     | 
| 
       107 
113 
     | 
    
         
             
                       organization:,
         
     | 
| 
       108 
     | 
    
         
            -
                       participatory_process:
         
     | 
| 
      
 114 
     | 
    
         
            +
                       participatory_process:)
         
     | 
| 
       109 
115 
     | 
    
         
             
              end
         
     | 
| 
       110 
116 
     | 
    
         
             
            end
         
     | 
| 
         @@ -47,15 +47,15 @@ module ConfirmationHelpers 
     | 
|
| 
       47 
47 
     | 
    
         
             
              # Used to accept the "onbeforeunload" event's normal browser confirm modal
         
     | 
| 
       48 
48 
     | 
    
         
             
              # as this cannot be overridden. Original confirm dismiss implementation in
         
     | 
| 
       49 
49 
     | 
    
         
             
              # Capybara.
         
     | 
| 
       50 
     | 
    
         
            -
              def accept_page_unload(text = nil,  
     | 
| 
       51 
     | 
    
         
            -
                 
     | 
| 
      
 50 
     | 
    
         
            +
              def accept_page_unload(text = nil, **, &)
         
     | 
| 
      
 51 
     | 
    
         
            +
                accept_confirm(text, &)
         
     | 
| 
       52 
52 
     | 
    
         
             
              end
         
     | 
| 
       53 
53 
     | 
    
         | 
| 
       54 
54 
     | 
    
         
             
              # Used to dismiss the "onbeforeunload" event's normal browser confirm modal
         
     | 
| 
       55 
55 
     | 
    
         
             
              # as this cannot be overridden. Original confirm dismiss implementation in
         
     | 
| 
       56 
56 
     | 
    
         
             
              # Capybara.
         
     | 
| 
       57 
     | 
    
         
            -
              def dismiss_page_unload(text = nil,  
     | 
| 
       58 
     | 
    
         
            -
                 
     | 
| 
      
 57 
     | 
    
         
            +
              def dismiss_page_unload(text = nil, **, &)
         
     | 
| 
      
 58 
     | 
    
         
            +
                dismiss_confirm(text, &)
         
     | 
| 
       59 
59 
     | 
    
         
             
              end
         
     | 
| 
       60 
60 
     | 
    
         
             
            end
         
     | 
| 
       61 
61 
     | 
    
         | 
| 
         @@ -19,6 +19,14 @@ module Decidim 
     | 
|
| 
       19 
19 
     | 
    
         
             
                    end
         
     | 
| 
       20 
20 
     | 
    
         
             
                  end
         
     | 
| 
       21 
21 
     | 
    
         
             
                end
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
                def process(action, method: "GET", params: nil, session: nil, body: nil, flash: {}, format: nil, xhr: false, as: nil) # rubocop:disable Metrics/ParameterLists
         
     | 
| 
      
 24 
     | 
    
         
            +
                  params = (params || {}).symbolize_keys
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
                  params.merge!(use_route: request.env["decidim.current_component"]&.mounted_engine) if request.env["decidim.current_component"].present?
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
                  super
         
     | 
| 
      
 29 
     | 
    
         
            +
                end
         
     | 
| 
       22 
30 
     | 
    
         
             
              end
         
     | 
| 
       23 
31 
     | 
    
         
             
            end
         
     | 
| 
       24 
32 
     | 
    
         | 
| 
         @@ -21,8 +21,8 @@ module ActionDispatch 
     | 
|
| 
       21 
21 
     | 
    
         | 
| 
       22 
22 
     | 
    
         
             
                    # Add the file URI scheme so terminal emulators can open one click
         
     | 
| 
       23 
23 
     | 
    
         
             
                    def display_image
         
     | 
| 
       24 
     | 
    
         
            -
                      message =  
     | 
| 
       25 
     | 
    
         
            -
                      message <<  
     | 
| 
      
 24 
     | 
    
         
            +
                      message = "[Screenshot Image]: file://#{image_path}\n"
         
     | 
| 
      
 25 
     | 
    
         
            +
                      message << "[Screenshot HTML]: file://#{html_path}\n" if save_html?
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
       27 
27 
     | 
    
         
             
                      case output_type
         
     | 
| 
       28 
28 
     | 
    
         
             
                      when "artifact"
         
     | 
| 
         @@ -62,7 +62,6 @@ module TranslationHelpers 
     | 
|
| 
       62 
62 
     | 
    
         
             
              # localized_values - a Hash where the keys are the locales IDs and the values
         
     | 
| 
       63 
63 
     | 
    
         
             
              #   are the values that will be entered in the form field.
         
     | 
| 
       64 
64 
     | 
    
         
             
              def fill_in_i18n_editor(field, tab_selector, localized_values)
         
     | 
| 
       65 
     | 
    
         
            -
                clear_i18n_editor field, tab_selector, localized_values.keys
         
     | 
| 
       66 
65 
     | 
    
         
             
                fill_in_i18n_fields(field, tab_selector, localized_values) do |locator, value|
         
     | 
| 
       67 
66 
     | 
    
         
             
                  fill_in_editor locator, with: value
         
     | 
| 
       68 
67 
     | 
    
         
             
                end
         
     | 
    
        data/lib/decidim/dev/version.rb
    CHANGED
    
    
    
        data/lib/tasks/generators.rake
    CHANGED
    
    
| 
         @@ -42,9 +42,9 @@ namespace :decidim do 
     | 
|
| 
       42 
42 
     | 
    
         | 
| 
       43 
43 
     | 
    
         
             
                def lighthouse_paths
         
     | 
| 
       44 
44 
     | 
    
         
             
                  ["/"].tap do |urls|
         
     | 
| 
       45 
     | 
    
         
            -
                    urls << Decidim::ResourceLocatorPresenter.new(Decidim::ParticipatoryProcess.published.first).path
         
     | 
| 
       46 
     | 
    
         
            -
                    urls << Decidim::ResourceLocatorPresenter.new(Decidim::Meetings::Meeting.published.not_hidden.first).path
         
     | 
| 
       47 
     | 
    
         
            -
                    urls << Decidim::ResourceLocatorPresenter.new(Decidim::Proposals::Proposal.published.not_hidden.first).path
         
     | 
| 
      
 45 
     | 
    
         
            +
                    urls << Decidim::ResourceLocatorPresenter.new(Decidim::ParticipatoryProcess.published.first).path if Decidim.module_installed?(:participatory_processes)
         
     | 
| 
      
 46 
     | 
    
         
            +
                    urls << Decidim::ResourceLocatorPresenter.new(Decidim::Meetings::Meeting.published.not_hidden.first).path if Decidim.module_installed?(:meetings)
         
     | 
| 
      
 47 
     | 
    
         
            +
                    urls << Decidim::ResourceLocatorPresenter.new(Decidim::Proposals::Proposal.published.not_hidden.first).path if Decidim.module_installed?(:proposals)
         
     | 
| 
       48 
48 
     | 
    
         
             
                  end
         
     | 
| 
       49 
49 
     | 
    
         
             
                end
         
     | 
| 
       50 
50 
     | 
    
         
             
              end
         
     | 
    
        data/rubocop-decidim.yml
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: decidim-dev
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.30.0.rc1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Josep Jaume Rey Peroy
         
     | 
| 
         @@ -10,7 +10,7 @@ authors: 
     | 
|
| 
       10 
10 
     | 
    
         
             
            autorequire:
         
     | 
| 
       11 
11 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       12 
12 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       13 
     | 
    
         
            -
            date: 2025- 
     | 
| 
      
 13 
     | 
    
         
            +
            date: 2025-02-18 00:00:00.000000000 Z
         
     | 
| 
       14 
14 
     | 
    
         
             
            dependencies:
         
     | 
| 
       15 
15 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       16 
16 
     | 
    
         
             
              name: capybara
         
     | 
| 
         @@ -27,19 +27,89 @@ dependencies: 
     | 
|
| 
       27 
27 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       28 
28 
     | 
    
         
             
                    version: '3.39'
         
     | 
| 
       29 
29 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       30 
     | 
    
         
            -
              name: decidim
         
     | 
| 
      
 30 
     | 
    
         
            +
              name: decidim-admin
         
     | 
| 
       31 
31 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       32 
32 
     | 
    
         
             
                requirements:
         
     | 
| 
       33 
33 
     | 
    
         
             
                - - '='
         
     | 
| 
       34 
34 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       35 
     | 
    
         
            -
                    version: 0. 
     | 
| 
      
 35 
     | 
    
         
            +
                    version: 0.30.0.rc1
         
     | 
| 
       36 
36 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       37 
37 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       38 
38 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       39 
39 
     | 
    
         
             
                requirements:
         
     | 
| 
       40 
40 
     | 
    
         
             
                - - '='
         
     | 
| 
       41 
41 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       42 
     | 
    
         
            -
                    version: 0. 
     | 
| 
      
 42 
     | 
    
         
            +
                    version: 0.30.0.rc1
         
     | 
| 
      
 43 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 44 
     | 
    
         
            +
              name: decidim-api
         
     | 
| 
      
 45 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 46 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 47 
     | 
    
         
            +
                - - '='
         
     | 
| 
      
 48 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 49 
     | 
    
         
            +
                    version: 0.30.0.rc1
         
     | 
| 
      
 50 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 51 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 52 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 53 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 54 
     | 
    
         
            +
                - - '='
         
     | 
| 
      
 55 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 56 
     | 
    
         
            +
                    version: 0.30.0.rc1
         
     | 
| 
      
 57 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 58 
     | 
    
         
            +
              name: decidim-comments
         
     | 
| 
      
 59 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 60 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 61 
     | 
    
         
            +
                - - '='
         
     | 
| 
      
 62 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 63 
     | 
    
         
            +
                    version: 0.30.0.rc1
         
     | 
| 
      
 64 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 65 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 66 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 67 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 68 
     | 
    
         
            +
                - - '='
         
     | 
| 
      
 69 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 70 
     | 
    
         
            +
                    version: 0.30.0.rc1
         
     | 
| 
      
 71 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 72 
     | 
    
         
            +
              name: decidim-core
         
     | 
| 
      
 73 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 74 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 75 
     | 
    
         
            +
                - - '='
         
     | 
| 
      
 76 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 77 
     | 
    
         
            +
                    version: 0.30.0.rc1
         
     | 
| 
      
 78 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 79 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 80 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 81 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 82 
     | 
    
         
            +
                - - '='
         
     | 
| 
      
 83 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 84 
     | 
    
         
            +
                    version: 0.30.0.rc1
         
     | 
| 
      
 85 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 86 
     | 
    
         
            +
              name: decidim-generators
         
     | 
| 
      
 87 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 88 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 89 
     | 
    
         
            +
                - - '='
         
     | 
| 
      
 90 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 91 
     | 
    
         
            +
                    version: 0.30.0.rc1
         
     | 
| 
      
 92 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 93 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 94 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 95 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 96 
     | 
    
         
            +
                - - '='
         
     | 
| 
      
 97 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 98 
     | 
    
         
            +
                    version: 0.30.0.rc1
         
     | 
| 
      
 99 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 100 
     | 
    
         
            +
              name: decidim-verifications
         
     | 
| 
      
 101 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 102 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 103 
     | 
    
         
            +
                - - '='
         
     | 
| 
      
 104 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 105 
     | 
    
         
            +
                    version: 0.30.0.rc1
         
     | 
| 
      
 106 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 107 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 108 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 109 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 110 
     | 
    
         
            +
                - - '='
         
     | 
| 
      
 111 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 112 
     | 
    
         
            +
                    version: 0.30.0.rc1
         
     | 
| 
       43 
113 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       44 
114 
     | 
    
         
             
              name: factory_bot_rails
         
     | 
| 
       45 
115 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -74,14 +144,14 @@ dependencies: 
     | 
|
| 
       74 
144 
     | 
    
         
             
                requirements:
         
     | 
| 
       75 
145 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       76 
146 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       77 
     | 
    
         
            -
                    version:  
     | 
| 
      
 147 
     | 
    
         
            +
                    version: 8.0.0
         
     | 
| 
       78 
148 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       79 
149 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       80 
150 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       81 
151 
     | 
    
         
             
                requirements:
         
     | 
| 
       82 
152 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       83 
153 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       84 
     | 
    
         
            -
                    version:  
     | 
| 
      
 154 
     | 
    
         
            +
                    version: 8.0.0
         
     | 
| 
       85 
155 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       86 
156 
     | 
    
         
             
              name: byebug
         
     | 
| 
       87 
157 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -102,14 +172,14 @@ dependencies: 
     | 
|
| 
       102 
172 
     | 
    
         
             
                requirements:
         
     | 
| 
       103 
173 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       104 
174 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       105 
     | 
    
         
            -
                    version: 0. 
     | 
| 
      
 175 
     | 
    
         
            +
                    version: 0.8.0
         
     | 
| 
       106 
176 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       107 
177 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       108 
178 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       109 
179 
     | 
    
         
             
                requirements:
         
     | 
| 
       110 
180 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       111 
181 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       112 
     | 
    
         
            -
                    version: 0. 
     | 
| 
      
 182 
     | 
    
         
            +
                    version: 0.8.0
         
     | 
| 
       113 
183 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       114 
184 
     | 
    
         
             
              name: i18n-tasks
         
     | 
| 
       115 
185 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -164,20 +234,14 @@ dependencies: 
     | 
|
| 
       164 
234 
     | 
    
         
             
                requirements:
         
     | 
| 
       165 
235 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       166 
236 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       167 
     | 
    
         
            -
                    version: '6. 
     | 
| 
       168 
     | 
    
         
            -
                - - ">="
         
     | 
| 
       169 
     | 
    
         
            -
                  - !ruby/object:Gem::Version
         
     | 
| 
       170 
     | 
    
         
            -
                    version: 6.3.1
         
     | 
| 
      
 237 
     | 
    
         
            +
                    version: '6.5'
         
     | 
| 
       171 
238 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       172 
239 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       173 
240 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       174 
241 
     | 
    
         
             
                requirements:
         
     | 
| 
       175 
242 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       176 
243 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       177 
     | 
    
         
            -
                    version: '6. 
     | 
| 
       178 
     | 
    
         
            -
                - - ">="
         
     | 
| 
       179 
     | 
    
         
            -
                  - !ruby/object:Gem::Version
         
     | 
| 
       180 
     | 
    
         
            -
                    version: 6.3.1
         
     | 
| 
      
 244 
     | 
    
         
            +
                    version: '6.5'
         
     | 
| 
       181 
245 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       182 
246 
     | 
    
         
             
              name: rails-controller-testing
         
     | 
| 
       183 
247 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -282,14 +346,14 @@ dependencies: 
     | 
|
| 
       282 
346 
     | 
    
         
             
                requirements:
         
     | 
| 
       283 
347 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       284 
348 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       285 
     | 
    
         
            -
                    version: 1. 
     | 
| 
      
 349 
     | 
    
         
            +
                    version: 1.69.0
         
     | 
| 
       286 
350 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       287 
351 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       288 
352 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       289 
353 
     | 
    
         
             
                requirements:
         
     | 
| 
       290 
354 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       291 
355 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       292 
     | 
    
         
            -
                    version: 1. 
     | 
| 
      
 356 
     | 
    
         
            +
                    version: 1.69.0
         
     | 
| 
       293 
357 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       294 
358 
     | 
    
         
             
              name: rubocop-capybara
         
     | 
| 
       295 
359 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -332,6 +396,20 @@ dependencies: 
     | 
|
| 
       332 
396 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       333 
397 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       334 
398 
     | 
    
         
             
                    version: '1.1'
         
     | 
| 
      
 399 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 400 
     | 
    
         
            +
              name: rubocop-graphql
         
     | 
| 
      
 401 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 402 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 403 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 404 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 405 
     | 
    
         
            +
                    version: '1.5'
         
     | 
| 
      
 406 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 407 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 408 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 409 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 410 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 411 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 412 
     | 
    
         
            +
                    version: '1.5'
         
     | 
| 
       335 
413 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       336 
414 
     | 
    
         
             
              name: rubocop-performance
         
     | 
| 
       337 
415 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -548,7 +626,6 @@ files: 
     | 
|
| 
       548 
626 
     | 
    
         
             
            - app/packs/stylesheets/decidim/dev/_map.scss
         
     | 
| 
       549 
627 
     | 
    
         
             
            - app/packs/stylesheets/decidim/dev/_rack_profiler.scss
         
     | 
| 
       550 
628 
     | 
    
         
             
            - app/permissions/decidim/dev/permissions.rb
         
     | 
| 
       551 
     | 
    
         
            -
            - app/presenters/decidim/dev/dummy_resource_presenter.rb
         
     | 
| 
       552 
629 
     | 
    
         
             
            - app/presenters/decidim/dev/official_author_presenter.rb
         
     | 
| 
       553 
630 
     | 
    
         
             
            - app/serializers/decidim/dev/dummy_serializer.rb
         
     | 
| 
       554 
631 
     | 
    
         
             
            - app/views/decidim/dev/dummy_resources/foo.html.erb
         
     | 
| 
         @@ -562,7 +639,6 @@ files: 
     | 
|
| 
       562 
639 
     | 
    
         
             
            - config/locales/bg.yml
         
     | 
| 
       563 
640 
     | 
    
         
             
            - config/locales/bn-BD.yml
         
     | 
| 
       564 
641 
     | 
    
         
             
            - config/locales/bs-BA.yml
         
     | 
| 
       565 
     | 
    
         
            -
            - config/locales/ca-IT.yml
         
     | 
| 
       566 
642 
     | 
    
         
             
            - config/locales/ca.yml
         
     | 
| 
       567 
643 
     | 
    
         
             
            - config/locales/cs-CZ.yml
         
     | 
| 
       568 
644 
     | 
    
         
             
            - config/locales/cs.yml
         
     | 
| 
         @@ -640,6 +716,7 @@ files: 
     | 
|
| 
       640 
716 
     | 
    
         
             
            - config/locales/zh-TW.yml
         
     | 
| 
       641 
717 
     | 
    
         
             
            - config/rubocop/disabled.yml
         
     | 
| 
       642 
718 
     | 
    
         
             
            - config/rubocop/faker.yml
         
     | 
| 
      
 719 
     | 
    
         
            +
            - config/rubocop/graphql.yml
         
     | 
| 
       643 
720 
     | 
    
         
             
            - config/rubocop/performance.yml
         
     | 
| 
       644 
721 
     | 
    
         
             
            - config/rubocop/rails.yml
         
     | 
| 
       645 
722 
     | 
    
         
             
            - config/rubocop/rspec.yml
         
     | 
| 
         @@ -763,7 +840,6 @@ files: 
     | 
|
| 
       763 
840 
     | 
    
         
             
            - lib/decidim/dev/test/rspec_support/warden.rb
         
     | 
| 
       764 
841 
     | 
    
         
             
            - lib/decidim/dev/test/rspec_support/webmock.rb
         
     | 
| 
       765 
842 
     | 
    
         
             
            - lib/decidim/dev/test/rspec_support/webpacker.rb
         
     | 
| 
       766 
     | 
    
         
            -
            - lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
         
     | 
| 
       767 
843 
     | 
    
         
             
            - lib/decidim/dev/test/rspec_support/wisper.rb
         
     | 
| 
       768 
844 
     | 
    
         
             
            - lib/decidim/dev/test/rspec_support/z_download_helper.rb
         
     | 
| 
       769 
845 
     | 
    
         
             
            - lib/decidim/dev/test/spec_helper.rb
         
     | 
| 
         @@ -790,14 +866,14 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       790 
866 
     | 
    
         
             
              requirements:
         
     | 
| 
       791 
867 
     | 
    
         
             
              - - "~>"
         
     | 
| 
       792 
868 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       793 
     | 
    
         
            -
                  version: 3. 
     | 
| 
      
 869 
     | 
    
         
            +
                  version: 3.3.0
         
     | 
| 
       794 
870 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       795 
871 
     | 
    
         
             
              requirements:
         
     | 
| 
       796 
872 
     | 
    
         
             
              - - ">="
         
     | 
| 
       797 
873 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       798 
874 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       799 
875 
     | 
    
         
             
            requirements: []
         
     | 
| 
       800 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 876 
     | 
    
         
            +
            rubygems_version: 3.5.11
         
     | 
| 
       801 
877 
     | 
    
         
             
            signing_key:
         
     | 
| 
       802 
878 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       803 
879 
     | 
    
         
             
            summary: Decidim dev tools
         
     | 
| 
         @@ -1,13 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # frozen_string_literal: true
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            module Decidim
         
     | 
| 
       4 
     | 
    
         
            -
              module Dev
         
     | 
| 
       5 
     | 
    
         
            -
                class DummyResourcePresenter < Decidim::ResourcePresenter
         
     | 
| 
       6 
     | 
    
         
            -
                  def title(links: false, html_escape: false, all_locales: false)
         
     | 
| 
       7 
     | 
    
         
            -
                    return unless __getobj__
         
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
                    super(__getobj__.title, links, html_escape, all_locales)
         
     | 
| 
       10 
     | 
    
         
            -
                  end
         
     | 
| 
       11 
     | 
    
         
            -
                end
         
     | 
| 
       12 
     | 
    
         
            -
              end
         
     | 
| 
       13 
     | 
    
         
            -
            end
         
     | 
    
        data/config/locales/ca-IT.yml
    DELETED
    
    | 
         @@ -1,68 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            ---
         
     | 
| 
       2 
     | 
    
         
            -
            ca-IT:
         
     | 
| 
       3 
     | 
    
         
            -
              activemodel:
         
     | 
| 
       4 
     | 
    
         
            -
                attributes:
         
     | 
| 
       5 
     | 
    
         
            -
                  dummy:
         
     | 
| 
       6 
     | 
    
         
            -
                    image: Imatge
         
     | 
| 
       7 
     | 
    
         
            -
                  dummy_attribute: Atribut de prova
         
     | 
| 
       8 
     | 
    
         
            -
                  dummy_resource:
         
     | 
| 
       9 
     | 
    
         
            -
                    created_at: Creat el
         
     | 
| 
       10 
     | 
    
         
            -
                    decidim_scope_id: Àmbit
         
     | 
| 
       11 
     | 
    
         
            -
                    field: El meu camp
         
     | 
| 
       12 
     | 
    
         
            -
                    start_date: Data d'inici
         
     | 
| 
       13 
     | 
    
         
            -
                    title: Títol
         
     | 
| 
       14 
     | 
    
         
            -
                    translatable_text: Text traduïble
         
     | 
| 
       15 
     | 
    
         
            -
                    updated_at: Actualitzat el
         
     | 
| 
       16 
     | 
    
         
            -
              decidim:
         
     | 
| 
       17 
     | 
    
         
            -
                components:
         
     | 
| 
       18 
     | 
    
         
            -
                  dummy:
         
     | 
| 
       19 
     | 
    
         
            -
                    settings:
         
     | 
| 
       20 
     | 
    
         
            -
                      global:
         
     | 
| 
       21 
     | 
    
         
            -
                        guided: Entrada guiada
         
     | 
| 
       22 
     | 
    
         
            -
                        guided_help: Text d'ajuda
         
     | 
| 
       23 
     | 
    
         
            -
                        guided_readonly: Entrada deshabilitada
         
     | 
| 
       24 
     | 
    
         
            -
                        guided_rich: Entrada guiada enriquida
         
     | 
| 
       25 
     | 
    
         
            -
                        guided_rich_help_html: HTML <strong>ajuda</strong> text
         
     | 
| 
       26 
     | 
    
         
            -
                        guided_rich_readonly_html: HTML <strong>ajuda</strong> text per l'entrada deshabilitada
         
     | 
| 
       27 
     | 
    
         
            -
                        readonly_attribute: Atribut de només lectura
         
     | 
| 
       28 
     | 
    
         
            -
                        test: Una prova
         
     | 
| 
       29 
     | 
    
         
            -
                        test_choices:
         
     | 
| 
       30 
     | 
    
         
            -
                          a: Opció A
         
     | 
| 
       31 
     | 
    
         
            -
                          b: Opció B
         
     | 
| 
       32 
     | 
    
         
            -
                          c: Opció C
         
     | 
| 
       33 
     | 
    
         
            -
                        test_options:
         
     | 
| 
       34 
     | 
    
         
            -
                          bar: Barra
         
     | 
| 
       35 
     | 
    
         
            -
                          baz: Baz
         
     | 
| 
       36 
     | 
    
         
            -
                          foo: Foo
         
     | 
| 
       37 
     | 
    
         
            -
                      step:
         
     | 
| 
       38 
     | 
    
         
            -
                        endorsements_blocked: Adhesions bloquejades
         
     | 
| 
       39 
     | 
    
         
            -
                        endorsements_enabled: Adhesions habilitades
         
     | 
| 
       40 
     | 
    
         
            -
                        readonly_step_attribute: Atribut de només lectura
         
     | 
| 
       41 
     | 
    
         
            -
                        test_options:
         
     | 
| 
       42 
     | 
    
         
            -
                          bar: Barra
         
     | 
| 
       43 
     | 
    
         
            -
                          baz: Baz
         
     | 
| 
       44 
     | 
    
         
            -
                          foo: Foo
         
     | 
| 
       45 
     | 
    
         
            -
                dummy:
         
     | 
| 
       46 
     | 
    
         
            -
                  admin:
         
     | 
| 
       47 
     | 
    
         
            -
                    exports:
         
     | 
| 
       48 
     | 
    
         
            -
                      dummies: Proves
         
     | 
| 
       49 
     | 
    
         
            -
                gamification:
         
     | 
| 
       50 
     | 
    
         
            -
                  badges:
         
     | 
| 
       51 
     | 
    
         
            -
                    test:
         
     | 
| 
       52 
     | 
    
         
            -
                      conditions:
         
     | 
| 
       53 
     | 
    
         
            -
                        - Utilitza un entorn de prova per decidim.
         
     | 
| 
       54 
     | 
    
         
            -
                      description: Les participants obtenen aquesta insígnia creant proves.
         
     | 
| 
       55 
     | 
    
         
            -
                      description_another: Aquesta participant ha creat %{score} proves.
         
     | 
| 
       56 
     | 
    
         
            -
                      description_own: Has creat %{score} proves.
         
     | 
| 
       57 
     | 
    
         
            -
                      name: Proves
         
     | 
| 
       58 
     | 
    
         
            -
                      next_level_in: Crea %{score} més proves per arribar al següent nivell!
         
     | 
| 
       59 
     | 
    
         
            -
                      unearned_another: Aquesta participant encara no ha creat cap prova.
         
     | 
| 
       60 
     | 
    
         
            -
                      unearned_own: Encara no has creat cap prova.
         
     | 
| 
       61 
     | 
    
         
            -
                resource_links:
         
     | 
| 
       62 
     | 
    
         
            -
                  test_link:
         
     | 
| 
       63 
     | 
    
         
            -
                    dummy_resource_dummy: Prova relacionada
         
     | 
| 
       64 
     | 
    
         
            -
                statistics:
         
     | 
| 
       65 
     | 
    
         
            -
                  bar: Barra
         
     | 
| 
       66 
     | 
    
         
            -
                  dummies_count_high: Fals alt
         
     | 
| 
       67 
     | 
    
         
            -
                  dummies_count_medium: Fals mitjà
         
     | 
| 
       68 
     | 
    
         
            -
                  foo: Foo
         
     |