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 +4 -4
- data/app/models/decidim/dev/dummy_resource.rb +3 -1
- data/config/locales/bg.yml +9 -0
- data/lib/decidim/dev/test/factories.rb +6 -0
- data/lib/decidim/dev/test/rspec_support/capybara.rb +1 -0
- data/lib/decidim/dev/test/rspec_support/dynamic_attach.rb +1 -1
- data/lib/decidim/dev/test/rspec_support/filters.rb +1 -1
- data/lib/decidim/dev/test/rspec_support/webmock.rb +1 -1
- data/lib/decidim/dev/version.rb +1 -1
- data/lib/tasks/lighthouse_report.rake +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc9d821614ad42d1eb20f682ab82321b933753c5b4d951fea170751b8f6a5bcf
|
4
|
+
data.tar.gz: e256ccb91d7c4ffc96a7722dcd4cb047bfd76724a1199d86ed04527fe0c8829b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/config/locales/bg.yml
CHANGED
@@ -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
|
@@ -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(
|
26
|
+
click_button("Save") unless options[:keep_modal_open]
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
data/lib/decidim/dev/version.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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.
|
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.
|
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: []
|