decidim-decidim_awesome 0.13.1 → 0.13.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea1d742ed0d0071cd93cd52b08d6756e5797eea246f5eb8e27c7d9a91d8a5a23
4
- data.tar.gz: bb011c398f7d9c878e968eb36d36e88ce9ca3ce49ecf7c88633f6b244d4f9eda
3
+ metadata.gz: 45bd6d8ee135814c6d6793fd9a7815135c368dd3b673b051f6510ee7b6a6dfaa
4
+ data.tar.gz: 569c4070b6a29ca0fc8f3931c3587066350f464d6eba1201945f6b3f2893d287
5
5
  SHA512:
6
- metadata.gz: a86de09cbead024b599913d5bd8fc84da6dad87561862a0b5700ed281b58307fe3561c9c9316ae75e45390257b92c7baafe537d3583517b3468262e3bd387247
7
- data.tar.gz: f04b4d49541ff525a417cc4eccf2a64e4876b9c9b703c45a34310dc1a5bdf34649870430a1d3b6f44f1dcea26474a97ae73b725ae9e0babe2d459c044c0393dc
6
+ metadata.gz: '08f5693c4ac60377a7a29f6ebb682b34b181a76ca04c9a129d291fba05ebb77ac8e5375c354bb11712ded72ef5e788bc7668651edbb60bbbb4b03af65d0846a9'
7
+ data.tar.gz: 714337d887878045f4948322e40565af801fb9882515c507427cbe0b1997b49179636f8b4a4411a90548124490cd5b0b8fd9127636f70e2256514e5e2155deac
data/CHANGELOG.md CHANGED
@@ -1,6 +1,17 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ v0.13.2
5
+ -------
6
+
7
+ Compatibility:
8
+ - Decidim 0.30.x
9
+
10
+ Fixes:
11
+ - Fix changing locale when Hashcash is active. Make Hashcash respond only to session & registration controllers.
12
+ - Fix crash when non-installed modules in system checker.
13
+ - Fix some variables not respecting the context where configured (auto_save_forms, validate_caps, etc)
14
+
4
15
  v0.13.1
5
16
  -------
6
17
 
@@ -30,6 +30,7 @@ module Decidim
30
30
 
31
31
  # Dynamically configures the gem https://github.com/BaseSecrete/active_hashcash
32
32
  def set_hashcash_bits
33
+ return unless %w(registrations sessions).include?(controller_name)
33
34
  return if user_signed_in?
34
35
 
35
36
  ActiveHashcash.bits = if controller_name == "registrations"
@@ -79,7 +79,7 @@ module Decidim
79
79
  position: item.position,
80
80
  target: item.try(:target),
81
81
  visibility: item.try(:visibility),
82
- native?: !item.respond_to?(:overrided?)
82
+ native?: !item.respond_to?(:overridden?)
83
83
  )
84
84
  end
85
85
 
@@ -11,11 +11,11 @@ module Decidim
11
11
  end
12
12
 
13
13
  def minimum_title_length
14
- awesome_config.config[:validate_title_min_length].to_i
14
+ awesome_config.config[:validate_title_min_length].nil? ? awesome_config.defaults[:validate_title_min_length].to_i : awesome_config.config[:validate_title_min_length].to_i
15
15
  end
16
16
 
17
17
  def minimum_body_length
18
- awesome_config.config[:validate_body_min_length].to_i
18
+ awesome_config.config[:validate_body_min_length].nil? ? awesome_config.defaults[:validate_body_min_length].to_i : awesome_config.config[:validate_body_min_length].to_i
19
19
  end
20
20
 
21
21
  def custom_fields
@@ -32,9 +32,7 @@ document.addEventListener("DOMContentLoaded", () => {
32
32
  // '[type="hidden"]',
33
33
  '[name="utf8"]',
34
34
  '[name="authenticity_token"]',
35
- "[disabled]",
36
- // there are problems with matrix questions
37
- '[type="checkbox"]'
35
+ "[disabled]"
38
36
  ]
39
37
  });
