decidim 0.0.8.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim might be problematic. Click here for more details.

Files changed (292) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +21 -21
  3. data/.codeclimate.yml +10 -6
  4. data/.eslintignore +1 -0
  5. data/.gitignore +1 -1
  6. data/.rubocop.yml +38 -20
  7. data/.travis.yml +0 -1
  8. data/Gemfile +6 -9
  9. data/Gemfile.lock +165 -205
  10. data/Rakefile +1 -1
  11. data/codecov.yml +5 -71
  12. data/crowdin.yaml +1 -1
  13. data/decidim-admin/app/assets/stylesheets/decidim/admin/_decidim.scss +9 -2
  14. data/decidim-admin/app/assets/stylesheets/decidim/admin/extra/_action-icon.scss +7 -0
  15. data/decidim-admin/app/assets/stylesheets/decidim/admin/extra/_cards.scss +6 -0
  16. data/decidim-admin/app/assets/stylesheets/decidim/admin/extra/_editor.scss +1 -0
  17. data/decidim-admin/app/assets/stylesheets/decidim/admin/{_sidebar.scss → extra/_sidebar.scss} +0 -0
  18. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_action-icon.scss +23 -0
  19. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_cards.scss +0 -7
  20. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_icons.scss +4 -2
  21. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_modules.scss +0 -1
  22. data/decidim-admin/app/assets/stylesheets/decidim/admin/{modules/_datepicker.scss → plugins/_foundation-datepicker.scss} +1 -1
  23. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/_constants.scss +5 -0
  24. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/_math.scss +45 -0
  25. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_acos.scss +12 -0
  26. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss +12 -0
  27. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_atan.scss +28 -0
  28. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_atan2.scss +37 -0
  29. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_cos.scss +13 -0
  30. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_cot.scss +9 -0
  31. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_csc.scss +9 -0
  32. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_exp.scss +12 -0
  33. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_fact.scss +18 -0
  34. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_frexp.scss +21 -0
  35. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss +17 -0
  36. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_log.scss +34 -0
  37. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_pow.scss +28 -0
  38. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_sec.scss +9 -0
  39. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_sin.scss +9 -0
  40. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_sqrt.scss +16 -0
  41. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss +9 -0
  42. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_deg-to-rad.scss +4 -0
  43. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_rad-to-deg.scss +4 -0
  44. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_strip-unit.scss +8 -0
  45. data/decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_unitless-rad.scss +13 -0
  46. data/decidim-admin/app/commands/decidim/admin/create_participatory_process.rb +23 -17
  47. data/decidim-admin/app/commands/decidim/admin/create_participatory_process_group.rb +1 -1
  48. data/decidim-admin/app/controllers/decidim/admin/moderations_controller.rb +4 -4
  49. data/decidim-admin/app/controllers/decidim/admin/participatory_processes_controller.rb +1 -1
  50. data/decidim-admin/app/forms/decidim/admin/organization_form.rb +6 -2
  51. data/decidim-admin/app/forms/decidim/admin/participatory_process_form.rb +5 -0
  52. data/decidim-admin/app/helpers/decidim/admin/application_helper.rb +1 -1
  53. data/decidim-admin/app/helpers/decidim/admin/attributes_display_helper.rb +1 -1
  54. data/decidim-admin/app/views/decidim/admin/features/_feature.html.erb +5 -1
  55. data/decidim-admin/app/views/decidim/admin/moderations/_report.html.erb +11 -0
  56. data/decidim-admin/app/views/decidim/admin/moderations/index.html.erb +22 -24
  57. data/decidim-admin/app/views/layouts/decidim/admin/participatory_process.html.erb +3 -0
  58. data/decidim-admin/config/i18n-tasks.yml +1 -0
  59. data/decidim-admin/config/locales/ca.yml +7 -3
  60. data/decidim-admin/config/locales/en.yml +6 -2
  61. data/decidim-admin/config/locales/es.yml +7 -3
  62. data/decidim-admin/config/locales/eu.yml +4 -3
  63. data/decidim-admin/config/locales/fi.yml +4 -3
  64. data/decidim-admin/config/locales/fr.yml +389 -2
  65. data/decidim-admin/config/locales/nl.yml +4 -1
  66. data/decidim-admin/decidim-admin.gemspec +3 -3
  67. data/decidim-admin/lib/decidim/admin/test/manage_attachments_examples.rb +2 -2
  68. data/decidim-admin/spec/commands/activate_participatory_process_step_spec.rb +1 -0
  69. data/decidim-admin/spec/commands/create_category_spec.rb +1 -1
  70. data/decidim-admin/spec/commands/create_feature_spec.rb +7 -5
  71. data/decidim-admin/spec/commands/create_participatory_process_admin_spec.rb +2 -1
  72. data/decidim-admin/spec/commands/create_participatory_process_spec.rb +14 -6
  73. data/decidim-admin/spec/commands/create_scope_spec.rb +3 -2
  74. data/decidim-admin/spec/commands/deactivate_participatory_process_step_spec.rb +1 -0
  75. data/decidim-admin/spec/commands/destroy_feature_spec.rb +1 -0
  76. data/decidim-admin/spec/commands/destroy_participatory_process_step_spec.rb +1 -0
  77. data/decidim-admin/spec/commands/publish_participatory_process_spec.rb +1 -0
  78. data/decidim-admin/spec/commands/reorder_participatory_process_steps_spec.rb +1 -0
  79. data/decidim-admin/spec/commands/unpublish_participatory_process_spec.rb +1 -0
  80. data/decidim-admin/spec/commands/update_feature_spec.rb +7 -5
  81. data/decidim-admin/spec/commands/update_participatory_process_spec.rb +5 -5
  82. data/decidim-admin/spec/commands/update_scope_spec.rb +3 -2
  83. data/decidim-admin/spec/factories.rb +1 -0
  84. data/decidim-admin/spec/features/admin_invite_spec.rb +5 -5
  85. data/decidim-admin/spec/features/admin_manages_newsletters_spec.rb +5 -5
  86. data/decidim-admin/spec/features/admin_manages_organization_admins_spec.rb +2 -2
  87. data/decidim-admin/spec/features/admin_manages_organization_scopes_spec.rb +3 -3
  88. data/decidim-admin/spec/features/admin_manages_organization_spec.rb +7 -11
  89. data/decidim-admin/spec/features/admin_manages_participatory_process_groups_spec.rb +2 -2
  90. data/decidim-admin/spec/features/admin_manages_participatory_processes_spec.rb +3 -3
  91. data/decidim-admin/spec/features/static_pages_spec.rb +8 -7
  92. data/decidim-admin/spec/forms/newsletter_form_spec.rb +2 -2
  93. data/decidim-admin/spec/forms/organization_form_spec.rb +3 -3
  94. data/decidim-admin/spec/forms/participatory_process_form_spec.rb +4 -4
  95. data/decidim-admin/spec/forms/participatory_process_step_form_spec.rb +1 -1
  96. data/decidim-admin/spec/forms/participatory_process_user_role_form_spec.rb +1 -1
  97. data/decidim-admin/spec/forms/scope_form_spec.rb +1 -1
  98. data/decidim-admin/spec/helpers/aria_selected_link_to_helper_spec.rb +1 -0
  99. data/decidim-admin/spec/helpers/feature_settings_helper_spec.rb +1 -0
  100. data/decidim-admin/spec/jobs/newsletter_delivery_job_spec.rb +2 -2
  101. data/decidim-admin/spec/queries/process_admins_spec.rb +1 -1
  102. data/decidim-admin/spec/shared/manage_process_admins_examples.rb +2 -2
  103. data/decidim-admin/spec/shared/manage_process_categories_examples.rb +3 -3
  104. data/decidim-admin/spec/shared/manage_process_steps_examples.rb +5 -5
  105. data/decidim-admin/spec/shared/manage_processes_examples.rb +4 -4
  106. data/decidim-admin/spec/shared/participatory_admin_shared_context.rb +1 -0
  107. data/decidim-admin/spec/spec_helper.rb +1 -0
  108. data/decidim-admin/spec/views/decidim/static_pages/_form.html.erb_spec.rb +1 -0
  109. data/decidim-api/app/controllers/decidim/api/application_controller.rb +1 -1
  110. data/decidim-api/decidim-api.gemspec +1 -1
  111. data/decidim-api/spec/factories.rb +1 -0
  112. data/decidim-api/spec/spec_helper.rb +1 -0
  113. data/decidim-budgets/app/queries/decidim/budgets/filtered_projects.rb +36 -0
  114. data/decidim-budgets/config/locales/ca.yml +1 -0
  115. data/decidim-budgets/config/locales/en.yml +1 -0
  116. data/decidim-budgets/config/locales/es.yml +1 -0
  117. data/decidim-budgets/config/locales/fr.yml +35 -3
  118. data/decidim-budgets/decidim-budgets.gemspec +2 -2
  119. data/decidim-budgets/lib/decidim/budgets/feature.rb +9 -0
  120. data/decidim-budgets/spec/commands/add_line_item_spec.rb +6 -9
  121. data/decidim-budgets/spec/commands/cancel_order_spec.rb +3 -1
  122. data/decidim-budgets/spec/commands/checkout_spec.rb +3 -1
  123. data/decidim-budgets/spec/commands/create_project_spec.rb +4 -3
  124. data/decidim-budgets/spec/commands/remove_line_item_spec.rb +2 -1
  125. data/decidim-budgets/spec/commands/update_project_spec.rb +4 -3
  126. data/decidim-budgets/spec/factories.rb +1 -0
  127. data/decidim-budgets/spec/features/orders_spec.rb +24 -24
  128. data/decidim-budgets/spec/forms/project_form_spec.rb +1 -0
  129. data/decidim-budgets/spec/models/project_spec.rb +1 -1
  130. data/decidim-budgets/spec/queries/decidim/budgets/filtered_projects_spec.rb +21 -0
  131. data/decidim-budgets/spec/services/project_search_spec.rb +4 -3
  132. data/decidim-budgets/spec/shared/admin_shared_context.rb +1 -0
  133. data/decidim-budgets/spec/shared/manage_attachments_examples.rb +1 -0
  134. data/decidim-budgets/spec/spec_helper.rb +1 -0
  135. data/decidim-comments/app/assets/javascripts/decidim/comments/bundle.js +0 -0
  136. data/decidim-comments/app/commands/decidim/comments/create_comment.rb +8 -2
  137. data/decidim-comments/app/frontend/application/application.component.tsx +3 -3
  138. data/decidim-comments/app/frontend/application/icon.component.tsx +1 -1
  139. data/decidim-comments/app/frontend/comments/add_comment_form.component.tsx +7 -7
  140. data/decidim-comments/app/frontend/comments/comment.component.test.tsx +7 -7
  141. data/decidim-comments/app/frontend/comments/comment.component.tsx +6 -6
  142. data/decidim-comments/app/frontend/comments/comment_thread.component.tsx +2 -2
  143. data/decidim-comments/app/frontend/comments/comments.component.test.tsx +5 -5
  144. data/decidim-comments/app/frontend/comments/comments.component.tsx +6 -6
  145. data/decidim-comments/app/frontend/comments/down_vote_button.component.test.tsx +4 -4
  146. data/decidim-comments/app/frontend/comments/down_vote_button.component.tsx +3 -3
  147. data/decidim-comments/app/frontend/comments/up_vote_button.component.test.tsx +4 -4
  148. data/decidim-comments/app/frontend/comments/up_vote_button.component.tsx +3 -3
  149. data/decidim-comments/app/frontend/comments/vote_button.component.tsx +1 -1
  150. data/decidim-comments/app/frontend/comments/vote_button_component.test.tsx +2 -2
  151. data/decidim-comments/app/frontend/entry.ts +2 -2
  152. data/decidim-comments/app/frontend/support/generate_comments_data.ts +2 -2
  153. data/decidim-comments/app/frontend/support/load_translations.ts +2 -2
  154. data/decidim-comments/app/frontend/support/resolve_graphql_query.ts +1 -1
  155. data/decidim-comments/app/mailers/decidim/comments/comment_notification_mailer.rb +1 -1
  156. data/decidim-comments/app/models/decidim/comments/comment.rb +3 -8
  157. data/decidim-comments/app/models/decidim/comments/seed.rb +1 -0
  158. data/decidim-comments/config/locales/fr.yml +62 -1
  159. data/decidim-comments/db/migrate/20170504085413_add_root_commentable_to_comments.rb +7 -0
  160. data/decidim-comments/db/migrate/20170510091348_update_root_commentable_for_comments.rb +22 -0
  161. data/decidim-comments/db/migrate/20170510091409_set_root_commentable_null_constraints.rb +6 -0
  162. data/decidim-comments/db/seeds.rb +4 -2
  163. data/decidim-comments/lib/decidim/comments/engine.rb +8 -0
  164. data/decidim-comments/lib/decidim/comments/test/factories.rb +1 -0
  165. data/decidim-comments/spec/commands/create_comment_spec.rb +13 -6
  166. data/decidim-comments/spec/commands/vote_comment_spec.rb +2 -6
  167. data/decidim-comments/spec/factories.rb +1 -0
  168. data/decidim-comments/spec/features/notifications_spec.rb +4 -4
  169. data/decidim-comments/spec/features/process_admin_manages_comments_spec.rb +1 -1
  170. data/decidim-comments/spec/features/report_comment_spec.rb +4 -2
  171. data/decidim-comments/spec/helpers/comments_helper_spec.rb +3 -3
  172. data/decidim-comments/spec/mailers/comment_notification_mailer_spec.rb +2 -1
  173. data/decidim-comments/spec/models/comment_spec.rb +5 -9
  174. data/decidim-comments/spec/models/comment_vote_spec.rb +3 -3
  175. data/decidim-comments/spec/models/seed_spec.rb +1 -1
  176. data/decidim-comments/spec/queries/sorted_comments_spec.rb +5 -5
  177. data/decidim-comments/spec/shared/admin_shared_context.rb +1 -0
  178. data/decidim-comments/spec/spec_helper.rb +1 -0
  179. data/decidim-comments/spec/types/comment_mutation_type_spec.rb +4 -12
  180. data/decidim-comments/spec/types/comment_type_spec.rb +4 -5
  181. data/decidim-comments/spec/types/commentable_mutation_type_spec.rb +2 -2
  182. data/decidim-comments/spec/types/mutation_type_spec.rb +4 -6
  183. data/decidim-comments/spec/types/query_type_spec.rb +1 -1
  184. data/decidim-dev/decidim-dev.gemspec +6 -6
  185. data/decidim-dev/lib/decidim/dev/common_rake.rb +5 -1
  186. data/decidim-dev/lib/decidim/dev/railtie.rb +1 -0
  187. data/decidim-dev/lib/decidim/dev/test/base_spec_helper.rb +0 -2
  188. data/decidim-dev/lib/decidim/dev/test/rspec_support/geocoder.rb +4 -3
  189. data/decidim-dev/lib/decidim/dev/test/rspec_support/i18n.rb +2 -2
  190. data/decidim-dev/lib/decidim/dev/test/rspec_support/webmock.rb +1 -0
  191. data/decidim-dev/lib/generators/decidim/dummy_generator.rb +1 -1
  192. data/decidim-dev/lib/generators/decidim/templates/autoprefixer_initializer.rb +4 -3
  193. data/decidim-dev/lib/tasks/test_app.rake +1 -0
  194. data/decidim-meetings/app/controllers/decidim/meetings/meeting_widgets_controller.rb +1 -0
  195. data/decidim-meetings/app/controllers/decidim/meetings/meetings_controller.rb +8 -8
  196. data/decidim-meetings/app/helpers/decidim/meetings/map_helper.rb +9 -9
  197. data/decidim-meetings/app/models/decidim/meetings/meeting.rb +1 -1
  198. data/decidim-meetings/app/views/decidim/meetings/meeting_widgets/show.html.erb +8 -17
  199. data/decidim-meetings/config/locales/fr.yml +95 -1
  200. data/decidim-meetings/lib/decidim/meetings/feature.rb +7 -0
  201. data/decidim-meetings/spec/commands/close_meeting_spec.rb +2 -1
  202. data/decidim-meetings/spec/commands/create_meeting_spec.rb +6 -5
  203. data/decidim-meetings/spec/commands/update_meeting_spec.rb +6 -5
  204. data/decidim-meetings/spec/factories.rb +1 -0
  205. data/decidim-meetings/spec/features/explore_meetings_spec.rb +2 -1
  206. data/decidim-meetings/spec/forms/close_meeting_form_spec.rb +1 -0
  207. data/decidim-meetings/spec/forms/meeting_form_spec.rb +5 -3
  208. data/decidim-meetings/spec/services/meeting_search_spec.rb +3 -2
  209. data/decidim-meetings/spec/shared/admin_shared_context.rb +1 -0
  210. data/decidim-meetings/spec/shared/manage_attachments_examples.rb +1 -1
  211. data/decidim-meetings/spec/shared/manage_meetings_examples.rb +21 -20
  212. data/decidim-meetings/spec/spec_helper.rb +1 -0
  213. data/decidim-pages/config/locales/fr.yml +18 -1
  214. data/decidim-pages/decidim-pages.gemspec +1 -1
  215. data/decidim-pages/lib/decidim/pages/feature.rb +7 -0
  216. data/decidim-pages/spec/commands/create_page_spec.rb +1 -3
  217. data/decidim-pages/spec/factories.rb +1 -0
  218. data/decidim-pages/spec/spec_helper.rb +1 -0
  219. data/decidim-proposals/app/commands/decidim/proposals/create_proposal_export.rb +36 -0
  220. data/decidim-proposals/app/controllers/decidim/proposals/admin/exports_controller.rb +24 -0
  221. data/decidim-proposals/app/controllers/decidim/proposals/proposal_votes_controller.rb +3 -1
  222. data/decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb +0 -5
  223. data/decidim-proposals/app/controllers/decidim/proposals/proposals_controller.rb +0 -1
  224. data/decidim-proposals/app/jobs/decidim/proposals/export_job.rb +21 -0
  225. data/decidim-proposals/app/models/decidim/proposals/proposal.rb +1 -1
  226. data/decidim-proposals/app/queries/decidim/proposals/filtered_proposals.rb +36 -0
  227. data/decidim-proposals/app/services/decidim/proposals/proposal_serializer.rb +72 -0
  228. data/decidim-proposals/app/views/decidim/proposals/admin/proposals/index.html.erb +15 -3
  229. data/decidim-proposals/app/views/decidim/proposals/proposal_widgets/show.html.erb +4 -25
  230. data/decidim-proposals/config/locales/ca.yml +4 -0
  231. data/decidim-proposals/config/locales/en.yml +6 -1
  232. data/decidim-proposals/config/locales/es.yml +4 -0
  233. data/decidim-proposals/config/locales/fr.yml +146 -1
  234. data/decidim-proposals/decidim-proposals.gemspec +2 -2
  235. data/decidim-proposals/lib/decidim/proposals/admin_engine.rb +5 -0
  236. data/decidim-proposals/lib/decidim/proposals/feature.rb +14 -0
  237. data/decidim-proposals/spec/factories.rb +1 -0
  238. data/decidim-proposals/spec/features/admin_manages_proposals_spec.rb +1 -0
  239. data/decidim-proposals/spec/features/process_admin_manages_proposals_spec.rb +1 -0
  240. data/decidim-proposals/spec/features/proposals_spec.rb +29 -28
  241. data/decidim-proposals/spec/features/report_proposal_spec.rb +2 -2
  242. data/decidim-proposals/spec/features/vote_proposal_spec.rb +36 -32
  243. data/decidim-proposals/spec/helpers/proposal_order_helper_spec.rb +3 -3
  244. data/decidim-proposals/spec/jobs/export_job_spec.rb +57 -0
  245. data/decidim-proposals/spec/lib/decidim/proposals/feature_spec.rb +1 -0
  246. data/decidim-proposals/spec/models/decidim/proposals/proposal_vote_spec.rb +3 -3
  247. data/decidim-proposals/spec/queries/decidim/proposals/filtered_proposals_spec.rb +21 -0
  248. data/decidim-proposals/spec/services/decidim/proposals/proposal_search_spec.rb +12 -12
  249. data/decidim-proposals/spec/services/decidim/proposals/proposal_serializer_spec.rb +71 -0
  250. data/decidim-proposals/spec/shared/admin_shared_context.rb +1 -0
  251. data/decidim-proposals/spec/shared/create_proposal_examples.rb +4 -3
  252. data/decidim-proposals/spec/shared/export_proposals_examples.rb +37 -0
  253. data/decidim-proposals/spec/shared/manage_proposals_examples.rb +12 -11
  254. data/decidim-proposals/spec/shared/proposal_form_examples.rb +9 -8
  255. data/decidim-proposals/spec/spec_helper.rb +1 -0
  256. data/decidim-results/app/controllers/decidim/results/result_widgets_controller.rb +1 -0
  257. data/decidim-results/app/controllers/decidim/results/results_controller.rb +1 -1
  258. data/decidim-results/app/queries/decidim/results/filtered_results.rb +36 -0
  259. data/decidim-results/app/services/decidim/results/result_stats_calculator.rb +1 -1
  260. data/decidim-results/app/views/decidim/results/result_widgets/show.html.erb +2 -10
  261. data/decidim-results/config/locales/fr.yml +75 -1
  262. data/decidim-results/decidim-results.gemspec +2 -2
  263. data/decidim-results/lib/decidim/results/feature.rb +9 -0
  264. data/decidim-results/spec/commands/create_result_spec.rb +4 -3
  265. data/decidim-results/spec/commands/update_result_spec.rb +5 -4
  266. data/decidim-results/spec/controllers/results_controller_spec.rb +31 -0
  267. data/decidim-results/spec/factories.rb +1 -0
  268. data/decidim-results/spec/features/explore_results_spec.rb +75 -74
  269. data/decidim-results/spec/forms/result_form_spec.rb +2 -1
  270. data/decidim-results/spec/queries/decidim/results/filtered_results_spec.rb +21 -0
  271. data/decidim-results/spec/services/result_search_spec.rb +4 -3
  272. data/decidim-results/spec/services/result_stats_calculator_spec.rb +1 -0
  273. data/decidim-results/spec/shared/admin_shared_context.rb +1 -0
  274. data/decidim-results/spec/spec_helper.rb +1 -0
  275. data/decidim-system/config/locales/fr.yml +64 -1
  276. data/decidim-system/decidim-system.gemspec +3 -3
  277. data/decidim-system/spec/factories.rb +1 -0
  278. data/decidim-system/spec/spec_helper.rb +1 -0
  279. data/docs/how_to_create_a_plugin.md +117 -139
  280. data/lib/generators/decidim/install_generator.rb +1 -1
  281. data/package.json +30 -31
  282. data/tslint.json +1 -2
  283. data/webpack.config.js +2 -3
  284. data/yarn.lock +976 -1326
  285. metadata +68 -31
  286. data/decidim-admin/yarn.lock +0 -4
  287. data/decidim-api/.gitignore +0 -7
  288. data/decidim-budgets/.gitignore +0 -7
  289. data/decidim-meetings/.gitignore +0 -7
  290. data/decidim-pages/.gitignore +0 -3
  291. data/decidim-proposals/.gitignore +0 -3
  292. data/decidim-results/.gitignore +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: feedaf0fc01eb2cb7a26fd16e8f206dab452d663
