decidim-dev 0.27.6 → 0.28.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/app/commands/decidim/dummy_resources/create_dummy_resource.rb +0 -1
  3. data/app/events/decidim/dummy_resources/dummy_resource_event.rb +10 -0
  4. data/app/jobs/decidim/dummy_resources/hide_all_created_by_author_job.rb +13 -0
  5. data/app/models/decidim/dummy_resources/application_record.rb +9 -0
  6. data/app/models/decidim/dummy_resources/coauthorable_dummy_resource.rb +10 -0
  7. data/app/models/decidim/dummy_resources/dummy_resource.rb +93 -0
  8. data/app/models/decidim/dummy_resources/nested_dummy_resource.rb +10 -0
  9. data/app/packs/src/decidim/dev/accessibility.js +3 -3
  10. data/app/packs/src/decidim/dev/test/custom_map_factory.js +1 -1
  11. data/app/packs/stylesheets/decidim/dev/_accessibility.scss +24 -24
  12. data/app/packs/stylesheets/decidim/dev/_map.scss +10 -0
  13. data/app/packs/stylesheets/decidim/dev.scss +1 -0
  14. data/app/presenters/decidim/dummy_resources/official_author_presenter.rb +33 -0
  15. data/app/serializers/decidim/dummy_resources/dummy_serializer.rb +21 -0
  16. data/app/views/decidim/dummy_resources/dummy_resources/show.html.erb +22 -12
  17. data/config/locales/ar.yml +0 -1
  18. data/config/locales/bg.yml +0 -1
  19. data/config/locales/de.yml +1 -1
  20. data/config/locales/el.yml +0 -1
  21. data/config/locales/en.yml +1 -1
  22. data/config/locales/es-MX.yml +1 -1
  23. data/config/locales/es-PY.yml +1 -1
  24. data/config/locales/eu.yml +3 -3
  25. data/config/locales/gl.yml +0 -1
  26. data/config/locales/hu.yml +2 -3
  27. data/config/locales/id-ID.yml +0 -1
  28. data/config/locales/it.yml +0 -1
  29. data/config/locales/lv.yml +0 -1
  30. data/config/locales/nl.yml +0 -1
  31. data/config/locales/no.yml +0 -1
  32. data/config/locales/pl.yml +0 -9
  33. data/config/locales/pt-BR.yml +0 -9
  34. data/config/locales/pt.yml +0 -1
  35. data/config/locales/ru.yml +0 -1
  36. data/config/locales/sk.yml +0 -1
  37. data/config/locales/sv.yml +0 -1
  38. data/config/locales/tr-TR.yml +0 -1
  39. data/config/locales/zh-CN.yml +0 -1
  40. data/config/rubocop/disabled.yml +11 -0
  41. data/config/rubocop/faker.yml +480 -0
  42. data/config/rubocop/rails.yml +105 -0
  43. data/config/rubocop/rspec.yml +69 -0
  44. data/config/rubocop/ruby.yml +1207 -0
  45. data/lib/decidim/dev/assets/import_participatory_space_private_users.csv +2 -2
  46. data/lib/decidim/dev/assets/import_participatory_space_private_users_invalid_col_sep.csv +2 -0
  47. data/lib/decidim/dev/assets/import_participatory_space_private_users_nok.csv +2 -2
  48. data/lib/decidim/dev/assets/import_participatory_space_private_users_with_bom.csv +1 -1
  49. data/lib/decidim/dev/assets/iso-8859-15.md +1 -1
  50. data/lib/decidim/dev/assets/participatory_text.md +4 -2
  51. data/lib/decidim/dev/assets/verify_user_groups.csv +22 -22
  52. data/lib/decidim/dev/engine.rb +4 -3
  53. data/lib/decidim/dev/test/factories.rb +3 -5
  54. data/lib/decidim/dev/test/form_to_param_shared_examples.rb +1 -1
  55. data/lib/decidim/dev/test/promoted_participatory_processes_shared_examples.rb +9 -9
  56. data/lib/decidim/dev/test/rspec_support/accessibility_examples.rb +119 -1
  57. data/lib/decidim/dev/test/rspec_support/attachment_helpers.rb +2 -2
  58. data/lib/decidim/dev/test/rspec_support/bullet.rb +32 -0
  59. data/lib/decidim/dev/test/rspec_support/capybara.rb +26 -25
  60. data/lib/decidim/dev/test/rspec_support/cell_matchers.rb +1 -1
  61. data/lib/decidim/dev/test/rspec_support/component.rb +1 -311
  62. data/lib/decidim/dev/test/rspec_support/component_context.rb +10 -10
  63. data/lib/decidim/dev/test/rspec_support/confirmation_helpers.rb +18 -14
  64. data/lib/decidim/dev/test/rspec_support/data_consent.rb +2 -2
  65. data/lib/decidim/dev/test/rspec_support/dynamic_attach.rb +19 -4
  66. data/lib/decidim/dev/test/rspec_support/editor_context.rb +35 -0
  67. data/lib/decidim/dev/test/rspec_support/engine_examples.rb +15 -0
  68. data/lib/decidim/dev/test/rspec_support/filters.rb +11 -0
  69. data/lib/decidim/dev/test/rspec_support/forms_validations.rb +20 -0
  70. data/lib/decidim/dev/test/rspec_support/geocoder.rb +3 -3
  71. data/lib/decidim/dev/test/rspec_support/helpers.rb +187 -34
  72. data/lib/decidim/dev/test/rspec_support/imports_controller_shared_examples.rb +11 -11
  73. data/lib/decidim/dev/test/rspec_support/tom_select.rb +26 -0
  74. data/lib/decidim/dev/test/rspec_support/translation_helpers.rb +8 -8
  75. data/lib/decidim/dev/test/rspec_support/warden.rb +1 -1
  76. data/lib/decidim/dev/test/rspec_support/webpacker.rb +4 -22
  77. data/lib/decidim/dev/test/spec_helper.rb +14 -3
  78. data/lib/decidim/dev/test/w3c_rspec_validators_overrides.rb +1 -5
  79. data/lib/decidim/dev/version.rb +1 -1
  80. data/lib/decidim/dev.rb +9 -0
  81. data/lib/decidim/dummy_resources/admin.rb +8 -0
  82. data/lib/decidim/dummy_resources/admin_engine.rb +43 -0
  83. data/lib/decidim/dummy_resources/component.rb +94 -0
  84. data/lib/decidim/dummy_resources/engine.rb +28 -0
  85. data/lib/decidim/dummy_resources.rb +20 -0
  86. data/lib/tasks/lighthouse_report.rake +29 -7
  87. data/rubocop-decidim.yml +13 -0
  88. metadata +122 -70
  89. data/config/locales/he-IL.yml +0 -1
  90. data/decidim-dev.gemspec +0 -56
  91. data/lib/decidim/dev/test/rspec_support/capybara_data_picker.rb +0 -36
  92. data/lib/decidim/dev/test/rspec_support/capybara_scopes_picker.rb +0 -92
  93. data/lib/decidim/dev/test/rspec_support/concurrency.rb +0 -23
  94. data/lib/decidim/dev/test/rspec_support/decidim_sanitization.rb +0 -5
