decidim-forms 0.31.5 → 0.32.0.rc2

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.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/app/commands/decidim/forms/response_questionnaire.rb +1 -1
  4. data/app/controllers/decidim/forms/admin/concerns/has_questionnaire.rb +3 -2
  5. data/app/controllers/decidim/forms/admin/concerns/has_questionnaire_responses.rb +1 -1
  6. data/app/controllers/decidim/forms/concerns/has_questionnaire.rb +1 -1
  7. data/app/models/decidim/forms/response.rb +1 -1
  8. data/app/views/decidim/forms/admin/questionnaires/edit.html.erb +1 -1
  9. data/app/views/decidim/forms/admin/questionnaires/edit_questions.html.erb +1 -1
  10. data/app/views/decidim/forms/admin/questionnaires/responses/index.html.erb +3 -1
  11. data/app/views/decidim/forms/admin/questionnaires/responses/show.html.erb +3 -1
  12. data/app/views/decidim/forms/questionnaires/_questionnaire.html.erb +1 -1
  13. data/app/views/decidim/forms/questionnaires/show.html.erb +1 -1
  14. data/config/locales/ar.yml +0 -3
  15. data/config/locales/bg.yml +0 -3
  16. data/config/locales/ca-IT.yml +4 -3
  17. data/config/locales/ca.yml +4 -3
  18. data/config/locales/cs.yml +3 -3
  19. data/config/locales/de.yml +2 -3
  20. data/config/locales/el.yml +0 -3
  21. data/config/locales/en.yml +3 -2
  22. data/config/locales/es-MX.yml +4 -3
  23. data/config/locales/es-PY.yml +4 -3
  24. data/config/locales/es.yml +3 -2
  25. data/config/locales/eu.yml +3 -2
  26. data/config/locales/fi-plain.yml +4 -3
  27. data/config/locales/fi.yml +3 -2
  28. data/config/locales/fr-CA.yml +4 -3
  29. data/config/locales/fr.yml +4 -3
  30. data/config/locales/gl.yml +0 -3
  31. data/config/locales/hu.yml +0 -3
  32. data/config/locales/id-ID.yml +0 -3
  33. data/config/locales/it.yml +0 -3
  34. data/config/locales/ja.yml +3 -2
  35. data/config/locales/lb.yml +0 -3
  36. data/config/locales/lt.yml +0 -3
  37. data/config/locales/lv.yml +0 -3
  38. data/config/locales/nl.yml +0 -3
  39. data/config/locales/no.yml +0 -3
  40. data/config/locales/pl.yml +0 -3
  41. data/config/locales/pt-BR.yml +3 -3
  42. data/config/locales/pt.yml +0 -3
  43. data/config/locales/ro-RO.yml +0 -3
  44. data/config/locales/ru.yml +0 -3
  45. data/config/locales/sk.yml +4 -3
  46. data/config/locales/sv.yml +3 -2
  47. data/config/locales/tr-TR.yml +0 -3
  48. data/config/locales/zh-CN.yml +0 -3
  49. data/config/locales/zh-TW.yml +0 -3
  50. data/decidim-forms.gemspec +6 -8
  51. data/lib/decidim/api/questionnaire_entity_interface.rb +1 -0
  52. data/lib/decidim/forms/download_your_data_user_responses_serializer.rb +1 -0
  53. data/lib/decidim/forms/test/factories.rb +9 -5
  54. data/lib/decidim/forms/test/shared_examples/has_questionnaire.rb +23 -23
  55. data/lib/decidim/forms/test/shared_examples/manage_questionnaires/add_display_conditions.rb +1 -1
  56. data/lib/decidim/forms/test/shared_examples/manage_questionnaires/add_questions.rb +4 -4
  57. data/lib/decidim/forms/test/shared_examples/manage_questionnaires/update_display_conditions.rb +1 -1
  58. data/lib/decidim/forms/test/shared_examples/manage_questionnaires/update_questions.rb +9 -9
  59. data/lib/decidim/forms/version.rb +1 -1
  60. metadata +10 -13
@@ -181,6 +181,7 @@ sk:
181
181
  response:
182
182
  invalid: Pri odpovedaní na formulár sa vyskytol problém.
183
183
  max_choices_alert: Je vybratých príliš veľa možností