4
- data.tar.gz: ee7b6ff683d0bf198b51a72d1e1398d443eb5fa9
3
+ metadata.gz: 196886f3b4ce549ccfb21d2a03f0080c8d1e7c9e
4
+ data.tar.gz: c015ca026ed4f83a48f94ca9288c564e84d7d44f
5
5
  SHA512:
6
- metadata.gz: '0691c45dca41ada76a68a3d251f7a7253f93e1e9d7f4c974ad236f3a46058ba5bd5f00fa8ae210288198a2bb0f68e3b75ced65dbeff76607ecea747fff41c5ac'
7
- data.tar.gz: 197e77db2106af6e31b226052a0cbeb97c4eb60c03da4872f19bba7ec085b90d72e448765f132134dad12264f7a70e5ba9e02a6cf457ce9faadf09e4453e282e
6
+ metadata.gz: 982356c678046a51e0c440bd84735b76b6338e304887e2aa7ef5cf670c22681e17a267ffa2999d40b36d8ccdb2f25d53cdf9f20ab667fae897110e1593d4b01a
7
+ data.tar.gz: b6306559b439f904e5d974a6e664fd89df7b1837e2aa18a9d1bd166c10ba1b06f2d92f58046294e3abb3bae295bff4e2bb8f3e9034bc048f3c1c942c1cd93b4a
@@ -34,33 +34,33 @@ jobs:
34
34
  command: |
