decidim-dev 0.30.1 → 0.31.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 +8 -2
- data/app/packs/entrypoints/decidim_dev.scss +1 -1
- data/app/packs/src/decidim/dev/accessibility.js +2 -2
- data/app/packs/stylesheets/decidim/dev.scss +4 -4
- data/app/presenters/decidim/dev/dummy_resource_presenter.rb +2 -2
- data/config/assets.rb +2 -2
- data/config/locales/ar.yml +0 -2
- data/config/locales/bg.yml +0 -2
- data/config/locales/bs-BA.yml +0 -8
- data/config/locales/ca-IT.yml +2 -2
- data/config/locales/ca.yml +2 -2
- data/config/locales/cs.yml +2 -2
- data/config/locales/de.yml +2 -2
- data/config/locales/el.yml +0 -2
- data/config/locales/en.yml +2 -2
- data/config/locales/es-MX.yml +2 -2
- data/config/locales/es-PY.yml +2 -2
- data/config/locales/es.yml +2 -2
- data/config/locales/eu.yml +4 -4
- data/config/locales/fi-plain.yml +2 -2
- data/config/locales/fi.yml +2 -2
- data/config/locales/fr-CA.yml +0 -2
- data/config/locales/fr.yml +0 -2
- data/config/locales/gl.yml +0 -2
- data/config/locales/hu.yml +0 -2
- data/config/locales/it.yml +0 -2
- data/config/locales/ja.yml +2 -2
- data/config/locales/lt.yml +0 -2
- data/config/locales/lv.yml +0 -2
- data/config/locales/nl.yml +0 -2
- data/config/locales/no.yml +0 -2
- data/config/locales/pl.yml +0 -2
- data/config/locales/pt-BR.yml +0 -2
- data/config/locales/pt.yml +0 -2
- data/config/locales/ro-RO.yml +0 -2
- data/config/locales/sk.yml +0 -2
- data/config/locales/sr-CS.yml +0 -8
- data/config/locales/sv.yml +2 -2
- data/config/locales/tr-TR.yml +0 -2
- data/config/locales/zh-CN.yml +0 -2
- data/config/locales/zh-TW.yml +0 -2
- data/config/rubocop/capybara/configuration.yml +1 -0
- data/config/rubocop/capybara/disabled.yml +7 -0
- data/config/rubocop/disabled.yml +1 -41
- data/config/rubocop/factory_bot/configuration.yml +1 -0
- data/config/rubocop/factory_bot/disabled.yml +10 -0
- data/config/rubocop/{faker.yml → faker/configuration.yml} +1 -1
- data/config/rubocop/faker/disabled.yml +3 -0
- data/config/rubocop/{graphql.yml → graphql/configuration.yml} +2 -1
- data/config/rubocop/graphql/disabled.yml +4 -0
- data/config/rubocop/performance/configuration.yml +1 -0
- data/config/rubocop/{performance.yml → performance/disabled.yml} +1 -1
- data/config/rubocop/{rails.yml → rails/configuration.yml} +1 -24
- data/config/rubocop/rails/disabled.yml +46 -0
- data/config/rubocop/{rspec.yml → rspec/configuration.yml} +2 -29
- data/config/rubocop/rspec/disabled.yml +49 -0
- data/config/rubocop/{ruby.yml → ruby/configuration.yml} +3 -38
- data/config/rubocop/ruby/disabled.yml +106 -0
- data/decidim-dev.gemspec +10 -10
- data/lib/decidim/dev/assets/assemblies.json +6 -11
- data/lib/decidim/dev/assets/assemblies_with_null.json +0 -1
- data/lib/decidim/dev/assets/census_all_invalid.csv +4 -0
- data/lib/decidim/dev/assets/census_duplicate_emails.csv +4 -0
- data/lib/decidim/dev/assets/census_no_header.csv +2 -0
- data/lib/decidim/dev/assets/census_with_missing_email.csv +3 -0
- data/lib/decidim/dev/assets/census_with_missing_token.csv +3 -0
- data/lib/decidim/dev/assets/empty_file.csv +0 -0
- data/lib/decidim/dev/assets/participatory_processes.json +0 -1
- data/lib/decidim/dev/assets/participatory_processes_with_null.json +0 -1
- data/lib/decidim/dev/assets/valid_election_census.csv +3 -0
- data/lib/decidim/dev/assets/valid_emails.csv +27 -0
- data/lib/decidim/dev/common_rake.rb +0 -1
- data/lib/decidim/dev/component.rb +2 -2
- data/lib/decidim/dev/engine.rb +1 -1
- data/lib/decidim/dev/test/base_spec_helper.rb +9 -0
- data/lib/decidim/dev/test/factories.rb +5 -12
- data/lib/decidim/dev/test/rspec_support/active_job.rb +12 -0
- data/lib/decidim/dev/test/rspec_support/activestorage_matchers.rb +1 -1
- data/lib/decidim/dev/test/rspec_support/capybara.rb +11 -18
- data/lib/decidim/dev/test/rspec_support/comments.rb +1 -1
- data/lib/decidim/dev/test/rspec_support/component.rb +2 -2
- data/lib/decidim/dev/test/rspec_support/editor_context.rb +1 -13
- data/lib/decidim/dev/test/rspec_support/gamification.rb +1 -1
- data/lib/decidim/dev/test/rspec_support/helpers.rb +16 -0
- data/lib/decidim/dev/test/rspec_support/rake_tasks.rb +0 -16
- data/lib/decidim/dev/test/rspec_support/screenshot_helper.rb +2 -2
- data/lib/decidim/dev/test/rspec_support/{webpacker.rb → shakapacker.rb} +2 -2
- data/lib/decidim/dev/test/spec_helper.rb +1 -1
- data/lib/decidim/dev/version.rb +1 -1
- data/rubocop-decidim.yml +17 -9
- metadata +91 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69ad324ae156747f0cbc157ac60010f6b6dd6c3a56994e255ab72fb1291cd032
|
4
|
+
data.tar.gz: bbfdfba499b2bfdab7eedd74b3c8a400fd20fb9f33fac9ef143fd6df1a63f91e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf455886e359101a9c9018f884113832d44af8ab6e149b50ceddda55728ec9e286df4f96fc4f3fb4b9900817f7ce8f61f64f6b52f911ce2f3184d8ebc954d4c8
|
7
|
+
data.tar.gz: 93c4e4609cc9bfcaca06011d000d3f24d5f3da277a74f73597b199111dd590ff6283ae6c9a6a91e2c9d098fbd9bd934599195715411e21d363e0e205a5870b8e
|
@@ -20,7 +20,7 @@ module Decidim
|
|
20
20
|
include Paddable
|
21
21
|
include Amendable
|
22
22
|
include Decidim::NewsletterParticipant
|
23
|
-
include ::Decidim::
|
23
|
+
include ::Decidim::Likeable
|
24
24
|
include Decidim::HasAttachments
|
25
25
|
include Decidim::ShareableWithToken
|
26
26
|
include Decidim::TranslatableResource
|
@@ -42,6 +42,12 @@ module Decidim
|
|
42
42
|
|
43
43
|
component_manifest_name "dummy"
|
44
44
|
|
45
|
+
alias creator_author author
|
46
|
+
|
47
|
+
def authors
|
48
|
+
[author]
|
49
|
+
end
|
50
|
+
|
45
51
|
def presenter
|
46
52
|
Decidim::Dev::DummyResourcePresenter.new(self)
|
47
53
|
end
|
@@ -51,7 +57,7 @@ module Decidim
|
|
51
57
|
end
|
52
58
|
|
53
59
|
def reported_searchable_content_extras
|
54
|
-
[
|
60
|
+
[author.name]
|
55
61
|
end
|
56
62
|
|
57
63
|
def allow_resource_permissions?
|
@@ -1 +1 @@
|
|
1
|
-
@
|
1
|
+
@use "stylesheets/decidim/dev";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import axe from "axe-core"
|
2
|
-
import icon from "src/decidim/icon"
|
2
|
+
import icon from "src/decidim/refactor/moved/icon"
|
3
3
|
|
4
4
|
const positionIndicators = () => {
|
5
5
|
$(".decidim-accessibility-indicator").each((_i, el) => {
|
@@ -39,7 +39,7 @@ const htmlEncode = (text) => {
|
|
39
39
|
return $("<div />").text(text).html();
|
40
40
|
};
|
41
41
|
|
42
|
-
|
42
|
+
document.addEventListener("turbo:load", () => {
|
43
43
|
const $badge = $(`
|
44
44
|
<div lang="en" class="decidim-accessibility-badge" tabindex="0" aria-label="Toggle accessibility report">
|
45
45
|
<div class="decidim-accessibility-title">WAI WCAG</div>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
@
|
2
|
-
@
|
3
|
-
@
|
4
|
-
@
|
1
|
+
@use "stylesheets/decidim/dev/accessibility";
|
2
|
+
@use "stylesheets/decidim/dev/bullet";
|
3
|
+
@use "stylesheets/decidim/dev/rack_profiler";
|
4
|
+
@use "stylesheets/decidim/dev/map";
|
@@ -3,10 +3,10 @@
|
|
3
3
|
module Decidim
|
4
4
|
module Dev
|
5
5
|
class DummyResourcePresenter < Decidim::ResourcePresenter
|
6
|
-
def title(
|
6
|
+
def title(html_escape: false, all_locales: false)
|
7
7
|
return unless __getobj__
|
8
8
|
|
9
|
-
super(__getobj__.title,
|
9
|
+
super(__getobj__.title, html_escape, all_locales)
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
data/config/assets.rb
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
base_path = File.expand_path("..", __dir__)
|
4
4
|
|
5
|
-
Decidim::
|
6
|
-
Decidim::
|
5
|
+
Decidim::Shakapacker.register_path("#{base_path}/app/packs")
|
6
|
+
Decidim::Shakapacker.register_entrypoints(
|
7
7
|
decidim_dev: "#{base_path}/app/packs/entrypoints/decidim_dev.js",
|
8
8
|
decidim_dev_test_custom_map: "#{base_path}/app/packs/entrypoints/decidim_dev_test_custom_map.js"
|
9
9
|
)
|
data/config/locales/ar.yml
CHANGED
data/config/locales/bg.yml
CHANGED
data/config/locales/bs-BA.yml
CHANGED
data/config/locales/ca-IT.yml
CHANGED
@@ -37,8 +37,8 @@ ca-IT:
|
|
37
37
|
baz: Baz
|
38
38
|
foo: Foo
|
39
39
|
step:
|
40
|
-
|
41
|
-
|
40
|
+
likes_blocked: '"M''agrada" desactivats'
|
41
|
+
likes_enabled: '"M''agrada" activats'
|
42
42
|
readonly_step_attribute: Atribut de només lectura
|
43
43
|
test_options:
|
44
44
|
bar: Barra
|
data/config/locales/ca.yml
CHANGED
@@ -37,8 +37,8 @@ ca:
|
|
37
37
|
baz: Baz
|
38
38
|
foo: Foo
|
39
39
|
step:
|
40
|
-
|
41
|
-
|
40
|
+
likes_blocked: '"M''agrada" desactivats'
|
41
|
+
likes_enabled: '"M''agrada" activats'
|
42
42
|
readonly_step_attribute: Atribut de només lectura
|
43
43
|
test_options:
|
44
44
|
bar: Barra
|
data/config/locales/cs.yml
CHANGED
@@ -37,8 +37,8 @@ cs:
|
|
37
37
|
baz: Baz
|
38
38
|
foo: Foo
|
39
39
|
step:
|
40
|
-
|
41
|
-
|
40
|
+
likes_blocked: Líbí se mi zablokováno
|
41
|
+
likes_enabled: Líbí se mi povoleno
|
42
42
|
readonly_step_attribute: Atribut krok čtení
|
43
43
|
test_options:
|
44
44
|
bar: Bar
|
data/config/locales/de.yml
CHANGED
@@ -37,8 +37,8 @@ de:
|
|
37
37
|
baz: Baz
|
38
38
|
foo: Foo
|
39
39
|
step:
|
40
|
-
|
41
|
-
|
40
|
+
likes_blocked: Unterstützungsfunktion gesperrt
|
41
|
+
likes_enabled: Unterstützungsfunktion aktiviert
|
42
42
|
readonly_step_attribute: Schritt-Attribut schreibgeschützt
|
43
43
|
test_options:
|
44
44
|
bar: Bar
|
data/config/locales/el.yml
CHANGED
data/config/locales/en.yml
CHANGED
@@ -37,8 +37,8 @@ en:
|
|
37
37
|
baz: Baz
|
38
38
|
foo: Foo
|
39
39
|
step:
|
40
|
-
|
41
|
-
|
40
|
+
likes_blocked: Likes blocked
|
41
|
+
likes_enabled: Likes enabled
|
42
42
|
readonly_step_attribute: Readonly step attribute
|
43
43
|
test_options:
|
44
44
|
bar: Bar
|
data/config/locales/es-MX.yml
CHANGED
@@ -37,8 +37,8 @@ es-MX:
|
|
37
37
|
baz: Baz
|
38
38
|
foo: Foo
|
39
39
|
step:
|
40
|
-
|
41
|
-
|
40
|
+
likes_blocked: '"Me gusta" desactivados'
|
41
|
+
likes_enabled: '"Me gusta" activados'
|
42
42
|
readonly_step_attribute: Atributo de sólo lectura
|
43
43
|
test_options:
|
44
44
|
bar: Barra
|
data/config/locales/es-PY.yml
CHANGED
@@ -37,8 +37,8 @@ es-PY:
|
|
37
37
|
baz: Baz
|
38
38
|
foo: Foo
|
39
39
|
step:
|
40
|
-
|
41
|
-
|
40
|
+
likes_blocked: '"Me gusta" desactivados'
|
41
|
+
likes_enabled: '"Me gusta" activados'
|
42
42
|
readonly_step_attribute: Atributo de sólo lectura
|
43
43
|
test_options:
|
44
44
|
bar: Barra
|
data/config/locales/es.yml
CHANGED
@@ -37,8 +37,8 @@ es:
|
|
37
37
|
baz: Baz
|
38
38
|
foo: Foo
|
39
39
|
step:
|
40
|
-
|
41
|
-
|
40
|
+
likes_blocked: '"Me gusta" desactivados'
|
41
|
+
likes_enabled: '"Me gusta" activados'
|
42
42
|
readonly_step_attribute: Atributo de sólo lectura
|
43
43
|
test_options:
|
44
44
|
bar: Barra
|
data/config/locales/eu.yml
CHANGED
@@ -37,13 +37,13 @@ eu:
|
|
37
37
|
baz: Baz
|
38
38
|
foo: foo
|
39
39
|
step:
|
40
|
-
|
41
|
-
|
40
|
+
likes_blocked: Likeak blokeatuta
|
41
|
+
likes_enabled: Likeak gaituta
|
42
42
|
readonly_step_attribute: Soilik irakurtzeko atributua
|
43
43
|
test_options:
|
44
44
|
bar: Bar
|
45
45
|
baz: Baz
|
46
|
-
foo:
|
46
|
+
foo: Foo
|
47
47
|
dummy:
|
48
48
|
admin:
|
49
49
|
exports:
|
@@ -67,4 +67,4 @@ eu:
|
|
67
67
|
bar: Bar
|
68
68
|
dummies_count_high: Dummies altua
|
69
69
|
dummies_count_medium: Dummies ertainak
|
70
|
-
foo:
|
70
|
+
foo: Foo
|
data/config/locales/fi-plain.yml
CHANGED
@@ -37,8 +37,8 @@ fi-pl:
|
|
37
37
|
baz: Baz
|
38
38
|
foo: Foo
|
39
39
|
step:
|
40
|
-
|
41
|
-
|
40
|
+
likes_blocked: Tykkäykset estetty
|
41
|
+
likes_enabled: Tykkäykset käytössä
|
42
42
|
readonly_step_attribute: Vain luku -attribuutti vaiheelle
|
43
43
|
test_options:
|
44
44
|
bar: Palkki
|
data/config/locales/fi.yml
CHANGED
@@ -37,8 +37,8 @@ fi:
|
|
37
37
|
baz: Baz
|
38
38
|
foo: Foo
|
39
39
|
step:
|
40
|
-
|
41
|
-
|
40
|
+
likes_blocked: Tykkäykset estetty
|
41
|
+
likes_enabled: Tykkäykset käytössä
|
42
42
|
readonly_step_attribute: Vain luku -attribuutti vaiheelle
|
43
43
|
test_options:
|
44
44
|
bar: Palkki
|
data/config/locales/fr-CA.yml
CHANGED
data/config/locales/fr.yml
CHANGED
data/config/locales/gl.yml
CHANGED
data/config/locales/hu.yml
CHANGED
data/config/locales/it.yml
CHANGED
data/config/locales/ja.yml
CHANGED
data/config/locales/lt.yml
CHANGED
data/config/locales/lv.yml
CHANGED
data/config/locales/nl.yml
CHANGED
data/config/locales/no.yml
CHANGED
data/config/locales/pl.yml
CHANGED
data/config/locales/pt-BR.yml
CHANGED
data/config/locales/pt.yml
CHANGED
data/config/locales/ro-RO.yml
CHANGED
data/config/locales/sk.yml
CHANGED
data/config/locales/sr-CS.yml
CHANGED
data/config/locales/sv.yml
CHANGED
@@ -37,8 +37,8 @@ sv:
|
|
37
37
|
baz: Baz
|
38
38
|
foo: Foo
|
39
39
|
step:
|
40
|
-
|
41
|
-
|
40
|
+
likes_blocked: Gilla är blockerat
|
41
|
+
likes_enabled: Gilla är aktiverat
|
42
42
|
readonly_step_attribute: Attribut för skrivskyddat steg
|
43
43
|
test_options:
|
44
44
|
bar: Bar
|
data/config/locales/tr-TR.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
data/config/locales/zh-TW.yml
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
plugins: rubocop-capybara
|
data/config/rubocop/disabled.yml
CHANGED
@@ -1,44 +1,4 @@
|
|
1
|
-
|
2
|
-
Enabled: false
|
3
|
-
|
4
|
-
Gemspec/RequireMFA:
|
5
|
-
Enabled: false
|
6
|
-
|
7
|
-
Naming/MemoizedInstanceVariableName:
|
8
|
-
Enabled: false
|
9
|
-
|
10
|
-
RSpec/VerifiedDoubleReference:
|
11
|
-
Enabled: false
|
12
|
-
|
13
|
-
FactoryBot/ExcessiveCreateList:
|
14
|
-
Enabled: false
|
15
|
-
|
16
|
-
RSpec/ExampleWording:
|
17
|
-
Enabled: false
|
18
|
-
|
19
|
-
Rails/PluckInWhere:
|
20
|
-
Enabled: false
|
21
|
-
|
22
|
-
RSpec/ReceiveMessages:
|
23
|
-
Enabled: false
|
24
|
-
|
25
|
-
RSpecRails/NegationBeValid:
|
26
|
-
Enabled: false
|
27
|
-
|
28
|
-
RSpec/MetadataStyle:
|
29
|
-
Enabled: false
|
30
|
-
|
31
|
-
FactoryBot/FactoryAssociationWithStrategy:
|
32
|
-
Enabled: false
|
33
|
-
|
34
|
-
RSpec/RemoveConst:
|
35
|
-
Enabled: false
|
36
|
-
|
37
|
-
FactoryBot/AssociationStyle:
|
38
|
-
Enabled: false
|
1
|
+
# Disabled faker configurations
|
39
2
|
|
40
3
|
Rubycw/Rubycw:
|
41
4
|
Enabled: false
|
42
|
-
|
43
|
-
Lint/SelfAssignment:
|
44
|
-
Enabled: false
|
@@ -0,0 +1 @@
|
|
1
|
+
plugins: rubocop-factory_bot
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
plugins: rubocop-graphql
|
2
2
|
|
3
3
|
GraphQL:
|
4
4
|
Enabled: true
|
@@ -15,6 +15,7 @@ GraphQL/ObjectDescription:
|
|
15
15
|
- "**/lib/decidim/api/engine.rb"
|
16
16
|
- "**/lib/decidim/api/schema.rb"
|
17
17
|
- "**/lib/decidim/api/graphiql/config.rb"
|
18
|
+
- "**/lib/decidim/api/graphql_permissions.rb"
|
18
19
|
- "**/lib/decidim/api/functions/*"
|
19
20
|
- "spec/**/*"
|
20
21
|
- "test/**/*"
|
@@ -0,0 +1 @@
|
|
1
|
+
plugins: rubocop-performance
|