decidim-dev 0.30.3 → 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 +2 -6
- 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 +3 -3
- data/config/locales/ca.yml +3 -3
- 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 +2 -2
- 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/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
plugins: rubocop-rails
|
|
2
2
|
|
|
3
3
|
Rails:
|
|
4
4
|
Enabled: true
|
|
@@ -8,12 +8,6 @@ Rails/ActionFilter:
|
|
|
8
8
|
- app/controllers/**/*.rb
|
|
9
9
|
- decidim-*/app/controllers/**/*.rb
|
|
10
10
|
|
|
11
|
-
Rails/ContentTag:
|
|
12
|
-
Enabled: false
|
|
13
|
-
|
|
14
|
-
Rails/CreateTableWithTimestamps:
|
|
15
|
-
Enabled: false
|
|
16
|
-
|
|
17
11
|
Rails/EnumUniqueness:
|
|
18
12
|
Include:
|
|
19
13
|
- app/models/**/*.rb
|
|
@@ -50,16 +44,11 @@ Rails/HasManyOrHasOneDependent:
|
|
|
50
44
|
- app/models/**/*.rb
|
|
51
45
|
- decidim-*/app/models/**/*.rb
|
|
52
46
|
|
|
53
|
-
Rails/InverseOf:
|
|
54
|
-
Enabled: false
|
|
55
|
-
|
|
56
47
|
Rails/LexicallyScopedActionFilter:
|
|
57
48
|
Include:
|
|
58
49
|
- app/controllers/**/*.rb
|
|
59
50
|
- decidim-*/app/controllers/**/*.rb
|
|
60
51
|
|
|
61
|
-
Rails/NotNullColumn:
|
|
62
|
-
Enabled: false
|
|
63
52
|
|
|
64
53
|
Rails/Output:
|
|
65
54
|
Include:
|
|
@@ -74,23 +63,11 @@ Rails/Output:
|
|
|
74
63
|
Exclude:
|
|
75
64
|
- "**/db/seeds.rb"
|
|
76
65
|
|
|
77
|
-
Rails/OutputSafety:
|
|
78
|
-
Enabled: false
|
|
79
|
-
|
|
80
|
-
Rails/Pluck:
|
|
81
|
-
Enabled: false
|
|
82
|
-
|
|
83
|
-
Rails/RakeEnvironment:
|
|
84
|
-
Enabled: false
|
|
85
|
-
|
|
86
66
|
Rails/ReadWriteAttribute:
|
|
87
67
|
Include:
|
|
88
68
|
- app/models/**/*.rb
|
|
89
69
|
- decidim-*/app/models/**/*.rb
|
|
90
70
|
|
|
91
|
-
Rails/ReversibleMigration:
|
|
92
|
-
Enabled: false
|
|
93
|
-
|
|
94
71
|
Rails/ScopeArgs:
|
|
95
72
|
Include:
|
|
96
73
|
- app/models/**/*.rb
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Disabled rails configurations
|
|
2
|
+
|
|
3
|
+
Rails/ContentTag:
|
|
4
|
+
Enabled: false
|
|
5
|
+
|
|
6
|
+
Rails/CreateTableWithTimestamps:
|
|
7
|
+
Enabled: false
|
|
8
|
+
|
|
9
|
+
Rails/InverseOf:
|
|
10
|
+
Enabled: false
|
|
11
|
+
|
|
12
|
+
Rails/NotNullColumn:
|
|
13
|
+
Enabled: false
|
|
14
|
+
|
|
15
|
+
Rails/OutputSafety:
|
|
16
|
+
Enabled: false
|
|
17
|
+
|
|
18
|
+
Rails/Pluck:
|
|
19
|
+
Enabled: false
|
|
20
|
+
|
|
21
|
+
Rails/RakeEnvironment:
|
|
22
|
+
Enabled: false
|
|
23
|
+
|
|
24
|
+
Rails/ReversibleMigration:
|
|
25
|
+
Enabled: false
|
|
26
|
+
|
|
27
|
+
Rails/PluckInWhere:
|
|
28
|
+
Enabled: false
|
|
29
|
+
|
|
30
|
+
Rails/ActionOrder:
|
|
31
|
+
Enabled: false
|
|
32
|
+
|
|
33
|
+
Rails/Delegate:
|
|
34
|
+
Enabled: false
|
|
35
|
+
|
|
36
|
+
Rails/HelperInstanceVariable:
|
|
37
|
+
Enabled: false
|
|
38
|
+
|
|
39
|
+
Rails/ActiveRecordCallbacksOrder:
|
|
40
|
+
Enabled: false
|
|
41
|
+
|
|
42
|
+
Rails/EnumHash:
|
|
43
|
+
Enabled: false
|
|
44
|
+
|
|
45
|
+
Rails/I18nLazyLookup:
|
|
46
|
+
Enabled: false
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
plugins:
|
|
2
2
|
- rubocop-rspec
|
|
3
3
|
- rubocop-rspec_rails
|
|
4
4
|
|
|
@@ -26,7 +26,7 @@ RSpec/DescribeClass:
|
|
|
26
26
|
Exclude:
|
|
27
27
|
- spec/gemfiles_spec.rb
|
|
28
28
|
- spec/gemspecs_spec.rb
|
|
29
|
-
- spec/
|
|
29
|
+
- spec/shakapacker_spec.rb
|
|
30
30
|
- spec/version_files_spec.rb
|
|
31
31
|
- spec/spellcheck_spec.rb
|
|
32
32
|
- spec/i18n_spec.rb
|
|
@@ -36,44 +36,17 @@ RSpec/DescribeClass:
|
|
|
36
36
|
RSpec/ExampleLength:
|
|
37
37
|
Max: 49
|
|
38
38
|
|
|
39
|
-
RSpec/ExpectInHook:
|
|
40
|
-
Enabled: false
|
|
41
|
-
|
|
42
39
|
RSpec/IteratedExpectation:
|
|
43
40
|
Enabled: true
|
|
44
41
|
|
|
45
|
-
RSpec/LetSetup:
|
|
46
|
-
Enabled: false
|
|
47
|
-
|
|
48
|
-
RSpec/MessageSpies:
|
|
49
|
-
Enabled: false
|
|
50
|
-
|
|
51
|
-
RSpec/MultipleExpectations:
|
|
52
|
-
Enabled: false
|
|
53
|
-
|
|
54
42
|
RSpec/MultipleMemoizedHelpers:
|
|
55
43
|
Max: 35
|
|
56
44
|
|
|
57
45
|
RSpec/NestedGroups:
|
|
58
46
|
Max: 7
|
|
59
47
|
|
|
60
|
-
RSpec/NamedSubject:
|
|
61
|
-
Enabled: false
|
|
62
|
-
|
|
63
48
|
RSpec/RepeatedExampleGroupDescription:
|
|
64
49
|
Enabled: true
|
|
65
50
|
|
|
66
51
|
RSpec/RepeatedExampleGroupBody:
|
|
67
52
|
Enabled: true
|
|
68
|
-
|
|
69
|
-
RSpec/VerifiedDoubles:
|
|
70
|
-
Enabled: false
|
|
71
|
-
|
|
72
|
-
RSpec/LeakyConstantDeclaration:
|
|
73
|
-
Enabled: false
|
|
74
|
-
|
|
75
|
-
RSpec/DescribedClass:
|
|
76
|
-
Enabled: false
|
|
77
|
-
|
|
78
|
-
RSpec/IndexedLet:
|
|
79
|
-
Enabled: false
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Disabled rspec configurations
|
|
2
|
+
|
|
3
|
+
RSpec/ExpectInHook:
|
|
4
|
+
Enabled: false
|
|
5
|
+
|
|
6
|
+
RSpec/LetSetup:
|
|
7
|
+
Enabled: false
|
|
8
|
+
|
|
9
|
+
RSpec/MessageSpies:
|
|
10
|
+
Enabled: false
|
|
11
|
+
|
|
12
|
+
RSpec/MultipleExpectations:
|
|
13
|
+
Enabled: false
|
|
14
|
+
|
|
15
|
+
RSpec/NamedSubject:
|
|
16
|
+
Enabled: false
|
|
17
|
+
|
|
18
|
+
RSpec/VerifiedDoubles:
|
|
19
|
+
Enabled: false
|
|
20
|
+
|
|
21
|
+
RSpec/LeakyConstantDeclaration:
|
|
22
|
+
Enabled: false
|
|
23
|
+
|
|
24
|
+
RSpec/DescribedClass:
|
|
25
|
+
Enabled: false
|
|
26
|
+
|
|
27
|
+
RSpec/IndexedLet:
|
|
28
|
+
Enabled: false
|
|
29
|
+
|
|
30
|
+
RSpec/VerifiedDoubleReference:
|
|
31
|
+
Enabled: false
|
|
32
|
+
|
|
33
|
+
RSpec/ExampleWording:
|
|
34
|
+
Enabled: false
|
|
35
|
+
|
|
36
|
+
RSpec/ReceiveMessages:
|
|
37
|
+
Enabled: false
|
|
38
|
+
|
|
39
|
+
RSpecRails/NegationBeValid:
|
|
40
|
+
Enabled: false
|
|
41
|
+
|
|
42
|
+
RSpec/MetadataStyle:
|
|
43
|
+
Enabled: false
|
|
44
|
+
|
|
45
|
+
RSpec/RemoveConst:
|
|
46
|
+
Enabled: false
|
|
47
|
+
|
|
48
|
+
RSpec/IncludeExamples:
|
|
49
|
+
Enabled: false
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
require: rubocop
|
|
2
|
+
|
|
1
3
|
# Common configuration.
|
|
2
4
|
AllCops:
|
|
3
5
|
Include:
|
|
@@ -176,7 +178,6 @@ Style/ArrayCoercion:
|
|
|
176
178
|
with a variable you want to treat as an Array, but you are not certain it is an array.
|
|
177
179
|
StyleGuide: '#array-coercion'
|
|
178
180
|
Safe: false
|
|
179
|
-
Enabled: false
|
|
180
181
|
VersionAdded: '0.88'
|
|
181
182
|
|
|
182
183
|
Style/AndOr:
|
|
@@ -187,9 +188,6 @@ Style/AndOr:
|
|
|
187
188
|
- always
|
|
188
189
|
- conditionals
|
|
189
190
|
|
|
190
|
-
Style/AsciiComments:
|
|
191
|
-
Enabled: false
|
|
192
|
-
|
|
193
191
|
# Checks if usage of %() or %Q() matches configuration.
|
|
194
192
|
Style/BarePercentLiterals:
|
|
195
193
|
EnforcedStyle: bare_percent
|
|
@@ -268,12 +266,6 @@ Style/BlockDelimiters:
|
|
|
268
266
|
- proc
|
|
269
267
|
- it
|
|
270
268
|
|
|
271
|
-
Style/ExplicitBlockArgument:
|
|
272
|
-
Enabled: false
|
|
273
|
-
|
|
274
|
-
Style/HashEachMethods:
|
|
275
|
-
Enabled: false
|
|
276
|
-
|
|
277
269
|
Style/HashLikeCase:
|
|
278
270
|
MinBranchesCount: 5
|
|
279
271
|
|
|
@@ -290,7 +282,6 @@ Layout/CaseIndentation:
|
|
|
290
282
|
IndentationWidth: ~
|
|
291
283
|
|
|
292
284
|
Style/ClassAndModuleChildren:
|
|
293
|
-
Enabled: false
|
|
294
285
|
# Checks the style of children definitions at classes and modules.
|
|
295
286
|
#
|
|
296
287
|
# Basically there are two different styles:
|
|
@@ -790,10 +781,7 @@ Style/PercentQLiterals:
|
|
|
790
781
|
- lower_case_q # Use %q when possible, %Q when necessary
|
|
791
782
|
- upper_case_q # Always use %Q
|
|
792
783
|
|
|
793
|
-
|
|
794
|
-
Enabled: false
|
|
795
|
-
|
|
796
|
-
Naming/PredicateName:
|
|
784
|
+
Naming/PredicatePrefix:
|
|
797
785
|
# Predicate name prefixes.
|
|
798
786
|
NamePrefix:
|
|
799
787
|
- is_
|
|
@@ -820,9 +808,6 @@ Style/PreferredHashMethods:
|
|
|
820
808
|
Style/DateTime:
|
|
821
809
|
Enabled: true
|
|
822
810
|
|
|
823
|
-
Style/Documentation:
|
|
824
|
-
Enabled: false
|
|
825
|
-
|
|
826
811
|
Style/RaiseArgs:
|
|
827
812
|
EnforcedStyle: exploded
|
|
828
813
|
SupportedStyles:
|
|
@@ -847,9 +832,6 @@ Style/RegexpLiteral:
|
|
|
847
832
|
# are found in the regexp string.
|
|
848
833
|
AllowInnerSlashes: false
|
|
849
834
|
|
|
850
|
-
Style/SafeNavigation:
|
|
851
|
-
Enabled: false
|
|
852
|
-
|
|
853
835
|
Style/Semicolon:
|
|
854
836
|
# Allow ; to separate several expressions on the same line.
|
|
855
837
|
AllowAsExpressionSeparator: false
|
|
@@ -963,9 +945,6 @@ Layout/SpaceInsideStringInterpolation:
|
|
|
963
945
|
- space
|
|
964
946
|
- no_space
|
|
965
947
|
|
|
966
|
-
Style/AccessModifierDeclarations:
|
|
967
|
-
Enabled: false
|
|
968
|
-
|
|
969
948
|
Style/SymbolArray:
|
|
970
949
|
EnforcedStyle: brackets
|
|
971
950
|
SupportedStyles:
|
|
@@ -1089,10 +1068,6 @@ Metrics/AbcSize:
|
|
|
1089
1068
|
# The ABC size is a calculated magnitude, so this number can be an Integer or
|
|
1090
1069
|
# a Float.
|
|
1091
1070
|
Max: 15
|
|
1092
|
-
Enabled: false
|
|
1093
|
-
|
|
1094
|
-
Metrics/BlockLength:
|
|
1095
|
-
Enabled: false
|
|
1096
1071
|
|
|
1097
1072
|
Metrics/BlockNesting:
|
|
1098
1073
|
Max: 3
|
|
@@ -1100,12 +1075,10 @@ Metrics/BlockNesting:
|
|
|
1100
1075
|
Metrics/ClassLength:
|
|
1101
1076
|
CountComments: false # count full line comments?
|
|
1102
1077
|
Max: 100
|
|
1103
|
-
Enabled: false
|
|
1104
1078
|
|
|
1105
1079
|
Metrics/ModuleLength:
|
|
1106
1080
|
CountComments: false # count full line comments?
|
|
1107
1081
|
Max: 100
|
|
1108
|
-
Enabled: false
|
|
1109
1082
|
|
|
1110
1083
|
# Avoid complex methods.
|
|
1111
1084
|
Metrics/CyclomaticComplexity:
|
|
@@ -1118,7 +1091,6 @@ Metrics/CyclomaticComplexity:
|
|
|
1118
1091
|
Metrics/MethodLength:
|
|
1119
1092
|
CountComments: false # count full line comments?
|
|
1120
1093
|
Max: 15
|
|
1121
|
-
Enabled: false
|
|
1122
1094
|
|
|
1123
1095
|
Metrics/ParameterLists:
|
|
1124
1096
|
Max: 5
|
|
@@ -1141,13 +1113,6 @@ Lint/AmbiguousBlockAssociation:
|
|
|
1141
1113
|
Lint/AssignmentInCondition:
|
|
1142
1114
|
AllowSafeAssignment: true
|
|
1143
1115
|
|
|
1144
|
-
Lint/ConstantDefinitionInBlock:
|
|
1145
|
-
Enabled: false
|
|
1146
|
-
|
|
1147
|
-
# Call super to initialize state of the parent class.
|
|
1148
|
-
Lint/MissingSuper:
|
|
1149
|
-
Enabled: false
|
|
1150
|
-
|
|
1151
1116
|
# checks whether the end keywords are aligned properly for `do` `end` blocks.
|
|
1152
1117
|
Layout/BlockAlignment:
|
|
1153
1118
|
# The value `start_of_block` means that the `end` should be aligned with line
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Disabled rubocop configurations
|
|
2
|
+
Style/OpenStructUse:
|
|
3
|
+
Enabled: false
|
|
4
|
+
|
|
5
|
+
Gemspec/RequireMFA:
|
|
6
|
+
Enabled: false
|
|
7
|
+
|
|
8
|
+
Naming/MemoizedInstanceVariableName:
|
|
9
|
+
Enabled: false
|
|
10
|
+
|
|
11
|
+
Lint/SelfAssignment:
|
|
12
|
+
Enabled: false
|
|
13
|
+
|
|
14
|
+
Style/ArrayCoercion:
|
|
15
|
+
Enabled: false
|
|
16
|
+
|
|
17
|
+
Style/AsciiComments:
|
|
18
|
+
Enabled: false
|
|
19
|
+
|
|
20
|
+
Style/ExplicitBlockArgument:
|
|
21
|
+
Enabled: false
|
|
22
|
+
|
|
23
|
+
Style/HashEachMethods:
|
|
24
|
+
Enabled: false
|
|
25
|
+
|
|
26
|
+
Style/ClassAndModuleChildren:
|
|
27
|
+
Enabled: false
|
|
28
|
+
|
|
29
|
+
Style/SlicingWithRange:
|
|
30
|
+
Enabled: false
|
|
31
|
+
|
|
32
|
+
Style/Documentation:
|
|
33
|
+
Enabled: false
|
|
34
|
+
|
|
35
|
+
Style/SafeNavigation:
|
|
36
|
+
Enabled: false
|
|
37
|
+
|
|
38
|
+
Style/AccessModifierDeclarations:
|
|
39
|
+
Enabled: false
|
|
40
|
+
|
|
41
|
+
Metrics/AbcSize:
|
|
42
|
+
Enabled: false
|
|
43
|
+
|
|
44
|
+
Metrics/BlockLength:
|
|
45
|
+
Enabled: false
|
|
46
|
+
|
|
47
|
+
Metrics/ClassLength:
|
|
48
|
+
Enabled: false
|
|
49
|
+
|
|
50
|
+
Metrics/ModuleLength:
|
|
51
|
+
Enabled: false
|
|
52
|
+
|
|
53
|
+
Metrics/MethodLength:
|
|
54
|
+
Enabled: false
|
|
55
|
+
|
|
56
|
+
Lint/ConstantDefinitionInBlock:
|
|
57
|
+
Enabled: false
|
|
58
|
+
|
|
59
|
+
# Call super to initialize state of the parent class.
|
|
60
|
+
Lint/MissingSuper:
|
|
61
|
+
Enabled: false
|
|
62
|
+
|
|
63
|
+
Style/RedundantParentheses:
|
|
64
|
+
Enabled: false
|
|
65
|
+
|
|
66
|
+
Naming/PredicateMethod:
|
|
67
|
+
Enabled: false
|
|
68
|
+
|
|
69
|
+
Style/CollectionQuerying:
|
|
70
|
+
Enabled: false
|
|
71
|
+
|
|
72
|
+
Lint/UselessAccessModifier:
|
|
73
|
+
Enabled: false
|
|
74
|
+
|
|
75
|
+
Style/MultipleComparison:
|
|
76
|
+
Enabled: false
|
|
77
|
+
|
|
78
|
+
Lint/CopDirectiveSyntax:
|
|
79
|
+
Enabled: false
|
|
80
|
+
|
|
81
|
+
Lint/RedundantTypeConversion:
|
|
82
|
+
Enabled: false
|
|
83
|
+
|
|
84
|
+
Lint/DuplicateMethods:
|
|
85
|
+
Enabled: false
|
|
86
|
+
|
|
87
|
+
Lint/UselessConstantScoping:
|
|
88
|
+
Enabled: false
|
|
89
|
+
|
|
90
|
+
Style/RedundantCondition:
|
|
91
|
+
Enabled: false
|
|
92
|
+
|
|
93
|
+
Lint/Void:
|
|
94
|
+
Enabled: false
|
|
95
|
+
|
|
96
|
+
Style/HashSlice:
|
|
97
|
+
Enabled: false
|
|
98
|
+
|
|
99
|
+
Lint/UselessOr:
|
|
100
|
+
Enabled: false
|
|
101
|
+
|
|
102
|
+
Style/EmptyStringInsideInterpolation:
|
|
103
|
+
Enabled: false
|
|
104
|
+
|
|
105
|
+
Style/ComparableBetween:
|
|
106
|
+
Enabled: false
|
data/decidim-dev.gemspec
CHANGED
|
@@ -56,16 +56,16 @@ Gem::Specification.new do |s|
|
|
|
56
56
|
s.add_dependency "rspec_junit_formatter", "~> 0.6.0"
|
|
57
57
|
s.add_dependency "rspec-rails", "~> 6.0"
|
|
58
58
|
s.add_dependency "rspec-retry", "~> 0.6.2"
|
|
59
|
-
s.add_dependency "rubocop", "~> 1.
|
|
60
|
-
s.add_dependency "rubocop-capybara", "~> 2.
|
|
61
|
-
s.add_dependency "rubocop-factory_bot", "~> 2.
|
|
62
|
-
s.add_dependency "rubocop-faker", "~> 1.1"
|
|
63
|
-
s.add_dependency "rubocop-graphql", "~> 1.5"
|
|
64
|
-
s.add_dependency "rubocop-performance", "~> 1.
|
|
65
|
-
s.add_dependency "rubocop-rails", "~> 2.
|
|
66
|
-
s.add_dependency "rubocop-rspec", "~> 3.0"
|
|
67
|
-
s.add_dependency "rubocop-rspec_rails", "~> 2.
|
|
68
|
-
s.add_dependency "rubocop-rubycw", "~> 0.
|
|
59
|
+
s.add_dependency "rubocop", "~> 1.78.0"
|
|
60
|
+
s.add_dependency "rubocop-capybara", "~> 2.22.0", ">= 2.22.1"
|
|
61
|
+
s.add_dependency "rubocop-factory_bot", "~> 2.27.0"
|
|
62
|
+
s.add_dependency "rubocop-faker", "~> 1.3", ">= 1.3.0"
|
|
63
|
+
s.add_dependency "rubocop-graphql", "~> 1.5", ">= 1.5.6"
|
|
64
|
+
s.add_dependency "rubocop-performance", "~> 1.25", ">= 1.25.0"
|
|
65
|
+
s.add_dependency "rubocop-rails", "~> 2.32.0", ">= 2.32.0"
|
|
66
|
+
s.add_dependency "rubocop-rspec", "~> 3.0", ">= 3.6.0"
|
|
67
|
+
s.add_dependency "rubocop-rspec_rails", "~> 2.31.0"
|
|
68
|
+
s.add_dependency "rubocop-rubycw", "~> 0.2.0"
|
|
69
69
|
s.add_dependency "selenium-webdriver", "~> 4.9"
|
|
70
70
|
s.add_dependency "simplecov", "~> 0.22.0"
|
|
71
71
|
s.add_dependency "simplecov-cobertura", "~> 2.1.0"
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
{
|
|
3
3
|
"id": 1,
|
|
4
4
|
"slug": "quae-a",
|
|
5
|
-
"hashtag": "id",
|
|
6
5
|
"decidim_organization_id": 1,
|
|
7
6
|
"title": {
|
|
8
7
|
"ca": "Eius iure laborum hic et.",
|
|
@@ -653,7 +652,7 @@
|
|
|
653
652
|
"id": 9,
|
|
654
653
|
"decidim_questionnaire_id": 9,
|
|
655
654
|
"position": null,
|
|
656
|
-
"question_type": "
|
|
655
|
+
"question_type": "short_response",
|
|
657
656
|
"mandatory": null,
|
|
658
657
|
"body": {
|
|
659
658
|
"ca": "Est incidunt ut. Et distinctio velit. Perferendis ratione qui.",
|
|
@@ -664,15 +663,13 @@
|
|
|
664
663
|
"max_choices": null,
|
|
665
664
|
"created_at": "2020-01-22T07:55:13.496Z",
|
|
666
665
|
"updated_at": "2020-01-22T07:55:13.496Z",
|
|
667
|
-
"
|
|
668
|
-
|
|
669
|
-
]
|
|
666
|
+
"response_options": []
|
|
670
667
|
},
|
|
671
668
|
{
|
|
672
669
|
"id": 10,
|
|
673
670
|
"decidim_questionnaire_id": 9,
|
|
674
671
|
"position": null,
|
|
675
|
-
"question_type": "
|
|
672
|
+
"question_type": "long_response",
|
|
676
673
|
"mandatory": null,
|
|
677
674
|
"body": {
|
|
678
675
|
"ca": "Unde qui recusandae. Ab saepe praesentium. Quis velit et.",
|
|
@@ -683,9 +680,7 @@
|
|
|
683
680
|
"max_choices": null,
|
|
684
681
|
"created_at": "2020-01-22T07:55:13.507Z",
|
|
685
682
|
"updated_at": "2020-01-22T07:55:13.507Z",
|
|
686
|
-
"
|
|
687
|
-
|
|
688
|
-
]
|
|
683
|
+
"response_options": []
|
|
689
684
|
},
|
|
690
685
|
{
|
|
691
686
|
"id": 11,
|
|
@@ -702,7 +697,7 @@
|
|
|
702
697
|
"max_choices": null,
|
|
703
698
|
"created_at": "2020-01-22T07:55:13.520Z",
|
|
704
699
|
"updated_at": "2020-01-22T07:55:13.520Z",
|
|
705
|
-
"
|
|
700
|
+
"response_options": [
|
|
706
701
|
{
|
|
707
702
|
"id": 13,
|
|
708
703
|
"decidim_question_id": 11,
|
|
@@ -750,7 +745,7 @@
|
|
|
750
745
|
"max_choices": null,
|
|
751
746
|
"created_at": "2020-01-22T07:55:13.564Z",
|
|
752
747
|
"updated_at": "2020-01-22T07:55:13.564Z",
|
|
753
|
-
"
|
|
748
|
+
"response_options": [
|
|
754
749
|
{
|
|
755
750
|
"id": 16,
|
|
756
751
|
"decidim_question_id": 12,
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
first_test_email@example.org
|
|
2
|
+
second_test_email@example.org
|
|
3
|
+
third_test_email@example.org
|
|
4
|
+
this_is_a_test_email@test.org
|
|
5
|
+
test.123@test.org
|
|
6
|
+
example.123@test.org
|
|
7
|
+
this_is_another_test_email@test.com
|
|
8
|
+
test_user_001@example.com
|
|
9
|
+
test.account@example.com
|
|
10
|
+
test.example@example.com
|
|
11
|
+
example.account@example.com
|
|
12
|
+
new_email_test@example.com
|
|
13
|
+
one_more_example_email@test.org
|
|
14
|
+
another_example_email@test.org
|
|
15
|
+
first_test@test.org
|
|
16
|
+
one_example_email@test.org
|
|
17
|
+
second_test@test.com
|
|
18
|
+
four.test@test.org
|
|
19
|
+
the_test_email@example.org
|
|
20
|
+
these_test_email@test.org
|
|
21
|
+
more_example_email@test.org
|
|
22
|
+
the_new_email_test@example.test
|
|
23
|
+
another_example_email@test.example
|
|
24
|
+
this_is_the_new_email_test@example.test
|
|
25
|
+
one_more_example_email@example.test
|
|
26
|
+
another_example_email@example.test
|
|
27
|
+
first_test@example.test
|
|
@@ -33,8 +33,8 @@ Decidim.register_component(:dummy) do |component|
|
|
|
33
33
|
settings.attribute :amendment_reaction_enabled, type: :boolean, default: true
|
|
34
34
|
settings.attribute :amendment_promotion_enabled, type: :boolean, default: true
|
|
35
35
|
settings.attribute :amendments_visibility, type: :string, default: "all"
|
|
36
|
-
settings.attribute :
|
|
37
|
-
settings.attribute :
|
|
36
|
+
settings.attribute :likes_enabled, type: :boolean, default: false
|
|
37
|
+
settings.attribute :likes_blocked, type: :boolean, default: false
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
component.register_resource(:dummy_resource) do |resource|
|
data/lib/decidim/dev/engine.rb
CHANGED
|
@@ -25,7 +25,7 @@ module Decidim
|
|
|
25
25
|
ActiveSupport.on_load(:action_controller) { include Decidim::Dev::NeedsDevelopmentTools } if Rails.env.development? || ENV.fetch("DECIDIM_DEV_ENGINE", nil)
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
initializer "decidim_dev.
|
|
28
|
+
initializer "decidim_dev.shakapacker.assets_path" do
|
|
29
29
|
Decidim.register_assets_path File.expand_path("app/packs", root)
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -4,6 +4,15 @@ require "decidim/dev"
|
|
|
4
4
|
|
|
5
5
|
ENV["RAILS_ENV"] ||= "test"
|
|
6
6
|
ENV["RAILS_SYSTEM_TESTING_SCREENSHOT_HTML"] ||= "1"
|
|
7
|
+
ENV["DECIDIM_API_JWT_SECRET"] ||= "dummy-api-jwt-secret"
|
|
8
|
+
ENV["DECIDIM_AVAILABLE_LOCALES"] ||= "en,ca,es"
|
|
9
|
+
ENV["DECIDIM_ENABLE_MACHINE_TRANSLATION"] ||= "true"
|
|
10
|
+
ENV["DECIDIM_SPAM_DETECTION_BACKEND_RESOURCE"] ||= "memory"
|
|
11
|
+
ENV["DECIDIM_SPAM_DETECTION_BACKEND_USER"] ||= "memory"
|
|
12
|
+
ENV["DECIDIM_SMS_GATEWAY_SERVICE"] ||= "Decidim::Verifications::Sms::ExampleGateway"
|
|
13
|
+
ENV["DECIDIM_TIMESTAMP_SERVICE"] ||= "Decidim::Initiatives::DummyTimestamp"
|
|
14
|
+
ENV["DECIDIM_PDF_SIGNATURE_SERVICE"] ||= "Decidim::PdfSignatureExample"
|
|
15
|
+
ENV["DECIDIM_MACHINE_TRANSLATION_SERVICE"] ||= "Decidim::Dev::DummyTranslator"
|
|
7
16
|
|
|
8
17
|
engine_spec_dir = File.join(Dir.pwd, "spec")
|
|
9
18
|
|