35
35
  case $CIRCLE_NODE_INDEX in
36
36
  0)
37
- cd /code && yarn lint && bundle exec rspec spec
38
- cd /code && yarn test -- decidim-api
39
- cd /code/decidim-api && bundle exec rake
40
- cd /code && yarn test -- decidim-core
41
- cd /code/decidim-core && bundle exec rake
37
+ (cd /code && yarn lint && bundle exec rspec spec) &&
38
+ (cd /code && yarn test -- decidim-api) &&
39
+ (cd /code/decidim-api && bundle exec rake) &&
40
+ (cd /code && yarn test -- decidim-core) &&
41
+ (cd /code/decidim-core && bundle exec rake)
42
42
  ;;
43
43
  1)
44
- cd /code && yarn test -- decidim-admin
45
- cd /code/decidim-admin && bundle exec rake
46
- cd /code && yarn test -- decidim-meetings
47
- cd /code/decidim-meetings && bundle exec rake
44
+ (cd /code && yarn test -- decidim-admin) &&
45
+ (cd /code/decidim-admin && bundle exec rake) &&
46
+ (cd /code && yarn test -- decidim-meetings) &&
47
+ (cd /code/decidim-meetings && bundle exec rake)
48
48
  ;;
49
49
  2)
50
- cd /code && yarn test -- decidim-proposals
51
- cd /code/decidim-proposals && bundle exec rake
52
- cd /code && yarn test -- decidim-comments
53
- cd /code/decidim-comments && bundle exec rake
50
+ (cd /code && yarn test -- decidim-proposals) &&
51
+ (cd /code/decidim-proposals && bundle exec rake) &&
52
+ (cd /code && yarn test -- decidim-comments) &&
53
+ (cd /code/decidim-comments && bundle exec rake)
54
54
  ;;
