decidim-core 0.11.0.pre1 → 0.11.1
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/area.rb +1 -1
- data/config/locales/es.yml +1 -1
- data/config/locales/nl.yml +4 -4
- data/config/locales/sv.yml +3 -3
- data/db/migrate/20180305132906_rename_features_to_components.rb +22 -0
- data/lib/decidim/core/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcda7132545af9d1356e5212190673cc4be7fb0c7dc89bce433fc5554f4d77bf
|
4
|
+
data.tar.gz: af29432c8de503ae5211c530283c3e0220a185c9f2704ed96c9aeabd2c48cd46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6419fc94a0b38592521b5a61395df638729f0ebb9610049a388887d0fed746efce1165f65c236395ed9a6a4d87c752e2e740ed479ee74b00c4c78707c718c075
|
7
|
+
data.tar.gz: a41317570319b2d42f8858792863104a6ad9b70e2430f3b473d2064560e02eb28d0310220b15b487805ca2e88108888144580bfd7971f69abff1ba6b9a8980bc
|
data/app/models/decidim/area.rb
CHANGED
@@ -19,7 +19,7 @@ module Decidim
|
|
19
19
|
optional: true
|
20
20
|
|
21
21
|
validates :name, :organization, presence: true
|
22
|
-
validates :name, uniqueness: { scope: :organization }
|
22
|
+
validates :name, uniqueness: { scope: [:organization, :area_type] }
|
23
23
|
|
24
24
|
def self.log_presenter_class_for(_log)
|
25
25
|
Decidim::AdminLog::AreaPresenter
|
data/config/locales/es.yml
CHANGED
@@ -339,7 +339,7 @@ es:
|
|
339
339
|
profile:
|
340
340
|
deleted: Usuario eliminado
|
341
341
|
profiles:
|
342
|
-
default_officialization_text: Esta persona participante está
|
342
|
+
default_officialization_text: Esta persona participante está verificada públicamente. Se ha verificado que su nombre o cargo corresponde con su nombre real y rol
|
343
343
|
show:
|
344
344
|
about_me: Sobre mi
|
345
345
|
personal_url: Sitio web personal
|
data/config/locales/nl.yml
CHANGED
@@ -7,7 +7,7 @@ nl:
|
|
7
7
|
details: Aanvullende opmerkingen
|
8
8
|
user:
|
9
9
|
about: Over
|
10
|
-
email:
|
10
|
+
email: Je e-mailadres
|
11
11
|
name: Uw naam
|
12
12
|
nickname: Jouw korte unieke ID
|
13
13
|
password: Nieuw wachtwoord
|
@@ -156,10 +156,10 @@ nl:
|
|
156
156
|
nickname_help: Jouw korte, unieke ID op %{organization}
|
157
157
|
sign_up: Gelieve uw profiel te voltooien
|
158
158
|
subtitle: Vul onderstaand formulier in om de aanmelding te voltooien
|
159
|
-
username_help: Publieke naam die op
|
159
|
+
username_help: Publieke naam die op je berichten verschijnt. Met het oog op het waarborgen van de anonimiteit hoeft dit niet jouw echte naam te zijn.
|
160
160
|
registrations:
|
161
161
|
new:
|
162
|
-
already_have_an_account?:
|
162
|
+
already_have_an_account?: Heb je al een account?
|
163
163
|
newsletter: Ontvang af en toe een nieuwsbrief met relevante informatie
|
164
164
|
nickname_help: Jouw korte, unieke ID op %{organization}
|
165
165
|
sign_in: Aanmelden
|
@@ -168,7 +168,7 @@ nl:
|
|
168
168
|
legend: Aanmelden als
|
169
169
|
user: Individu
|
170
170
|
user_group: Organisatie/collectief
|
171
|
-
subtitle:
|
171
|
+
subtitle: Meld je aan om deel te nemen aan discussies en om voorstellen te steunen.
|
172
172
|
terms: de bepalingen en voorwaarden van gebruik
|
173
173
|
tos_agreement: Door het aanmelden gaat u akkoord met %{link}.
|
174
174
|
username_help: Publieke naam die op uw berichten verschijnt. Met het oog op het waarborgen van de anonimiteit hoeft dit niet uw echte naam te zijn.
|
data/config/locales/sv.yml
CHANGED
@@ -6,7 +6,7 @@ sv:
|
|
6
6
|
report:
|
7
7
|
details: Ytterligare kommentarer
|
8
8
|
user:
|
9
|
-
about:
|
9
|
+
about: Om
|
10
10
|
email: Din e-post
|
11
11
|
name: Ditt namn
|
12
12
|
nickname: Din korta, unika identifierare
|
@@ -61,7 +61,7 @@ sv:
|
|
61
61
|
delete: "%{user_name} raderade området %{resource_name}"
|
62
62
|
update: "%{user_name} uppdaterade området %{resource_name}"
|
63
63
|
component:
|
64
|
-
create: "%{user_name} lade till %{resource_name} komponenten till %{space_name}
|
64
|
+
create: "%{user_name} lade till %{resource_name} komponenten till %{space_name}-utrymmet"
|
65
65
|
delete: "%{user_name} tog bort komponenten %{resource_name} från %{space_name} -utrymmet"
|
66
66
|
publish: "%{user_name} publicerade %{resource_name} -komponenten i %{space_name} -utrymmet"
|
67
67
|
unpublish: "%{user_name} opublicerade %{resource_name} -komponenten från %{space_name} -utrymmet"
|
@@ -152,7 +152,7 @@ sv:
|
|
152
152
|
create:
|
153
153
|
email_already_exists: Ett annat konto använder samma e-postadress
|
154
154
|
new:
|
155
|
-
complete_profile:
|
155
|
+
complete_profile: Komplettera profil
|
156
156
|
nickname_help: Din korta, unika identifierare i %{organization}
|
157
157
|
sign_up: Vänligen fyll i din profil
|
158
158
|
subtitle: Vänligen fyll i följande formulär för att slutföra registreringen
|
@@ -1,6 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class RenameFeaturesToComponents < ActiveRecord::Migration[5.1]
|
4
|
+
class ActionLog < ApplicationRecord
|
5
|
+
self.table_name = :decidim_action_logs
|
6
|
+
end
|
7
|
+
|
8
|
+
class Version < ApplicationRecord
|
9
|
+
self.table_name = :versions
|
10
|
+
end
|
11
|
+
|
4
12
|
def change
|
5
13
|
rename_table :decidim_features, :decidim_components
|
6
14
|
rename_column :decidim_action_logs, :decidim_feature_id, :decidim_component_id
|
@@ -9,5 +17,19 @@ class RenameFeaturesToComponents < ActiveRecord::Migration[5.1]
|
|
9
17
|
if index_name_exists?(:decidim_components, "index_decidim_features_on_decidim_participatory_space")
|
10
18
|
rename_index :decidim_components, "index_decidim_features_on_decidim_participatory_space", "index_decidim_components_on_decidim_participatory_space"
|
11
19
|
end
|
20
|
+
|
21
|
+
# rubocop:disable Rails/SkipsModelValidations
|
22
|
+
Version.where(item_type: "Decidim::Feature").update_all(item_type: "Decidim::Component")
|
23
|
+
ActionLog.where(resource_type: "Decidim::Feature").update_all(resource_type: "Decidim::Component")
|
24
|
+
# rubocop:enable Rails/SkipsModelValidations
|
25
|
+
|
26
|
+
ActionLog.find_each do |log|
|
27
|
+
new_extra = log.extra.dup
|
28
|
+
next if new_extra["component"].present?
|
29
|
+
new_extra["component"] = new_extra["feature"]
|
30
|
+
new_extra.delete("feature")
|
31
|
+
log.extra = new_extra
|
32
|
+
log.save!
|
33
|
+
end
|
12
34
|
end
|
13
35
|
end
|
data/lib/decidim/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-05-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: active_link_to
|
@@ -234,14 +234,14 @@ dependencies:
|
|
234
234
|
requirements:
|
235
235
|
- - "~>"
|
236
236
|
- !ruby/object:Gem::Version
|
237
|
-
version:
|
237
|
+
version: 3.0.0
|
238
238
|
type: :runtime
|
239
239
|
prerelease: false
|
240
240
|
version_requirements: !ruby/object:Gem::Requirement
|
241
241
|
requirements:
|
242
242
|
- - "~>"
|
243
243
|
- !ruby/object:Gem::Version
|
244
|
-
version:
|
244
|
+
version: 3.0.0
|
245
245
|
- !ruby/object:Gem::Dependency
|
246
246
|
name: invisible_captcha
|
247
247
|
requirement: !ruby/object:Gem::Requirement
|
@@ -588,28 +588,28 @@ dependencies:
|
|
588
588
|
requirements:
|
589
589
|
- - '='
|
590
590
|
- !ruby/object:Gem::Version
|
591
|
-
version: 0.11.
|
591
|
+
version: 0.11.1
|
592
592
|
type: :runtime
|
593
593
|
prerelease: false
|
594
594
|
version_requirements: !ruby/object:Gem::Requirement
|
595
595
|
requirements:
|
596
596
|
- - '='
|
597
597
|
- !ruby/object:Gem::Version
|
598
|
-
version: 0.11.
|
598
|
+
version: 0.11.1
|
599
599
|
- !ruby/object:Gem::Dependency
|
600
600
|
name: decidim-dev
|
601
601
|
requirement: !ruby/object:Gem::Requirement
|
602
602
|
requirements:
|
603
603
|
- - '='
|
604
604
|
- !ruby/object:Gem::Version
|
605
|
-
version: 0.11.
|
605
|
+
version: 0.11.1
|
606
606
|
type: :development
|
607
607
|
prerelease: false
|
608
608
|
version_requirements: !ruby/object:Gem::Requirement
|
609
609
|
requirements:
|
610
610
|
- - '='
|
611
611
|
- !ruby/object:Gem::Version
|
612
|
-
version: 0.11.
|
612
|
+
version: 0.11.1
|
613
613
|
description: Adds core features so other engines can hook into the framework.
|
614
614
|
email:
|
615
615
|
- josepjaume@gmail.com
|
@@ -1391,9 +1391,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1391
1391
|
version: '0'
|
1392
1392
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1393
1393
|
requirements:
|
1394
|
-
- - "
|
1394
|
+
- - ">="
|
1395
1395
|
- !ruby/object:Gem::Version
|
1396
|
-
version:
|
1396
|
+
version: '0'
|
1397
1397
|
requirements: []
|
1398
1398
|
rubyforge_project:
|
1399
1399
|
rubygems_version: 2.7.3
|