decidim-budgets 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +23 -0
  3. data/Rakefile +2 -0
  4. data/app/assets/config/decidim_budgets_manifest.js +1 -0
  5. data/app/assets/images/decidim/budgets/icon.svg +4 -0
  6. data/app/assets/javascripts/decidim/budgets/projects.js.es6 +28 -0
  7. data/app/assets/stylesheets/decidim/budgets/_budgets.scss +1 -0
  8. data/app/assets/stylesheets/decidim/budgets/budget/_budget-list.scss +32 -0
  9. data/app/assets/stylesheets/decidim/budgets/budget/_budget-meter.scss +78 -0
  10. data/app/assets/stylesheets/decidim/budgets/budget/_progress.scss +17 -0
  11. data/app/commands/decidim/budgets/add_line_item.rb +43 -0
  12. data/app/commands/decidim/budgets/admin/create_project.rb +52 -0
  13. data/app/commands/decidim/budgets/admin/update_project.rb +56 -0
  14. data/app/commands/decidim/budgets/cancel_order.rb +36 -0
  15. data/app/commands/decidim/budgets/checkout.rb +34 -0
  16. data/app/commands/decidim/budgets/remove_line_item.rb +35 -0
  17. data/app/controllers/concerns/decidim/budgets/needs_current_order.rb +27 -0
  18. data/app/controllers/decidim/budgets/admin/application_controller.rb +14 -0
  19. data/app/controllers/decidim/budgets/admin/projects_controller.rb +69 -0
  20. data/app/controllers/decidim/budgets/application_controller.rb +13 -0
  21. data/app/controllers/decidim/budgets/line_items_controller.rb +43 -0
  22. data/app/controllers/decidim/budgets/orders_controller.rb +38 -0
  23. data/app/controllers/decidim/budgets/projects_controller.rb +44 -0
  24. data/app/forms/decidim/budgets/admin/project_form.rb +44 -0
  25. data/app/helpers/decidim/budgets/application_helper.rb +12 -0
  26. data/app/helpers/decidim/budgets/projects_helper.rb +29 -0
  27. data/app/models/decidim/budgets/application_record.rb +9 -0
  28. data/app/models/decidim/budgets/line_item.rb +20 -0
  29. data/app/models/decidim/budgets/order.rb +52 -0
  30. data/app/models/decidim/budgets/project.rb +15 -0
  31. data/app/services/decidim/budgets/project_search.rb +58 -0
  32. data/app/views/decidim/budgets/admin/projects/_form.html.erb +31 -0
  33. data/app/views/decidim/budgets/admin/projects/edit.html.erb +9 -0
  34. data/app/views/decidim/budgets/admin/projects/index.html.erb +27 -0
  35. data/app/views/decidim/budgets/admin/projects/new.html.erb +9 -0
  36. data/app/views/decidim/budgets/line_items/update_budget.js.erb +21 -0
  37. data/app/views/decidim/budgets/projects/_budget_confirm.html.erb +30 -0
  38. data/app/views/decidim/budgets/projects/_budget_excess.html.erb +14 -0
  39. data/app/views/decidim/budgets/projects/_budget_summary.html.erb +46 -0
  40. data/app/views/decidim/budgets/projects/_count.html.erb +1 -0
  41. data/app/views/decidim/budgets/projects/_filters.html.erb +24 -0
  42. data/app/views/decidim/budgets/projects/_linked_projects.html.erb +12 -0
  43. data/app/views/decidim/budgets/projects/_order_progress.html.erb +34 -0
  44. data/app/views/decidim/budgets/projects/_order_selected_projects.html.erb +25 -0
  45. data/app/views/decidim/budgets/projects/_order_total_budget.html.erb +1 -0
  46. data/app/views/decidim/budgets/projects/_project.html.erb +40 -0
  47. data/app/views/decidim/budgets/projects/_project_budget_button.html.erb +9 -0
  48. data/app/views/decidim/budgets/projects/_projects.html.erb +8 -0
  49. data/app/views/decidim/budgets/projects/_tags.html.erb +10 -0
  50. data/app/views/decidim/budgets/projects/index.html.erb +26 -0
  51. data/app/views/decidim/budgets/projects/index.js.erb +2 -0
  52. data/app/views/decidim/budgets/projects/show.html.erb +48 -0
  53. data/config/i18n-tasks.yml +4 -0
  54. data/config/locales/ca.yml +84 -0
  55. data/config/locales/en.yml +95 -0
  56. data/config/locales/es.yml +84 -0
  57. data/db/migrate/20170127114122_create_projects.rb +15 -0
  58. data/db/migrate/20170130095615_create_orders.rb +13 -0
  59. data/db/migrate/20170130101825_create_line_items.rb +10 -0
  60. data/lib/decidim/budgets/admin.rb +9 -0
  61. data/lib/decidim/budgets/admin_engine.rb +22 -0
  62. data/lib/decidim/budgets/feature.rb +59 -0
  63. data/lib/decidim/budgets/list_engine.rb +30 -0
  64. data/lib/decidim/budgets/test/factories.rb +43 -0
  65. data/lib/decidim/budgets.rb +11 -0
  66. metadata +210 -0