55
55
  3)
56
- cd /code && yarn test -- decidim-pages
57
- cd /code/decidim-pages && bundle exec rake
58
- cd /code && yarn test -- decidim-system
59
- cd /code/decidim-system && bundle exec rake
60
- cd /code && yarn test -- decidim-results
61
- cd /code/decidim-results && bundle exec rake
62
- cd /code && yarn test -- decidim-budgets
63
- cd /code/decidim-budgets && bundle exec rake
56
+ (cd /code && yarn test -- decidim-pages) &&
57
+ (cd /code/decidim-pages && bundle exec rake) &&
58
+ (cd /code && yarn test -- decidim-system) &&
59
+ (cd /code/decidim-system && bundle exec rake) &&
60
+ (cd /code && yarn test -- decidim-results) &&
61
+ (cd /code/decidim-results && bundle exec rake) &&
62
+ (cd /code && yarn test -- decidim-budgets) &&
63
+ (cd /code/decidim-budgets && bundle exec rake)
64
64
  ;;
65
65
  esac
66
66
  - store_artifacts:
@@ -27,6 +27,8 @@ engines:
27
27
  enabled: false
28
28
  fixme:
29
29
  enabled: true
30
+ rubocop:
31
+ enabled: true
30
32
 
31
33
  ratings:
32
34
  paths:
@@ -40,16 +42,18 @@ ratings:
40
42
  - "**.py"
41
43
  - "**.rb"
42
44
  exclude_paths:
43
- - "**/spec/**/*"
44
- - "**/*/Rakefile"
45
45
  - "**/vendor/**/*"
46
- - "**/db/**/*"
46
+ - "decidim-*/spec/**/*"
47
+ - "decidim-*/test/**/*"
48
+ - "decidim-*/db/migrate/**/*"
47
49
  - "**/*.test.js"
48
50
  - "**/*.test.jsx"
49
51
  - "decidim-core/app/assets/stylesheets/decidim/email.css"
50
52
  - .rubocop.yml
51
53
  - lib/generators/decidim/templates/app.json.erb
52
- - "decidim-*/db/seeds.rb"
53
- - "decidim-*/config/routes.rb"
54
- - "doc/how_to_create_a_plugin.md"
54
+ - "docs/how_to_create_a_plugin.md"
55
55
  - "bundle.js"
56
+ - "node_modules/**/*"
57
+ - "development_app/**/*"
58
+ - "docker_development_app/**/*"
59
+ - "spec/decidim_dummy_app/**/*"
@@ -1,6 +1,7 @@
1
1
  **/*{.,-}min.js
2
2
  decidim-*/vendor/**/*.js
3
3
  spec/decidim_dummy_app/**/*.js
4
+ docker_development_app
4
5
  development_app
5
6
  **/node_modules/**
6
7
  vendor/bundle/**
data/.gitignore CHANGED
@@ -1,4 +1,4 @@
1
- **/spec/*_dummy_app
1
+ spec/decidim_dummy_app/
2
2
  .byebug_history
3
3
  pkg/
4
4
  vendor/bundle
@@ -22,13 +22,12 @@ AllCops:
22
22
  Exclude:
23
23
  - '**/Gemfile'
24
24
  - '**/*.gemspec'
25
- - 'vendor/**/*'
26
- - 'spec/*'
27
- - 'decidim-*/spec/**/*'
25
+ - '**/vendor/**/*'
28
26
  - 'decidim-*/test/**/*'
29
- - 'decidim-*/db/**/*'
27
+ - 'decidim-*/db/migrate/**'
30
28
  - 'development_app/**/*'
31
- - 'node_modules/**/*'
29
+ - 'docker_development_app/**/*'
30
+ - 'spec/decidim_dummy_app/**/*'
32
31
  # Default formatter will be used if no -f/--format option is given.
33
32
  DefaultFormatter: progress
34
33
  # Cop names are not displayed in offense messages by default. Change behavior
@@ -78,7 +77,7 @@ AllCops:
78
77
  # If a value is specified for TargetRubyVersion then it is used.
79
78
  # Else if .ruby-version exists and it contains an MRI version it is used.
80
79
  # Otherwise we fallback to the oldest officially supported Ruby version (2.0).
81
- TargetRubyVersion: 2.3
80
+ TargetRubyVersion: 2.4
82
81
 
83
82
  # Indent private/protected/public as deep as method definitions
84
83
  Style/AccessModifierIndentation:
@@ -100,6 +99,10 @@ Style/AccessorMethodName:
100
99
  Exclude:
101
100
  - "lib/generators/decidim/app_generator.rb"
102
101
 
102
+ Style/AlignArray:
103
+ Exclude:
104
+ - 'decidim-*/spec/**/*.rb'
105
+
103
106
  # Align the elements of a hash literal if they span more than one line.
104
107
  Style/AlignHash:
105
108
  # Alignment of entries using hash rocket as separator. Valid values are:
@@ -194,6 +197,8 @@ Style/AndOr:
194
197
  - always
195
198
  - conditionals
196
199
 
200
+ Style/AsciiComments:
201
+ Enabled: false
197
202
 
198
203
  # Checks if usage of %() or %Q() matches configuration.
199
204
  Style/BarePercentLiterals:
@@ -289,7 +294,7 @@ Style/BracesAroundHashParameters:
289
294
 
290
295
  # Indentation of `when`.
291
296
  Style/CaseIndentation:
292
- EnforcedStyle: case
297
+ IndentWhenRelativeTo: case
293
298
  SupportedStyles:
294
299
  - case
295
300
  - end
@@ -535,7 +540,7 @@ Style/GlobalVars:
535
540
  # `MinBodyLength` defines the number of lines of the a body of an if / unless
536
541
  # needs to have to trigger this cop
537
542
  Style/GuardClause:
538
- MinBodyLength: 1
543
+ MinBodyLength: 6
539
544
 
540
545
  Style/HashSyntax:
541
546
  EnforcedStyle: ruby19
@@ -815,7 +820,6 @@ Style/PredicateName:
815
820
  # Predicate name prefixes that should be removed.
816
821
  NamePrefixBlacklist:
817
822
  - is_
818
- - has_
819
823
  - have_
820
824
  # Predicate names which, despite having a blacklisted prefix, or no ?,
821
825
  # should still be accepted
@@ -824,12 +828,15 @@ Style/PredicateName:
824
828
  # Exclude Rspec specs because there is a strong convetion to write spec
825
829
  # helpers in the form of `have_something` or `be_something`.
826
830
  Exclude:
827
- - 'spec/**/*'
828
- - 'test/**/*'
831
+ - '**/spec/**/*'
832
+ - '**/test/**/*'
833
+
834
+ Style/PreferredHashMethods:
835
+ Enabled: true
836
+ EnforcedStyle: verbose
829
837
 
