decidim-proposals 0.6.8 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/app/commands/decidim/proposals/create_proposal.rb +12 -0
  3. data/app/commands/decidim/proposals/vote_proposal.rb +2 -0
  4. data/app/controllers/decidim/proposals/application_controller.rb +18 -0
  5. data/app/controllers/decidim/proposals/proposals_controller.rb +7 -1
  6. data/app/helpers/decidim/proposals/application_helper.rb +14 -0
  7. data/app/helpers/decidim/proposals/proposal_votes_helper.rb +45 -1
  8. data/app/models/decidim/proposals/proposal.rb +19 -0
  9. data/app/services/decidim/proposals/proposal_search.rb +1 -1
  10. data/app/views/decidim/proposals/admin/proposals/index.html.erb +11 -0
  11. data/app/views/decidim/proposals/proposals/_filters.html.erb +1 -1
  12. data/app/views/decidim/proposals/proposals/_vote_button.html.erb +9 -7
  13. data/app/views/decidim/proposals/proposals/_voting_rules.html.erb +35 -0
  14. data/app/views/decidim/proposals/proposals/index.html.erb +8 -4
  15. data/app/views/decidim/proposals/proposals/show.html.erb +11 -4
  16. data/config/locales/ca.yml +18 -6
  17. data/config/locales/en.yml +17 -5
  18. data/config/locales/es.yml +17 -5
  19. data/config/locales/eu.yml +28 -16
  20. data/config/locales/fi.yml +23 -11
  21. data/config/locales/fr.yml +21 -9
  22. data/config/locales/it.yml +17 -5
  23. data/config/locales/nl.yml +19 -7
  24. data/config/locales/pl.yml +17 -5
  25. data/config/locales/ru.yml +183 -0
  26. data/config/locales/uk.yml +36 -24
  27. data/lib/decidim/proposals/feature.rb +10 -8
  28. data/lib/decidim/proposals/test/factories.rb +29 -1
  29. data/lib/decidim/proposals/version.rb +10 -0
  30. metadata +25 -51
  31. data/app/views/decidim/proposals/proposals/_votes_limit.html.erb +0 -21
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-proposals
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 0.7.0
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-10-17 00:00:00.000000000 Z
13
+ date: 2017-10-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,42 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.6.8
21
+ version: 0.7.0
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.8
28
+ version: 0.7.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-comments
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.6.8
35
+ version: 0.7.0
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.6.8
43
- - !ruby/object:Gem::Dependency
44
- name: rectify
45
- requirement: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: 0.9.1
50
- type: :runtime
51
- prerelease: false
52
- version_requirements: !ruby/object:Gem::Requirement
53
- requirements:
54
- - - "~>"
55
- - !ruby/object:Gem::Version
56
- version: 0.9.1
42
+ version: 0.7.0
57
43
  - !ruby/object:Gem::Dependency
58
44
  name: kaminari
59
45
  requirement: !ruby/object:Gem::Requirement
@@ -74,112 +60,98 @@ dependencies:
74
60
  requirements:
75
61
  - - "~>"
76
62
  - !ruby/object:Gem::Version
77
- version: 0.10.0
63
+ version: 1.0.0
78
64
  type: :runtime
79
65
  prerelease: false
80
66
  version_requirements: !ruby/object:Gem::Requirement
81
67
  requirements:
82
68
  - - "~>"
83
69
  - !ruby/object:Gem::Version
84
- version: 0.10.0
70
+ version: 1.0.0
85
71
  - !ruby/object:Gem::Dependency
86
72
  name: decidim-dev
87
73
  requirement: !ruby/object:Gem::Requirement
88
74
  requirements:
89
75
  - - '='
90
76
  - !ruby/object:Gem::Version
91
- version: 0.6.8
77
+ version: 0.7.0
92
78
  type: :development
93
79
  prerelease: false
94
80
  version_requirements: !ruby/object:Gem::Requirement
95
81
  requirements:
96
82
  - - '='
97
83
  - !ruby/object:Gem::Version
98
- version: 0.6.8
84
+ version: 0.7.0
99
85
  - !ruby/object:Gem::Dependency
100
86
  name: decidim-admin
101
87
  requirement: !ruby/object:Gem::Requirement
102
88
  requirements:
103
89
  - - '='
104
90
  - !ruby/object:Gem::Version
105
- version: 0.6.8
91
+ version: 0.7.0
106
92
  type: :development
107
93
  prerelease: false
108
94
  version_requirements: !ruby/object:Gem::Requirement
109
95
  requirements:
110
96
  - - '='
111
97
  - !ruby/object:Gem::Version
112
- version: 0.6.8
98
+ version: 0.7.0
113
99
  - !ruby/object:Gem::Dependency
114
100
  name: decidim-participatory_processes
115
101
  requirement: !ruby/object:Gem::Requirement
116
102
  requirements:
117
103
  - - '='
118
104
  - !ruby/object:Gem::Version
119
- version: 0.6.8
105
+ version: 0.7.0
120
106
  type: :development
121
107
  prerelease: false
122
108
  version_requirements: !ruby/object:Gem::Requirement
123
109
  requirements:
124
110
  - - '='
125
111
  - !ruby/object:Gem::Version
126
- version: 0.6.8
112
+ version: 0.7.0
127
113
  - !ruby/object:Gem::Dependency