40
38
 
@@ -25,7 +25,7 @@ module Decidim
25
25
  end
26
26
 
27
27
  def hacked_not_overriding?
28
- !(@menu_item.is_a?(Decidim::MenuItem) || @menu_item.overrided?)
28
+ !(@menu_item.is_a?(Decidim::MenuItem) || @menu_item.overridden?)
29
29
  end
30
30
  end
31
31
  end
@@ -14,9 +14,14 @@ module Decidim
14
14
 
15
15
  def validate_caps(record, attribute, value)
16
16
  awesome_config = awesome_config(record, "validate_#{attribute_without_locale(attribute)}_max_caps_percent")
17
- return original_validate_caps(record, attribute, value) if awesome_config.nil?
18
17
 
19
- percent = awesome_config.to_f
18
+ # original method does not take into account accents or anything else than A-Z
19
+ # return original_validate_caps_first(record, attribute, value) if awesome_config.nil?
20
+ percent = if awesome_config.nil?
21
+ 50
22
+ else
23
+ awesome_config.to_f
24
+ end
20
25
  return if value.scan(/[[:upper:]]/).length < value.length * percent / 100
21
26
 
22
27
  record.errors.add(attribute, options[:message] || I18n.t("too_much_caps", scope: "decidim.decidim_awesome.validators", percent: percent.round))
@@ -24,9 +29,12 @@ module Decidim
24
29
 
25
30
  def validate_marks(record, attribute, value)
26
31
  awesome_config = awesome_config(record, "validate_#{attribute_without_locale(attribute)}_max_marks_together")
27
- return original_validate_marks(record, attribute, value) if awesome_config.nil?
28
32
 