830
838
  Style/Documentation:
831
- Exclude:
832
- - '**/*/spec/**/*_spec.rb'
839
+ Enabled: false
833
840
 
834
841
  Style/RaiseArgs:
835
842
  EnforcedStyle: exploded
@@ -969,7 +976,7 @@ Style/SpaceInsideStringInterpolation:
969
976
  - no_space
970
977
 
971
978
  Style/SymbolArray:
972
- EnforcedStyle: percent
979
+ EnforcedStyle: brackets
973
980
  SupportedStyles:
974
981
  - percent
975
982
  - brackets
@@ -1104,7 +1111,7 @@ Metrics/ModuleLength:
1104
1111
 
1105
1112
  # Avoid complex methods.
1106
1113
  Metrics/CyclomaticComplexity:
1107
- Max: 6
1114
+ Max: 9
1108
1115
 
1109
1116
  Metrics/LineLength:
1110
1117
  Max: 180
@@ -1115,6 +1122,8 @@ Metrics/LineLength:
1115
1122
  URISchemes:
1116
1123
  - http
1117
1124
  - https
1125
+ Exclude:
1126
+ - 'decidim-*/spec/**/*.rb'
1118
1127
 
1119
1128
  Metrics/MethodLength:
1120
1129
  CountComments: false # count full line comments?
@@ -1126,7 +1135,7 @@ Metrics/ParameterLists:
1126
1135
  CountKeywordArgs: true
1127
1136
 
1128
1137
  Metrics/PerceivedComplexity:
1129
- Max: 7
1138
+ Max: 10
1130
1139
 
1131
1140
  ##################### Lint ##################################
1132
1141
 
@@ -1141,7 +1150,7 @@ Lint/BlockAlignment:
1141
1150
  # The value `start_of_line` means it should be aligned with the whole
1142
1151
  # expression's starting line.
1143
1152
  # The value `either` means both are allowed.
1144
- EnforcedStyleAlignWith: either
1153
+ AlignWith: either
1145
1154
 
1146
1155
  # Align ends correctly.
1147
1156
  Lint/EndAlignment:
@@ -1152,7 +1161,7 @@ Lint/EndAlignment:
1152
1161
  # situations, `end` should still be aligned with the keyword.
1153
1162
  # The value `start_of_line` means that `end` should be aligned with the start
1154
1163
  # of the line which the matching keyword appears on.
1155
- EnforcedStyleAlignWith: keyword
1164
+ AlignWith: keyword
1156
1165
  AutoCorrect: false
1157
1166
 
1158
1167
  Lint/DefEndAlignment:
@@ -1160,7 +1169,7 @@ Lint/DefEndAlignment:
1160
1169
  # The value `start_of_line` means that `end` should be aligned with method
1161
1170
  # calls like `private`, `public`, etc, if present in front of the `def`
1162
1171
  # keyword on the same line.
1163
- EnforcedStyleAlignWith: start_of_line
1172
+ AlignWith: start_of_line
1164
1173
  AutoCorrect: false
1165
1174
 
1166
1175
  Lint/InheritException:
@@ -1268,7 +1277,7 @@ Rails/TimeZone:
1268
1277
  - flexible
1269
1278
 
1270
1279
  Rails/UniqBeforePluck:
1271
- EnforcedStyle: conservative
1280
+ EnforcedMode: conservative
1272
1281
  AutoCorrect: false
1273
1282
 
1274
1283
  Rails/Validation:
@@ -1277,10 +1286,19 @@ Rails/Validation:
1277
1286
 
1278
1287
  Metrics/BlockLength:
1279
1288
  Exclude:
1289
+ - 'decidim-admin/app/controllers/decidim/admin/concerns/has_attachments.rb'
1280
1290
  - 'decidim-api/lib/decidim/api/schema.rb'
1291
+ - 'decidim-core/app/controllers/concerns/decidim/needs_authorization.rb'
1292
+ - 'decidim-core/app/controllers/concerns/decidim/filter_resource.rb'
1293
+ - 'decidim-core/config/initializers/devise.rb'
1294
+ - 'decidim-core/lib/decidim/core/api/translated_field_type.rb'
1295
+ - 'decidim-core/lib/decidim/resourceable.rb'
1296
+ - 'decidim-comments/lib/decidim/comments/api/comment_type.rb'
1297
+ - 'decidim-*/**/routes.rb'
1281
1298
  - 'decidim-*/**/*/types/**/*'
1282
1299
  - 'decidim-*/lib/**/*/test/**/*'
1283
1300
  - 'decidim-*/lib/**/*/feature.rb'
1301
+ - 'decidim-*/spec/**/*.rb'
1284
1302
 
1285
1303
  Lint/HandleExceptions:
1286
1304
  Exclude:
@@ -18,7 +18,6 @@ env:
18
18
  - BUNDLE_PATH="$HOME/.bundle"
19
19
  - PHANTOMJS_VERSION=2.1.1
20
20
  - PHANTOMJS_BIN="$HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin/phantomjs"
21
- - SIMPLECOV=true
22
21
  matrix:
23
22
  - GEM=. DB=postgres
24
23
  - GEM=decidim-admin DB=postgres
data/Gemfile CHANGED
@@ -3,12 +3,9 @@ source "https://rubygems.org"
3
3
 
4
4
  ruby "2.4.1"
5
5
 
6
- gemspec path: "."
7
- gemspec path: "decidim-core"
8
- gemspec path: "decidim-system"
9
- gemspec path: "decidim-admin"
10
- gemspec path: "decidim-dev"
11
- gemspec path: "decidim-api"
12
- gemspec path: "decidim-pages"
13
- gemspec path: "decidim-comments"
14
- gemspec path: "decidim-meetings"
6
+ gem "decidim", path: "."
7
+ gem "decidim-dev", path: "decidim-dev"
8
+
9
+ Dir.glob("decidim-!(dev)") do |file|
10
+ gem file, path: file
11
+ end
@@ -1,121 +1,129 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- decidim (0.0.8.1)
5
- decidim-admin (= 0.0.8.1)
6
- decidim-api (= 0.0.8.1)
7
- decidim-budgets (= 0.0.8.1)
8
- decidim-comments (= 0.0.8.1)
9
- decidim-core (= 0.0.8.1)
10
- decidim-meetings (= 0.0.8.1)
11
- decidim-pages (= 0.0.8.1)
12
- decidim-proposals (= 0.0.8.1)
13
- decidim-results (= 0.0.8.1)
14
- decidim-system (= 0.0.8.1)
4
+ decidim (0.1.0)
5
+ decidim-admin (= 0.1.0)
6
+ decidim-api (= 0.1.0)
7
+ decidim-budgets (= 0.1.0)
8
+ decidim-comments (= 0.1.0)
9
+ decidim-core (= 0.1.0)
10
+ decidim-meetings (= 0.1.0)
11
+ decidim-pages (= 0.1.0)
12
+ decidim-proposals (= 0.1.0)
13
+ decidim-results (= 0.1.0)
14
+ decidim-system (= 0.1.0)
15
15
  rails (~> 5.0.2)
16
16
  rails-i18n (~> 5.0.2)
17
- decidim-budgets (0.0.8.1)
18
- decidim-comments (= 0.0.8.1)
19
- decidim-core (= 0.0.8.1)
20
- kaminari (~> 1.0.0.rc1)
21
- rectify (~> 0.8)
22
- searchlight (~> 4.1.0)
23
- decidim-proposals (0.0.8.1)
24
- decidim-comments (= 0.0.8.1)
25
- decidim-core (= 0.0.8.1)
26
- kaminari (~> 1.0.1)
27
- rectify (~> 0.8.0)
28
- social-share-button (~> 0.9.0)
29
- decidim-results (0.0.8.1)
30
- decidim-comments (= 0.0.8.1)
31
- decidim-core (= 0.0.8.1)
32
- kaminari (~> 1.0.0.rc1)
33
- rectify (~> 0.8)
34
- searchlight (~> 4.1.0)
35
-
36
- PATH
37
- remote: decidim-admin
38
- specs:
39
- decidim-admin (0.0.8.1)
17
+ decidim-admin (0.1.0)
40
18
  active_link_to (~> 1.0.0)
41
19
  carrierwave (~> 1.0.0.rc)
42
- decidim-core (= 0.0.8.1)
20
+ decidim-core (= 0.1.0)
43
21
  devise (~> 4.2)
