decidim-plans 0.16.8 → 0.16.9

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: 170eb87417645430c9d009737c52ae84141168dd7f493bd1e39edb9255b7bab9
4
- data.tar.gz: 143a0c3f27aaf4ab7519acdaa21276c256fb77e9226ad46619161f4ae0824a3c
3
+ metadata.gz: c9423a9478cec855e35949926ffde99ae160f77e17fc4dd4fc9bc17e01b7c76e
4
+ data.tar.gz: a507c3b1690c189104bbc737ce9c046a8b2f9386e4198f8c84179f8618aa5ec8
5
5
  SHA512:
6
- metadata.gz: d9fa85970c423d8d6452073255d26c33e100ace96feed0e9d22f924b93f6927ba415ee94effaf6e0319a6fd95c58c3cc45adc4757582f96f562a66d2eb4553cf
7
- data.tar.gz: 60ff131f7331cab36ee5574bc64e7b15e120710945c535e30d6280f2b7af015e0bc57fa3da3e994e1eb5a6df1f53cf393de95fb8d690cc1768fe4edc9b2e424f
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
  &gt;
8
+ <%= link_to t("decidim.plans.admin.tags.index.title"), plan_tags_path(plan) %>
9
+ &gt;
8
10
  <%= title %>
9
11
 
10
12
  <div class="button--title">
11
- <%= link_to t("actions.back", scope: "decidim.plans"), taggings_plan_path(plan), class: "button hollow tiny button--simple" %>
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>
@@ -14,6 +14,8 @@ en:
14
14
  state: State
15
15
  title: Title
16
16
  user_group_id: Create as
17
+ tag:
18
+ name: Name
17
19
  errors:
18
20
  models:
19
21
  attachment:
@@ -13,6 +13,8 @@ fi:
13
13
  state: Tila
14
14
  title: Otsikko
15
15
  user_group_id: Luo käyttäjänä
16
+ tag:
17
+ name: Nimi
16
18
  errors:
17
19
  models:
18
20
  attachment:
@@ -13,6 +13,8 @@ sv:
13
13
  state: Status
14
14
  title: Rubrik
15
15
  user_group_id: Skapa som användare
16
+ tag:
17
+ name: Namn
16
18
  errors:
17
19
  models:
18
20
  attachment:
@@ -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 > 0
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Decidim
4
4
  module Plans
5
- VERSION = "0.16.8"
5
+ VERSION = "0.16.9"
6
6
  DECIDIM_VERSION = "~> 0.16.0"
7
7
  end
8
8
  end
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.8
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-04-02 00:00:00.000000000 Z
11
+ date: 2019-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-core