decidim-dev 0.28.6 → 0.29.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 +2 -2
- data/app/packs/stylesheets/decidim/dev/_accessibility.scss +1 -1
- data/app/packs/stylesheets/decidim/dev/_bullet.scss +4 -0
- data/app/packs/stylesheets/decidim/dev/_rack_profiler.scss +4 -0
- data/app/packs/stylesheets/decidim/dev.scss +2 -0
- data/config/locales/ar.yml +0 -3
- data/config/locales/ca.yml +0 -3
- data/config/locales/cs.yml +0 -3
- data/config/locales/de.yml +0 -3
- data/config/locales/en.yml +0 -3
- data/config/locales/es-MX.yml +0 -3
- data/config/locales/es-PY.yml +0 -3
- data/config/locales/es.yml +0 -3
- data/config/locales/eu.yml +3 -6
- data/config/locales/fi-plain.yml +0 -3
- data/config/locales/fi.yml +0 -3
- data/config/locales/fr-CA.yml +0 -3
- data/config/locales/fr.yml +0 -3
- data/config/locales/ja.yml +0 -3
- data/config/locales/ro-RO.yml +1 -1
- data/config/locales/sv.yml +8 -16
- data/config/rubocop/disabled.yml +60 -0
- data/config/rubocop/performance.yml +154 -0
- data/config/rubocop/rspec.yml +7 -2
- data/config/rubocop/ruby.yml +5 -5
- data/decidim-dev.gemspec +12 -9
- data/lib/decidim/dev/assets/assemblies.json +1 -34
- data/lib/decidim/dev/assets/assemblies_with_null.json +1 -2
- data/lib/decidim/dev/assets/participatory_processes.json +1 -34
- data/lib/decidim/dev/assets/participatory_processes_with_null.json +0 -1
- data/lib/decidim/dev/assets/participatory_text.md +0 -2
- data/lib/decidim/dev/component.rb +2 -3
- data/lib/decidim/dev/dummy_translator.rb +1 -1
- data/lib/decidim/dev/engine.rb +11 -0
- data/lib/decidim/dev/test/map_server.rb +125 -0
- data/lib/decidim/dev/test/rspec_support/attachment_helpers.rb +3 -1
- data/lib/decidim/dev/test/rspec_support/autocomplete_select.rb +2 -2
- data/lib/decidim/dev/test/rspec_support/bullet.rb +4 -0
- data/lib/decidim/dev/test/rspec_support/capybara.rb +18 -8
- data/lib/decidim/dev/test/rspec_support/cell_matchers.rb +1 -1
- data/lib/decidim/dev/test/rspec_support/component_context.rb +1 -1
- data/lib/decidim/dev/test/rspec_support/data_consent.rb +6 -6
- data/lib/decidim/dev/test/rspec_support/datepicker_date_fill.rb +25 -0
- data/lib/decidim/dev/test/rspec_support/datepicker_time_fill.rb +23 -0
- data/lib/decidim/dev/test/rspec_support/dynamic_attach.rb +2 -2
- data/lib/decidim/dev/test/rspec_support/geocoder.rb +8 -85
- data/lib/decidim/dev/test/rspec_support/helpers.rb +4 -4
- data/lib/decidim/dev/test/rspec_support/tom_select.rb +1 -1
- data/lib/decidim/dev/test/rspec_support/translation_helpers.rb +5 -6
- data/lib/decidim/dev/test/rspec_support/warden.rb +0 -1
- data/lib/decidim/dev/test/rspec_support/webmock.rb +7 -1
- data/lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb +2 -2
- data/lib/decidim/dev/test/spec_helper.rb +2 -8
- data/lib/decidim/dev/version.rb +1 -1
- data/lib/decidim/dev.rb +0 -10
- data/lib/decidim-dev.rb +2 -0
- data/lib/tasks/lighthouse_report.rake +1 -1
- data/rubocop-decidim.yml +6 -0
- metadata +85 -46
- data/app/permissions/decidim/dev/permissions.rb +0 -22
- data/app/presenters/decidim/dev/dummy_resource_presenter.rb +0 -13
- data/config/locales/bn-BD.yml +0 -1
- data/config/locales/bs-BA.yml +0 -9
- data/config/locales/ca-IT.yml +0 -68
- data/lib/decidim/dev/assets/invalid_extension.log +0 -1
- data/lib/decidim/dev/assets/odt_file_reported_as.pdf +0 -0
- data/lib/decidim/dev/auth_engine.rb +0 -33
- data/lib/decidim/dev/test/rspec_support/activestorage_matchers.rb +0 -148
- /data/app/views/decidim/dummy_resource/{_linked_dummys.html.erb → _linked_dummies.html.erb} +0 -0
@@ -42,7 +42,7 @@ module TranslationHelpers
|
|
42
42
|
# field - the name of the field that should be filled, without the
|
43
43
|
# locale-related part (e.g. `:participatory_process_title`)
|
44
44
|
# tab_selector - a String representing the ID of the HTML element that holds
|
45
|
-
# the tabs for this input. It
|
45
|
+
# the tabs for this input. It usually is `"#<attribute_name>-tabs" (e.g.
|
46
46
|
# "#title-tabs")
|
47
47
|
# localized_values - a Hash where the keys are the locales IDs and the values
|
48
48
|
# are the values that will be entered in the form field.
|
@@ -57,12 +57,11 @@ module TranslationHelpers
|
|
57
57
|
# field - the name of the field that should be filled, without the
|
58
58
|
# locale-related part (e.g. `:participatory_process_title`)
|
59
59
|
# tab_selector - a String representing the ID of the HTML element that holds
|
60
|
-
# the tabs for this input. It
|
60
|
+
# the tabs for this input. It usually is `"#<attribute_name>-tabs" (e.g.
|
61
61
|
# "#title-tabs")
|
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
|
@@ -73,7 +72,7 @@ module TranslationHelpers
|
|
73
72
|
# field - the name of the field that should be cleared, without the
|
74
73
|
# locale-related part (e.g. `:participatory_process_title`)
|
75
74
|
# tab_selector - a String representing the ID of the HTML element that holds
|
76
|
-
# the tabs for this input. It
|
75
|
+
# the tabs for this input. It usually is `"#<attribute_name>-tabs" (e.g.
|
77
76
|
# "#title-tabs")
|
78
77
|
# locales - an Array with the locales IDs.
|
79
78
|
def clear_i18n_editor(field, tab_selector, locales)
|
@@ -114,7 +113,7 @@ module TranslationHelpers
|
|
114
113
|
scroll_to(find(tab_selector))
|
115
114
|
localized_values.each do |locale, value|
|
116
115
|
within tab_selector do
|
117
|
-
|
116
|
+
click_on I18n.with_locale(locale) { t("name", scope: "locale") }
|
118
117
|
end
|
119
118
|
yield "#{field}_#{locale}", value
|
120
119
|
end
|
@@ -126,7 +125,7 @@ module TranslationHelpers
|
|
126
125
|
scroll_to(find(tab_selector))
|
127
126
|
locales.each do |locale|
|
128
127
|
within tab_selector do
|
129
|
-
|
128
|
+
click_on I18n.with_locale(locale) { t("name", scope: "locale") }
|
130
129
|
end
|
131
130
|
yield "#{field}_#{locale}"
|
132
131
|
end
|
@@ -2,4 +2,10 @@
|
|
2
2
|
|
3
3
|
require "webmock/rspec"
|
4
4
|
|
5
|
-
WebMock.disable_net_connect!(
|
5
|
+
WebMock.disable_net_connect!(
|
6
|
+
allow_localhost: true,
|
7
|
+
allow: [
|
8
|
+
%r{https://validator\.w3\.org/},
|
9
|
+
Decidim::Dev::Test::MapServer.host
|
10
|
+
]
|
11
|
+
)
|
@@ -5,8 +5,8 @@ class WickedPdf
|
|
5
5
|
module Assets
|
6
6
|
# Force wicked_pdf styles to have a relative path, to prevent fetching
|
7
7
|
# them from a host
|
8
|
-
def wicked_pdf_stylesheet_pack_tag(*
|
9
|
-
stylesheet_pack_tag(*
|
8
|
+
def wicked_pdf_stylesheet_pack_tag(*)
|
9
|
+
stylesheet_pack_tag(*)
|
10
10
|
end
|
11
11
|
|
12
12
|
# Disables the images in the PDFs as those requests would be jamming under
|
@@ -41,14 +41,8 @@ RSpec.configure do |config|
|
|
41
41
|
|
42
42
|
config.before :all do
|
43
43
|
Decidim.content_security_policies_extra = {
|
44
|
-
"img-src": %
|
44
|
+
"img-src": %W(https://via.placeholder.com #{Decidim::Dev::Test::MapServer.host}),
|
45
|
+
"connect-src": %W(#{Decidim::Dev::Test::MapServer.host})
|
45
46
|
}
|
46
47
|
end
|
47
|
-
|
48
|
-
config.before do
|
49
|
-
# Ensure that the current host is not set for any spec in order to test that
|
50
|
-
# the automatic current host definition is working correctly in all
|
51
|
-
# situations.
|
52
|
-
ActiveStorage::Current.host = ""
|
53
|
-
end
|
54
48
|
end
|
data/lib/decidim/dev/version.rb
CHANGED
data/lib/decidim/dev.rb
CHANGED
@@ -5,7 +5,6 @@ require "decidim/dev/railtie"
|
|
5
5
|
require "decidim/dev/admin"
|
6
6
|
require "decidim/dev/engine"
|
7
7
|
require "decidim/dev/admin_engine"
|
8
|
-
require "decidim/dev/auth_engine"
|
9
8
|
# We shall not load the component here, as it will complain there is no method register_component
|
10
9
|
# for Decidim module. To fix that we need to require 'decidim/core', which will cause a major
|
11
10
|
# performance setback, as this file is usually the first request in "spec_helpers".
|
@@ -23,15 +22,6 @@ module Decidim
|
|
23
22
|
include ActiveSupport::Configurable
|
24
23
|
autoload :DummyTranslator, "decidim/dev/dummy_translator"
|
25
24
|
|
26
|
-
# Settings needed to compare emendations in Decidim::SimilarEmendations
|
27
|
-
config_accessor :similarity_threshold do
|
28
|
-
0.25
|
29
|
-
end
|
30
|
-
|
31
|
-
config_accessor :similarity_limit do
|
32
|
-
10
|
33
|
-
end
|
34
|
-
|
35
25
|
# Public: Finds an asset.
|
36
26
|
#
|
37
27
|
# Returns a String with the path for a particular asset.
|
data/lib/decidim-dev.rb
CHANGED
@@ -4,7 +4,7 @@ namespace :decidim do
|
|
4
4
|
namespace :lighthouse do
|
5
5
|
desc "Prepares seeds for Lighthouse report"
|
6
6
|
task prepare_urls: :environment do
|
7
|
-
#
|
7
|
+
# Lighthouse report is executed in CI and should check:
|
8
8
|
# - homepage
|
9
9
|
# - a participatory process page
|
10
10
|
# - a meeting page
|
data/rubocop-decidim.yml
CHANGED
@@ -5,7 +5,13 @@
|
|
5
5
|
# For further details, see:
|
6
6
|
# https://github.com/rubocop/rubocop/issues/4154#issuecomment-316004878
|
7
7
|
|
8
|
+
require:
|
9
|
+
- rubocop-rubycw
|
10
|
+
- rubocop-capybara
|
11
|
+
- rubocop-factory_bot
|
12
|
+
|
8
13
|
inherit_from:
|
14
|
+
- config/rubocop/performance.yml
|
9
15
|
- config/rubocop/ruby.yml
|
10
16
|
- config/rubocop/rails.yml
|
11
17
|
- config/rubocop/rspec.yml
|
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.29.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:
|
13
|
+
date: 2024-07-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capybara
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.29.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.29.0.rc1
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: factory_bot_rails
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -74,14 +74,14 @@ dependencies:
|
|
74
74
|
requirements:
|
75
75
|
- - "~>"
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
77
|
+
version: 7.1.6
|
78
78
|
type: :runtime
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - "~>"
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
84
|
+
version: 7.1.6
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: byebug
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,20 +130,20 @@ dependencies:
|
|
130
130
|
requirements:
|
131
131
|
- - "~>"
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version: '1.
|
133
|
+
version: '1.16'
|
134
134
|
- - ">="
|
135
135
|
- !ruby/object:Gem::Version
|
136
|
-
version: 1.
|
136
|
+
version: 1.16.2
|
137
137
|
type: :runtime
|
138
138
|
prerelease: false
|
139
139
|
version_requirements: !ruby/object:Gem::Requirement
|
140
140
|
requirements:
|
141
141
|
- - "~>"
|
142
142
|
- !ruby/object:Gem::Version
|
143
|
-
version: '1.
|
143
|
+
version: '1.16'
|
144
144
|
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: 1.
|
146
|
+
version: 1.16.2
|
147
147
|
- !ruby/object:Gem::Dependency
|
148
148
|
name: parallel_tests
|
149
149
|
requirement: !ruby/object:Gem::Requirement
|
@@ -282,14 +282,42 @@ dependencies:
|
|
282
282
|
requirements:
|
283
283
|
- - "~>"
|
284
284
|
- !ruby/object:Gem::Version
|
285
|
-
version: 1.
|
285
|
+
version: 1.65.0
|
286
286
|
type: :runtime
|
287
287
|
prerelease: false
|
288
288
|
version_requirements: !ruby/object:Gem::Requirement
|
289
289
|
requirements:
|
290
290
|
- - "~>"
|
291
291
|
- !ruby/object:Gem::Version
|
292
|
-
version: 1.
|
292
|
+
version: 1.65.0
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: rubocop-capybara
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - "~>"
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '2.21'
|
300
|
+
type: :runtime
|
301
|
+
prerelease: false
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - "~>"
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: '2.21'
|
307
|
+
- !ruby/object:Gem::Dependency
|
308
|
+
name: rubocop-factory_bot
|
309
|
+
requirement: !ruby/object:Gem::Requirement
|
310
|
+
requirements:
|
311
|
+
- - "~>"
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: '2.26'
|
314
|
+
type: :runtime
|
315
|
+
prerelease: false
|
316
|
+
version_requirements: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - "~>"
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: '2.26'
|
293
321
|
- !ruby/object:Gem::Dependency
|
294
322
|
name: rubocop-faker
|
295
323
|
requirement: !ruby/object:Gem::Requirement
|
@@ -304,104 +332,118 @@ dependencies:
|
|
304
332
|
- - "~>"
|
305
333
|
- !ruby/object:Gem::Version
|
306
334
|
version: '1.1'
|
335
|
+
- !ruby/object:Gem::Dependency
|
336
|
+
name: rubocop-performance
|
337
|
+
requirement: !ruby/object:Gem::Requirement
|
338
|
+
requirements:
|
339
|
+
- - "~>"
|
340
|
+
- !ruby/object:Gem::Version
|
341
|
+
version: '1.21'
|
342
|
+
type: :runtime
|
343
|
+
prerelease: false
|
344
|
+
version_requirements: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - "~>"
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: '1.21'
|
307
349
|
- !ruby/object:Gem::Dependency
|
308
350
|
name: rubocop-rails
|
309
351
|
requirement: !ruby/object:Gem::Requirement
|
310
352
|
requirements:
|
311
353
|
- - "~>"
|
312
354
|
- !ruby/object:Gem::Version
|
313
|
-
version: '2.
|
355
|
+
version: '2.25'
|
314
356
|
type: :runtime
|
315
357
|
prerelease: false
|
316
358
|
version_requirements: !ruby/object:Gem::Requirement
|
317
359
|
requirements:
|
318
360
|
- - "~>"
|
319
361
|
- !ruby/object:Gem::Version
|
320
|
-
version: '2.
|
362
|
+
version: '2.25'
|
321
363
|
- !ruby/object:Gem::Dependency
|
322
364
|
name: rubocop-rspec
|
323
365
|
requirement: !ruby/object:Gem::Requirement
|
324
366
|
requirements:
|
325
367
|
- - "~>"
|
326
368
|
- !ruby/object:Gem::Version
|
327
|
-
version: '
|
369
|
+
version: '3.0'
|
328
370
|
type: :runtime
|
329
371
|
prerelease: false
|
330
372
|
version_requirements: !ruby/object:Gem::Requirement
|
331
373
|
requirements:
|
332
374
|
- - "~>"
|
333
375
|
- !ruby/object:Gem::Version
|
334
|
-
version: '
|
376
|
+
version: '3.0'
|
335
377
|
- !ruby/object:Gem::Dependency
|
336
|
-
name:
|
378
|
+
name: rubocop-rspec_rails
|
337
379
|
requirement: !ruby/object:Gem::Requirement
|
338
380
|
requirements:
|
339
381
|
- - "~>"
|
340
382
|
- !ruby/object:Gem::Version
|
341
|
-
version: '
|
383
|
+
version: '2.30'
|
342
384
|
type: :runtime
|
343
385
|
prerelease: false
|
344
386
|
version_requirements: !ruby/object:Gem::Requirement
|
345
387
|
requirements:
|
346
388
|
- - "~>"
|
347
389
|
- !ruby/object:Gem::Version
|
348
|
-
version: '
|
390
|
+
version: '2.30'
|
349
391
|
- !ruby/object:Gem::Dependency
|
350
|
-
name:
|
392
|
+
name: rubocop-rubycw
|
351
393
|
requirement: !ruby/object:Gem::Requirement
|
352
394
|
requirements:
|
353
395
|
- - "~>"
|
354
396
|
- !ruby/object:Gem::Version
|
355
|
-
version: 0.
|
397
|
+
version: '0.1'
|
356
398
|
type: :runtime
|
357
399
|
prerelease: false
|
358
400
|
version_requirements: !ruby/object:Gem::Requirement
|
359
401
|
requirements:
|
360
402
|
- - "~>"
|
361
403
|
- !ruby/object:Gem::Version
|
362
|
-
version: 0.
|
404
|
+
version: '0.1'
|
363
405
|
- !ruby/object:Gem::Dependency
|
364
|
-
name:
|
406
|
+
name: selenium-webdriver
|
365
407
|
requirement: !ruby/object:Gem::Requirement
|
366
408
|
requirements:
|
367
409
|
- - "~>"
|
368
410
|
- !ruby/object:Gem::Version
|
369
|
-
version:
|
411
|
+
version: '4.9'
|
370
412
|
type: :runtime
|
371
413
|
prerelease: false
|
372
414
|
version_requirements: !ruby/object:Gem::Requirement
|
373
415
|
requirements:
|
374
416
|
- - "~>"
|
375
417
|
- !ruby/object:Gem::Version
|
376
|
-
version:
|
418
|
+
version: '4.9'
|
377
419
|
- !ruby/object:Gem::Dependency
|
378
|
-
name:
|
420
|
+
name: simplecov
|
379
421
|
requirement: !ruby/object:Gem::Requirement
|
380
422
|
requirements:
|
381
423
|
- - "~>"
|
382
424
|
- !ruby/object:Gem::Version
|
383
|
-
version:
|
425
|
+
version: 0.22.0
|
384
426
|
type: :runtime
|
385
427
|
prerelease: false
|
386
428
|
version_requirements: !ruby/object:Gem::Requirement
|
387
429
|
requirements:
|
388
430
|
- - "~>"
|
389
431
|
- !ruby/object:Gem::Version
|
390
|
-
version:
|
432
|
+
version: 0.22.0
|
391
433
|
- !ruby/object:Gem::Dependency
|
392
|
-
name:
|
434
|
+
name: simplecov-cobertura
|
393
435
|
requirement: !ruby/object:Gem::Requirement
|
394
436
|
requirements:
|
395
437
|
- - "~>"
|
396
438
|
- !ruby/object:Gem::Version
|
397
|
-
version:
|
439
|
+
version: 2.1.0
|
398
440
|
type: :runtime
|
399
441
|
prerelease: false
|
400
442
|
version_requirements: !ruby/object:Gem::Requirement
|
401
443
|
requirements:
|
402
444
|
- - "~>"
|
403
445
|
- !ruby/object:Gem::Version
|
404
|
-
version:
|
446
|
+
version: 2.1.0
|
405
447
|
- !ruby/object:Gem::Dependency
|
406
448
|
name: w3c_rspec_validators
|
407
449
|
requirement: !ruby/object:Gem::Requirement
|
@@ -474,23 +516,20 @@ files:
|
|
474
516
|
- app/packs/src/decidim/dev/test/custom_map_factory.js
|
475
517
|
- app/packs/stylesheets/decidim/dev.scss
|
476
518
|
- app/packs/stylesheets/decidim/dev/_accessibility.scss
|
519
|
+
- app/packs/stylesheets/decidim/dev/_bullet.scss
|
477
520
|
- app/packs/stylesheets/decidim/dev/_map.scss
|
478
|
-
- app/
|
479
|
-
- app/presenters/decidim/dev/dummy_resource_presenter.rb
|
521
|
+
- app/packs/stylesheets/decidim/dev/_rack_profiler.scss
|
480
522
|
- app/presenters/decidim/dev/official_author_presenter.rb
|
481
523
|
- app/serializers/decidim/dev/dummy_serializer.rb
|
482
524
|
- app/views/decidim/dev/dummy_resources/foo.html.erb
|
483
525
|
- app/views/decidim/dev/dummy_resources/show.html.erb
|
484
|
-
- app/views/decidim/dummy_resource/
|
526
|
+
- app/views/decidim/dummy_resource/_linked_dummies.html.erb
|
485
527
|
- config/assets.rb
|
486
528
|
- config/locales/am-ET.yml
|
487
529
|
- config/locales/ar-SA.yml
|
488
530
|
- config/locales/ar.yml
|
489
531
|
- config/locales/bg-BG.yml
|
490
532
|
- config/locales/bg.yml
|
491
|
-
- config/locales/bn-BD.yml
|
492
|
-
- config/locales/bs-BA.yml
|
493
|
-
- config/locales/ca-IT.yml
|
494
533
|
- config/locales/ca.yml
|
495
534
|
- config/locales/cs-CZ.yml
|
496
535
|
- config/locales/cs.yml
|
@@ -568,6 +607,7 @@ files:
|
|
568
607
|
- config/locales/zh-TW.yml
|
569
608
|
- config/rubocop/disabled.yml
|
570
609
|
- config/rubocop/faker.yml
|
610
|
+
- config/rubocop/performance.yml
|
571
611
|
- config/rubocop/rails.yml
|
572
612
|
- config/rubocop/rspec.yml
|
573
613
|
- config/rubocop/ruby.yml
|
@@ -608,11 +648,9 @@ files:
|
|
608
648
|
- lib/decidim/dev/assets/import_voting_census_with_ballot_styles.csv
|
609
649
|
- lib/decidim/dev/assets/import_voting_census_without_headers.csv
|
610
650
|
- lib/decidim/dev/assets/invalid.jpeg
|
611
|
-
- lib/decidim/dev/assets/invalid_extension.log
|
612
651
|
- lib/decidim/dev/assets/iso-8859-15.md
|
613
652
|
- lib/decidim/dev/assets/logo.png
|
614
653
|
- lib/decidim/dev/assets/malicious.jpg
|
615
|
-
- lib/decidim/dev/assets/odt_file_reported_as.pdf
|
616
654
|
- lib/decidim/dev/assets/participatory_processes.json
|
617
655
|
- lib/decidim/dev/assets/participatory_processes_with_null.json
|
618
656
|
- lib/decidim/dev/assets/participatory_text.md
|
@@ -628,7 +666,6 @@ files:
|
|
628
666
|
- lib/decidim/dev/assets/ssl-key.pem
|
629
667
|
- lib/decidim/dev/assets/test_excel.xlsx
|
630
668
|
- lib/decidim/dev/assets/verify_user_groups.csv
|
631
|
-
- lib/decidim/dev/auth_engine.rb
|
632
669
|
- lib/decidim/dev/common_rake.rb
|
633
670
|
- lib/decidim/dev/component.rb
|
634
671
|
- lib/decidim/dev/dummy_translator.rb
|
@@ -639,11 +676,11 @@ files:
|
|
639
676
|
- lib/decidim/dev/test/base_spec_helper.rb
|
640
677
|
- lib/decidim/dev/test/factories.rb
|
641
678
|
- lib/decidim/dev/test/form_to_param_shared_examples.rb
|
679
|
+
- lib/decidim/dev/test/map_server.rb
|
642
680
|
- lib/decidim/dev/test/promoted_participatory_processes_shared_examples.rb
|
643
681
|
- lib/decidim/dev/test/rspec_support/accessibility_examples.rb
|
644
682
|
- lib/decidim/dev/test/rspec_support/action_mailer.rb
|
645
683
|
- lib/decidim/dev/test/rspec_support/active_job.rb
|
646
|
-
- lib/decidim/dev/test/rspec_support/activestorage_matchers.rb
|
647
684
|
- lib/decidim/dev/test/rspec_support/attachment_helpers.rb
|
648
685
|
- lib/decidim/dev/test/rspec_support/authorization.rb
|
649
686
|
- lib/decidim/dev/test/rspec_support/autocomplete_select.rb
|
@@ -659,6 +696,8 @@ files:
|
|
659
696
|
- lib/decidim/dev/test/rspec_support/content_processing.rb
|
660
697
|
- lib/decidim/dev/test/rspec_support/controller_example_group.rb
|
661
698
|
- lib/decidim/dev/test/rspec_support/data_consent.rb
|
699
|
+
- lib/decidim/dev/test/rspec_support/datepicker_date_fill.rb
|
700
|
+
- lib/decidim/dev/test/rspec_support/datepicker_time_fill.rb
|
662
701
|
- lib/decidim/dev/test/rspec_support/decidim_sanitization.rb
|
663
702
|
- lib/decidim/dev/test/rspec_support/dynamic_attach.rb
|
664
703
|
- lib/decidim/dev/test/rspec_support/editor_context.rb
|
@@ -699,7 +738,7 @@ files:
|
|
699
738
|
- rubocop-decidim.yml
|
700
739
|
homepage: https://decidim.org
|
701
740
|
licenses:
|
702
|
-
- AGPL-3.0
|
741
|
+
- AGPL-3.0
|
703
742
|
metadata:
|
704
743
|
bug_tracker_uri: https://github.com/decidim/decidim/issues
|
705
744
|
documentation_uri: https://docs.decidim.org/
|
@@ -714,14 +753,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
714
753
|
requirements:
|
715
754
|
- - "~>"
|
716
755
|
- !ruby/object:Gem::Version
|
717
|
-
version: 3.
|
756
|
+
version: 3.2.0
|
718
757
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
719
758
|
requirements:
|
720
|
-
- - "
|
759
|
+
- - ">"
|
721
760
|
- !ruby/object:Gem::Version
|
722
|
-
version:
|
761
|
+
version: 1.3.1
|
723
762
|
requirements: []
|
724
|
-
rubygems_version: 3.
|
763
|
+
rubygems_version: 3.4.10
|
725
764
|
signing_key:
|
726
765
|
specification_version: 4
|
727
766
|
summary: Decidim dev tools
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Dev
|
5
|
-
class Permissions < Decidim::DefaultPermissions
|
6
|
-
def permissions
|
7
|
-
return permission_action unless user
|
8
|
-
|
9
|
-
return permission_action if permission_action.scope != :public
|
10
|
-
|
11
|
-
toggle_allow(!dummy_resource.hidden? && dummy_resource.published?) if permission_action.subject == :dummy_resource
|
12
|
-
permission_action
|
13
|
-
end
|
14
|
-
|
15
|
-
private
|
16
|
-
|
17
|
-
def dummy_resource
|
18
|
-
context[:dummy_resource] = context.fetch(:dummy_resource, nil) || context.fetch(:resource, nil)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -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/bn-BD.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
bn:
|
data/config/locales/bs-BA.yml
DELETED
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
|
@@ -1 +0,0 @@
|
|
1
|
-
FooBar
|
Binary file
|