44
22
  devise-i18n (~> 1.1.0)
45
23
  devise_invitable (~> 1.7.0)
46
24
  foundation_rails_helper (~> 3.0.0.rc)
47
- jquery-rails (~> 4.2.2)
25
+ jquery-rails (~> 4.3.1)
48
26
  rails (~> 5.0.2)
49
- rectify (~> 0.8.0)
27
+ rectify (~> 0.9.1)
50
28
  sassc-rails (~> 1.3.0)
51
-
52
- PATH
53
- remote: decidim-api
54
- specs:
55
- decidim-api (0.0.8.1)
29
+ decidim-api (0.1.0)
56
30
  graphiql-rails (~> 1.4.1)
57
31
  graphql (~> 1.5.3)
58
32
  rack-cors (~> 0.4.0)
59
33
  rails (~> 5.0.2)
60
34
  sprockets-es6 (~> 0.9.2)
61
-
62
- PATH
63
- remote: decidim-comments
64
- specs:
65
- decidim-comments (0.0.8.1)
66
- decidim-core (= 0.0.8.1)
35
+ decidim-budgets (0.1.0)
36
+ decidim-comments (= 0.1.0)
37
+ decidim-core (= 0.1.0)
38
+ kaminari (~> 1.0.1)
39
+ rectify (~> 0.9.1)
40
+ searchlight (~> 4.1.0)
41
+ decidim-comments (0.1.0)
42
+ decidim-core (= 0.1.0)
67
43
  jquery-rails (~> 4.0)
68
44
  rails (~> 5.0.2)
69
-
70
- PATH
71
- remote: decidim-core
72
- specs:
73
- decidim-core (0.0.8.1)
74
- active_link_to (~> 1.0.0)
45
+ decidim-core (0.1.0)
46
+ active_link_to (~> 1.0.4)
75
47
  autoprefixer-rails (~> 6.7, >= 6.7.4)
76
48
  cancancan (~> 1.16.0)
77
49
  carrierwave (~> 1.0.0)
78
50
  date_validator (~> 0.9.0)
79
- decidim-api (= 0.0.8.1)
51
+ decidim-api (= 0.1.0)
80
52
  devise (~> 4.2)
81
53
  devise-i18n (~> 1.1.0)
82
54
  file_validators (~> 2.1.0)
83
- foundation-rails (~> 6.3.0.0)
55
+ foundation-rails (~> 6.3.1.0)
84
56
  foundation_rails_helper (~> 3.0.0.rc)
85
57
  geocoder (~> 1.4.2)
86
58
  high_voltage (~> 3.0.0)
87
59
  invisible_captcha (~> 0.9.2)
88
- jquery-rails (~> 4.2.2)
89
- mini_magick (~> 4.6.1)
90
- nokogiri (~> 1.7.0.1)
60
+ jquery-rails (~> 4.3.1)
61
+ mini_magick (~> 4.7.0)
62
+ nokogiri (~> 1.7.1)
91
63
  omniauth (~> 1.6.1)
92
64
  omniauth-facebook (~> 4.0.0)
93
65
  omniauth-google-oauth2 (~> 0.4.1)
94
66
  omniauth-twitter (~> 1.4.0)
95
- pg (~> 0.19.0)
67
+ pg (~> 0.20.0)
96
68
  premailer-rails (~> 1.9.5)
97
69
  rails (~> 5.0.2)
98
- rectify (~> 0.8.0)
70
+ rectify (~> 0.9.1)
99
71
  redis (~> 3.3.3)
72
+ rubyzip (= 1.2.1)
100
73
  sassc-rails (~> 1.3.0)
101
74
  sprockets-es6 (~> 0.9.2)
102
75
  truncato (~> 0.7.9)
103
- wisper (~> 1.6.1)
76
+ wisper (~> 2.0.0)
77
+ decidim-meetings (0.1.0)
78
+ date_validator (~> 0.9)
79
+ decidim-core (= 0.1.0)
80
+ httparty (~> 0.14.0)
81
+ jquery-tmpl-rails (~> 1.1.0)
82
+ kaminari (~> 1.0.1)
83
+ rectify (~> 0.8)
84
+ searchlight (~> 4.1.0)
85
+ decidim-pages (0.1.0)
86
+ decidim-comments (= 0.1.0)
87
+ decidim-core (= 0.1.0)
88
+ rectify (~> 0.9.1)
89
+ decidim-proposals (0.1.0)
90
+ decidim-comments (= 0.1.0)
91
+ decidim-core (= 0.1.0)
92
+ kaminari (~> 1.0.1)
93
+ rectify (~> 0.9.1)
94
+ social-share-button (~> 0.10.0)
95
+ decidim-results (0.1.0)
96
+ decidim-comments (= 0.1.0)
97
+ decidim-core (= 0.1.0)
98
+ kaminari (~> 1.0.1)
99
+ rectify (~> 0.9.1)
100
+ searchlight (~> 4.1.0)
101
+ decidim-system (0.1.0)
102
+ active_link_to (~> 1.0.0)
103
+ decidim-core (= 0.1.0)
104
+ devise (~> 4.2)
105
+ devise-i18n (~> 1.1.0)
106
+ devise_invitable (~> 1.7.1)
107
+ foundation_rails_helper (~> 3.0.0.rc)
108
+ jquery-rails (~> 4.3.1)
109
+ rails (~> 5.0.2)
110
+ rectify (~> 0.9.1)
111
+ sassc-rails (~> 1.3.0)
104
112
 
105
113
  PATH
106
114
  remote: decidim-dev
107
115
  specs:
108
- decidim-dev (0.0.8.1)
116
+ decidim-dev (0.1.0)
109
117
  byebug
110
- capybara (~> 2.12.0)
118
+ capybara (~> 2.13.0)
111
119
  capybara-screenshot (~> 1.0.14)
112
120
  codecov (~> 0.1.9)
113
121
  database_cleaner (~> 1.5.0)
114
- db-query-matchers (~> 0.7.0)
115
- decidim (= 0.0.8.1)
122
+ db-query-matchers (~> 0.8.0)
123
+ decidim (= 0.1.0)
116
124
  factory_girl_rails
117
125
  faker (~> 1.7.3)
118
- i18n-tasks (= 0.9.12)
126
+ i18n-tasks (= 0.9.13)
119
127
  launchy
120
128
  letter_opener_web (~> 1.3.0)
121
129
  listen (~> 3.1.0)
@@ -124,68 +132,33 @@ PATH
124
132
  rspec-html-matchers (~> 0.9.1)
125
133
  rspec-rails (~> 3.5)
126
134
  rspec-repeat (~> 1.0.2)
127
- rubocop (~> 0.47)
135
+ rubocop (~> 0.46.0)
128
136
  simplecov (~> 0.13)
129
- webmock (~> 2.3.2)
137
+ webmock (~> 3.0.1)
130
138
  wisper-rspec (~> 0.0.3)
131
139
 
132
- PATH
133
- remote: decidim-meetings
134
- specs:
135
- decidim-meetings (0.0.8.1)
136
- date_validator (~> 0.9)
137
- decidim-core (= 0.0.8.1)
138
- httparty (~> 0.14.0)
139
- jquery-tmpl-rails (~> 1.1.0)
140
- kaminari (~> 1.0.1)
141
- rectify (~> 0.8)
142
- searchlight (~> 4.1.0)
143
-
144
- PATH
145
- remote: decidim-pages
146
- specs:
147
- decidim-pages (0.0.8.1)
148
- decidim-comments (= 0.0.8.1)
149
- decidim-core (= 0.0.8.1)
150
- rectify (~> 0.8.0)
151
-
152
- PATH
153
- remote: decidim-system
154
- specs:
155
- decidim-system (0.0.8.1)
156
- active_link_to (~> 1.0.0)
157
- decidim-core (= 0.0.8.1)
158
- devise (~> 4.2)
159
- devise-i18n (~> 1.1.0)
160
- devise_invitable (~> 1.7.1)
161
- foundation_rails_helper (~> 3.0.0.rc)
162
- jquery-rails (~> 4.2.2)
163
- rails (~> 5.0.2)
164
- rectify (~> 0.8.0)
165
- sassc-rails (~> 1.3.0)
166
-
167
140
  GEM
168
141
  remote: https://rubygems.org/
169
142
  specs:
170
- actioncable (5.0.2)
171
- actionpack (= 5.0.2)
143
+ actioncable (5.0.3)
144
+ actionpack (= 5.0.3)
172
145
  nio4r (>= 1.2, < 3.0)
