decidim-plans 0.16.8 → 0.16.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +0 -8
- data/app/commands/decidim/plans/admin/update_plan.rb +0 -8
- data/app/views/decidim/plans/admin/tags/_form.html.erb +3 -1
- data/config/locales/en.yml +2 -0
- data/config/locales/fi.yml +2 -0
- data/config/locales/sv.yml +2 -0
- data/lib/decidim/plans/test/factories.rb +1 -3
- data/lib/decidim/plans/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9423a9478cec855e35949926ffde99ae160f77e17fc4dd4fc9bc17e01b7c76e
|
4
|
+
data.tar.gz: a507c3b1690c189104bbc737ce9c046a8b2f9386e4198f8c84179f8618aa5ec8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5beb24f4e9269901be60f1581cf0e6035bf80f6e304311ed5fee8469447eff9beea6e3401f210f76870a9db8aed0f91f4312d9996342574c28c7e3d76931b99
|
7
|
+
data.tar.gz: 5cc5bdf7932645f7aa6bc1e894995213f49b26a3a5508c1eddd0297ddce92aeb3b1cfe36d83f44c0d0b29290d2dde3dc06162ea9f25cf87f1de48101a3ace48c
|
data/Rakefile
CHANGED
@@ -38,11 +38,3 @@ task :development_app do
|
|
38
38
|
install_module("development_app")
|
39
39
|
seed_db("development_app")
|
40
40
|
end
|
41
|
-
|
42
|
-
# Run all tests, include all
|
43
|
-
RSpec::Core::RakeTask.new(:spec) do |t|
|
44
|
-
t.verbose = false
|
45
|
-
end
|
46
|
-
|
47
|
-
# Run both by default
|
48
|
-
task default: [:spec]
|
@@ -41,7 +41,6 @@ module Decidim
|
|
41
41
|
transaction do
|
42
42
|
update_plan
|
43
43
|
update_plan_contents
|
44
|
-
update_plan_author
|
45
44
|
update_attachments if process_attachments?
|
46
45
|
end
|
47
46
|
end
|
@@ -73,13 +72,6 @@ module Decidim
|
|
73
72
|
end
|
74
73
|
end
|
75
74
|
|
76
|
-
def update_plan_author
|
77
|
-
plan.coauthorships.clear
|
78
|
-
plan.add_coauthor(form.author)
|
79
|
-
plan.save!
|
80
|
-
plan
|
81
|
-
end
|
82
|
-
|
83
75
|
def attributes
|
84
76
|
{
|
85
77
|
title: form.title,
|
@@ -5,10 +5,12 @@
|
|
5
5
|
>
|
6
6
|
<%= link_to t(".tags"), taggings_plan_path(plan) %>
|
7
7
|
>
|
8
|
+
<%= link_to t("decidim.plans.admin.tags.index.title"), plan_tags_path(plan) %>
|
9
|
+
>
|
8
10
|
<%= title %>
|
9
11
|
|
10
12
|
<div class="button--title">
|
11
|
-
<%= link_to t("actions.back", scope: "decidim.plans"),
|
13
|
+
<%= link_to t("actions.back", scope: "decidim.plans"), plan_tags_path(plan), class: "button hollow tiny button--simple" %>
|
12
14
|
</div>
|
13
15
|
</h2>
|
14
16
|
</div>
|
data/config/locales/en.yml
CHANGED
data/config/locales/fi.yml
CHANGED
data/config/locales/sv.yml
CHANGED
@@ -96,9 +96,7 @@ FactoryBot.define do
|
|
96
96
|
proposals = evaluator.plan_proposals || [create(:proposal, component: proposal_component)]
|
97
97
|
plan.attached_proposals = proposals.map { |p| create(:attached_proposal, plan: plan, proposal: p) }
|
98
98
|
end
|
99
|
-
if evaluator.tags && evaluator.tags.count
|
100
|
-
plan.update!(tags: evaluator.tags)
|
101
|
-
end
|
99
|
+
plan.update!(tags: evaluator.tags) if evaluator.tags && evaluator.tags.count.positive?
|
102
100
|
end
|
103
101
|
|
104
102
|
trait :published do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-plans
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antti Hukkanen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-core
|