decidim-surveys 0.6.4 → 0.6.5

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
  SHA1:
3
- metadata.gz: c66603b321a1a7576bbdd605cb39690c676eca1c
4
- data.tar.gz: 340e0511f51a5dc82679244b4b09575766c0f7e0
3
+ metadata.gz: 6beea6be8a0e48d128515ccdc83866132aacfc80
4
+ data.tar.gz: 1e42b26f7752e61cce878d7da9d40da88a579091
5
5
  SHA512:
6
- metadata.gz: 3b5c20afc777db4938a60513a193cce76921018db03fcb9328589afe2b66a8a82ae4103e071c0503c331580ec26519308ec505fe65c786441f0fd9b8142b9268
7
- data.tar.gz: e80f4b34274283ed1e4f846904da66d93cd6ba8c495725f3b86d2347fca62dab582370a381c566841f6643a68dfeb4ee988edd18d5271429ed6f91f6e859b7bc
6
+ metadata.gz: f88977f0c10359eac0dce1bd935e2ea04a2fd6ec3ec1e8ffacf22da91f0f08a8f5eab2fcf5ee4525f088c2f2607209a964af4a58974909ad6b1038b92807d08a
7
+ data.tar.gz: 336ec6901dc0c28a833a75e551e2699f14e16c9485f3b4aa3c27ab9bc0bad6ab83a21d1dd1c685760472b00a0f50c4a20c46c4ea3ceed3017854bb6a187b25e4
@@ -13,6 +13,8 @@ module Decidim
13
13
  attribute :published_at, DateTime
14
14
 
15
15
  attribute :questions, Array[SurveyQuestionForm]
16
+
17
+ validates :title, translatable_presence: true
16
18
  end
17
19
  end
18
20
  end
@@ -18,6 +18,7 @@ module Decidim
18
18
 
19
19
  validates :position, numericality: { greater_than_or_equal_to: 0 }
20
20
  validates :question_type, inclusion: { in: SurveyQuestion::TYPES }
21
+ validates :body, translatable_presence: true, unless: :deleted
21
22
  end
22
23
  end
23
24
  end
@@ -22,7 +22,8 @@
22
22
  :text_field_tag,
23
23
  "survey[questions][]",
24
24
  "body",
25
- question.body,
25
+ question.body.with_indifferent_access,
26
+ object: question,
26
27
  tabs_id: tabs_id_for_question(question),
27
28
  label: t('.statement'),
28
29
  disabled: disabled_for_question(survey, question),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-surveys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
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: 2017-09-21 00:00:00.000000000 Z
13
+ date: 2017-09-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.6.4
21
+ version: 0.6.5
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.6.4
28
+ version: 0.6.5
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: jquery-tmpl-rails
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -46,42 +46,42 @@ dependencies:
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.6.4
49
+ version: 0.6.5
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.6.4
56
+ version: 0.6.5
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: decidim-admin
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.6.4
63
+ version: 0.6.5
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.6.4
70
+ version: 0.6.5
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: decidim-participatory_processes
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.6.4
77
+ version: 0.6.5
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 0.6.4
84
+ version: 0.6.5
85
85
  description: A component for decidim's participatory processes.
86
86
  email:
87
87
  - josepjaume@gmail.com