173
146
  websocket-driver (~> 0.6.1)
174
- actionmailer (5.0.2)
175
- actionpack (= 5.0.2)
176
- actionview (= 5.0.2)
177
- activejob (= 5.0.2)
147
+ actionmailer (5.0.3)
148
+ actionpack (= 5.0.3)
149
+ actionview (= 5.0.3)
150
+ activejob (= 5.0.3)
178
151
  mail (~> 2.5, >= 2.5.4)
179
152
  rails-dom-testing (~> 2.0)
180
- actionpack (5.0.2)
181
- actionview (= 5.0.2)
182
- activesupport (= 5.0.2)
153
+ actionpack (5.0.3)
154
+ actionview (= 5.0.3)
155
+ activesupport (= 5.0.3)
183
156
  rack (~> 2.0)
184
157
  rack-test (~> 0.6.3)
185
158
  rails-dom-testing (~> 2.0)
186
159
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
187
- actionview (5.0.2)
188
- activesupport (= 5.0.2)
160
+ actionview (5.0.3)
161
+ activesupport (= 5.0.3)
189
162
  builder (~> 3.1)
190
163
  erubis (~> 2.7.0)
191
164
  rails-dom-testing (~> 2.0)
@@ -193,16 +166,16 @@ GEM
193
166
  active_link_to (1.0.4)
194
167
  actionpack
195
168
  addressable
196
- activejob (5.0.2)
197
- activesupport (= 5.0.2)
169
+ activejob (5.0.3)
170
+ activesupport (= 5.0.3)
198
171
  globalid (>= 0.3.6)
199
- activemodel (5.0.2)
200
- activesupport (= 5.0.2)
201
- activerecord (5.0.2)
202
- activemodel (= 5.0.2)
203
- activesupport (= 5.0.2)
172
+ activemodel (5.0.3)
173
+ activesupport (= 5.0.3)
174
+ activerecord (5.0.3)
175
+ activemodel (= 5.0.3)
176
+ activesupport (= 5.0.3)
204
177
  arel (~> 7.0)
205
- activesupport (5.0.2)
178
+ activesupport (5.0.3)
206
179
  concurrent-ruby (~> 1.0, >= 1.0.2)
207
180
  i18n (~> 0.7)
208
181
  minitest (~> 5.1)
@@ -225,7 +198,7 @@ GEM
225
198
  builder (3.2.3)
226
199
  byebug (9.0.6)
227
200
  cancancan (1.16.0)
228
- capybara (2.12.1)
201
+ capybara (2.13.0)
229
202
  addressable
230
203
  mime-types (>= 1.16)
231
204
  nokogiri (>= 1.3.3)
@@ -262,13 +235,13 @@ GEM
262
235
  date_validator (0.9.0)
263
236
  activemodel
264
237
  activesupport
265
- db-query-matchers (0.7.0)
238
+ db-query-matchers (0.8.0)
266
239
  descendants_tracker (0.0.4)
267
240
  thread_safe (~> 0.3, >= 0.3.1)
268
- devise (4.2.1)
241
+ devise (4.3.0)
269
242
  bcrypt (~> 3.0)
270
243
  orm_adapter (~> 0.1)
271
- railties (>= 4.1.0, < 5.1)
244
+ railties (>= 4.1.0, < 5.2)
272
245
  responders
273
246
  warden (~> 1.2.3)
274
247
  devise-i18n (1.1.2)
@@ -297,7 +270,7 @@ GEM
297
270
  file_validators (2.1.0)
298
271
  activemodel (>= 3.0)
299
272
  mime-types (>= 1.0)
300
- foundation-rails (6.3.0.0)
273
+ foundation-rails (6.3.1.0)
301
274
  railties (>= 3.1.0)
302
275
  sass (>= 3.3.0, < 3.5)
303
276
  sprockets-es6 (>= 0.9.0)
@@ -307,13 +280,13 @@ GEM
307
280
  activesupport (>= 4.1)
308
281
  railties (>= 4.1)
309
282
  tzinfo (~> 1.2, >= 1.2.2)
310
- geocoder (1.4.3)
283
+ geocoder (1.4.4)
311
284
  globalid (0.4.0)
312
285
  activesupport (>= 4.2.0)
313
286
  graphiql-rails (1.4.1)
314
287
  rails
315
- graphql (1.5.9)
316
- hashdiff (0.3.2)
288
+ graphql (1.5.13)
289
+ hashdiff (0.3.4)
317
290
  hashie (3.5.5)
318
291
  high_voltage (3.0.0)
319
292
  highline (1.7.8)
@@ -321,7 +294,7 @@ GEM
321
294
  httparty (0.14.0)
322
295
  multi_xml (>= 0.5.2)
323
296
  i18n (0.8.1)
324
- i18n-tasks (0.9.12)
297
+ i18n-tasks (0.9.13)
325
298
  activesupport (>= 4.0.2)
326
299
  ast (>= 2.1.0)
327
300
  easy_translate (>= 0.5.0)
@@ -329,12 +302,12 @@ GEM
329
302
  highline (>= 1.7.3)
330
303
  i18n
331
304
  parser (>= 2.2.3.0)
332
- term-ansicolor (>= 1.3.2)
305
+ rainbow (~> 2.2)
333
306
  terminal-table (>= 1.5.1)
334
307
  ice_nine (0.11.2)
335
308
  invisible_captcha (0.9.2)
336
309
  rails (>= 3.2.0)
337
- jquery-rails (4.2.2)
310
+ jquery-rails (4.3.1)
338
311
  rails-dom-testing (>= 1, < 3)
339
312
  railties (>= 4.2.0)
340
313
  thor (>= 0.14, < 2.0)
@@ -368,22 +341,22 @@ GEM
368
341
  ruby_dep (~> 1.2)
369
342
  loofah (2.0.3)
370
343
  nokogiri (>= 1.5.9)
371
- mail (2.6.4)
344
+ mail (2.6.5)
372
345
  mime-types (>= 1.16, < 4)
373
346
  method_source (0.8.2)
374
347
  mime-types (3.1)
375
348
  mime-types-data (~> 3.2015)
376
349
  mime-types-data (3.2016.0521)
377
- mini_magick (4.6.1)
350
+ mini_magick (4.7.0)
378
351
  mini_portile2 (2.1.0)
379
- minitest (5.10.1)
352
+ minitest (5.10.2)
380
353
  multi_json (1.12.1)
381
354
  multi_xml (0.6.0)
382
355
  multipart-post (2.0.0)
383
356
  nio4r (2.0.0)
384
- nokogiri (1.7.0.1)
357
+ nokogiri (1.7.2)
385
358
  mini_portile2 (~> 2.1.0)
386
- oauth (0.5.1)
359
+ oauth (0.5.2)
387
360
  oauth2 (1.3.1)
388
361
  faraday (>= 0.8, < 0.12)
389
362
  jwt (~> 1.0)
@@ -412,13 +385,13 @@ GEM
412
385
  orm_adapter (0.5.0)
413
386
  parser (2.4.0.0)
414
387
  ast (~> 2.2)
415
- pg (0.19.0)
388
+ pg (0.20.0)
416
389
  poltergeist (1.14.0)
417
390
  capybara (~> 2.1)
418
391
  cliver (~> 0.3.1)
419
392
  websocket-driver (>= 0.2.0)
420
393
  powerpack (0.1.1)
421
- premailer (1.10.3)
394
+ premailer (1.10.4)
422
395
  addressable
423
396
  css_parser (>= 1.4.10)
424
397
  htmlentities (>= 4.0.0)
@@ -426,37 +399,37 @@ GEM
426
399
  actionmailer (>= 3, < 6)
427
400
  premailer (~> 1.7, >= 1.7.9)
428
401
  public_suffix (2.0.5)
429
- rack (2.0.1)
402
+ rack (2.0.3)
430
403
  rack-cors (0.4.1)
431
404
  rack-test (0.6.3)
432
405
  rack (>= 1.0)