29
- marks = awesome_config.to_i + 1
33
+ marks = if awesome_config.nil?
34
+ 2
35
+ else
36
+ awesome_config.to_i + 1
37
+ end
30
38
  return if value.scan(/[!?¡¿]{#{marks},}/).empty?
31
39
 
32
40
  record.errors.add(attribute, options[:message] || :too_many_marks)
@@ -34,18 +42,21 @@ module Decidim
34
42
 
35
43
  def validate_caps_first(record, attribute, value)
36
44
  awesome_config = awesome_config(record, "validate_#{attribute_without_locale(attribute)}_start_with_caps")
37
- return original_validate_caps_first(record, attribute, value) if awesome_config.nil?
38
- return unless awesome_config
45
+
46
+ # original method does not take into account accents or anything else than A-Z
47
+ # return original_validate_caps_first(record, attribute, value) if awesome_config.nil?
48
+ return unless awesome_config || awesome_config.nil?
39
49
  return if value.scan(/\A[[:lower:]]{1}/).empty?
40
50
 
41
51
  record.errors.add(attribute, options[:message] || :must_start_with_caps)
42
52
  end
43
53
 
44
- def awesome_config(record, var)
45
- config = record.try(:awesome_config)&.config
46
- return unless config.is_a?(Hash)
54
+ def record_awesome_config(record)
55
+ record.try(:awesome_config)
56
+ end
47
57
 
48
- config[var.to_sym]
58
+ def awesome_config(record, var)
59
+ record_awesome_config(record)&.config&.[](var.to_sym)
49
60
  end
50
61
 
51
62
  def attribute_without_locale(attribute)
@@ -1,3 +1,4 @@
1
+ <% with_override = defined?(with_override) && with_override %>
1
2
  <div class="form-defaults">
2
3
  <%= callout if defined?(callout) %>
3
4
  <%= decidim_form_for(handler,
@@ -7,14 +8,14 @@
7
8
  method: :patch,
8
9
  remote: true) do |form| %>
9
10
  <% if lookup_context.exists?(handler.to_partial_path, [], true) %>
10
- <%= render partial: handler.to_partial_path, locals: { handler:, form: } %>
11
+ <%= render partial: handler.to_partial_path, locals: { handler:, form:, with_override: } %>
11
12
  <% else %>
12
13
  <div class="form__wrapper">
13
14
  <%= form.all_fields %>
14
15
  </div>
15
16
  <% end %>
16
17
 
17
- <% if defined?(with_override) %>
18
+ <% if with_override %>
18
19
  <div class="form__wrapper flash alert">
19
20
  <label class="flex-col">
20
21
  <div class="flash__title">
@@ -18,7 +18,7 @@
18
18
  </thead>
19
19
  <tbody>
20
20
  <% current_items.each do |item| %>
21
- <tr<%= " class=menu_hack-addition" if item.try(:overrided?) == false %>>
21
+ <tr<%= " class=menu_hack-addition" if item.try(:overridden?) == false %>>
22
22
  <td><%= item.label %></td>
23
23
  <td><%= item.url %></td>
24
24
  <td><%= item.position %></td>
@@ -26,8 +26,8 @@
26
26
  <td><%= visibility_options.invert[item.try(:visibility)] %></td>
27
27
  <td class="table-list__actions">
28
28
  <%= icon_link_to "pencil-line", decidim_admin_decidim_awesome.edit_menu_hack_path(params[:menu_id], md5(item.url)), t(".edit"), class: "action-icon--edit" %>
29
- <% if item.respond_to?(:overrided?) %>
30
- <%= icon_link_to "close-circle-line", decidim_admin_decidim_awesome.menu_hack_path(params[:menu_id], md5(item.url)), t(".remove#{"_hack" if item.overrided?}"), method: :delete, class: "action-icon--remove", data: { confirm: t(".confirm_destroy") } %>
29
+ <% if item.respond_to?(:overridden?) %>
30
+ <%= icon_link_to "close-circle-line", decidim_admin_decidim_awesome.menu_hack_path(params[:menu_id], md5(item.url)), t(".remove#{"_hack" if item.overridden?}"), method: :delete, class: "action-icon--remove", data: { confirm: t(".confirm_destroy") } %>
31
31
  <% else %>
32
32
  <span class="action-icon">
33
33
  <%= icon "close-circle-line", class: "action-icon action-icon--disabled", role: "img" %>
@@ -16,10 +16,9 @@ decidim-core:
16
16
  /app/packs/src/decidim/editor/index.js:
17
17
  decidim-0.29.1: 90dfac3acae97202dec083955e2249e4
18
18
  /app/validators/etiquette_validator.rb:
19
- decidim-0.29.1: e9ad91d824ad48ac2075a088a0d21349
20
19
  decidim-0.30.0: 7a1d9f32067ca169610d4c03b97d7b0d
20
+ decidim-0.30.3: 54f12abecc86eb793f66f5901459db53
21
21
  /app/views/layouts/decidim/_head.html.erb:
22
- decidim-0.29.1: 8ac1af4e223d9a7a98136760b6194a75
23
22
  decidim-0.29.2: 59abccd8b1c5315d5c0b772be0c26d45
24
23
  /app/views/layouts/decidim/_decidim_javascript.html.erb:
25
24
  decidim-0.29.1: 8d51790de859ee66f305d9111cdfb324
@@ -28,90 +27,61 @@ decidim-core:
28
27
  /app/presenters/decidim/menu_item_presenter.rb:
29
28
  decidim-0.29.1: f04f0f5112499a86079119d5f9ae8487
30
29
  /app/helpers/decidim/amendments_helper.rb:
31
- decidim-0.29.1: 36072334cba7a58841a6b2fb007d24a6
32
30
  decidim-0.30.0: 30791e6637dedd413cdc037206726c2f
31
+ decidim-0.30.2: 72d550111269a0f2bd25e8a4ec5c9b51
33
32
  /app/presenters/decidim/admin_log/component_presenter.rb:
34
- decidim-0.29.1: 77e80d527727acdf117a0c4517a69a7c
35
33
  decidim-0.30.0: 0bfbd6771f52884a224f8e947ab15839
36
34
  /app/forms/decidim/account_form.rb:
37
- decidim-0.29.1: 11a022ae6ae18ad89da168bec4207935
38
35
  decidim-0.29.3: 5872f17965919c0754a453ac4eb614df
39
36
  /app/commands/decidim/update_account.rb:
40
- decidim-0.29.1: d24090fdd9358c38e6e15c4607a78e18
41
37
  decidim-0.30.0: f6c1fbdfd2e2c38bd9b6a43b335df975
42
38
  /app/views/decidim/account/show.html.erb:
43
39
  decidim-0.29.1: f13218e2358a2d611996c2a197c0de25
44
40
  /app/cells/decidim/content_blocks/global_menu_cell.rb:
45
41
  decidim-0.28.0: d224370c364a9cf4b2e244063274e5ef
46
42
  /app/views/decidim/devise/registrations/new.html.erb:
47
- decidim-0.29.1: b30423406afd43bb9af2c98d59d43632
48
43
  decidim-0.30.0: 56884184f7f1582828a77fbeff2bb546
49
44
  /app/views/decidim/devise/sessions/new.html.erb:
50
- decidim-0.29.1: a8fe60cd10c1636822c252d5488a979d
51
45
  decidim-0.30.0: da0d18178c8dcead2774956e989527c5
52
46
  /app/views/decidim/shared/_login_modal.html.erb:
53
- decidim-0.29.1: 0d615603bb45f7b209032578dda9fc72
54
47
  decidim-0.30.0: 98bd2832be207d7abcd48d2a0ba40bd0
55
48
  decidim-proposals:
56
49
  /lib/decidim/proposals/proposal_serializer.rb:
57
- decidim-0.29.1: 58915ff3a7528463587d3762a93ff51b
58
- decidim-0.29.2: f52f5770d8596134624ecb79457a21de
59
50
  decidim-0.30.0: 7e42fe689432706c6abbd832b9e3d3c3
60
51
  /lib/decidim/api/proposal_type.rb:
61
- decidim-0.29.1: 25d61a67a4b969ac8c472237d3f64b66
62
- decidim-0.29.2: cd24561962f6fb6038678795f60bdec3
63
52
  decidim-0.30.0: 3b9dd9c3afc8ee0c9a7bb1e46c865a60
64
53
  /app/forms/decidim/proposals/proposal_form.rb:
65
- decidim-0.29.1: 0b19bfeb4f7bd15cd378a69c3935de6b
66
- decidim-0.29.2: ad4ff4bde6ee2e802d394382ef7859a4
67
54
  decidim-0.30.0: 8db839481fec2a53acecabbf22377aa6
68
55
  /app/forms/decidim/proposals/admin/proposal_form.rb:
69
- decidim-0.29.1: 422632395194b19beed4c7c65f127ff5
70
- decidim-0.29.2: ad4ff4bde6ee2e802d394382ef7859a4
71
56
  decidim-0.30.0: 34e42ec6c9911b60c28d2bb49f066a8c
72
57
  /app/helpers/decidim/proposals/application_helper.rb:
73
- decidim-0.29.1: 940488938f644b63a2ef6177f3757ca2
74
- decidim-0.29.3: e6039a99268845c5038f913309fde432
75
58
  decidim-0.30.0: e539b6feb12c515ec24ed6d3efd6e29e
76
59
  /app/controllers/decidim/proposals/proposal_votes_controller.rb:
77
60
  decidim-0.29.1: f983e72c1ee8d31222d537533c762cd2
78
61
  /app/views/decidim/proposals/admin/proposals/_form.html.erb:
79
- decidim-0.29.1: 667c2ef6ffbf3369f59bd1e8eb0ba421
80
- decidim-0.29.3: 59a7ed11d05a633cd4bf23881254b7f1
81
62
  decidim-0.30.0: bbf9f55b307e6ba22a70289712bc019b
82
63
  decidim-0.30.1: 7619190e4de00729893f62bce180a8e5
83
64
  /app/views/decidim/proposals/proposals/_vote_button.html.erb:
84
- decidim-0.29.1: 06dd4c9bf7fc4953fc330b7ba081b2f6
85
65
  decidim-0.30.0: 644e8d24ad9571939e150190443b054a
86
66
  decidim-0.30.1: 3cd74a9396d20e19ed3821f08cbe2b06
87
67
  /app/views/decidim/proposals/proposals/_votes_count.html.erb:
88
- decidim-0.29.1: 6e663e5c82c27291b63f29f346df8737
89
68
  decidim-0.30.0: 6af6cdeeff0fc0daad028b88ee1c21cb
90
69
  /app/cells/decidim/proposals/proposal_l_cell.rb:
91
- decidim-0.29.1: e38d1cd0ea6c7f14c8f8b56d3ceb0db5
92
- decidim-0.29.2: 5043d8560a26fce2e296b3a0f6ba6cf6
93
70
  decidim-0.30.0: 682349209dad2f878f4d996a6c2b0bab
94
71
  /app/cells/decidim/proposals/proposal_metadata_cell.rb:
95
- decidim-0.29.1: 6859b77805227c4cf71ae0a1351a4551
96
72
  decidim-0.30.0: 04239cfbbd8defc21f85bbd533e2d1a6
97
73
  /app/commands/decidim/proposals/create_proposal.rb:
98
- decidim-0.29.1: 02a6f54a032457e68be580e6a539c47b
99
74
  decidim-0.30.0: e754afeca5167e04e40b856999667706
75
+ decidim-0.30.2: d400d275916e32be303b2f9ef6956ca9
100
76
  /app/commands/decidim/proposals/create_collaborative_draft.rb:
101
- decidim-0.29.1: ab3f937f15c6ed945e776fef34b18abf
102
77
  decidim-0.30.0: 64fb896383da98334648ce607dde0a27
103
78
  /app/commands/decidim/proposals/admin/create_proposal.rb:
104
- decidim-0.29.1: 837d86d2eb1f2d7579a0cef82d68caf7
105
79
  decidim-0.30.0: 6d3daa0339abd4cc07859292dda319bb
106
80
  /app/commands/decidim/proposals/update_proposal.rb:
107
- decidim-0.29.1: e81268a1f9b3770387944d44d7704291
108
81
  decidim-0.30.0: 2dcc14554207bbe287897543728a4d4d
109
82
  /app/commands/decidim/proposals/update_collaborative_draft.rb:
110
- decidim-0.29.1: 7df5266382bd57db72832da391fe7e11
111
83
  decidim-0.30.0: 21b0546e5ea23b251cab3f9403732af6
112
84
  /app/commands/decidim/proposals/admin/update_proposal.rb:
113
- decidim-0.29.1: 67b691b6d1ce61cb198592ac25f76f74
114
85
  decidim-0.30.0: d41045482929b4a561186d31a71666c4
115
86
  /app/presenters/decidim/proposals/proposal_presenter.rb:
116
- decidim-0.29.1: bbc7cee02125c1f8cf909219e48af337
117
87
  decidim-0.30.0: b12cfb5e55aff4756d757e71e580c547
@@ -7,6 +7,7 @@ module Decidim
7
7
  def initialize(organization)
8
8
  @organization = organization
9
9
  @vars = AwesomeConfig.for_organization(organization).includes(:constraints)
10
+ @saved_vars = @vars.map(&:var).map(&:to_sym)
10
11
  @context = {
11
12
  participatory_space_manifest: nil,
12
13
  participatory_space_slug: nil,
@@ -17,7 +18,7 @@ module Decidim
17
18
  @sub_configs = {}
18
19
  end
19
20
 
20
- attr_reader :context, :organization, :vars, :application_context
21
+ attr_reader :context, :organization, :vars, :application_context, :saved_vars
21
22
  attr_writer :defaults
22
23
 
23
24
  def defaults
@@ -75,7 +76,7 @@ module Decidim
75
76
  valid = @vars.to_h { |v| [v.var.to_sym, v.value] }
76
77
 
77
78
  map_defaults do |key, val|
78
- valid.has_key?(key) ? valid[key] : val
79
+ valid[key].nil? ? val : valid[key]
79
80
  end
80
81
  end
81
82
 
@@ -86,6 +87,11 @@ module Decidim
86
87
  )
87
88
  end
88
89
 
90
+ # Checks if some var has been configured for the organization (not using defaults)
91
+ def saved?(var)
92
+ @saved_vars.include?(var.to_sym)
93
+ end
94
+
89
95
  # Checks if some config setting is enabled in a certain context
90
96
  def enabled_in_context?(setting)
91
97
  config[setting]
@@ -172,10 +178,18 @@ module Decidim
172
178
  end
173
179
  end
174
180
 
181
+ # calculates the config according to the current context
182
+ # - if some var is not valid in the current context, it will be nil
183
+ # Certain keys may want to know if this is a legit value or it is simply not valid in the current context
184
+ # Fot that, use the saved?(var) method
175
185
  def calculate_config
176
- # filter vars compliant with current context
177
- valid = @vars.filter { |item| enabled_for_organization?(item.var) && valid_in_context?(item.all_constraints) }
178
- .to_h { |v| [v.var.to_sym, v.value] }
186
+ # set values to vars according to the current context
187
+ valid = @vars.to_h do |item|
188
+ [
189
+ item.var.to_sym,
190
+ enabled_for_organization?(item.var) && valid_in_context?(item.all_constraints) ? item.value : nil
191
+ ]
192
+ end
179
193
 
180
194
  map_defaults do |key, val|
181
195
  valid.has_key?(key) ? valid[key] : val
@@ -113,7 +113,7 @@ module Decidim
113
113
 
114
114
  # Late registering of components to take into account initializer values
115
115
  DecidimAwesome.registered_components.each do |manifest, block|
116
- next if DecidimAwesome.disabled_components.include?(manifest)
116
+ next if DecidimAwesome.disabled_components&.include?(manifest)
117
117
  next if Decidim.find_component_manifest(manifest)
118
118
 
119
119
  Decidim.register_component(manifest, &block)
@@ -16,7 +16,7 @@ module Decidim
16
16
 
17
17
  initializer "decidim_decidim_awesome.content_blocks" do |_app|
18
18
  # do not register this if awesome_map is disabled
19
- next if DecidimAwesome.disabled_components.include?(:awesome_map)
19
+ next if DecidimAwesome.disabled_components&.include?(:awesome_map)
20
20
 
21
21
  # === Home Map block ===
22
22
  Decidim.content_blocks.register(:homepage, :awesome_map) do |content_block|
@@ -20,7 +20,7 @@ module Decidim
20
20
  menu_overrides.each do |item|
21
21
  default = default_items.find { |i| i.url.gsub(/\?.*/, "") == item.url }
22
22
  if default
23
- item.send("overrided?=", true)
23
+ item.send("overridden?=", true)
24
24
  item[:original_active] = default.active
25
25
  @items.reject! { |i| i.url.gsub(/\?.*/, "") == item.url }
26
26
  end
@@ -58,7 +58,7 @@ module Decidim
58
58
  visibility: item["visibility"],
59
59
  visible?: visible?(item),
60
60
  target: item["target"],
61
- overrided?: false
61
+ overridden?: false
62
62
  )
63
63
  end
64
64
  end
@@ -11,7 +11,10 @@ module Decidim
11
11
 
12
12
  # rubocop:disable Rails/DynamicFindBy
13
13
  checksums = YAML.load_file("#{__dir__}/checksums.yml")
14
- @overrides = checksums.map do |package, files|
14
+
15
+ @overrides = checksums.filter_map do |package, files|
16
+ next unless Decidim::DependencyResolver.instance.needed?(package)
17
+
15
18
  props = {
16
19
  spec: ::Gem::Specification.find_by_name(package),
17
20
  files: files.transform_values(&:values)
@@ -40,6 +40,7 @@ shared_context "with a custom fields enabled" do
40
40
  let!(:private_constraint) { create(:config_constraint, awesome_config: private_config_helper, settings: { "participatory_space_manifest" => "participatory_processes" }) }
41
41
  let(:slug) { participatory_space.slug }
42
42
  end
43
+
43
44
  shared_examples "starts with caps" do |prop|
44
45
  let!(:config) { create(:awesome_config, organization:, var: "validate_#{prop}_start_with_caps", value: enabled) }
45
46
  let!(:constraint) do
@@ -138,7 +139,7 @@ shared_examples "max caps percent" do |prop|
138
139
  context "when scoped under different context" do
139
140
  let(:slug) { "another-slug" }
140
141
 
141
- it_behaves_like "invalid percentage", 25
142
+ it_behaves_like "invalid percentage", 50
142
143
 
143
144
  context "when has less than 25% caps" do
144
145
  let(prop.to_sym) { "Í only have some CÁPS" }
@@ -1,11 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- welcome_text = "Dashboard"
4
-
5
3
  shared_examples "redirects to index" do |_link|
6
4
  it "display index page" do
7
5
  expect(page).to have_content("You are not authorized to perform this action")
8
- expect(page).to have_content(welcome_text)
6
+ expect(page).to have_content("Dashboard")
9
7
  expect(page).to have_current_path(decidim_admin.root_path, ignore_query: true)
10
8
  end
11
9
  end
@@ -111,12 +109,12 @@ shared_examples "allows all admin routes" do
111
109
  visit decidim_admin.root_path
112
110
  # this is a workaround to wait for the page to load
113
111
  # it seems that the test might fail randomly otherwise
114
- # underlaying issue is unknown, maybe capybara is faster clicking than ruby is at storing class variables?
112
+ # underlying issue is unknown, maybe capybara is faster clicking than ruby is at storing class variables?
115
113
  sleep 0.1
116
114
  end
117
115
 
118
116
  it "allows the admin root page" do
119
- expect(page).to have_content(welcome_text)
117
+ expect(page).to have_content("Dashboard")
120
118
  end
121
119
 
122
120
  it "allows the assemblies page" do
@@ -138,7 +136,7 @@ shared_examples "allows scoped admin routes" do
138
136
  end
139
137
 
140
138
  it "allows the admin root page" do
141
- expect(page).to have_content(welcome_text)
139
+ expect(page).to have_content("Dashboard")
142
140
  end
143
141
 
144
142
  it "allows the assemblies page" do
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  # This holds the decidim-decidim_awesome version.
5
5
  module DecidimAwesome
6
- VERSION = "0.13.1"
6
+ VERSION = "0.13.2"
7
7
  COMPAT_DECIDIM_VERSION = [">= 0.30.0", "< 0.31"].freeze
8
8
  end
9
9
  end
data/package.json CHANGED
@@ -34,11 +34,11 @@
34
34
  },
35
35
  "prettier": "@decidim/prettier-config",
36
36
  "devDependencies": {
37
- "@decidim/dev": "0.30.0",
38
- "@decidim/eslint-config": "0.30.0",
39
- "@decidim/prettier-config": "0.30.0",
40
- "@decidim/stylelint-config": "0.30.0",
41
- "@decidim/webpacker": "0.30.0"
37
+ "@decidim/dev": "0.30.2",
38
+ "@decidim/eslint-config": "0.30.2",
39
+ "@decidim/prettier-config": "0.30.2",
40
+ "@decidim/stylelint-config": "0.30.2",
41
+ "@decidim/webpacker": "0.30.2"
42
42
  },
43
43
  "dependencies": {
44
44
  "codemirror": "^5.65.16",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-decidim_awesome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Vergés
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-29 00:00:00.000000000 Z
11
+ date: 2025-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_hashcash