@@ -0,0 +1,69 @@
1
+ require: rubocop-rspec
2
+
3
+ # RSpec:
4
+ # Patterns:
5
+ # - "(?:^|/)spec/"
6
+ # - "(?:^|/)test/"
7
+
8
+ RSpec/BeforeAfterAll:
9
+ Enabled: true
10
+
11
+ RSpec/ContextWording:
12
+ Enabled: true
13
+ Prefixes:
14
+ - when
15
+ - with
16
+ - without
17
+ - and
18
+
19
+ RSpec/DescribeClass:
20
+ Exclude:
21
+ - spec/gemfiles_spec.rb
22
+ - spec/webpacker_spec.rb
23
+ - spec/version_files_spec.rb
24
+ - spec/spellcheck_spec.rb
25
+ - spec/i18n_spec.rb
26
+ - "**/*/spec/**/*_badge_spec.rb"
27
+ - "**/tasks/**/*"
28
+
29
+ RSpec/ExampleLength:
30
+ Max: 49
31
+
32
+ RSpec/ExpectInHook:
33
+ Enabled: false
34
+
35
+ RSpec/IteratedExpectation:
36
+ Enabled: true
37
+
38
+ RSpec/LetSetup:
39
+ Enabled: false
40
+
41
+ RSpec/MessageSpies:
42
+ Enabled: false
43
+
44
+ RSpec/MultipleExpectations:
45
+ Enabled: false
46
+
47
+ RSpec/MultipleMemoizedHelpers:
48
+ Max: 35
49
+
50
+ RSpec/NestedGroups:
51
+ Max: 7
52
+
53
+ RSpec/NamedSubject:
54
+ Enabled: false
55
+
56
+ RSpec/RepeatedExampleGroupDescription:
57
+ Enabled: true
58
+
59
+ RSpec/RepeatedExampleGroupBody:
60
+ Enabled: true
61
+
62
+ RSpec/VerifiedDoubles:
63
+ Enabled: false
64
+
65
+ RSpec/LeakyConstantDeclaration:
66
+ Enabled: false
67
+
68
+ RSpec/DescribedClass:
69
+ Enabled: false