184
+ spam_detected: Pri odpovedaní na formulár sa vyskytol problém. Možno ste boli príliš rýchli, môžete to skúsiť znova?
184
185
  success: Formulár bol úspešne vyplnený.
185
186
  show:
186
187
  current_step: Krok %{step}
@@ -189,9 +190,9 @@ sk:
189
190
  questionnaire_closed:
190
191
  body: Formulár je uzavretý a nie je možné naň odpovedať.
191
192
  title: Formulár je uzavretý.
192
- questionnaire_for_private_users:
193
- body: Formulár je otvorený len pre súkromných používateľov
194
- title: Formulár je uzavretý.
193
+ questionnaire_for_members:
194
+ body: Formulár je dostupný len pre členov
195
+ title: Formulár je uzavretý
195
196
  questionnaire_js_disabled:
196
197
  body: Niektoré funkcie tohto formulára budú vypnuté. Pre lepšiu skúsenosť si vo svojom prehliadači povoľte JavaScript.
197
198
  title: JavaScript je vypnutý
@@ -181,6 +181,7 @@ sv:
181
181
  response:
182
182
  invalid: Det gick inte att besvara formuläret.
183
183
  max_choices_alert: Du har valt för många alternativ
184
+ spam_detected: Det gick inte att svara på formuläret. Kanske har du varit för snabb, kan du försöka igen?
184
185
  success: Formuläret har besvarats.
185
186
  show:
186
187
  current_step: Steg %{step}
@@ -189,8 +190,8 @@ sv:
189
190
  questionnaire_closed:
190
191
  body: Formuläret är stängt och kan inte besvaras.
191
192
  title: Formuläret är stängt
192
- questionnaire_for_private_users:
193
- body: Formuläret är endast tillgängligt för privata användare
193
+ questionnaire_for_members:
194
+ body: Formuläret är endast tillgängligt för medlemmar
194
195
  title: Formuläret är stängt
195
196
  questionnaire_js_disabled:
196
197
  body: Vissa av formulärets funktioner kommer att inaktiveras. Aktivera JavaScript i webbläsaren för att förbättra upplevelsen.
@@ -79,9 +79,6 @@ tr:
79
79
  of_total_steps: '%{total_steps}'
80
80
  questionnaire_closed:
81
81
  title: Form kapatıldı
82
- questionnaire_for_private_users:
83
- body: Form yalnızca özel kullanıcılar tarafından kullanılabilir
84
- title: Form kapatıldı
85
82
  questionnaire_js_disabled:
86
83
  body: Bu formun bazı özellikleri devre dışı bırakılacak. Deneyiminizi iyileştirmek için lütfen tarayıcınızda JavaScript'i etkinleştirin.
87
84
  title: JavaScript devre dışı
@@ -77,9 +77,6 @@ zh-CN:
77
77
  of_total_steps: '%{total_steps}'
78
78
  questionnaire_closed:
79
79
  title: 表单已关闭
80
- questionnaire_for_private_users:
81
- body: 表单仅供私人用户使用
82
- title: 表单已关闭
83
80
  questionnaire_js_disabled:
84
81
  body: 此表单的一些功能将被禁用。为了改善您的体验,请在您的浏览器中启用 JavaScript。
85
82
  title: JavaScript 已禁用
@@ -94,9 +94,6 @@ zh-TW:
94
94
  of_total_steps: 的%{total_steps}
95
95
  questionnaire_closed:
96
96
  title: 表單已關閉
97
- questionnaire_for_private_users:
98
- body: 此表單僅適用於私人使用者
99
- title: 表單已關閉
100
97
  questionnaire_js_disabled:
101
98
  body: 此表單的某些功能將被禁用。為了改善您的體驗,請在您的瀏覽器中啟用JavaScript。
102
99
  title: JavaScript已停用
@@ -2,12 +2,10 @@
2
2
 
3
3
  $LOAD_PATH.push File.expand_path("lib", __dir__)
4
4
 
5
- # Maintain your gem's version:
6
- require "decidim/forms/version"
7
-
8
5
  # Describe your gem and declare its dependencies:
9
6
  Gem::Specification.new do |s|
10
- s.version = Decidim::Forms.version
7
+ version = "0.32.0.rc2"
8
+ s.version = version
11
9
  s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva", "Rubén González Valero"]