128
114
  name: decidim-assemblies
129
115
  requirement: !ruby/object:Gem::Requirement
130
116
  requirements:
131
117
  - - '='
132
118
  - !ruby/object:Gem::Version
133
- version: 0.6.8
119
+ version: 0.7.0
134
120
  type: :development
135
121
  prerelease: false
136
122
  version_requirements: !ruby/object:Gem::Requirement
137
123
  requirements:
138
124
  - - '='
139
125
  - !ruby/object:Gem::Version
140
- version: 0.6.8
126
+ version: 0.7.0
141
127
  - !ruby/object:Gem::Dependency
142
128
  name: decidim-meetings
143
129
  requirement: !ruby/object:Gem::Requirement
144
130
  requirements:
145
131
  - - '='
146
132
  - !ruby/object:Gem::Version
147
- version: 0.6.8
148
- type: :development
149
- prerelease: false
150
- version_requirements: !ruby/object:Gem::Requirement
151
- requirements:
152
- - - '='
153
- - !ruby/object:Gem::Version
154
- version: 0.6.8
155
- - !ruby/object:Gem::Dependency
156
- name: decidim-results
157
- requirement: !ruby/object:Gem::Requirement
158
- requirements:
159
- - - '='
160
- - !ruby/object:Gem::Version
161
- version: 0.6.8
133
+ version: 0.7.0
162
134
  type: :development
163
135
  prerelease: false
164
136
  version_requirements: !ruby/object:Gem::Requirement
165
137
  requirements:
166
138
  - - '='
167
139
  - !ruby/object:Gem::Version
168
- version: 0.6.8
140
+ version: 0.7.0
169
141
  - !ruby/object:Gem::Dependency
170
142
  name: decidim-budgets
171
143
  requirement: !ruby/object:Gem::Requirement
172
144
  requirements:
173
145
  - - '='
174
146
  - !ruby/object:Gem::Version
175
- version: 0.6.8
147
+ version: 0.7.0
176
148
  type: :development
177
149
  prerelease: false
178
150
  version_requirements: !ruby/object:Gem::Requirement
179
151
  requirements:
180
152
  - - '='
181
153
  - !ruby/object:Gem::Version
182
- version: 0.6.8
154
+ version: 0.7.0
183
155
  description: A proposals component for decidim's participatory processes.
184
156
  email:
185
157
  - josepjaume@gmail.com
@@ -243,7 +215,7 @@ files:
243
215
  - app/views/decidim/proposals/proposals/_remaining_votes_count.html.erb
244
216
  - app/views/decidim/proposals/proposals/_vote_button.html.erb
245
217
  - app/views/decidim/proposals/proposals/_votes_count.html.erb
246
- - app/views/decidim/proposals/proposals/_votes_limit.html.erb
218
+ - app/views/decidim/proposals/proposals/_voting_rules.html.erb
247
219
  - app/views/decidim/proposals/proposals/index.html.erb
248
220
  - app/views/decidim/proposals/proposals/index.js.erb
249
221
  - app/views/decidim/proposals/proposals/new.html.erb
@@ -258,6 +230,7 @@ files:
258
230
  - config/locales/it.yml
259
231
  - config/locales/nl.yml
260
232
  - config/locales/pl.yml
233
+ - config/locales/ru.yml
261
234
  - config/locales/uk.yml
262
235
  - db/migrate/20161212110850_create_decidim_proposals.rb
263
236
  - db/migrate/20170112115253_create_proposal_votes.rb
@@ -281,9 +254,10 @@ files:
281
254
  - lib/decidim/proposals/feature.rb
282
255
  - lib/decidim/proposals/proposal_serializer.rb
283
256
  - lib/decidim/proposals/test/factories.rb
257
+ - lib/decidim/proposals/version.rb
284
258
  homepage: https://github.com/decidim/decidim
285
259
  licenses:
286
- - AGPLv3
260
+ - AGPL-3.0
287
261
  metadata: {}
288
262
  post_install_message:
289
263
  rdoc_options: []
@@ -301,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
301
275
  version: '0'
302
276
  requirements: []
303
277
  rubyforge_project:
304
- rubygems_version: 2.6.11
278
+ rubygems_version: 2.6.13
305
279
  signing_key:
306
280
  specification_version: 4
307
281
  summary: A proposals component for decidim's participatory processes.
@@ -1,21 +0,0 @@
1
- <% if vote_limit_enabled? %>
2
- <div class="row column">
3
- <div class="callout secondary">
4
- <div class="row">
5
- <div class="columns medium-8 large-9">
6
- <h3 class="heading3"><%= t('.vote_limit.title', limit: feature_settings.vote_limit) %></h3>
7
- <p><%= t('.vote_limit.description', limit: feature_settings.vote_limit) %></p>
8
- </div>
9
- <div class="columns medium-4 large-3">
10
- <div class="card card--nomargin text-center">
11
- <div class="card__content">
12
- <span class="definition-data__title"><%= t('.vote_limit.left', limit: feature_settings.vote_limit) %></span>
13
- <%= render partial: "remaining_votes_count" %>
14
- <span class="extra__suport-text"><%= t('.vote_limit.votes') %></span>
15
- </div>
16
- </div>
17
- </div>
18
- </div>
19
- </div>
20
- </div>
21
- <% end %>