decidim-dev 0.28.1 → 0.28.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a0788fcddc027172a756f2875f4f43b9a85894e2ded6a39ea04c8b81098862c
4
- data.tar.gz: cadcdd86dcf27af64737df7903cca1f371441cc5ed8edf0513f96d98fab10a2f
3
+ metadata.gz: bc9d821614ad42d1eb20f682ab82321b933753c5b4d951fea170751b8f6a5bcf
4
+ data.tar.gz: e256ccb91d7c4ffc96a7722dcd4cb047bfd76724a1199d86ed04527fe0c8829b
5
5
  SHA512:
6
- metadata.gz: '059463876ce9e8ab637bb92aac43f23c230abd154b2e9e8f35ca0a977ecf1e29bca378b977fb36057e812b75b6ae248623845cc50ea6ed0b6598c41c74f02341'
7
- data.tar.gz: 25db9b82f0290f6dbd0897407684722ecad962092a30b825e120cc76f0f0ae4c330c0191d31c002db810a2606fa79102724e25325a11fe7dec38a2efb952ac8c
6
+ metadata.gz: ccaee176486a56c7b99979f06c2debc99e93b44ada6f251db4a6e57684a065858e46eb32884ff9c9696f225f5d243fd5fdfe8cf8eff2ab8ce84df59277a39e3a
7
+ data.tar.gz: b74b0ee53ae4c5b2db19932c575793fecf546458c51bc0bd62dc3692646c621e04786de35f0a540a166c7ad9ca91869e8c160b58c82ad3d67fe6bc3d4d21fdea
@@ -63,7 +63,9 @@ module Decidim
63
63
 
64
64
  # Public: Whether the object can have new comments or not.
65
65
  def user_allowed_to_comment?(user)
66
- component.can_participate_in_space?(user)
66
+ return unless component.can_participate_in_space?(user)
67
+
68
+ ActionAuthorizer.new(user, "comment", component, self).authorize.ok?
67
69
  end
68
70
 
69
71
  # Public: Whether the object can have new comment votes or not.
@@ -15,6 +15,12 @@ bg:
15
15
  dummy:
16
16
  settings:
17
17
  global:
18
+ guided: Насочвано въвеждане
19
+ guided_help: Помощен текст
20
+ guided_readonly: Дезактивирано въвеждане
21
+ guided_rich: Насочвано широко въвеждане
22
+ guided_rich_help_html: HTML <strong>помощен</strong> текст
23
+ guided_rich_readonly_html: HTML <strong>помощен</strong> текст за дезакривирано въвеждане
18
24
  readonly_attribute: Само за четене атрибут
19
25
  test: А тест
20
26
  test_choices:
@@ -23,6 +29,7 @@ bg:
23
29
  c: В избор
24
30
  test_options:
25
31
  bar: Нещо1
32
+ baz: Baz
26
33
  foo: Нещо2
27
34
  step:
28
35
  endorsements_blocked: Одобряване забранено
@@ -30,6 +37,7 @@ bg:
30
37
  readonly_step_attribute: Само за четене стъпков атрибут
31
38
  test_options:
32
39
  bar: Нещо1
40
+ baz: Baz
33
41
  foo: Нещо2
34
42
  dummy:
35
43
  admin:
@@ -45,6 +53,7 @@ bg:
45
53
  description_own: Вие създадохте %{score} теста.
46
54
  name: Тестове
47
55
  next_level_in: Създайте още %{score} теста за да достигнете следващо ниво!
56
+ unearned_another: Този участник все още не е създал никакви тестове.
48
57
  unearned_own: Вие все още не сте създали тест.
49
58
  resource_links:
50
59
  test_link:
@@ -35,6 +35,12 @@ FactoryBot.define do
35
35
  end
36
36
  end
37
37
  end
38
+
39
+ trait :moderated do
40
+ after(:create) do |resource, evaluator|
41
+ create(:moderation, reportable: resource, hidden_at: 2.days.ago, skip_injection: evaluator.skip_injection)
42
+ end
43
+ end
38
44
  end
39
45
 
40
46
  factory :nested_dummy_resource, class: "Decidim::Dev::NestedDummyResource" do
@@ -121,6 +121,7 @@ end
121
121
  Capybara.server = :puma, server_options
122
122
 
123
123
  Capybara.server_errors = [SyntaxError, StandardError]
124
+ Capybara.save_path = Rails.root.join("tmp/screenshots")
124
125
 
125
126
  Capybara.default_max_wait_time = 10
126
127
 
@@ -23,7 +23,7 @@ module Capybara
23
23
  expect(page).to have_content(filename.first(12)) if front_interface
24
24
  end
25
25
  all(title_input(front_interface)).last.set(options[:title]) if options.has_key?(:title)
26
- click_button(front_interface ? "Next" : "Save") unless options[:keep_modal_open]
26
+ click_button("Save") unless options[:keep_modal_open]
27
27
  end
28
28
  end
29
29
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module FiltersHelpers
4
4
  def click_filter_item(text)
5
- find("label.filter", text:).click
5
+ find("div.filter > label", text:).click
6
6
  end
7
7
  end
8
8
 
@@ -2,4 +2,4 @@
2
2
 
3
3
  require "webmock/rspec"
4
4
 
5
- WebMock.disable_net_connect!(allow_localhost: true, allow: %r{https://validator.w3.org/})
5
+ WebMock.disable_net_connect!(allow_localhost: true, allow: %r{https://validator\.w3\.org/})
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-dev version.
5
5
  module Dev
6
6
  def self.version
7
- "0.28.1"
7
+ "0.28.2"
8
8
  end
9
9
  end
10
10
  end
@@ -43,8 +43,8 @@ namespace :decidim do
43
43
  def lighthouse_paths
44
44
  ["/"].tap do |urls|
45
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
46
+ urls << Decidim::ResourceLocatorPresenter.new(Decidim::Meetings::Meeting.published.not_hidden.first).path
47
+ urls << Decidim::ResourceLocatorPresenter.new(Decidim::Proposals::Proposal.published.not_hidden.first).path
48
48
  end
49
49
  end
50
50
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.1
4
+ version: 0.28.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
8
8
  - Marc Riera Casals
9
9
  - Oriol Gual Oliva
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-04-30 00:00:00.000000000 Z
13
+ date: 2024-07-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capybara
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.28.1
35
+ version: 0.28.2
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.28.1
42
+ version: 0.28.2
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: factory_bot_rails
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -669,7 +669,7 @@ metadata:
669
669
  funding_uri: https://opencollective.com/decidim
670
670
  homepage_uri: https://decidim.org
671
671
  source_code_uri: https://github.com/decidim/decidim
672
- post_install_message:
672
+ post_install_message:
673
673
  rdoc_options: []
674
674
  require_paths:
675
675
  - lib
@@ -684,8 +684,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
684
684
  - !ruby/object:Gem::Version
685
685
  version: '0'
686
686
  requirements: []
687
- rubygems_version: 3.5.9
688
- signing_key:
687
+ rubygems_version: 3.3.7
688
+ signing_key:
689
689
  specification_version: 4
690
690
  summary: Decidim dev tools
691
691
  test_files: []