12
10
  s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com", "rbngzlv@gmail.com"]
13
11
  s.license = "AGPL-3.0-or-later"
@@ -19,7 +17,7 @@ Gem::Specification.new do |s|
19
17
  "homepage_uri" => "https://decidim.org",
20
18
  "source_code_uri" => "https://github.com/decidim/decidim"
21
19
  }
22
- s.required_ruby_version = "~> 3.3.0"
20
+ s.required_ruby_version = "~> 3.4.0"
23
21
 
24
22
  s.name = "decidim-forms"
25
23
  s.summary = "Decidim forms"
@@ -32,8 +30,8 @@ Gem::Specification.new do |s|
32
30
  end
33
31
  end
34
32
 
35
- s.add_dependency "decidim-core", Decidim::Forms.version
33
+ s.add_dependency "decidim-core", version
36
34
 
37
- s.add_development_dependency "decidim-admin", Decidim::Forms.version
38
- s.add_development_dependency "decidim-dev", Decidim::Forms.version
35
+ s.add_development_dependency "decidim-admin", version
36
+ s.add_development_dependency "decidim-dev", version
39
37
  end
@@ -6,6 +6,7 @@ module Decidim
6
6
  # The only requirement is to have an ID and the Type name be the class.name + Type
7
7
  module QuestionnaireEntityInterface
8
8
  include Decidim::Api::Types::BaseInterface
9
+
9
10
  description "An interface that can be used in objects with questionnaires"
10
11
 
11
12
  field :id, GraphQL::Types::ID, "ID of this entity", null: false
@@ -4,6 +4,7 @@ module Decidim
4
4
  module Forms
5
5
  class DownloadYourDataUserResponsesSerializer < Decidim::Exporters::Serializer
6
6
  include Decidim::TranslationsHelper
7
+
7
8
  # Serializes an user response for download your data
8
9
  def serialize
