decidim-dev 0.27.4 → 0.28.0.rc5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/commands/decidim/{dummy_resources → dev}/create_dummy_resource.rb +1 -2
- data/app/controllers/decidim/{dummy_resources → dev}/dummy_resources_controller.rb +2 -2
- data/app/events/decidim/dev/dummy_resource_event.rb +10 -0
- data/app/forms/decidim/{dummy_resources → dev}/dummy_resource_form.rb +1 -1
- data/app/jobs/decidim/dev/hide_all_created_by_author_job.rb +13 -0
- data/app/mailers/decidim/{dummy_resources → dev}/dummy_resource_mailer.rb +1 -1
- data/app/models/decidim/dev/application_record.rb +9 -0
- data/app/models/decidim/dev/coauthorable_dummy_resource.rb +10 -0
- data/app/models/decidim/dev/dummy_resource.rb +93 -0
- data/app/models/decidim/dev/nested_dummy_resource.rb +10 -0
- data/app/packs/src/decidim/dev/accessibility.js +3 -3
- data/app/packs/src/decidim/dev/test/custom_map_factory.js +1 -1
- data/app/packs/stylesheets/decidim/dev/_accessibility.scss +24 -24
- data/app/packs/stylesheets/decidim/dev/_map.scss +10 -0
- data/app/packs/stylesheets/decidim/dev.scss +1 -0
- data/app/presenters/decidim/dev/official_author_presenter.rb +33 -0
- data/app/serializers/decidim/dev/dummy_serializer.rb +21 -0
- data/app/views/decidim/dev/dummy_resources/show.html.erb +25 -0
- data/config/environment.rb +3 -0
- data/config/locales/ar.yml +0 -1
- data/config/locales/bg.yml +0 -1
- data/config/locales/cs.yml +4 -4
- data/config/locales/de.yml +2 -2
- data/config/locales/el.yml +0 -1
- data/config/locales/en.yml +1 -1
- data/config/locales/es-MX.yml +1 -1
- data/config/locales/es-PY.yml +1 -1
- data/config/locales/eu.yml +14 -8
- data/config/locales/gl.yml +0 -1
- data/config/locales/hu.yml +0 -1
- data/config/locales/id-ID.yml +0 -1
- data/config/locales/it.yml +0 -1
- data/config/locales/lv.yml +0 -1
- data/config/locales/nl.yml +0 -1
- data/config/locales/no.yml +0 -1
- data/config/locales/pl.yml +0 -1
- data/config/locales/pt-BR.yml +0 -1
- data/config/locales/pt.yml +0 -1
- data/config/locales/ru.yml +0 -1
- data/config/locales/sk.yml +0 -1
- data/config/locales/sq-AL.yml +1 -0
- data/config/locales/sv.yml +1 -1
- data/config/locales/th-TH.yml +1 -0
- data/config/locales/tr-TR.yml +0 -1
- data/config/locales/zh-CN.yml +0 -1
- data/config/rubocop/disabled.yml +11 -0
- data/config/rubocop/faker.yml +480 -0
- data/config/rubocop/rails.yml +105 -0
- data/config/rubocop/rspec.yml +69 -0
- data/config/rubocop/ruby.yml +1207 -0
- data/lib/decidim/dev/admin.rb +8 -0
- data/lib/decidim/dev/admin_engine.rb +43 -0
- data/lib/decidim/dev/assets/import_participatory_space_private_users.csv +2 -2
- data/lib/decidim/dev/assets/import_participatory_space_private_users_invalid_col_sep.csv +2 -0
- data/lib/decidim/dev/assets/import_participatory_space_private_users_nok.csv +2 -2
- data/lib/decidim/dev/assets/import_participatory_space_private_users_with_bom.csv +1 -1
- data/lib/decidim/dev/assets/iso-8859-15.md +1 -1
- data/lib/decidim/dev/assets/participatory_text.md +4 -2
- data/lib/decidim/dev/assets/verify_user_groups.csv +22 -22
- data/lib/decidim/dev/component.rb +94 -0
- data/lib/decidim/dev/engine.rb +21 -3
- data/lib/decidim/dev/test/base_spec_helper.rb +1 -0
- data/lib/decidim/dev/test/factories.rb +50 -0
- data/lib/decidim/dev/test/form_to_param_shared_examples.rb +1 -1
- data/lib/decidim/dev/test/promoted_participatory_processes_shared_examples.rb +9 -9
- data/lib/decidim/dev/test/rspec_support/accessibility_examples.rb +119 -1
- data/lib/decidim/dev/test/rspec_support/attachment_helpers.rb +2 -2
- data/lib/decidim/dev/test/rspec_support/bullet.rb +32 -0
- data/lib/decidim/dev/test/rspec_support/capybara.rb +26 -21
- data/lib/decidim/dev/test/rspec_support/cell_matchers.rb +1 -1
- data/lib/decidim/dev/test/rspec_support/component.rb +7 -317
- data/lib/decidim/dev/test/rspec_support/component_context.rb +10 -10
- data/lib/decidim/dev/test/rspec_support/confirmation_helpers.rb +18 -14
- data/lib/decidim/dev/test/rspec_support/data_consent.rb +2 -2
- data/lib/decidim/dev/test/rspec_support/dynamic_attach.rb +19 -4
- data/lib/decidim/dev/test/rspec_support/editor_context.rb +35 -0
- data/lib/decidim/dev/test/rspec_support/engine_examples.rb +15 -0
- data/lib/decidim/dev/test/rspec_support/filters.rb +11 -0
- data/lib/decidim/dev/test/rspec_support/forms_validations.rb +20 -0
- data/lib/decidim/dev/test/rspec_support/geocoder.rb +7 -7
- data/lib/decidim/dev/test/rspec_support/helpers.rb +187 -34
- data/lib/decidim/dev/test/rspec_support/imports_controller_shared_examples.rb +13 -13
- data/lib/decidim/dev/test/rspec_support/tom_select.rb +26 -0
- data/lib/decidim/dev/test/rspec_support/translation_helpers.rb +8 -8
- data/lib/decidim/dev/test/rspec_support/warden.rb +1 -1
- data/lib/decidim/dev/test/rspec_support/webpacker.rb +10 -0
- data/lib/decidim/dev/test/spec_helper.rb +15 -4
- data/lib/decidim/dev/test/w3c_rspec_validators_overrides.rb +1 -5
- data/lib/decidim/dev/version.rb +1 -1
- data/lib/decidim/dev.rb +22 -0
- data/lib/decidim-dev.rb +1 -1
- data/lib/tasks/lighthouse_report.rake +29 -7
- data/rubocop-decidim.yml +13 -0
- metadata +125 -71
- data/app/views/decidim/dummy_resources/dummy_resources/show.html.erb +0 -15
- data/lib/decidim/dev/test/rspec_support/capybara_data_picker.rb +0 -36
- data/lib/decidim/dev/test/rspec_support/capybara_scopes_picker.rb +0 -92
- data/lib/decidim/dev/test/rspec_support/summary_notification.rb +0 -51
- data/lib/rubocop/cop/decidim/hash_shorthand_syntax_backports.rb +0 -175
- data/lib/rubocop/cop/decidim.rb +0 -9
- /data/app/views/decidim/{dummy_resources → dev}/dummy_resources/foo.html.erb +0 -0
@@ -13,17 +13,39 @@ namespace :decidim do
|
|
13
13
|
# Because seeds make urls dynamic, this task updates the lighthouse configuration
|
14
14
|
# to add dynamically the urls to check.
|
15
15
|
|
16
|
-
host = "http://localhost:3000"
|
17
|
-
urls = ["/"]
|
18
|
-
urls << ::Decidim::ResourceLocatorPresenter.new(Decidim::ParticipatoryProcess.published.first).path
|
19
|
-
urls << ::Decidim::ResourceLocatorPresenter.new(Decidim::Meetings::Meeting.published.first).path
|
20
|
-
urls << ::Decidim::ResourceLocatorPresenter.new(Decidim::Proposals::Proposal.published.first).path
|
21
|
-
|
22
16
|
# Update lighthouse configuration with the urls
|
23
17
|
lighthouse_rc_path = Rails.root.join("../.lighthouserc.json")
|
24
18
|
lighthouserc = JSON.parse(File.read(lighthouse_rc_path))
|
25
|
-
lighthouserc["ci"]["collect"]["url"] =
|
19
|
+
lighthouserc["ci"]["collect"]["url"] = lighthouse_urls
|
26
20
|
File.write(lighthouse_rc_path, lighthouserc.to_json)
|
27
21
|
end
|
22
|
+
|
23
|
+
desc "Warms up the URLs to be requested"
|
24
|
+
task warmup: :environment do
|
25
|
+
lighthouse_urls.each do |url|
|
26
|
+
uri = URI.parse(url)
|
27
|
+
connection = Net::HTTP.new(uri.host, uri.port)
|
28
|
+
connection.start do |http|
|
29
|
+
puts "Warming up #{uri.path}"
|
30
|
+
response = http.get(uri.path)
|
31
|
+
puts "--HTTP STATUS: #{response.code}"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
def lighthouse_urls
|
39
|
+
host = "http://localhost:3000"
|
40
|
+
lighthouse_paths.map { |path| "#{host}#{path}" }
|
41
|
+
end
|
42
|
+
|
43
|
+
def lighthouse_paths
|
44
|
+
["/"].tap do |urls|
|
45
|
+
urls << Decidim::ResourceLocatorPresenter.new(Decidim::ParticipatoryProcess.published.first).path
|
46
|
+
urls << Decidim::ResourceLocatorPresenter.new(Decidim::Meetings::Meeting.published.first).path
|
47
|
+
urls << Decidim::ResourceLocatorPresenter.new(Decidim::Proposals::Proposal.published.first).path
|
48
|
+
end
|
49
|
+
end
|
28
50
|
end
|
29
51
|
end
|
data/rubocop-decidim.yml
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Note that this file's name cannot start with `.rubocop` (with the leading dot)
|
2
|
+
# because it is used externally by loading it through `inherit_gem` and that
|
3
|
+
# naming would cause the exclude/include rules to break.
|
4
|
+
#
|
5
|
+
# For further details, see:
|
6
|
+
# https://github.com/rubocop/rubocop/issues/4154#issuecomment-316004878
|
7
|
+
|
8
|
+
inherit_from:
|
9
|
+
- config/rubocop/ruby.yml
|
10
|
+
- config/rubocop/rails.yml
|
11
|
+
- config/rubocop/rspec.yml
|
12
|
+
- config/rubocop/faker.yml
|
13
|
+
- config/rubocop/disabled.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.28.0.rc5
|
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: 2023-
|
13
|
+
date: 2023-12-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capybara
|
@@ -18,182 +18,194 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '3.
|
21
|
+
version: '3.39'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '3.
|
28
|
+
version: '3.39'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: decidim
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.28.0.rc5
|
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.28.0.rc5
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: factory_bot_rails
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
49
|
+
version: '6.2'
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '
|
56
|
+
version: '6.2'
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
|
-
name:
|
58
|
+
name: faker
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
63
|
+
version: '3.2'
|
64
64
|
type: :runtime
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
70
|
+
version: '3.2'
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
|
-
name:
|
72
|
+
name: bullet
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - "~>"
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: '
|
77
|
+
version: '7.0'
|
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.0'
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
|
-
name:
|
86
|
+
name: byebug
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
89
|
- - "~>"
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version:
|
91
|
+
version: '11.0'
|
92
92
|
type: :runtime
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - "~>"
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
98
|
+
version: '11.0'
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
100
|
name: erb_lint
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
103
|
- - "~>"
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version: 0.0
|
105
|
+
version: 0.4.0
|
106
106
|
type: :runtime
|
107
107
|
prerelease: false
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
110
|
- - "~>"
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: 0.0
|
112
|
+
version: 0.4.0
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: i18n-tasks
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
117
|
- - "~>"
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version: 0
|
119
|
+
version: '1.0'
|
120
120
|
type: :runtime
|
121
121
|
prerelease: false
|
122
122
|
version_requirements: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
124
|
- - "~>"
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
version: 0
|
126
|
+
version: '1.0'
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
|
-
name:
|
128
|
+
name: nokogiri
|
129
129
|
requirement: !ruby/object:Gem::Requirement
|
130
130
|
requirements:
|
131
131
|
- - "~>"
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version: '
|
133
|
+
version: '1.14'
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: 1.14.3
|
134
137
|
type: :runtime
|
135
138
|
prerelease: false
|
136
139
|
version_requirements: !ruby/object:Gem::Requirement
|
137
140
|
requirements:
|
138
141
|
- - "~>"
|
139
142
|
- !ruby/object:Gem::Version
|
140
|
-
version: '
|
143
|
+
version: '1.14'
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: 1.14.3
|
141
147
|
- !ruby/object:Gem::Dependency
|
142
|
-
name:
|
148
|
+
name: parallel_tests
|
143
149
|
requirement: !ruby/object:Gem::Requirement
|
144
150
|
requirements:
|
145
151
|
- - "~>"
|
146
152
|
- !ruby/object:Gem::Version
|
147
|
-
version: '
|
153
|
+
version: '4.2'
|
148
154
|
type: :runtime
|
149
155
|
prerelease: false
|
150
156
|
version_requirements: !ruby/object:Gem::Requirement
|
151
157
|
requirements:
|
152
158
|
- - "~>"
|
153
159
|
- !ruby/object:Gem::Version
|
154
|
-
version: '
|
160
|
+
version: '4.2'
|
155
161
|
- !ruby/object:Gem::Dependency
|
156
|
-
name:
|
162
|
+
name: puma
|
157
163
|
requirement: !ruby/object:Gem::Requirement
|
158
164
|
requirements:
|
159
165
|
- - "~>"
|
160
166
|
- !ruby/object:Gem::Version
|
161
|
-
version: '
|
167
|
+
version: '6.2'
|
168
|
+
- - ">="
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: 6.3.1
|
162
171
|
type: :runtime
|
163
172
|
prerelease: false
|
164
173
|
version_requirements: !ruby/object:Gem::Requirement
|
165
174
|
requirements:
|
166
175
|
- - "~>"
|
167
176
|
- !ruby/object:Gem::Version
|
168
|
-
version: '
|
177
|
+
version: '6.2'
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 6.3.1
|
169
181
|
- !ruby/object:Gem::Dependency
|
170
|
-
name:
|
182
|
+
name: rails-controller-testing
|
171
183
|
requirement: !ruby/object:Gem::Requirement
|
172
184
|
requirements:
|
173
185
|
- - "~>"
|
174
186
|
- !ruby/object:Gem::Version
|
175
|
-
version: '
|
187
|
+
version: '1.0'
|
176
188
|
type: :runtime
|
177
189
|
prerelease: false
|
178
190
|
version_requirements: !ruby/object:Gem::Requirement
|
179
191
|
requirements:
|
180
192
|
- - "~>"
|
181
193
|
- !ruby/object:Gem::Version
|
182
|
-
version: '
|
194
|
+
version: '1.0'
|
183
195
|
- !ruby/object:Gem::Dependency
|
184
|
-
name:
|
196
|
+
name: rspec
|
185
197
|
requirement: !ruby/object:Gem::Requirement
|
186
198
|
requirements:
|
187
199
|
- - "~>"
|
188
200
|
- !ruby/object:Gem::Version
|
189
|
-
version: '
|
201
|
+
version: '3.12'
|
190
202
|
type: :runtime
|
191
203
|
prerelease: false
|
192
204
|
version_requirements: !ruby/object:Gem::Requirement
|
193
205
|
requirements:
|
194
206
|
- - "~>"
|
195
207
|
- !ruby/object:Gem::Version
|
196
|
-
version: '
|
208
|
+
version: '3.12'
|
197
209
|
- !ruby/object:Gem::Dependency
|
198
210
|
name: rspec-cells
|
199
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -214,42 +226,42 @@ dependencies:
|
|
214
226
|
requirements:
|
215
227
|
- - "~>"
|
216
228
|
- !ruby/object:Gem::Version
|
217
|
-
version: 0.
|
229
|
+
version: '0.10'
|
218
230
|
type: :runtime
|
219
231
|
prerelease: false
|
220
232
|
version_requirements: !ruby/object:Gem::Requirement
|
221
233
|
requirements:
|
222
234
|
- - "~>"
|
223
235
|
- !ruby/object:Gem::Version
|
224
|
-
version: 0.
|
236
|
+
version: '0.10'
|
225
237
|
- !ruby/object:Gem::Dependency
|
226
238
|
name: rspec_junit_formatter
|
227
239
|
requirement: !ruby/object:Gem::Requirement
|
228
240
|
requirements:
|
229
241
|
- - "~>"
|
230
242
|
- !ruby/object:Gem::Version
|
231
|
-
version: 0.
|
243
|
+
version: 0.6.0
|
232
244
|
type: :runtime
|
233
245
|
prerelease: false
|
234
246
|
version_requirements: !ruby/object:Gem::Requirement
|
235
247
|
requirements:
|
236
248
|
- - "~>"
|
237
249
|
- !ruby/object:Gem::Version
|
238
|
-
version: 0.
|
250
|
+
version: 0.6.0
|
239
251
|
- !ruby/object:Gem::Dependency
|
240
252
|
name: rspec-rails
|
241
253
|
requirement: !ruby/object:Gem::Requirement
|
242
254
|
requirements:
|
243
255
|
- - "~>"
|
244
256
|
- !ruby/object:Gem::Version
|
245
|
-
version: '
|
257
|
+
version: '6.0'
|
246
258
|
type: :runtime
|
247
259
|
prerelease: false
|
248
260
|
version_requirements: !ruby/object:Gem::Requirement
|
249
261
|
requirements:
|
250
262
|
- - "~>"
|
251
263
|
- !ruby/object:Gem::Version
|
252
|
-
version: '
|
264
|
+
version: '6.0'
|
253
265
|
- !ruby/object:Gem::Dependency
|
254
266
|
name: rspec-retry
|
255
267
|
requirement: !ruby/object:Gem::Requirement
|
@@ -270,70 +282,84 @@ dependencies:
|
|
270
282
|
requirements:
|
271
283
|
- - "~>"
|
272
284
|
- !ruby/object:Gem::Version
|
273
|
-
version: 1.
|
285
|
+
version: 1.50.0
|
274
286
|
type: :runtime
|
275
287
|
prerelease: false
|
276
288
|
version_requirements: !ruby/object:Gem::Requirement
|
277
289
|
requirements:
|
278
290
|
- - "~>"
|
279
291
|
- !ruby/object:Gem::Version
|
280
|
-
version: 1.
|
292
|
+
version: 1.50.0
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: rubocop-faker
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - "~>"
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '1.1'
|
300
|
+
type: :runtime
|
301
|
+
prerelease: false
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - "~>"
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: '1.1'
|
281
307
|
- !ruby/object:Gem::Dependency
|
282
308
|
name: rubocop-rails
|
283
309
|
requirement: !ruby/object:Gem::Requirement
|
284
310
|
requirements:
|
285
311
|
- - "~>"
|
286
312
|
- !ruby/object:Gem::Version
|
287
|
-
version: '2.
|
313
|
+
version: '2.19'
|
288
314
|
type: :runtime
|
289
315
|
prerelease: false
|
290
316
|
version_requirements: !ruby/object:Gem::Requirement
|
291
317
|
requirements:
|
292
318
|
- - "~>"
|
293
319
|
- !ruby/object:Gem::Version
|
294
|
-
version: '2.
|
320
|
+
version: '2.19'
|
295
321
|
- !ruby/object:Gem::Dependency
|
296
322
|
name: rubocop-rspec
|
297
323
|
requirement: !ruby/object:Gem::Requirement
|
298
324
|
requirements:
|
299
325
|
- - "~>"
|
300
326
|
- !ruby/object:Gem::Version
|
301
|
-
version: '2.
|
327
|
+
version: '2.20'
|
302
328
|
type: :runtime
|
303
329
|
prerelease: false
|
304
330
|
version_requirements: !ruby/object:Gem::Requirement
|
305
331
|
requirements:
|
306
332
|
- - "~>"
|
307
333
|
- !ruby/object:Gem::Version
|
308
|
-
version: '2.
|
334
|
+
version: '2.20'
|
309
335
|
- !ruby/object:Gem::Dependency
|
310
336
|
name: selenium-webdriver
|
311
337
|
requirement: !ruby/object:Gem::Requirement
|
312
338
|
requirements:
|
313
339
|
- - "~>"
|
314
340
|
- !ruby/object:Gem::Version
|
315
|
-
version: 4.
|
341
|
+
version: '4.9'
|
316
342
|
type: :runtime
|
317
343
|
prerelease: false
|
318
344
|
version_requirements: !ruby/object:Gem::Requirement
|
319
345
|
requirements:
|
320
346
|
- - "~>"
|
321
347
|
- !ruby/object:Gem::Version
|
322
|
-
version: 4.
|
348
|
+
version: '4.9'
|
323
349
|
- !ruby/object:Gem::Dependency
|
324
350
|
name: simplecov
|
325
351
|
requirement: !ruby/object:Gem::Requirement
|
326
352
|
requirements:
|
327
353
|
- - "~>"
|
328
354
|
- !ruby/object:Gem::Version
|
329
|
-
version: 0.
|
355
|
+
version: 0.22.0
|
330
356
|
type: :runtime
|
331
357
|
prerelease: false
|
332
358
|
version_requirements: !ruby/object:Gem::Requirement
|
333
359
|
requirements:
|
334
360
|
- - "~>"
|
335
361
|
- !ruby/object:Gem::Version
|
336
|
-
version: 0.
|
362
|
+
version: 0.22.0
|
337
363
|
- !ruby/object:Gem::Dependency
|
338
364
|
name: simplecov-cobertura
|
339
365
|
requirement: !ruby/object:Gem::Requirement
|
@@ -368,14 +394,14 @@ dependencies:
|
|
368
394
|
requirements:
|
369
395
|
- - "~>"
|
370
396
|
- !ruby/object:Gem::Version
|
371
|
-
version: '3.
|
397
|
+
version: '3.18'
|
372
398
|
type: :runtime
|
373
399
|
prerelease: false
|
374
400
|
version_requirements: !ruby/object:Gem::Requirement
|
375
401
|
requirements:
|
376
402
|
- - "~>"
|
377
403
|
- !ruby/object:Gem::Version
|
378
|
-
version: '3.
|
404
|
+
version: '3.18'
|
379
405
|
- !ruby/object:Gem::Dependency
|
380
406
|
name: wisper-rspec
|
381
407
|
requirement: !ruby/object:Gem::Requirement
|
@@ -401,11 +427,17 @@ extra_rdoc_files: []
|
|
401
427
|
files:
|
402
428
|
- README.md
|
403
429
|
- Rakefile
|
404
|
-
- app/commands/decidim/
|
430
|
+
- app/commands/decidim/dev/create_dummy_resource.rb
|
405
431
|
- app/controllers/concerns/decidim/dev/needs_development_tools.rb
|
406
|
-
- app/controllers/decidim/
|
407
|
-
- app/
|
408
|
-
- app/
|
432
|
+
- app/controllers/decidim/dev/dummy_resources_controller.rb
|
433
|
+
- app/events/decidim/dev/dummy_resource_event.rb
|
434
|
+
- app/forms/decidim/dev/dummy_resource_form.rb
|
435
|
+
- app/jobs/decidim/dev/hide_all_created_by_author_job.rb
|
436
|
+
- app/mailers/decidim/dev/dummy_resource_mailer.rb
|
437
|
+
- app/models/decidim/dev/application_record.rb
|
438
|
+
- app/models/decidim/dev/coauthorable_dummy_resource.rb
|
439
|
+
- app/models/decidim/dev/dummy_resource.rb
|
440
|
+
- app/models/decidim/dev/nested_dummy_resource.rb
|
409
441
|
- app/packs/entrypoints/decidim_dev.js
|
410
442
|
- app/packs/entrypoints/decidim_dev.scss
|
411
443
|
- app/packs/entrypoints/decidim_dev_test_custom_map.js
|
@@ -415,9 +447,12 @@ files:
|
|
415
447
|
- app/packs/src/decidim/dev/test/custom_map_factory.js
|
416
448
|
- app/packs/stylesheets/decidim/dev.scss
|
417
449
|
- app/packs/stylesheets/decidim/dev/_accessibility.scss
|
450
|
+
- app/packs/stylesheets/decidim/dev/_map.scss
|
451
|
+
- app/presenters/decidim/dev/official_author_presenter.rb
|
452
|
+
- app/serializers/decidim/dev/dummy_serializer.rb
|
453
|
+
- app/views/decidim/dev/dummy_resources/foo.html.erb
|
454
|
+
- app/views/decidim/dev/dummy_resources/show.html.erb
|
418
455
|
- app/views/decidim/dummy_resource/_linked_dummys.html.erb
|
419
|
-
- app/views/decidim/dummy_resources/dummy_resources/foo.html.erb
|
420
|
-
- app/views/decidim/dummy_resources/dummy_resources/show.html.erb
|
421
456
|
- config/assets.rb
|
422
457
|
- config/environment.rb
|
423
458
|
- config/locales/am-ET.yml
|
@@ -486,9 +521,11 @@ files:
|
|
486
521
|
- config/locales/sk.yml
|
487
522
|
- config/locales/sl.yml
|
488
523
|
- config/locales/so-SO.yml
|
524
|
+
- config/locales/sq-AL.yml
|
489
525
|
- config/locales/sr-CS.yml
|
490
526
|
- config/locales/sv.yml
|
491
527
|
- config/locales/sw-KE.yml
|
528
|
+
- config/locales/th-TH.yml
|
492
529
|
- config/locales/ti-ER.yml
|
493
530
|
- config/locales/tr-TR.yml
|
494
531
|
- config/locales/uk.yml
|
@@ -497,8 +534,15 @@ files:
|
|
497
534
|
- config/locales/vi.yml
|
498
535
|
- config/locales/zh-CN.yml
|
499
536
|
- config/locales/zh-TW.yml
|
537
|
+
- config/rubocop/disabled.yml
|
538
|
+
- config/rubocop/faker.yml
|
539
|
+
- config/rubocop/rails.yml
|
540
|
+
- config/rubocop/rspec.yml
|
541
|
+
- config/rubocop/ruby.yml
|
500
542
|
- lib/decidim-dev.rb
|
501
543
|
- lib/decidim/dev.rb
|
544
|
+
- lib/decidim/dev/admin.rb
|
545
|
+
- lib/decidim/dev/admin_engine.rb
|
502
546
|
- lib/decidim/dev/assets/5000x5000.png
|
503
547
|
- lib/decidim/dev/assets/Exampledocument.pdf
|
504
548
|
- lib/decidim/dev/assets/assemblies.json
|
@@ -518,6 +562,7 @@ files:
|
|
518
562
|
- lib/decidim/dev/assets/icon.png
|
519
563
|
- lib/decidim/dev/assets/id.jpg
|
520
564
|
- lib/decidim/dev/assets/import_participatory_space_private_users.csv
|
565
|
+
- lib/decidim/dev/assets/import_participatory_space_private_users_invalid_col_sep.csv
|
521
566
|
- lib/decidim/dev/assets/import_participatory_space_private_users_iso8859-1.csv
|
522
567
|
- lib/decidim/dev/assets/import_participatory_space_private_users_nok.csv
|
523
568
|
- lib/decidim/dev/assets/import_participatory_space_private_users_with_bom.csv
|
@@ -549,6 +594,7 @@ files:
|
|
549
594
|
- lib/decidim/dev/assets/test_excel.xlsx
|
550
595
|
- lib/decidim/dev/assets/verify_user_groups.csv
|
551
596
|
- lib/decidim/dev/common_rake.rb
|
597
|
+
- lib/decidim/dev/component.rb
|
552
598
|
- lib/decidim/dev/dummy_translator.rb
|
553
599
|
- lib/decidim/dev/engine.rb
|
554
600
|
- lib/decidim/dev/railtie.rb
|
@@ -563,10 +609,9 @@ files:
|
|
563
609
|
- lib/decidim/dev/test/rspec_support/attachment_helpers.rb
|
564
610
|
- lib/decidim/dev/test/rspec_support/authorization.rb
|
565
611
|
- lib/decidim/dev/test/rspec_support/autocomplete_select.rb
|
612
|
+
- lib/decidim/dev/test/rspec_support/bullet.rb
|
566
613
|
- lib/decidim/dev/test/rspec_support/caching.rb
|
567
614
|
- lib/decidim/dev/test/rspec_support/capybara.rb
|
568
|
-
- lib/decidim/dev/test/rspec_support/capybara_data_picker.rb
|
569
|
-
- lib/decidim/dev/test/rspec_support/capybara_scopes_picker.rb
|
570
615
|
- lib/decidim/dev/test/rspec_support/cell_matchers.rb
|
571
616
|
- lib/decidim/dev/test/rspec_support/comments.rb
|
572
617
|
- lib/decidim/dev/test/rspec_support/component.rb
|
@@ -576,7 +621,11 @@ files:
|
|
576
621
|
- lib/decidim/dev/test/rspec_support/controller_example_group.rb
|
577
622
|
- lib/decidim/dev/test/rspec_support/data_consent.rb
|
578
623
|
- lib/decidim/dev/test/rspec_support/dynamic_attach.rb
|
624
|
+
- lib/decidim/dev/test/rspec_support/editor_context.rb
|
625
|
+
- lib/decidim/dev/test/rspec_support/engine_examples.rb
|
579
626
|
- lib/decidim/dev/test/rspec_support/factory_bot.rb
|
627
|
+
- lib/decidim/dev/test/rspec_support/filters.rb
|
628
|
+
- lib/decidim/dev/test/rspec_support/forms_validations.rb
|
580
629
|
- lib/decidim/dev/test/rspec_support/frontend.rb
|
581
630
|
- lib/decidim/dev/test/rspec_support/gamification.rb
|
582
631
|
- lib/decidim/dev/test/rspec_support/geocoder.rb
|
@@ -591,27 +640,32 @@ files:
|
|
591
640
|
- lib/decidim/dev/test/rspec_support/rake_tasks.rb
|
592
641
|
- lib/decidim/dev/test/rspec_support/route_helpers.rb
|
593
642
|
- lib/decidim/dev/test/rspec_support/screenshot_helper.rb
|
594
|
-
- lib/decidim/dev/test/rspec_support/summary_notification.rb
|
595
643
|
- lib/decidim/dev/test/rspec_support/time_helpers.rb
|
596
644
|
- lib/decidim/dev/test/rspec_support/timezone.rb
|
645
|
+
- lib/decidim/dev/test/rspec_support/tom_select.rb
|
597
646
|
- lib/decidim/dev/test/rspec_support/translation_helpers.rb
|
598
647
|
- lib/decidim/dev/test/rspec_support/warden.rb
|
599
648
|
- lib/decidim/dev/test/rspec_support/webmock.rb
|
649
|
+
- lib/decidim/dev/test/rspec_support/webpacker.rb
|
600
650
|
- lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb
|
601
651
|
- lib/decidim/dev/test/rspec_support/wisper.rb
|
602
652
|
- lib/decidim/dev/test/rspec_support/z_download_helper.rb
|
603
653
|
- lib/decidim/dev/test/spec_helper.rb
|
604
654
|
- lib/decidim/dev/test/w3c_rspec_validators_overrides.rb
|
605
655
|
- lib/decidim/dev/version.rb
|
606
|
-
- lib/rubocop/cop/decidim.rb
|
607
|
-
- lib/rubocop/cop/decidim/hash_shorthand_syntax_backports.rb
|
608
656
|
- lib/tasks/generators.rake
|
609
657
|
- lib/tasks/lighthouse_report.rake
|
610
658
|
- lib/tasks/locale_checker.rake
|
611
|
-
|
659
|
+
- rubocop-decidim.yml
|
660
|
+
homepage: https://decidim.org
|
612
661
|
licenses:
|
613
662
|
- AGPL-3.0
|
614
|
-
metadata:
|
663
|
+
metadata:
|
664
|
+
bug_tracker_uri: https://github.com/decidim/decidim/issues
|
665
|
+
documentation_uri: https://docs.decidim.org/
|
666
|
+
funding_uri: https://opencollective.com/decidim
|
667
|
+
homepage_uri: https://decidim.org
|
668
|
+
source_code_uri: https://github.com/decidim/decidim
|
615
669
|
post_install_message:
|
616
670
|
rdoc_options: []
|
617
671
|
require_paths:
|
@@ -620,14 +674,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
620
674
|
requirements:
|
621
675
|
- - ">="
|
622
676
|
- !ruby/object:Gem::Version
|
623
|
-
version: '3.
|
677
|
+
version: '3.1'
|
624
678
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
625
679
|
requirements:
|
626
|
-
- - "
|
680
|
+
- - ">"
|
627
681
|
- !ruby/object:Gem::Version
|
628
|
-
version:
|
682
|
+
version: 1.3.1
|
629
683
|
requirements: []
|
630
|
-
rubygems_version: 3.
|
684
|
+
rubygems_version: 3.4.22
|
631
685
|
signing_key:
|
632
686
|
specification_version: 4
|
633
687
|
summary: Decidim dev tools
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<div id="resource" class="row">
|
2
|
-
<h2><%= translated_attribute(@commentable.title) %></h2>
|
3
|
-
</div>
|
4
|
-
|
5
|
-
<div class="row">
|
6
|
-
<%= action_authorized_link_to :foo, foo_dummy_resource_path(@commentable) do %>
|
7
|
-
Foo
|
8
|
-
<% end %>
|
9
|
-
</div>
|
10
|
-
|
11
|
-
<div class="row">
|
12
|
-
<%= render partial: "decidim/shared/share_modal" %>
|
13
|
-
</div>
|
14
|
-
|
15
|
-
<%= inline_comments_for(@commentable) %>
|
@@ -1,36 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Capybara
|
4
|
-
module DataPicker
|
5
|
-
def select_data_picker(id, multiple: nil, global_value: "")
|
6
|
-
Struct.new(:data_picker, :global_value).new(find_data_picker(id, multiple: multiple), global_value)
|
7
|
-
end
|
8
|
-
|
9
|
-
def find_data_picker(id, multiple: nil)
|
10
|
-
if multiple.nil?
|
11
|
-
expect(page).to have_selector("div.data-picker[id$='#{id}']")
|
12
|
-
else
|
13
|
-
expect(page).to have_selector("div.data-picker.picker-#{multiple ? "multiple" : "single"}[id$='#{id}']")
|
14
|
-
end
|
15
|
-
first("div.data-picker[id$='#{id}']")
|
16
|
-
end
|
17
|
-
|
18
|
-
def data_picker_pick_current
|
19
|
-
body = find(:xpath, "//body")
|
20
|
-
expect(body).to have_selector("#data_picker-modal .picker-footer a[data-picker-choose]", wait: 2)
|
21
|
-
body.find("#data_picker-modal .picker-footer a[data-picker-choose]").click
|
22
|
-
end
|
23
|
-
|
24
|
-
def data_picker_choose_value(value)
|
25
|
-
body = find(:xpath, "//body")
|
26
|
-
expect(body).to have_selector("#data_picker-modal input[data-picker-choose][type=checkbox][value=\"#{value}\"]")
|
27
|
-
body.find("#data_picker-modal input[data-picker-choose][type=checkbox][value=\"#{value}\"]").click
|
28
|
-
end
|
29
|
-
|
30
|
-
def data_picker_close
|
31
|
-
body = find(:xpath, "//body")
|
32
|
-
expect(body).to have_selector("#data_picker-modal .picker-footer a[data-close]")
|
33
|
-
body.find("#data_picker-modal .picker-footer a[data-close]").click
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|