decidim-proposals 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/app/commands/decidim/proposals/admin/create_proposal.rb +4 -1
  3. data/app/commands/decidim/proposals/create_proposal.rb +4 -1
  4. data/app/controllers/decidim/proposals/admin/proposals_controller.rb +4 -0
  5. data/app/controllers/decidim/proposals/proposals_controller.rb +12 -6
  6. data/app/forms/decidim/proposals/admin/proposal_form.rb +13 -2
  7. data/app/forms/decidim/proposals/proposal_form.rb +13 -2
  8. data/app/helpers/decidim/proposals/application_helper.rb +3 -0
  9. data/app/helpers/decidim/proposals/map_helper.rb +19 -0
  10. data/app/helpers/decidim/proposals/proposal_order_helper.rb +16 -0
  11. data/app/models/decidim/proposals/abilities/admin_user.rb +2 -0
  12. data/app/models/decidim/proposals/abilities/current_user.rb +3 -0
  13. data/app/models/decidim/proposals/abilities/process_admin_user.rb +2 -1
  14. data/app/models/decidim/proposals/proposal.rb +12 -3
  15. data/app/services/decidim/proposals/proposal_search.rb +0 -5
  16. data/app/views/decidim/proposals/admin/proposal_answers/edit.html.erb +1 -1
  17. data/app/views/decidim/proposals/admin/proposals/_form.html.erb +8 -2
  18. data/app/views/decidim/proposals/admin/proposals/index.html.erb +12 -14
  19. data/app/views/decidim/proposals/proposals/_filters.html.erb +2 -2
  20. data/app/views/decidim/proposals/proposals/_filters_small_view.html.erb +1 -1
  21. data/app/views/decidim/proposals/proposals/_proposals.html.erb +1 -1
  22. data/app/views/decidim/proposals/proposals/_tags.html.erb +1 -1
  23. data/app/views/decidim/proposals/proposals/index.html.erb +27 -0
  24. data/app/views/decidim/proposals/proposals/new.html.erb +8 -2
  25. data/app/views/decidim/proposals/proposals/show.html.erb +18 -1
  26. data/config/i18n-tasks.yml +3 -1
  27. data/config/locales/ca.yml +11 -8
  28. data/config/locales/en.yml +9 -6
  29. data/config/locales/es.yml +14 -11
  30. data/config/locales/eu.yml +119 -1
  31. data/config/locales/fi.yml +143 -0
  32. data/db/migrate/20170215113152_create_proposal_reports.rb +14 -0
  33. data/db/migrate/20170215131720_add_report_count_to_proposals.rb +5 -0
  34. data/db/migrate/20170215132030_add_reference_to_proposals.rb +7 -0
  35. data/db/migrate/20170220152416_add_hidden_at_to_proposals.rb +5 -0
  36. data/db/migrate/20170228105156_add_geolocalization_fields_to_proposals.rb +7 -0
  37. data/db/migrate/20170307085300_migrate_proposal_reports_data_to_reports.rb +26 -0
  38. data/lib/decidim/proposals/feature.rb +4 -3
  39. data/lib/decidim/proposals/test/factories.rb +8 -0
  40. metadata +25 -16
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.0.5
4
+ version: 0.0.6
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-02-17 00:00:00.000000000 Z
13
+ date: 2017-03-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.0.5
21
+ version: 0.0.6
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.0.5
28
+ version: 0.0.6
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.0.5
35
+ version: 0.0.6
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.0.5
42
+ version: 0.0.6
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: rectify
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -74,70 +74,70 @@ dependencies:
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: 0.8.8
77
+ version: 0.9.0
78
78
  type: :runtime
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.8.8
84
+ version: 0.9.0
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: decidim-dev
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - '='
90
90
  - !ruby/object:Gem::Version
91
- version: 0.0.5
91
+ version: 0.0.6
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - '='
97
97
  - !ruby/object:Gem::Version
98
- version: 0.0.5
98
+ version: 0.0.6
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: decidim-meetings
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - '='
104
104
  - !ruby/object:Gem::Version
105
- version: 0.0.5
105
+ version: 0.0.6
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - '='
111
111
  - !ruby/object:Gem::Version
112
- version: 0.0.5
112
+ version: 0.0.6
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: decidim-results
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - '='
118
118
  - !ruby/object:Gem::Version
119
- version: 0.0.5
119
+ version: 0.0.6
120
120
  type: :development
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - '='
125
125
  - !ruby/object:Gem::Version
126
- version: 0.0.5
126
+ version: 0.0.6
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: decidim-budgets
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - '='
132
132
  - !ruby/object:Gem::Version
133
- version: 0.0.5
133
+ version: 0.0.6
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - '='
139
139
  - !ruby/object:Gem::Version
140
- version: 0.0.5
140
+ version: 0.0.6
141
141
  description: A proposals component for decidim's participatory processes.
142
142
  email:
143
143
  - josepjaume@gmail.com
@@ -167,6 +167,8 @@ files:
167
167
  - app/forms/decidim/proposals/admin/proposal_form.rb
168
168
  - app/forms/decidim/proposals/proposal_form.rb
169
169
  - app/helpers/decidim/proposals/application_helper.rb
170
+ - app/helpers/decidim/proposals/map_helper.rb
171
+ - app/helpers/decidim/proposals/proposal_order_helper.rb
170
172
  - app/helpers/decidim/proposals/proposal_votes_helper.rb
171
173
  - app/models/decidim/proposals/abilities/admin_user.rb
172
174
  - app/models/decidim/proposals/abilities/current_user.rb
@@ -202,6 +204,7 @@ files:
202
204
  - config/locales/en.yml
203
205
  - config/locales/es.yml
204
206
  - config/locales/eu.yml
207
+ - config/locales/fi.yml
205
208
  - db/migrate/20161212110850_create_decidim_proposals.rb
206
209
  - db/migrate/20170112115253_create_proposal_votes.rb
207
210
  - db/migrate/20170113114245_add_text_search_indexes.rb
@@ -209,6 +212,12 @@ files:
209
212
  - db/migrate/20170120151202_add_user_group_id_to_proposals.rb
210
213
  - db/migrate/20170131092413_add_answers_to_proposals.rb
211
214
  - db/migrate/20170205082832_add_index_to_decidim_proposals_proposals_proposal_votes_count.rb
215
+ - db/migrate/20170215113152_create_proposal_reports.rb
216
+ - db/migrate/20170215131720_add_report_count_to_proposals.rb
217
+ - db/migrate/20170215132030_add_reference_to_proposals.rb
218
+ - db/migrate/20170220152416_add_hidden_at_to_proposals.rb
219
+ - db/migrate/20170228105156_add_geolocalization_fields_to_proposals.rb
220
+ - db/migrate/20170307085300_migrate_proposal_reports_data_to_reports.rb
212
221
  - lib/decidim/proposals.rb
213
222
  - lib/decidim/proposals/admin.rb
214
223
  - lib/decidim/proposals/admin_engine.rb