433
- rails (5.0.2)
434
- actioncable (= 5.0.2)
435
- actionmailer (= 5.0.2)
436
- actionpack (= 5.0.2)
437
- actionview (= 5.0.2)
438
- activejob (= 5.0.2)
439
- activemodel (= 5.0.2)
440
- activerecord (= 5.0.2)
441
- activesupport (= 5.0.2)
406
+ rails (5.0.3)
407
+ actioncable (= 5.0.3)
408
+ actionmailer (= 5.0.3)
409
+ actionpack (= 5.0.3)
410
+ actionview (= 5.0.3)
411
+ activejob (= 5.0.3)
412
+ activemodel (= 5.0.3)
413
+ activerecord (= 5.0.3)
414
+ activesupport (= 5.0.3)
442
415
  bundler (>= 1.3.0, < 2.0)
443
- railties (= 5.0.2)
416
+ railties (= 5.0.3)
444
417
  sprockets-rails (>= 2.0.0)
445
- rails-controller-testing (1.0.1)
446
- actionpack (~> 5.x)
447
- actionview (~> 5.x)
418
+ rails-controller-testing (1.0.2)
419
+ actionpack (~> 5.x, >= 5.0.1)
420
+ actionview (~> 5.x, >= 5.0.1)
448
421
  activesupport (~> 5.x)
449
- rails-dom-testing (2.0.2)
450
- activesupport (>= 4.2.0, < 6.0)
451
- nokogiri (~> 1.6)
422
+ rails-dom-testing (2.0.3)
423
+ activesupport (>= 4.2.0)
424
+ nokogiri (>= 1.6)
452
425
  rails-html-sanitizer (1.0.3)
453
426
  loofah (~> 2.0)
454
- rails-i18n (5.0.3)
427
+ rails-i18n (5.0.4)
455
428
  i18n (~> 0.7)
456
429
  railties (~> 5.0)
457
- railties (5.0.2)
458
- actionpack (= 5.0.2)
459
- activesupport (= 5.0.2)
430
+ railties (5.0.3)
431
+ actionpack (= 5.0.3)
432
+ activesupport (= 5.0.3)
460
433
  method_source
461
434
  rake (>= 0.8.7)
462
435
  thor (>= 0.18.1, < 2.0)
@@ -466,49 +439,51 @@ GEM
466
439
  rb-fsevent (0.9.8)
467
440
  rb-inotify (0.9.8)
468
441
  ffi (>= 0.5.0)
469
- rectify (0.8.0)
442
+ rectify (0.9.1)
470
443
  activemodel (>= 4.1.0)
471
444
  activerecord (>= 4.1.0)
472
445
  activesupport (>= 4.1.0)
473
446
  virtus (~> 1.0.5)
474
447
  wisper (>= 1.6.1)
475
448
  redis (3.3.3)
476
- responders (2.3.0)
477
- railties (>= 4.2.0, < 5.1)
478
- rspec (3.5.0)
479
- rspec-core (~> 3.5.0)
480
- rspec-expectations (~> 3.5.0)
481
- rspec-mocks (~> 3.5.0)
482
- rspec-core (3.5.4)
483
- rspec-support (~> 3.5.0)
484
- rspec-expectations (3.5.0)
449
+ responders (2.4.0)
450
+ actionpack (>= 4.2.0, < 5.3)
451
+ railties (>= 4.2.0, < 5.3)
452
+ rspec (3.6.0)
453
+ rspec-core (~> 3.6.0)
454
+ rspec-expectations (~> 3.6.0)
455
+ rspec-mocks (~> 3.6.0)
456
+ rspec-core (3.6.0)
457
+ rspec-support (~> 3.6.0)
458
+ rspec-expectations (3.6.0)
485
459
  diff-lcs (>= 1.2.0, < 2.0)
486
- rspec-support (~> 3.5.0)
460
+ rspec-support (~> 3.6.0)
487
461
  rspec-html-matchers (0.9.1)
488
462
  nokogiri (~> 1)
489
463
  rspec (>= 3.0.0.a, < 4)
490
- rspec-mocks (3.5.0)
464
+ rspec-mocks (3.6.0)
491
465
  diff-lcs (>= 1.2.0, < 2.0)
492
- rspec-support (~> 3.5.0)
493
- rspec-rails (3.5.2)
466
+ rspec-support (~> 3.6.0)
467
+ rspec-rails (3.6.0)
494
468
  actionpack (>= 3.0)
495
469
  activesupport (>= 3.0)
496
470
  railties (>= 3.0)
497
- rspec-core (~> 3.5.0)
498
- rspec-expectations (~> 3.5.0)
499
- rspec-mocks (~> 3.5.0)
500
- rspec-support (~> 3.5.0)
471
+ rspec-core (~> 3.6.0)
472
+ rspec-expectations (~> 3.6.0)
473
+ rspec-mocks (~> 3.6.0)
474
+ rspec-support (~> 3.6.0)
501
475
  rspec-repeat (1.0.2)
502
476
  rspec (~> 3.0)
503
- rspec-support (3.5.0)
504
- rubocop (0.48.1)
505
- parser (>= 2.3.3.1, < 3.0)
477
+ rspec-support (3.6.0)
478
+ rubocop (0.46.0)
479
+ parser (>= 2.3.1.1, < 3.0)
506
480
  powerpack (~> 0.1)
507
481
  rainbow (>= 1.99.1, < 3.0)
508
482
  ruby-progressbar (~> 1.7)
509
483
  unicode-display_width (~> 1.0, >= 1.0.1)
510
484
  ruby-progressbar (1.8.1)
511
485
  ruby_dep (1.5.0)
486
+ rubyzip (1.2.1)
512
487
  safe_yaml (1.0.4)
513
488
  sass (3.4.23)
514
489
  sassc (1.11.2)
@@ -527,8 +502,8 @@ GEM
527
502
  docile (~> 1.1.0)
528
503
  json (>= 1.8, < 3)
529
504
  simplecov-html (~> 0.10.0)
530
- simplecov-html (0.10.0)
531
- social-share-button (0.9.0)
505
+ simplecov-html (0.10.1)
506
+ social-share-button (0.10.0)
532
507
  coffee-rails
533
508
  sprockets (3.7.1)
534
509
  concurrent-ruby (~> 1.0)
@@ -541,21 +516,18 @@ GEM
541
516
  actionpack (>= 4.0)
542
517
  activesupport (>= 4.0)
543
518
  sprockets (>= 3.0.0)
544
- term-ansicolor (1.6.0)
545
- tins (~> 1.0)
546
- terminal-table (1.7.3)
547
- unicode-display_width (~> 1.1.1)
519
+ terminal-table (1.8.0)
520
+ unicode-display_width (~> 1.1, >= 1.1.1)
548
521
  thor (0.19.4)
549
522
  thread (0.2.2)
550
523
  thread_safe (0.3.6)
551
524
  tilt (2.0.7)
552
- tins (1.13.2)
553
525
  truncato (0.7.9)
554
526
  htmlentities (~> 4.3.1)
555
527
  nokogiri (~> 1.7.0)
556
528
  tzinfo (1.2.3)
557
529
  thread_safe (~> 0.1)
558
- unicode-display_width (1.1.3)
530
+ unicode-display_width (1.2.1)
559
531
  url (0.3.2)
560
532
  virtus (1.0.5)
561
533
  axiom-types (~> 0.1)
@@ -564,14 +536,14 @@ GEM
564
536
  equalizer (~> 0.0, >= 0.0.9)
565
537
  warden (1.2.7)
566
538
  rack (>= 1.0)
567
- webmock (2.3.2)
539
+ webmock (3.0.1)
568
540
  addressable (>= 2.3.6)
569
541
  crack (>= 0.3.2)
570
542
  hashdiff
571
543
  websocket-driver (0.6.5)
572
544
  websocket-extensions (>= 0.1.0)
573
545
  websocket-extensions (0.1.2)
574
- wisper (1.6.1)
546
+ wisper (2.0.0)
575
547
  wisper-rspec (0.0.3)
576
548
  xpath (2.0.0)
577
549
  nokogiri (~> 1.3)
@@ -580,20 +552,8 @@ PLATFORMS
580
552
  ruby
581
553
 
582
554
  DEPENDENCIES
583
- bundler (~> 1.12)
584
555
  decidim!
585
- decidim-admin!
586
- decidim-api!
587
- decidim-comments!
588
- decidim-core!
589
556
  decidim-dev!
590
- decidim-meetings!
591
- decidim-pages!
592
- decidim-proposals (= 0.0.8.1)
593
- decidim-results (= 0.0.8.1)
594
- decidim-system!
595
- rake (~> 12.0.0)
596
- rspec (~> 3.0)
597
557
 
598
558
  RUBY VERSION
599
559
  ruby 2.4.1p111