9
10
  {
@@ -117,14 +117,18 @@ FactoryBot.define do
117
117
  end
118
118
 
119
119
  trait :with_response_options do
120
- response_options do
121
- Array.new(3).collect { build(:response_option, skip_injection:) }
120
+ after(:build) do |question, evaluator|
121
+ question.response_options = Array.new(3).collect do
122
+ build(:response_option, question:, skip_injection: evaluator.skip_injection)
123
+ end
122
124
  end
123
125
  end
124
126
 
125
127
  trait :conditioned do
126
- display_conditions do
127
- Array.new(3).collect { build(:display_condition, skip_injection:) }
128
+ after(:build) do |question, evaluator|
129
+ question.display_conditions = Array.new(3).collect do
130
+ build(:display_condition, question:, skip_injection: evaluator.skip_injection)
131
+ end
128
132
  end
129
133
  end
130
134
 
@@ -194,7 +198,7 @@ FactoryBot.define do
194
198
  transient do
195
199
  skip_injection { false }
196
200
  end
197
- condition_question { create(:questionnaire_question, skip_injection:) }
201
+ condition_question { create(:questionnaire_question, questionnaire: question.questionnaire, skip_injection:) }
198
202
  question { create(:questionnaire_question, position: 1, skip_injection:) }
199
203
  condition_type { :responded }
200
204
  mandatory { true }
@@ -53,7 +53,7 @@ shared_examples_for "has questionnaire" do
53
53
  click_on "Submit"
54
54
  end
55
55
 
56
- expect(page).to have_admin_callout(callout_success)
56
+ expect(page).to have_callout(callout_success)
57
57
 
58
58
  visit questionnaire_public_path
59
59
  see_questionnaire_questions
@@ -125,7 +125,7 @@ shared_examples_for "has questionnaire" do
125
125
  check "questionnaire_tos_agreement"
126
126
  accept_confirm { click_on "Submit" }
127
127
 
128
- expect(page).to have_admin_callout(callout_success)
128
+ expect(page).to have_callout(callout_success)
129
129
 
130
130
  visit questionnaire_public_path
131
131
  see_questionnaire_questions
@@ -269,7 +269,7 @@ shared_examples_for "has questionnaire" do
269
269
  end
270
270
 
271
271
  it "submits the form and shows errors" do
272
- expect(page).to have_admin_callout(callout_failure)
272
+ expect(page).to have_callout(callout_failure)
273
273
  expect(page).to have_content("cannot be blank")
274
274
  end
275
275
  end
@@ -283,7 +283,7 @@ shared_examples_for "has questionnaire" do
283
283
 
284
284
  it "submits the form and shows errors" do
285
285
  expect(page).to have_css ".alert.flash"
286
- expect(page).to have_admin_callout(callout_failure)
286
+ expect(page).to have_callout(callout_failure)
287
287
  different_error = I18n.t("decidim.forms.questionnaires.response.max_choices_alert")
288
288
  expect(different_error).to eq("There are too many choices selected")
289
289
  expect(page).to have_no_content(different_error)
@@ -317,7 +317,7 @@ shared_examples_for "has questionnaire" do
317
317
  end
318
318
 
319
319
  it "submits the form and shows errors" do
320
- expect(page).to have_admin_callout(callout_failure)
320
+ expect(page).to have_callout(callout_failure)
321
321
  expect(page).to have_content("cannot be blank")
322
322
  end
323
323
  end
@@ -391,7 +391,7 @@ shared_examples_for "has questionnaire" do
391
391
  check "questionnaire_tos_agreement"
392
392
  accept_confirm { click_on "Submit" }
393
393
 
394
- expect(page).to have_admin_callout(callout_success)
394
+ expect(page).to have_callout(callout_success)
395
395
  expect(Decidim::Forms::Response.first.choices.first.custom_body).to eq("Cacatua")
396
396
  end
397
397
 
@@ -406,7 +406,7 @@ shared_examples_for "has questionnaire" do
406
406
  check "questionnaire_tos_agreement"
407
407
  accept_confirm { click_on "Submit" }
408
408
 
409
- expect(page).to have_admin_callout("There was a problem responding")
409
+ expect(page).to have_callout("There was a problem responding")
410
410
  expect(page).to have_field("questionnaire_responses_0_choices_2_custom_body", with: "Cacatua")
411
411
  end
412
412
 
@@ -433,7 +433,7 @@ shared_examples_for "has questionnaire" do
433
433
  check "questionnaire_tos_agreement"
434
434
  accept_confirm { click_on "Submit" }
435
435
 
436
- expect(page).to have_admin_callout(callout_success)
436
+ expect(page).to have_callout(callout_success)
437
437
  expect(Decidim::Forms::Response.first.choices.first.custom_body).to eq("Cacatua")
438
438
  end
439
439
 
@@ -448,7 +448,7 @@ shared_examples_for "has questionnaire" do
448
448
  check "questionnaire_tos_agreement"
449
449
  accept_confirm { click_on "Submit" }
450
450
 
451
- expect(page).to have_admin_callout("There was a problem responding")
451
+ expect(page).to have_callout("There was a problem responding")
452
452
  expect(page).to have_field("questionnaire_responses_0_choices_2_custom_body", with: "Cacatua")
453
453
  end
454
454
 
@@ -500,7 +500,7 @@ shared_examples_for "has questionnaire" do
500
500
 
501
501
  accept_confirm { click_on "Submit" }
502
502
 
503
- expect(page).to have_admin_callout(callout_success)
503
+ expect(page).to have_callout(callout_success)
504
504
 
505
505
  visit questionnaire_public_path
506
506
  see_questionnaire_questions
@@ -529,7 +529,7 @@ shared_examples_for "has questionnaire" do
529
529
 
530
530
  accept_confirm { click_on "Submit" }
531
531
 
532
- expect(page).to have_admin_callout(callout_success)
532
+ expect(page).to have_callout(callout_success)
533
533
 
534
534
  visit questionnaire_public_path
535
535
  see_questionnaire_questions
@@ -556,14 +556,14 @@ shared_examples_for "has questionnaire" do
556
556
 
557
557
  accept_confirm { click_on "Submit" }
558
558
 
559
- expect(page).to have_admin_callout("There was a problem responding")
559
+ expect(page).to have_callout("There was a problem responding")
560
560
  expect(page).to have_content("are too many")
561
561
 
562
562
  uncheck response_options[2]["body"][:en]
563
563
 
564
564
  accept_confirm { click_on "Submit" }
565
565
 
566
- expect(page).to have_admin_callout(callout_success)
566
+ expect(page).to have_callout(callout_success)
567
567
  end
568
568
  end
569
569
 
@@ -606,7 +606,7 @@ shared_examples_for "has questionnaire" do
606
606
 
607
607
  accept_confirm { click_on "Submit" }
608
608
 
609
- expect(page).to have_admin_callout(callout_success)
609
+ expect(page).to have_callout(callout_success)
610
610
  expect(Decidim::Forms::Response.first.choices.pluck(:position, :body)).to eq(
611
611
  [[0, "We"], [1, "all"], [2, "like"], [3, "dark"], [4, "chocolate"]]
612
612
  )
@@ -647,7 +647,7 @@ shared_examples_for "has questionnaire" do
647
647
 
648
648
  accept_confirm { click_on "Submit" }
649
649
 
650
- expect(page).to have_admin_callout(callout_success)
650
+ expect(page).to have_callout(callout_success)
651
651
 
652
652
  visit questionnaire_public_path
653
653
  see_questionnaire_questions
@@ -670,7 +670,7 @@ shared_examples_for "has questionnaire" do
670
670
 
671
671
  accept_confirm { click_on "Submit" }
672
672
 
673
- expect(page).to have_admin_callout("There was a problem responding")
673
+ expect(page).to have_callout("There was a problem responding")
674
674
 
675
675
  radio_buttons = page.all(".js-radio-button-collection input[type=radio]")
676
676
  expect(radio_buttons.pluck(:checked)).to eq([nil, "true", nil, nil])
@@ -689,7 +689,7 @@ shared_examples_for "has questionnaire" do
689
689
  check "questionnaire_tos_agreement"
690
690
  accept_confirm { click_on "Submit" }
691
691
 
692
- expect(page).to have_admin_callout("There was a problem responding")
692
+ expect(page).to have_callout("There was a problem responding")
693
693
  expect(page).to have_content("Choices are not complete")
694
694
  end
695
695
  end
@@ -732,7 +732,7 @@ shared_examples_for "has questionnaire" do
732
732
 
733
733
  accept_confirm { click_on "Submit" }
734
734
 
735
- expect(page).to have_admin_callout(callout_success)
735
+ expect(page).to have_callout(callout_success)
736
736
 
737
737
  visit questionnaire_public_path
738
738
  see_questionnaire_questions
@@ -779,7 +779,7 @@ shared_examples_for "has questionnaire" do
779
779
 
780
780
  accept_confirm { click_on "Submit" }
781
781
 
782
- expect(page).to have_admin_callout("There was a problem responding")
782
+ expect(page).to have_callout("There was a problem responding")
783
783
  expect(page).to have_content("are too many")
784
784
 
785
785
  checkboxes = page.all(".js-check-box-collection input[type=checkbox]")
@@ -788,7 +788,7 @@ shared_examples_for "has questionnaire" do
788
788
 
789
789
  accept_confirm { click_on "Submit" }
790
790
 
791
- expect(page).to have_admin_callout(callout_success)
791
+ expect(page).to have_callout(callout_success)
792
792
  end
793
793
  end
794
794
 
@@ -805,7 +805,7 @@ shared_examples_for "has questionnaire" do
805
805
  check "questionnaire_tos_agreement"
806
806
  accept_confirm { click_on "Submit" }
807
807
 
808
- expect(page).to have_admin_callout("There was a problem responding")
808
+ expect(page).to have_callout("There was a problem responding")
809
809
  expect(page).to have_content("Choices are not complete")
810
810
  end
811
811
  end
@@ -826,7 +826,7 @@ shared_examples_for "has questionnaire" do
826
826
  check "questionnaire_tos_agreement"
827
827
  accept_confirm { click_on "Submit" }
828
828
 
829
- expect(page).to have_admin_callout("There was a problem responding")
829
+ expect(page).to have_callout("There was a problem responding")
830
830
 
831
831
  checkboxes = page.all(".js-check-box-collection input[type=checkbox]")
832
832
  expect(checkboxes.pluck(:checked)).to eq(["true", "true", "true", nil, nil, "true"])
@@ -1373,7 +1373,7 @@ shared_examples_for "has questionnaire" do
1373
1373
 
1374
1374
  accept_confirm { click_on "Submit" }
1375
1375
 
1376
- expect(page).to have_admin_callout(callout_success)
1376
+ expect(page).to have_callout(callout_success)
1377
1377
  end
1378
1378
  end
1379
1379
  end
@@ -173,7 +173,7 @@ shared_examples_for "add display conditions" do
173
173
 
174
174
  click_on "Save"
175
175
 
176
- expect(page).to have_admin_callout("successfully")
176
+ expect(page).to have_callout(callout_success)
177
177
  end
178
178
  end
179
179
  end
@@ -54,7 +54,7 @@ shared_examples_for "add questions" do
54
54
 
55
55
  click_on "Save"
56
56
 
57
- expect(page).to have_admin_callout("successfully")
57
+ expect(page).to have_callout(callout_success)
58
58
 
59
59
  visit_manage_questions_and_expand_all
60
60
 
@@ -76,7 +76,7 @@ shared_examples_for "add questions" do
76
76
 
77
77
  click_on "Save"
78
78
 
79
- expect(page).to have_admin_callout("successfully")
79
+ expect(page).to have_callout(callout_success)
80
80
 
81
81
  update_component_settings_or_attributes
82
82
 
@@ -98,7 +98,7 @@ shared_examples_for "add questions" do
98
98
 
99
99
  click_on "Save"
100
100
 
101
- expect(page).to have_admin_callout("successfully")
101
+ expect(page).to have_callout(callout_success)
102
102
 
103
103
  update_component_settings_or_attributes
104
104
 
@@ -152,7 +152,7 @@ shared_examples_for "add questions" do
152
152
 
153
153
  click_on "Save"
154
154
 
155
- expect(page).to have_admin_callout("successfully")
155
+ expect(page).to have_callout(callout_success)
156
156
 
157
157
  visit_manage_questions_and_expand_all
158
158
 
@@ -80,7 +80,7 @@ shared_examples_for "update display conditions" do
80
80
 
81
81
  click_on "Save"
82
82
 
83
- expect(page).to have_admin_callout("successfully")
83
+ expect(page).to have_callout(callout_success)
84
84
 
85
85
  visit_manage_questions_and_expand_all
86
86
 
@@ -21,7 +21,7 @@ shared_examples_for "update questions" do
21
21
 
22
22
  click_on "Save"
23
23
 
24
- expect(page).to have_admin_callout("successfully")
24
+ expect(page).to have_callout(callout_success)
25
25
 
26
26
  visit_manage_questions_and_expand_all
27
27
 
@@ -47,7 +47,7 @@ shared_examples_for "update questions" do
47
47
  click_on "Save"
48
48
  click_on "Expand all questions"
49
49
 
50
- expect(page).to have_admin_callout("There was a problem saving")
50
+ expect(page).to have_callout(callout_failure)
51
51
  expect(page).to have_content("cannot be blank", count: 5)
52
52
  expect(page).to have_content("must be greater than or equal to 0", count: 1)
53
53
 
@@ -83,7 +83,7 @@ shared_examples_for "update questions" do
83
83
 
84
84
  click_on "Save"
85
85
 
86
- expect(page).to have_admin_callout("successfully")
86
+ expect(page).to have_callout(callout_success)
87
87
 
88
88
  click_on "Questions"
89
89
 
@@ -118,7 +118,7 @@ shared_examples_for "update questions" do
118
118
 
119
119
  click_on "Save"
120
120
 
121
- expect(page).to have_admin_callout("successfully")
121
+ expect(page).to have_callout(callout_success)
122
122
 
123
123
  visit_manage_questions_and_expand_all
124
124
 
@@ -137,7 +137,7 @@ shared_examples_for "update questions" do
137
137
 
138
138
  expand_all_questions
139
139
 
140
- expect(page).to have_admin_callout("There was a problem saving")
140
+ expect(page).to have_callout(callout_failure)
141
141
  expect(page).to have_content("cannot be blank", count: 1)
142
142
  expect(page).to have_css("input[value='']")
143
143
  expect(page).to have_no_css("input[value='This is the first title and description']")
@@ -167,7 +167,7 @@ shared_examples_for "update questions" do
167
167
 
168
168
  click_on "Save"
169
169
 
170
- expect(page).to have_admin_callout("successfully")
170
+ expect(page).to have_callout(callout_success)
171
171
 
172
172
  click_on "Questions"
173
173
 
@@ -237,7 +237,7 @@ shared_examples_for "update questions" do
237
237
 
238
238
  click_on "Save"
239
239
 
240
- expect(page).to have_admin_callout("successfully")
240
+ expect(page).to have_callout(callout_success)
241
241
 
242
242
  visit_manage_questions_and_expand_all
243
243
 
@@ -300,7 +300,7 @@ shared_examples_for "update questions" do
300
300
 
301
301
  click_on "Save"
302
302
 
303
- expect(page).to have_admin_callout("successfully")
303
+ expect(page).to have_callout(callout_success)
304
304
 
305
305
  visit_manage_questions_and_expand_all
306
306
 
@@ -592,7 +592,7 @@ shared_examples_for "update questions" do
592
592
  sleep 0.5
593
593
 
594
594
  click_on "Save"
595
- expect(page).to have_admin_callout("successfully")
595
+ expect(page).to have_callout(callout_success)
596
596
 
597
597
  visit_manage_questions_and_expand_all
598
598
 
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-forms version.
5
5
  module Forms
6
6
  def self.version
7
- "0.31.5"
7
+ "0.32.0.rc2"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,17 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.5
4
+ version: 0.32.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
8
8
  - Marc Riera Casals
9
9
  - Oriol Gual Oliva
10
10
  - Rubén González Valero
11
- autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2026-05-12 00:00:00.000000000 Z
13
+ date: 1980-01-02 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: decidim-core
@@ -19,42 +18,42 @@ dependencies:
19
18
  requirements:
20
19
  - - '='
21
20
  - !ruby/object:Gem::Version
22
- version: 0.31.5
21
+ version: 0.32.0.rc2
23
22
  type: :runtime
24
23
  prerelease: false
25
24
  version_requirements: !ruby/object:Gem::Requirement
26
25
  requirements:
27
26
  - - '='
28
27
  - !ruby/object:Gem::Version
29
- version: 0.31.5
28
+ version: 0.32.0.rc2
30
29
  - !ruby/object:Gem::Dependency
31
30
  name: decidim-admin
32
31
  requirement: !ruby/object:Gem::Requirement
33
32
  requirements:
34
33
  - - '='
35
34
  - !ruby/object:Gem::Version
36
- version: 0.31.5
35
+ version: 0.32.0.rc2
37
36
  type: :development
38
37
  prerelease: false
39
38
  version_requirements: !ruby/object:Gem::Requirement
40
39
  requirements:
41
40
  - - '='
42
41
  - !ruby/object:Gem::Version
43
- version: 0.31.5
42
+ version: 0.32.0.rc2
44
43
  - !ruby/object:Gem::Dependency
45
44
  name: decidim-dev
46
45
  requirement: !ruby/object:Gem::Requirement
47
46
  requirements:
48
47
  - - '='
49
48
  - !ruby/object:Gem::Version
50
- version: 0.31.5
49
+ version: 0.32.0.rc2
51
50
  type: :development
52
51
  prerelease: false
53
52
  version_requirements: !ruby/object:Gem::Requirement
54
53
  requirements:
55
54
  - - '='
56
55
  - !ruby/object:Gem::Version
57
- version: 0.31.5
56
+ version: 0.32.0.rc2
58
57
  description: A forms gem for decidim.
59
58
  email:
60
59
  - josepjaume@gmail.com
@@ -300,7 +299,6 @@ metadata:
300
299
  funding_uri: https://opencollective.com/decidim
301
300
  homepage_uri: https://decidim.org
302
301
  source_code_uri: https://github.com/decidim/decidim
303
- post_install_message:
304
302
  rdoc_options: []
305
303
  require_paths:
306
304
  - lib
@@ -308,15 +306,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
308
306
  requirements:
309
307
  - - "~>"
310
308
  - !ruby/object:Gem::Version
311
- version: 3.3.0
309
+ version: 3.4.0
312
310
  required_rubygems_version: !ruby/object:Gem::Requirement
313
311
  requirements:
314
312
  - - ">="
315
313
  - !ruby/object:Gem::Version
316
314
  version: '0'
317
315
  requirements: []
318
- rubygems_version: 3.5.11
319
- signing_key:
316
+ rubygems_version: 3.6.9
320
317
  specification_version: 4
321
318
  summary: Decidim forms
322
319
  test_files: []