metadata ADDED
@@ -0,0 +1,210 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: decidim-budgets
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Josep Jaume Rey Peroy
8
+ - Marc Riera Casals
9
+ - Oriol Gual Oliva
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2017-02-02 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: decidim-core
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - '='
20
+ - !ruby/object:Gem::Version
21
+ version: 0.0.3
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - '='
27
+ - !ruby/object:Gem::Version
28
+ version: 0.0.3
29
+ - !ruby/object:Gem::Dependency
30
+ name: decidim-comments
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - '='
34
+ - !ruby/object:Gem::Version
35
+ version: 0.0.3
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - '='
41
+ - !ruby/object:Gem::Version
42
+ version: 0.0.3
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.8'
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '0.8'
57
+ - !ruby/object:Gem::Dependency
58
+ name: searchlight
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: 4.1.0
64
+ type: :runtime
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: 4.1.0
71
+ - !ruby/object:Gem::Dependency
72
+ name: kaminari
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: 1.0.0.rc1
78
+ type: :runtime
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - "~>"
83
+ - !ruby/object:Gem::Version
84
+ version: 1.0.0.rc1
85
+ - !ruby/object:Gem::Dependency
86
+ name: decidim-dev
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - '='
90
+ - !ruby/object:Gem::Version
91
+ version: 0.0.3
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - '='
97
+ - !ruby/object:Gem::Version
98
+ version: 0.0.3
99
+ - !ruby/object:Gem::Dependency
100
+ name: decidim-proposals
101
+ requirement: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - '='
104
+ - !ruby/object:Gem::Version
105
+ version: 0.0.3
106
+ type: :development
107
+ prerelease: false
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - '='
111
+ - !ruby/object:Gem::Version
112
+ version: 0.0.3
113
+ description: ''
114
+ email:
115
+ - josepjaume@gmail.com
116
+ - mrc2407@gmail.com
117
+ - oriolgual@gmail.com
118
+ executables: []
119
+ extensions: []
120
+ extra_rdoc_files: []
121
+ files:
122
+ - README.md
123
+ - Rakefile
124
+ - app/assets/config/decidim_budgets_manifest.js
125
+ - app/assets/images/decidim/budgets/icon.svg
126
+ - app/assets/javascripts/decidim/budgets/projects.js.es6
127
+ - app/assets/stylesheets/decidim/budgets/_budgets.scss
128
+ - app/assets/stylesheets/decidim/budgets/budget/_budget-list.scss
129
+ - app/assets/stylesheets/decidim/budgets/budget/_budget-meter.scss
130
+ - app/assets/stylesheets/decidim/budgets/budget/_progress.scss
131
+ - app/commands/decidim/budgets/add_line_item.rb
132
+ - app/commands/decidim/budgets/admin/create_project.rb
133
+ - app/commands/decidim/budgets/admin/update_project.rb
134
+ - app/commands/decidim/budgets/cancel_order.rb
135
+ - app/commands/decidim/budgets/checkout.rb
136
+ - app/commands/decidim/budgets/remove_line_item.rb
137
+ - app/controllers/concerns/decidim/budgets/needs_current_order.rb
138
+ - app/controllers/decidim/budgets/admin/application_controller.rb
139
+ - app/controllers/decidim/budgets/admin/projects_controller.rb
140
+ - app/controllers/decidim/budgets/application_controller.rb
141
+ - app/controllers/decidim/budgets/line_items_controller.rb
142
+ - app/controllers/decidim/budgets/orders_controller.rb
143
+ - app/controllers/decidim/budgets/projects_controller.rb
144
+ - app/forms/decidim/budgets/admin/project_form.rb
145
+ - app/helpers/decidim/budgets/application_helper.rb
146
+ - app/helpers/decidim/budgets/projects_helper.rb
147
+ - app/models/decidim/budgets/application_record.rb
148
+ - app/models/decidim/budgets/line_item.rb
149
+ - app/models/decidim/budgets/order.rb
150
+ - app/models/decidim/budgets/project.rb
151
+ - app/services/decidim/budgets/project_search.rb
152
+ - app/views/decidim/budgets/admin/projects/_form.html.erb
153
+ - app/views/decidim/budgets/admin/projects/edit.html.erb
154
+ - app/views/decidim/budgets/admin/projects/index.html.erb
155
+ - app/views/decidim/budgets/admin/projects/new.html.erb
156
+ - app/views/decidim/budgets/line_items/update_budget.js.erb
157
+ - app/views/decidim/budgets/projects/_budget_confirm.html.erb
158
+ - app/views/decidim/budgets/projects/_budget_excess.html.erb
159
+ - app/views/decidim/budgets/projects/_budget_summary.html.erb
160
+ - app/views/decidim/budgets/projects/_count.html.erb
161
+ - app/views/decidim/budgets/projects/_filters.html.erb
162
+ - app/views/decidim/budgets/projects/_linked_projects.html.erb
163
+ - app/views/decidim/budgets/projects/_order_progress.html.erb
164
+ - app/views/decidim/budgets/projects/_order_selected_projects.html.erb
165
+ - app/views/decidim/budgets/projects/_order_total_budget.html.erb
166
+ - app/views/decidim/budgets/projects/_project.html.erb
167
+ - app/views/decidim/budgets/projects/_project_budget_button.html.erb
168
+ - app/views/decidim/budgets/projects/_projects.html.erb
169
+ - app/views/decidim/budgets/projects/_tags.html.erb
170
+ - app/views/decidim/budgets/projects/index.html.erb
171
+ - app/views/decidim/budgets/projects/index.js.erb
172
+ - app/views/decidim/budgets/projects/show.html.erb
173
+ - config/i18n-tasks.yml
174
+ - config/locales/ca.yml
175
+ - config/locales/en.yml
176
+ - config/locales/es.yml
177
+ - db/migrate/20170127114122_create_projects.rb
178
+ - db/migrate/20170130095615_create_orders.rb
179
+ - db/migrate/20170130101825_create_line_items.rb
180
+ - lib/decidim/budgets.rb
181
+ - lib/decidim/budgets/admin.rb
182
+ - lib/decidim/budgets/admin_engine.rb
183
+ - lib/decidim/budgets/feature.rb
184
+ - lib/decidim/budgets/list_engine.rb
185
+ - lib/decidim/budgets/test/factories.rb
186
+ homepage: https://github.com/AjuntamentdeBarcelona/decidim
187
+ licenses:
188
+ - AGPLv3
189
+ metadata: {}
190
+ post_install_message:
191
+ rdoc_options: []
192
+ require_paths:
193
+ - lib
194
+ required_ruby_version: !ruby/object:Gem::Requirement
195
+ requirements:
196
+ - - ">="
197
+ - !ruby/object:Gem::Version
198
+ version: 2.3.1
199
+ required_rubygems_version: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: '0'
204
+ requirements: []
205
+ rubyforge_project:
206
+ rubygems_version: 2.6.8
207
+ signing_key:
208
+ specification_version: 4
209
+ summary: A budgets component for decidim's participatory processes.
210
+ test_files: []