decidim 0.0.1 → 0.0.2

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 (313) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +4 -5
  3. data/.eslintignore +2 -0
  4. data/.eslintrc.json +2 -0
  5. data/.gitignore +1 -0
  6. data/.inch.yml +5 -0
  7. data/.mention-bot +8 -0
  8. data/.rubocop.yml +8 -31
  9. data/.ruby-version +1 -1
  10. data/.travis.yml +24 -14
  11. data/Dockerfile +1 -3
  12. data/Gemfile +1 -3
  13. data/Gemfile.lock +175 -138
  14. data/README.md +63 -5
  15. data/Rakefile +1 -1
  16. data/codecov.yml +1 -0
  17. data/decidim-admin/Rakefile +1 -1
  18. data/decidim-admin/app/assets/javascripts/decidim/admin/application.js.es6 +0 -1
  19. data/decidim-admin/app/assets/stylesheets/decidim/admin/_foundation_and_overrides.scss +1 -0
  20. data/decidim-admin/app/assets/stylesheets/decidim/admin/_icons.scss +9 -0
  21. data/decidim-admin/app/assets/stylesheets/decidim/admin/application.scss +1 -0
  22. data/decidim-admin/app/commands/decidim/admin/create_feature.rb +3 -1
  23. data/decidim-admin/app/commands/decidim/admin/create_participatory_process.rb +26 -14
  24. data/decidim-admin/app/commands/decidim/admin/destroy_feature.rb +5 -0
  25. data/decidim-admin/app/commands/decidim/admin/destroy_participatory_process_step.rb +29 -0
  26. data/decidim-admin/app/commands/decidim/admin/update_feature.rb +47 -0
  27. data/decidim-admin/app/commands/decidim/admin/update_organization.rb +3 -1
  28. data/decidim-admin/app/controllers/decidim/admin/features_controller.rb +37 -2
  29. data/decidim-admin/app/controllers/decidim/admin/participatory_process_step_activations_controller.rb +0 -16
  30. data/decidim-admin/app/controllers/decidim/admin/participatory_process_steps_controller.rb +10 -3
  31. data/decidim-admin/app/controllers/decidim/admin/static_pages_controller.rb +4 -4
  32. data/decidim-admin/app/controllers/decidim/admin/user_groups_controller.rb +32 -0
  33. data/decidim-admin/app/controllers/decidim/admin/users_controller.rb +87 -0
  34. data/decidim-admin/app/forms/decidim/admin/category_form.rb +1 -7
  35. data/decidim-admin/app/forms/decidim/admin/feature_form.rb +26 -0
  36. data/decidim-admin/app/forms/decidim/admin/organization_form.rb +2 -0
  37. data/decidim-admin/app/forms/decidim/admin/participatory_process_step_form.rb +1 -1
  38. data/decidim-admin/app/forms/decidim/admin/static_page_form.rb +2 -3
  39. data/decidim-admin/app/models/decidim/admin/abilities/admin_user.rb +6 -0
  40. data/decidim-admin/app/views/decidim/admin/features/_feature.html.erb +4 -1
  41. data/decidim-admin/app/views/decidim/admin/features/_form.html.erb +49 -0
  42. data/decidim-admin/app/views/decidim/admin/features/_settings_fields.html.erb +5 -0
  43. data/decidim-admin/app/views/decidim/admin/features/edit.html.erb +9 -0
  44. data/decidim-admin/app/views/decidim/admin/features/index.html.erb +6 -0
  45. data/decidim-admin/app/views/decidim/admin/features/new.html.erb +1 -1
  46. data/decidim-admin/app/views/decidim/admin/organization/_form.html.erb +8 -0
  47. data/decidim-admin/app/views/decidim/admin/participatory_process_attachments/_form.html.erb +1 -1
  48. data/decidim-admin/app/views/decidim/admin/participatory_process_steps/index.html.erb +2 -6
  49. data/decidim-admin/app/views/decidim/admin/user_groups/index.html.erb +32 -0
  50. data/decidim-admin/app/views/decidim/admin/users/_form.html.erb +6 -0
  51. data/decidim-admin/app/views/decidim/admin/users/index.html.erb +54 -0
  52. data/decidim-admin/app/views/decidim/admin/users/new.html.erb +11 -0
  53. data/decidim-admin/app/views/layouts/decidim/admin/_sidebar.html.erb +2 -0
  54. data/decidim-admin/app/views/layouts/decidim/admin/participatory_process.html.erb +1 -1
  55. data/decidim-admin/config/i18n-tasks.yml +1 -0
  56. data/decidim-admin/config/locales/ca.yml +103 -5
  57. data/decidim-admin/config/locales/en.yml +57 -4
  58. data/decidim-admin/config/locales/es.yml +103 -5
  59. data/decidim-admin/config/routes.rb +11 -0
  60. data/decidim-admin/decidim-admin.gemspec +2 -3
  61. data/decidim-admin/lib/decidim/admin/features/base_controller.rb +7 -3
  62. data/decidim-admin/lib/decidim/admin/test/factories.rb +8 -0
  63. data/decidim-admin/spec/commands/create_category_spec.rb +2 -1
  64. data/decidim-admin/spec/commands/create_feature_spec.rb +21 -2
  65. data/decidim-admin/spec/commands/create_participatory_process_spec.rb +13 -1
  66. data/decidim-admin/spec/commands/create_static_page_spec.rb +1 -1
  67. data/decidim-admin/spec/commands/destroy_participatory_process_step_spec.rb +45 -0
  68. data/decidim-admin/spec/commands/update_category_spec.rb +2 -1
  69. data/decidim-admin/spec/commands/update_feature_spec.rb +79 -0
  70. data/decidim-admin/spec/commands/update_organization_spec.rb +3 -2
  71. data/decidim-admin/spec/commands/update_static_page_spec.rb +3 -2
  72. data/decidim-admin/spec/factories.rb +2 -9
  73. data/decidim-admin/spec/features/admin_manages_features_spec.rb +84 -2
  74. data/decidim-admin/spec/features/admin_manages_organization_admins_spec.rb +71 -0
  75. data/decidim-admin/spec/features/admin_manages_user_groups_spec.rb +24 -0
  76. data/decidim-admin/spec/forms/category_form_spec.rb +3 -7
  77. data/decidim-admin/spec/forms/organization_form_spec.rb +8 -2
  78. data/decidim-admin/spec/forms/participatory_process_form_spec.rb +2 -1
  79. data/decidim-admin/spec/forms/participatory_process_step_form_spec.rb +2 -21
  80. data/decidim-admin/spec/forms/scope_form_spec.rb +1 -1
  81. data/decidim-admin/spec/forms/static_page_form_spec.rb +2 -7
  82. data/decidim-admin/spec/models/abilities/admin_user_spec.rb +22 -0
  83. data/decidim-admin/spec/shared/manage_process_attachments_examples.rb +2 -1
  84. data/decidim-admin/spec/shared/manage_process_steps_examples.rb +2 -15
  85. data/decidim-admin/spec/spec_helper.rb +3 -1
  86. data/decidim-api/Rakefile +1 -1
  87. data/decidim-api/decidim-api.gemspec +3 -3
  88. data/decidim-api/spec/factories.rb +2 -2
  89. data/decidim-api/spec/spec_helper.rb +3 -1
  90. data/decidim-comments/Rakefile +1 -1
  91. data/decidim-comments/app/assets/javascripts/decidim/comments/bundle.js +0 -0
  92. data/decidim-comments/app/commands/decidim/comments/vote_comment.rb +38 -0
  93. data/decidim-comments/app/frontend/application/icon.component.jsx +9 -4
  94. data/decidim-comments/app/frontend/application/icon.component.test.jsx +12 -2
  95. data/decidim-comments/app/frontend/comments/add_comment_form.component.jsx +43 -11
  96. data/decidim-comments/app/frontend/comments/add_comment_form.mutation.graphql +1 -4
  97. data/decidim-comments/app/frontend/comments/comment.component.jsx +67 -7
  98. data/decidim-comments/app/frontend/comments/comment.component.test.jsx +49 -1
  99. data/decidim-comments/app/frontend/comments/comment_data.fragment.graphql +3 -0
  100. data/decidim-comments/app/frontend/comments/comment_order_selector.component.jsx +51 -6
  101. data/decidim-comments/app/frontend/comments/comment_order_selector.component.test.jsx +12 -1
  102. data/decidim-comments/app/frontend/comments/comment_thread.component.jsx +11 -5
  103. data/decidim-comments/app/frontend/comments/comment_thread.component.test.jsx +13 -3
  104. data/decidim-comments/app/frontend/comments/comment_thread.fragment.graphql +1 -3
  105. data/decidim-comments/app/frontend/comments/comments.component.jsx +37 -11
  106. data/decidim-comments/app/frontend/comments/comments.component.test.jsx +44 -7
  107. data/decidim-comments/app/frontend/comments/comments.query.graphql +2 -2
  108. data/decidim-comments/app/frontend/comments/down_vote.fragment.graphql +6 -0
  109. data/decidim-comments/app/frontend/comments/down_vote.mutation.graphql +7 -0
  110. data/decidim-comments/app/frontend/comments/down_vote_button.component.jsx +84 -0
  111. data/decidim-comments/app/frontend/comments/down_vote_button.component.test.jsx +48 -0
  112. data/decidim-comments/app/frontend/comments/up_vote.fragment.graphql +6 -0
  113. data/decidim-comments/app/frontend/comments/up_vote.mutation.graphql +7 -0
  114. data/decidim-comments/app/frontend/comments/up_vote_button.component.jsx +84 -0
  115. data/decidim-comments/app/frontend/comments/up_vote_button.component.test.jsx +48 -0
  116. data/decidim-comments/app/frontend/comments/vote_button.component.jsx +19 -0
  117. data/decidim-comments/app/frontend/comments/vote_button_component.test.jsx +38 -0
  118. data/decidim-comments/app/frontend/support/generate_comments_data.js +7 -2
  119. data/decidim-comments/app/helpers/decidim/comments/comments_helper.rb +1 -1
  120. data/decidim-comments/app/models/decidim/comments/application_record.rb +9 -0
  121. data/decidim-comments/app/models/decidim/comments/comment.rb +19 -4
  122. data/decidim-comments/app/models/decidim/comments/comment_vote.rb +22 -0
  123. data/decidim-comments/app/models/decidim/comments/seed.rb +27 -0
  124. data/decidim-comments/app/queries/decidim/comments/comments_with_replies.rb +88 -0
  125. data/decidim-comments/app/resolvers/decidim/comments/vote_comment_resolver.rb +20 -0
  126. data/decidim-comments/app/types/decidim/comments/comment_mutation_type.rb +19 -0
  127. data/decidim-comments/app/types/decidim/comments/comment_type.rb +38 -2
  128. data/decidim-comments/config/locales/en.yml +1 -0
  129. data/decidim-comments/db/migrate/20161130143508_create_comments.rb +4 -2
  130. data/decidim-comments/db/migrate/20161219150806_create_comment_votes.rb +13 -0
  131. data/decidim-comments/decidim-comments.gemspec +0 -3
  132. data/decidim-comments/lib/decidim/comments/mutation_extensions.rb +9 -0
  133. data/decidim-comments/lib/decidim/comments/query_extensions.rb +3 -5
  134. data/decidim-comments/lib/decidim/comments/test/factories.rb +22 -0
  135. data/decidim-comments/spec/commands/vote_comment_spec.rb +124 -0
  136. data/decidim-comments/spec/factories.rb +2 -9
  137. data/decidim-comments/spec/features/comments_spec.rb +37 -0
  138. data/decidim-comments/spec/models/comment_spec.rb +34 -0
  139. data/decidim-comments/spec/models/comment_vote_spec.rb +44 -0
  140. data/decidim-comments/spec/models/seed_spec.rb +19 -0
  141. data/decidim-comments/spec/queries/comments_with_replies_spec.rb +86 -0
  142. data/decidim-comments/spec/spec_helper.rb +3 -1
  143. data/decidim-comments/spec/support/dummy.rb +1 -1
  144. data/decidim-comments/spec/types/comment_mutation_type_spec.rb +46 -0
  145. data/decidim-comments/spec/types/comment_type_spec.rb +57 -3
  146. data/{decidim-api → decidim-comments}/spec/types/mutation_type_spec.rb +11 -0
  147. data/decidim-dev/README.md +7 -11
  148. data/decidim-dev/decidim-dev.gemspec +5 -4
  149. data/decidim-dev/lib/decidim/dev.rb +20 -0
  150. data/decidim-dev/lib/decidim/dev/assets/Exampledocument.docx +0 -0
  151. data/decidim-dev/lib/decidim/dev/assets/Exampledocument.odt +0 -0
  152. data/decidim-dev/lib/decidim/dev/assets/Exampledocument.pdf +0 -0
  153. data/decidim-dev/lib/decidim/dev/assets/avatar.svg +14 -0
  154. data/decidim-dev/lib/decidim/dev/assets/city.jpeg +0 -0
  155. data/decidim-dev/lib/decidim/dev/assets/city2.jpeg +0 -0
  156. data/decidim-dev/lib/decidim/dev/assets/city3.jpeg +0 -0
  157. data/decidim-dev/lib/decidim/dev/assets/malicious.jpg +0 -0
  158. data/decidim-dev/lib/decidim/{common_rake.rb → dev/common_rake.rb} +1 -1
  159. data/decidim-dev/lib/decidim/{dummy_authorization_handler.rb → dev/dummy_authorization_handler.rb} +4 -4
  160. data/decidim-dev/lib/decidim/{test → dev/test}/authorization_shared_examples.rb +0 -8
  161. data/decidim-dev/lib/decidim/{test → dev/test}/base_spec_helper.rb +4 -1
  162. data/decidim-dev/lib/decidim/{test → dev/test}/i18n_spec.rb +1 -1
  163. data/decidim-dev/lib/decidim/{test → dev/test}/rspec_support/action_mailer.rb +0 -0
  164. data/decidim-dev/lib/decidim/{test → dev/test}/rspec_support/active_job.rb +0 -0
  165. data/decidim-dev/lib/decidim/{test → dev/test}/rspec_support/authenticated_controller_context.rb +0 -0
  166. data/decidim-dev/lib/decidim/{test → dev/test}/rspec_support/authorization_handlers.rb +1 -1
  167. data/decidim-dev/lib/decidim/{test → dev/test}/rspec_support/capybara.rb +3 -10
  168. data/decidim-dev/lib/decidim/{test → dev/test}/rspec_support/database_cleaner.rb +0 -0
  169. data/decidim-dev/lib/decidim/{test → dev/test}/rspec_support/engine_routes.rb +0 -0
  170. data/decidim-dev/lib/decidim/{test → dev/test}/rspec_support/factory_girl.rb +0 -0
  171. data/decidim-dev/lib/decidim/{test → dev/test}/rspec_support/feature.rb +10 -0
  172. data/decidim-dev/lib/decidim/{test → dev/test}/rspec_support/feature_context.rb +2 -2
  173. data/decidim-dev/lib/decidim/{test → dev/test}/rspec_support/helpers.rb +4 -0
  174. data/decidim-dev/lib/decidim/{test → dev/test}/rspec_support/i18n.rb +1 -0
  175. data/decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/bind-polyfill.js +18 -0
  176. data/decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/object-assign-polyfill.js +24 -0
  177. data/decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/promise.js +233 -0
  178. data/decidim-dev/lib/decidim/{test → dev/test}/rspec_support/translation_helpers.rb +0 -0
  179. data/decidim-dev/lib/decidim/{test → dev/test}/rspec_support/warden.rb +0 -0
  180. data/decidim-dev/lib/decidim/{test → dev/test}/rspec_support/wisper.rb +0 -0
  181. data/decidim-dev/lib/generators/decidim/dummy_generator.rb +2 -2
  182. data/decidim-dev/lib/generators/decidim/templates/decidim_dev.rb +2 -0
  183. data/decidim-meetings/Rakefile +1 -1
  184. data/decidim-meetings/app/assets/images/decidim/meetings/icon.svg +1 -0
  185. data/decidim-meetings/app/commands/decidim/meetings/admin/create_meeting.rb +2 -0
  186. data/decidim-meetings/app/commands/decidim/meetings/admin/update_meeting.rb +2 -0
  187. data/decidim-meetings/app/controllers/decidim/meetings/meetings_controller.rb +30 -6
  188. data/decidim-meetings/app/forms/decidim/meetings/admin/meeting_form.rb +14 -0
  189. data/decidim-meetings/app/helpers/decidim/meetings/application_helper.rb +10 -0
  190. data/decidim-meetings/app/models/decidim/meetings/meeting.rb +18 -1
  191. data/decidim-meetings/app/services/decidim/meetings/meeting_search.rb +48 -0
  192. data/decidim-meetings/app/views/decidim/meetings/admin/meetings/_form.html.erb +9 -2
  193. data/decidim-meetings/app/views/decidim/meetings/meetings/_filters.html.erb +24 -0
  194. data/decidim-meetings/app/views/decidim/meetings/meetings/_meetings.html.erb +30 -0
  195. data/decidim-meetings/app/views/decidim/meetings/meetings/_tags.html.erb +10 -0
  196. data/decidim-meetings/app/views/decidim/meetings/meetings/index.html.erb +8 -26
  197. data/decidim-meetings/app/views/decidim/meetings/meetings/index.js.erb +2 -0
  198. data/decidim-meetings/app/views/decidim/meetings/meetings/show.html.erb +1 -0
  199. data/decidim-meetings/config/locales/ca.yml +7 -0
  200. data/decidim-meetings/config/locales/en.yml +7 -0
  201. data/decidim-meetings/config/locales/es.yml +7 -0
  202. data/decidim-meetings/db/migrate/20161130121354_create_meetings.rb +2 -0
  203. data/decidim-meetings/decidim-meetings.gemspec +2 -0
  204. data/decidim-meetings/lib/decidim/meetings/feature.rb +7 -2
  205. data/decidim-meetings/lib/decidim/meetings/list_engine.rb +3 -0
  206. data/decidim-meetings/spec/commands/create_meeting_spec.rb +21 -0
  207. data/decidim-meetings/spec/commands/update_meeting_spec.rb +17 -2
  208. data/decidim-meetings/spec/factories.rb +3 -3
  209. data/decidim-meetings/spec/features/explore_meetings_spec.rb +53 -0
  210. data/decidim-meetings/spec/forms/meeting_form_spec.rb +19 -1
  211. data/decidim-meetings/spec/models/meeting_spec.rb +20 -0
  212. data/decidim-meetings/spec/services/meeting_search_spec.rb +146 -0
  213. data/decidim-meetings/spec/shared/admin_shared_context.rb +4 -2
  214. data/decidim-meetings/spec/shared/manage_meetings_examples.rb +5 -2
  215. data/decidim-meetings/spec/spec_helper.rb +1 -1
  216. data/decidim-pages/Rakefile +1 -1
  217. data/decidim-pages/app/assets/images/decidim/pages/icon.svg +3 -0
  218. data/decidim-pages/app/commands/decidim/pages/admin/update_page.rb +1 -2
  219. data/decidim-pages/app/forms/decidim/pages/admin/page_form.rb +0 -1
  220. data/decidim-pages/app/views/decidim/pages/admin/pages/_form.html.erb +0 -1
  221. data/decidim-pages/app/views/decidim/pages/application/show.html.erb +3 -3
  222. data/decidim-pages/config/i18n-tasks.yml +1 -0
  223. data/decidim-pages/config/locales/ca.yml +5 -1
  224. data/decidim-pages/config/locales/en.yml +5 -1
  225. data/decidim-pages/config/locales/es.yml +5 -1
  226. data/decidim-pages/db/migrate/20170110145040_remove_commentable_flag_from_pages.rb +5 -0
  227. data/decidim-pages/lib/decidim/pages/feature.rb +13 -3
  228. data/decidim-pages/spec/commands/update_page_spec.rb +2 -1
  229. data/decidim-pages/spec/factories.rb +2 -2
  230. data/decidim-pages/spec/features/admin_spec.rb +0 -11
  231. data/decidim-pages/spec/features/page_show_spec.rb +13 -10
  232. data/decidim-pages/spec/forms/page_form_spec.rb +4 -4
  233. data/decidim-pages/spec/spec_helper.rb +3 -1
  234. data/decidim-proposals/Rakefile +1 -1
  235. data/decidim-proposals/app/assets/config/decidim_proposals_manifest.css +1 -0
  236. data/decidim-proposals/app/assets/config/decidim_proposals_manifest.js +1 -0
  237. data/decidim-proposals/app/assets/images/decidim/proposals/icon.svg +1 -0
  238. data/decidim-proposals/app/assets/javascripts/decidim/proposals/social_share.js +2 -0
  239. data/decidim-proposals/app/assets/stylesheets/decidim/proposals/social_share.css.scss +14 -0
  240. data/decidim-proposals/app/commands/decidim/proposals/create_proposal.rb +5 -3
  241. data/decidim-proposals/app/controllers/decidim/proposals/admin/proposals_controller.rb +3 -3
  242. data/decidim-proposals/app/controllers/decidim/proposals/proposal_votes_controller.rb +25 -0
  243. data/decidim-proposals/app/controllers/decidim/proposals/proposals_controller.rb +33 -6
  244. data/decidim-proposals/app/forms/decidim/proposals/admin/proposal_form.rb +7 -6
  245. data/decidim-proposals/app/forms/decidim/proposals/proposal_form.rb +6 -6
  246. data/decidim-proposals/app/helpers/decidim/proposals/application_helper.rb +3 -1
  247. data/decidim-proposals/app/helpers/decidim/proposals/proposal_votes_helper.rb +27 -0
  248. data/decidim-proposals/app/models/decidim/proposals/proposal.rb +8 -0
  249. data/decidim-proposals/app/models/decidim/proposals/proposal_vote.rb +20 -0
  250. data/decidim-proposals/app/services/decidim/proposals/proposal_search.rb +39 -11
  251. data/decidim-proposals/app/views/decidim/proposals/admin/proposals/_form.html.erb +2 -2
  252. data/decidim-proposals/app/views/decidim/proposals/proposal_votes/create.js.erb +5 -0
  253. data/decidim-proposals/app/views/decidim/proposals/proposals/_count.html.erb +1 -0
  254. data/decidim-proposals/app/views/decidim/proposals/proposals/_filters.html.erb +26 -0
  255. data/decidim-proposals/app/views/decidim/proposals/proposals/_proposal.html.erb +11 -2
  256. data/decidim-proposals/app/views/decidim/proposals/proposals/_proposals.html.erb +4 -0
  257. data/decidim-proposals/app/views/decidim/proposals/proposals/_share.html.erb +33 -0
  258. data/decidim-proposals/app/views/decidim/proposals/proposals/_vote_button.html.erb +13 -0
  259. data/decidim-proposals/app/views/decidim/proposals/proposals/_votes_count.html.erb +6 -0
  260. data/decidim-proposals/app/views/decidim/proposals/proposals/index.html.erb +11 -11
  261. data/decidim-proposals/app/views/decidim/proposals/proposals/index.js.erb +5 -0
  262. data/decidim-proposals/app/views/decidim/proposals/proposals/show.html.erb +31 -4
  263. data/decidim-proposals/config/i18n-tasks.yml +1 -0
  264. data/decidim-proposals/config/initializers/social_share_button.rb +4 -0
  265. data/decidim-proposals/config/locales/ca.yml +28 -2
  266. data/decidim-proposals/config/locales/en.yml +27 -1
  267. data/decidim-proposals/config/locales/es.yml +28 -2
  268. data/decidim-proposals/db/migrate/20170112115253_create_proposal_votes.rb +12 -0
  269. data/decidim-proposals/db/migrate/20170113114245_add_text_search_indexes.rb +6 -0
  270. data/decidim-proposals/db/migrate/20170118120151_add_counter_cache_votes_to_proposals.rb +5 -0
  271. data/decidim-proposals/decidim-proposals.gemspec +2 -1
  272. data/decidim-proposals/lib/decidim/proposals/engine.rb +8 -1
  273. data/decidim-proposals/lib/decidim/proposals/feature.rb +30 -4
  274. data/decidim-proposals/spec/commands/decidim/proposals/create_proposal_spec.rb +10 -3
  275. data/decidim-proposals/spec/factories.rb +9 -4
  276. data/decidim-proposals/spec/features/admin_manages_proposals_spec.rb +2 -0
  277. data/decidim-proposals/spec/features/process_admin_manages_proposals_spec.rb +2 -0
  278. data/decidim-proposals/spec/features/proposals_spec.rb +41 -31
  279. data/decidim-proposals/spec/features/vote_proposal_spec.rb +78 -0
  280. data/decidim-proposals/spec/forms/decidim/proposals/proposal_form_spec.rb +11 -10
  281. data/decidim-proposals/spec/helpers/proposal_votes_helper_spec.rb +28 -0
  282. data/decidim-proposals/spec/lib/decidim/proposals/feature_spec.rb +1 -1
  283. data/decidim-proposals/spec/models/decidim/proposals/proposal_spec.rb +20 -3
  284. data/decidim-proposals/spec/models/decidim/proposals/proposal_vote_spec.rb +43 -0
  285. data/decidim-proposals/spec/services/decidim/proposals/proposal_search_spec.rb +50 -4
  286. data/decidim-proposals/spec/shared/manage_proposals_examples.rb +1 -1
  287. data/decidim-proposals/spec/spec_helper.rb +1 -1
  288. data/decidim-system/Rakefile +1 -1
  289. data/decidim-system/app/commands/decidim/system/register_organization.rb +13 -12
  290. data/decidim-system/decidim-system.gemspec +2 -3
  291. data/decidim-system/spec/factories.rb +1 -1
  292. data/decidim-system/spec/spec_helper.rb +3 -1
  293. data/docs/social_providers.md +41 -0
  294. data/karma.conf.js +4 -2
  295. data/lib/generators/decidim/app_generator.rb +6 -0
  296. data/lib/generators/decidim/demo_generator.rb +2 -2
  297. data/lib/generators/decidim/install_generator.rb +5 -4
  298. data/lib/generators/decidim/templates/Gemfile.erb +3 -5
  299. data/lib/generators/decidim/templates/initializer.rb +1 -1
  300. data/lib/generators/decidim/templates/secrets.yml.erb +26 -0
  301. data/lib/generators/decidim/templates/social_share_button.rb +7 -0
  302. data/package.json +16 -6
  303. data/webpack.config.js +23 -8
  304. data/yarn.lock +401 -345
  305. metadata +130 -48
  306. data/Gemfile.common +0 -1
  307. data/decidim-admin/Gemfile +0 -6
  308. data/decidim-comments/Gemfile +0 -6
  309. data/decidim-comments/package.json +0 -21
  310. data/decidim-dev/Gemfile +0 -6
  311. data/decidim-dev/lib/decidim/test/rspec_support/bullet.rb +0 -15
  312. data/decidim-dev/lib/generators/decidim/templates/bullet.rb +0 -6
  313. data/decidim-system/Gemfile +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2fea6d70e4e96be9947a2c2eff9b5d817a7178b
4
- data.tar.gz: a23e1dab0fd9764c59c4562dc61c4b222e627010
3
+ metadata.gz: 7b40409515f277c9b0a7a947dd0e2b1e6b3c89eb
4
+ data.tar.gz: 3ae27316858244258a2c9820e0836a2ccb9657b3
5
5
  SHA512:
6
- metadata.gz: d98923c64f65f00126e7f2767b26c68d675a53f03d8427e1a223b6b28443f65c0b96ee6f44336c1984b239af0f9de16c7ad2dddb834cad2c83b9bce3a562e35c
7
- data.tar.gz: b09bb63581225068961eae960f02ae290285cf5bdb49a15c0f6b98fc98005c8070f030a99c12b40af2161e5ca9786ba3257f01799c216c130fbc592b4b043c11
6
+ metadata.gz: 6a50d7560c87ac361df4911a6cd887cf35b60dba4dff07a83bfb8e4ce913464e01ae5e3c0d117de413a8683b3f4310a09af351944de354cc36d60911214c1705
7
+ data.tar.gz: b96fdba8243d18a153c500f4ed96ba5b9b38a5a0d9ba2290f9ddba84690130f586a8c9e4cbc0242a6ed64791224a7a5e95f1a8e6d68523d1cb98398e56f537cd
data/.codeclimate.yml CHANGED
@@ -9,9 +9,9 @@ engines:
9
9
  config:
10
10
  languages:
11
11
  javascript:
12
- mass_threshold: 50
12
+ mass_threshold: 1000
13
13
  ruby:
14
- mass_threshold: 50
14
+ mass_threshold: 80
15
15
  exclude_fingerprints:
16
16
  - 645ddab80611224e15d61c8426285296
17
17
  - 82b4059b3b55d7b7f06d8aba6cb7b81a
@@ -27,8 +27,7 @@ engines:
27
27
  enabled: false
28
28
  fixme:
29
29
  enabled: true
30
- rubocop:
31
- enabled: true
30
+
32
31
  ratings:
33
32
  paths:
34
33
  - Gemfile.lock
@@ -53,4 +52,4 @@ exclude_paths:
53
52
  - "decidim-*/db/seeds.rb"
54
53
  - "decidim-*/config/routes.rb"
55
54
  - "doc/how_to_create_a_plugin.md"
56
- - "bundle.js"
55
+ - "bundle.js"
data/.eslintignore CHANGED
@@ -1,6 +1,7 @@
1
1
  **/*{.,-}min.js
2
2
  decidim-*/vendor/**/*.js
3
3
  decidim-*/spec/*_dummy_app/**/*.js
4
+ development_app
4
5
  **/node_modules/**
5
6
  vendor/bundle/**
6
7
  bundle.js
@@ -11,3 +12,4 @@ entry.test.js
11
12
  entry.js
12
13
  *_manifest.js
13
14
  coverage
15
+ decidim-dev/**/*/test/**/*.js
data/.eslintrc.json CHANGED
@@ -28,6 +28,7 @@
28
28
  "sinon": false,
29
29
  "GraphQLDocs": false,
30
30
  "Quill": false,
31
+ "SVGInjector": false,
31
32
  "require": false
32
33
  },
33
34
  "rules": {
@@ -268,6 +269,7 @@
268
269
  "yield-star-spacing": "error",
269
270
  "yoda": "error",
270
271
  "import/no-named-as-default": "off",
272
+ "import/no-extraneous-dependencies": "off",
271
273
  "react/prefer-stateless-function": "off",
272
274
  "react/jsx-filename-extension": "off",
273
275
  "react/no-multi-comp": "off",
data/.gitignore CHANGED
@@ -13,3 +13,4 @@ npm-debug.log
13
13
  karma-*
14
14
  yarn-error.log
15
15
  coverage
16
+ webpack.report.html
data/.inch.yml ADDED
@@ -0,0 +1,5 @@
1
+ files:
2
+ included:
3
+ - lib/**/*.rb
4
+ - decidim-*/{app,lib}/**/*.rb
5
+ - decidim-*/{app,lib}/**/*.js
data/.mention-bot ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "findPotentialReviewers": true,
3
+ "userBlacklist": ["decidim-bot"],
4
+ "actions": ["opened", "labeled", "unlabeled", "edited"],
5
+ "skipAlreadyMentionedPR": true,
6
+ "withLabel": "in-review",
7
+ "createReviewRequest": true
8
+ }
data/.rubocop.yml CHANGED
@@ -289,7 +289,7 @@ Style/BracesAroundHashParameters:
289
289
 
290
290
  # Indentation of `when`.
291
291
  Style/CaseIndentation:
292
- IndentWhenRelativeTo: case
292
+ EnforcedStyle: case
293
293
  SupportedStyles:
294
294
  - case
295
295
  - end
@@ -825,6 +825,7 @@ Style/PredicateName:
825
825
  # helpers in the form of `have_something` or `be_something`.
826
826
  Exclude:
827
827
  - 'spec/**/*'
828
+ - 'test/**/*'
828
829
 
829
830
  Style/Documentation:
830
831
  Exclude:
@@ -922,9 +923,6 @@ Style/StringMethods:
922
923
 
923
924
  Style/SpaceAroundBlockParameters:
924
925
  EnforcedStyleInsidePipes: no_space
925
- SupportedStyles:
926
- - space
927
- - no_space
928
926
 
929
927
  Style/SpaceAroundEqualsInParameterDefault:
930
928
  EnforcedStyle: space
@@ -1002,10 +1000,6 @@ Style/TrailingCommaInArguments:
1002
1000
  # If `consistent_comma`, the cop requires a comma after the last argument,
1003
1001
  # for all parenthesized method calls with arguments.
1004
1002
  EnforcedStyleForMultiline: no_comma
1005
- SupportedStyles:
1006
- - comma
1007
- - consistent_comma
1008
- - no_comma
1009
1003
 
1010
1004
  Style/TrailingCommaInLiteral:
1011
1005
  # If `comma`, the cop requires a comma after the last item in an array or
@@ -1013,10 +1007,6 @@ Style/TrailingCommaInLiteral:
1013
1007
  # If `consistent_comma`, the cop requires a comma after the last item of all
1014
1008
  # non-empty array and hash literals.
1015
1009
  EnforcedStyleForMultiline: no_comma
1016
- SupportedStyles:
1017
- - comma
1018
- - consistent_comma
1019
- - no_comma
1020
1010
 
1021
1011
  # TrivialAccessors requires exact name matches and doesn't allow
1022
1012
  # predicated methods by default.
@@ -1151,11 +1141,7 @@ Lint/BlockAlignment:
1151
1141
  # The value `start_of_line` means it should be aligned with the whole
1152
1142
  # expression's starting line.
1153
1143
  # The value `either` means both are allowed.
1154
- AlignWith: either
1155
- SupportedStyles:
1156
- - either
1157
- - start_of_block
1158
- - start_of_line
1144
+ EnforcedStyleAlignWith: either
1159
1145
 
1160
1146
  # Align ends correctly.
1161
1147
  Lint/EndAlignment:
@@ -1166,11 +1152,7 @@ Lint/EndAlignment:
1166
1152
  # situations, `end` should still be aligned with the keyword.
1167
1153
  # The value `start_of_line` means that `end` should be aligned with the start
1168
1154
  # of the line which the matching keyword appears on.
1169
- AlignWith: keyword
1170
- SupportedStyles:
1171
- - keyword
1172
- - variable
1173
- - start_of_line
1155
+ EnforcedStyleAlignWith: keyword
1174
1156
  AutoCorrect: false
1175
1157
 
1176
1158
  Lint/DefEndAlignment:
@@ -1178,10 +1160,7 @@ Lint/DefEndAlignment:
1178
1160
  # The value `start_of_line` means that `end` should be aligned with method
1179
1161
  # calls like `private`, `public`, etc, if present in front of the `def`
1180
1162
  # keyword on the same line.
1181
- AlignWith: start_of_line
1182
- SupportedStyles:
1183
- - start_of_line
1184
- - def
1163
+ EnforcedStyleAlignWith: start_of_line
1185
1164
  AutoCorrect: false
1186
1165
 
1187
1166
  Lint/InheritException:
@@ -1289,10 +1268,7 @@ Rails/TimeZone:
1289
1268
  - flexible
1290
1269
 
1291
1270
  Rails/UniqBeforePluck:
1292
- EnforcedMode: conservative
1293
- SupportedModes:
1294
- - conservative
1295
- - aggressive
1271
+ EnforcedStyle: conservative
1296
1272
  AutoCorrect: false
1297
1273
 
1298
1274
  Rails/Validation:
@@ -1302,8 +1278,9 @@ Rails/Validation:
1302
1278
  Metrics/BlockLength:
1303
1279
  Exclude:
1304
1280
  - 'decidim-api/lib/decidim/api/schema.rb'
1305
- - 'decidim-api/lib/decidim/api/types/**/*'
1281
+ - 'decidim-*/**/*/types/**/*'
1306
1282
  - 'decidim-*/lib/**/*/test/**/*'
1283
+ - 'decidim-*/lib/**/*/feature.rb'
1307
1284
 
1308
1285
  Lint/HandleExceptions:
1309
1286
  Exclude:
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.3
1
+ 2.4.0
data/.travis.yml CHANGED
@@ -7,35 +7,45 @@ services:
7
7
 
8
8
  language: ruby
9
9
 
10
+ branches:
11
+ only:
12
+ - master
13
+
10
14
  env:
11
- - GEM=. DB=postgres
12
- - GEM=decidim-admin DB=postgres
13
- - GEM=decidim-core DB=postgres
14
- - GEM=decidim-system DB=postgres
15
- - GEM=decidim-api DB=postgres
16
- - GEM=decidim-pages DB=postgres
17
- - GEM=decidim-comments DB=postgres
18
- - GEM=decidim-meetings DB=postgres
15
+ global:
16
+ - BUNDLE_GEMFILE="$TRAVIS_BUILD_DIR/Gemfile"
17
+ - BUNDLE_PATH="$HOME/.bundle"
18
+ matrix:
19
+ - GEM=. DB=postgres
20
+ - GEM=decidim-admin DB=postgres
21
+ - GEM=decidim-core DB=postgres
22
+ - GEM=decidim-system DB=postgres
23
+ - GEM=decidim-api DB=postgres
24
+ - GEM=decidim-pages DB=postgres
25
+ - GEM=decidim-comments DB=postgres
26
+ - GEM=decidim-meetings DB=postgres
27
+ - GEM=decidim-proposals DB=postgres
19
28
 
20
29
  before_install:
21
30
  # Repo for newer Node.js versions
22
31
  - curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
23
32
  - yarn
24
- - export BUNDLE_GEMFILE="$TRAVIS_BUILD_DIR/Gemfile"
25
- - export BUNDLE_PATH="$HOME/.bundle"
33
+
34
+ bundler_args: --jobs=3 --retry=3 --deployment --path="$HOME/.bundle"
26
35
 
27
36
  cache:
28
- bundler: true
29
37
  directories:
30
- - $HOME/.yarn-cache
31
- - $HOME/node_modules
38
+ - $HOME/.bundle
39
+ - $TRAVIS_BUILD_DIR/.yarn-cache
40
+ - $TRAVIS_BUILD_DIR/node_modules
41
+ - $BUNDLE_PATH
32
42
 
33
43
  script:
34
44
  - cd $GEM;
35
45
  - $TRAVIS_BUILD_DIR/run_ci.sh
36
46
 
37
47
  rvm:
38
- - 2.3.3
48
+ - 2.4.0
39
49
 
40
50
  notifications:
41
51
  email: false
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ruby:2.3.3
1
+ FROM ruby:2.4.0
2
2
  MAINTAINER david.morcillo@codegram.com
3
3
 
4
4
  ENV APP_HOME /decidim
@@ -11,7 +11,6 @@ RUN curl -sL https://deb.nodesource.com/setup_4.x | bash && \
11
11
  apt-get install -y nodejs yarn
12
12
 
13
13
  ADD Gemfile /tmp/Gemfile
14
- ADD Gemfile.common /tmp/Gemfile.common
15
14
  ADD Gemfile.lock /tmp/Gemfile.lock
16
15
  ADD decidim.gemspec /tmp/decidim.gemspec
17
16
 
@@ -27,7 +26,6 @@ ADD decidim-meetings/decidim-meetings.gemspec /tmp/decidim-meetings/decidim-meet
27
26
  ADD decidim-proposals/decidim-proposals.gemspec /tmp/decidim-proposals/decidim-proposals.gemspec
28
27
 
29
28
  ADD package.json /tmp/package.json
30
- ADD decidim-comments/package.json /tmp/package.json
31
29
  ADD yarn.lock /tmp/yarn.lock
32
30
 
33
31
  RUN cd /tmp && bundle install && yarn
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  source "https://rubygems.org"
3
3
 
4
- ruby "2.3.3"
4
+ ruby "2.4.0"
5
5
 
6
6
  gemspec path: "."
7
7
  gemspec path: "decidim-core"
@@ -12,5 +12,3 @@ gemspec path: "decidim-api"
12
12
  gemspec path: "decidim-pages"
13
13
  gemspec path: "decidim-comments"
14
14
  gemspec path: "decidim-meetings"
15
-
16
- eval(File.read(File.join(File.dirname(__FILE__), "Gemfile.common")))
data/Gemfile.lock CHANGED
@@ -1,49 +1,37 @@
1
- GIT
2
- remote: https://github.com/sgruhier/foundation_rails_helper.git
3
- revision: df0bd8eca1b43b8bfdcb163f9e1e3b3b9ab0595e
4
- tag: df0bd8e
5
- specs:
6
- foundation_rails_helper (2.0.0)
7
- actionpack (>= 4.1)
8
- activemodel (>= 4.1)
9
- activesupport (>= 4.1)
10
- railties (>= 4.1)
11
- tzinfo (~> 1.2, >= 1.2.2)
12
-
13
1
  PATH
14
2
  remote: .
15
3
  specs:
16
- decidim (0.0.1)
17
- decidim-admin (= 0.0.1)
18
- decidim-api (= 0.0.1)
19
- decidim-comments (= 0.0.1)
20
- decidim-core (= 0.0.1)
21
- decidim-meetings (= 0.0.1)
22
- decidim-pages (= 0.0.1)
23
- decidim-proposals (= 0.0.1)
24
- decidim-system (= 0.0.1)
4
+ decidim (0.0.2)
5
+ decidim-admin (= 0.0.2)
6
+ decidim-api (= 0.0.2)
7
+ decidim-comments (= 0.0.2)
8
+ decidim-core (= 0.0.2)
9
+ decidim-meetings (= 0.0.2)
10
+ decidim-pages (= 0.0.2)
11
+ decidim-proposals (= 0.0.2)
12
+ decidim-system (= 0.0.2)
25
13
  rails (~> 5.0.0, >= 5.0.0.1)
26
14
  rails-i18n (~> 5.0.0, >= 5.0.0.1)
27
- decidim-proposals (0.0.1)
28
- decidim-comments (= 0.0.1)
29
- decidim-core (= 0.0.1)
30
- kaminari (~> 1.0.0.rc1)
15
+ decidim-proposals (0.0.2)
16
+ decidim-comments (= 0.0.2)
17
+ decidim-core (= 0.0.2)
18
+ kaminari (~> 1.0.1)
31
19
  rectify (~> 0.8.0)
20
+ social-share-button (~> 0.8.8)
32
21
 
33
22
  PATH
34
23
  remote: decidim-admin
35
24
  specs:
36
- decidim-admin (0.0.1)
25
+ decidim-admin (0.0.2)
37
26
  active_link_to (~> 1.0.0)
38
27
  cancancan (~> 1.15.0)
39
28
  carrierwave (~> 1.0.0.rc)
40
- decidim-core (= 0.0.1)
29
+ decidim-core (= 0.0.2)
41
30
  devise (~> 4.2)
42
31
  devise-i18n (~> 1.1.0)
43
32
  devise_invitable (~> 1.7.0)
44
- foundation-rails (~> 6.2.4.0)
45
- foundation_rails_helper (~> 2.0.0)
46
- jquery-rails (~> 4.0)
33
+ foundation_rails_helper (~> 3.0.0.rc)
34
+ jquery-rails (~> 4.2.2)
47
35
  rails (~> 5.0.0, >= 5.0.0.1)
48
36
  rectify (~> 0.8.0)
49
37
  sassc-rails (~> 1.3.0)
@@ -52,9 +40,9 @@ PATH
52
40
  PATH
53
41
  remote: decidim-api
54
42
  specs:
55
- decidim-api (0.0.1)
56
- graphiql-rails (~> 1.4.0)
57
- graphql (~> 1.3.0)
43
+ decidim-api (0.0.2)
44
+ graphiql-rails (~> 1.4.1)
45
+ graphql (~> 1.4.1)
58
46
  rack-cors (~> 0.4.0)
59
47
  rails (~> 5.0.0, >= 5.0.0.1)
60
48
  sprockets-es6 (~> 0.9.2)
@@ -62,93 +50,97 @@ PATH
62
50
  PATH
63
51
  remote: decidim-comments
64
52
  specs:
65
- decidim-comments (0.0.1)
66
- decidim-core (= 0.0.1)
67
- foundation-rails (~> 6.2.4.0)
68
- foundation_rails_helper (~> 2.0.0)
53
+ decidim-comments (0.0.2)
54
+ decidim-core (= 0.0.2)
69
55
  jquery-rails (~> 4.0)
70
56
  rails (~> 5.0.0, >= 5.0.0.1)
71
- sassc-rails (~> 1.3.0)
72
57
  turbolinks (~> 5.0.0, >= 5.0.0.1)
73
58
 
74
59
  PATH
75
60
  remote: decidim-core
76
61
  specs:
77
- decidim-core (0.0.1)
62
+ decidim-core (0.0.2)
78
63
  active_link_to (~> 1.0.0)
79
64
  cancancan (~> 1.15.0)
80
- carrierwave (~> 1.0.0.rc)
65
+ carrierwave (~> 1.0.0)
81
66
  date_validator (~> 0.9.0)
82
- decidim-api (= 0.0.1)
67
+ decidim-api (= 0.0.2)
83
68
  devise (~> 4.2)
84
69
  devise-i18n (~> 1.1.0)
85
70
  file_validators (~> 2.1.0)
86
- foundation-rails (~> 6.2.4.0)
87
- foundation_rails_helper (~> 2.0.0)
71
+ foundation-rails (~> 6.3.0.0)
72
+ foundation_rails_helper (~> 3.0.0.rc)
88
73
  high_voltage (~> 3.0.0)
89
- jquery-rails (~> 4.0)
74
+ jquery-rails (~> 4.2.2)
90
75
  mini_magick (~> 4.6.0)
76
+ omniauth (~> 1.3.1)
77
+ omniauth-facebook (~> 4.0.0)
78
+ omniauth-google-oauth2 (~> 0.4.1)
79
+ omniauth-twitter (~> 1.3.0)
91
80
  pg (~> 0.19.0)
92
81
  rails (~> 5.0.0, >= 5.0.0.1)
93
82
  rectify (~> 0.8.0)
94
83
  redis (~> 3.3.0)
84
+ roadie (~> 3.2.1)
95
85
  roadie-rails (~> 1.0)
96
86
  sassc-rails (~> 1.3.0)
97
87
  sprockets-es6 (~> 0.9.2)
98
- truncato (~> 0.7.8)
88
+ truncato (~> 0.7.9)
99
89
  turbolinks (~> 5.0.0, >= 5.0.0.1)
100
90
 
101
91
  PATH
102
92
  remote: decidim-dev
103
93
  specs:
104
- decidim-dev (0.0.1)
105
- bullet (~> 5.4.3)
94
+ decidim-dev (0.0.2)
106
95
  byebug
107
96
  capybara (~> 2.11.0)
108
97
  capybara-screenshot (~> 1.0.14)
109
98
  codecov (~> 0.1.9)
110
99
  database_cleaner (~> 1.5.0)
100
+ db-query-matchers (~> 0.7.0)
101
+ decidim (= 0.0.2)
111
102
  factory_girl_rails
112
- faker (~> 1.6.6)
113
- i18n-tasks (~> 0.9.6)
103
+ faker (~> 1.7.2)
104
+ i18n-tasks (= 0.9.8)
114
105
  launchy
115
106
  listen (~> 3.1.0)
116
107
  poltergeist (~> 1.12.0)
117
108
  rails-controller-testing (~> 1.0.1)
118
109
  rspec-rails (~> 3.5)
119
110
  rspec-repeat (~> 1.0.2)
120
- rubocop (~> 0.46)
111
+ rubocop (~> 0.47)
121
112
  simplecov (~> 0.12)
122
113
  wisper-rspec
123
114
 
124
115
  PATH
125
116
  remote: decidim-meetings
126
117
  specs:
127
- decidim-meetings (0.0.1)
118
+ decidim-meetings (0.0.2)
128
119
  date_validator (~> 0.9)
129
- decidim-core (= 0.0.1)
120
+ decidim-core (= 0.0.2)
121
+ kaminari (~> 1.0.1)
130
122
  rectify (~> 0.8)
123
+ searchlight (~> 4.1.0)
131
124
 
132
125
  PATH
133
126
  remote: decidim-pages
134
127
  specs:
135
- decidim-pages (0.0.1)
136
- decidim-comments (= 0.0.1)
137
- decidim-core (= 0.0.1)
128
+ decidim-pages (0.0.2)
129
+ decidim-comments (= 0.0.2)
130
+ decidim-core (= 0.0.2)
138
131
  rectify (~> 0.8.0)
139
132
 
140
133
  PATH
141
134
  remote: decidim-system
142
135
  specs:
143
- decidim-system (0.0.1)
136
+ decidim-system (0.0.2)
144
137
  active_link_to (~> 1.0.0)
145
- decidim-core (= 0.0.1)
138
+ decidim-core (= 0.0.2)
146
139
  devise (~> 4.2)
147
140
  devise-i18n (~> 1.1.0)
148
141
  devise_invitable (~> 1.7.0)
149
- foundation-rails (~> 6.2.4.0)
150
- foundation_rails_helper (~> 2.0.0)
151
- jquery-rails (~> 4.0)
142
+ foundation_rails_helper (~> 3.0.0.rc)
143
+ jquery-rails (~> 4.2.2)
152
144
  rails (~> 5.0.0, >= 5.0.0.1)
153
145
  rectify (~> 0.8.0)
154
146
  sassc-rails (~> 1.3.0)
@@ -157,41 +149,41 @@ PATH
157
149
  GEM
158
150
  remote: https://rubygems.org/
159
151
  specs:
160
- actioncable (5.0.0.1)
161
- actionpack (= 5.0.0.1)
152
+ actioncable (5.0.1)
153
+ actionpack (= 5.0.1)
162
154
  nio4r (~> 1.2)
163
155
  websocket-driver (~> 0.6.1)
164
- actionmailer (5.0.0.1)
165
- actionpack (= 5.0.0.1)
166
- actionview (= 5.0.0.1)
167
- activejob (= 5.0.0.1)
156
+ actionmailer (5.0.1)
157
+ actionpack (= 5.0.1)
158
+ actionview (= 5.0.1)
159
+ activejob (= 5.0.1)
168
160
  mail (~> 2.5, >= 2.5.4)
169
161
  rails-dom-testing (~> 2.0)
170
- actionpack (5.0.0.1)
171
- actionview (= 5.0.0.1)
172
- activesupport (= 5.0.0.1)
162
+ actionpack (5.0.1)
163
+ actionview (= 5.0.1)
164
+ activesupport (= 5.0.1)
173
165
  rack (~> 2.0)
174
166
  rack-test (~> 0.6.3)
175
167
  rails-dom-testing (~> 2.0)
176
168
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
177
- actionview (5.0.0.1)
178
- activesupport (= 5.0.0.1)
169
+ actionview (5.0.1)
170
+ activesupport (= 5.0.1)
179
171
  builder (~> 3.1)
180
172
  erubis (~> 2.7.0)
181
173
  rails-dom-testing (~> 2.0)
182
174
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
183
175
  active_link_to (1.0.3)
184
176
  actionpack
185
- activejob (5.0.0.1)
186
- activesupport (= 5.0.0.1)
177
+ activejob (5.0.1)
178
+ activesupport (= 5.0.1)
187
179
  globalid (>= 0.3.6)
188
- activemodel (5.0.0.1)
189
- activesupport (= 5.0.0.1)
190
- activerecord (5.0.0.1)
191
- activemodel (= 5.0.0.1)
192
- activesupport (= 5.0.0.1)
180
+ activemodel (5.0.1)
181
+ activesupport (= 5.0.1)
182
+ activerecord (5.0.1)
183
+ activemodel (= 5.0.1)
184
+ activesupport (= 5.0.1)
193
185
  arel (~> 7.0)
194
- activesupport (5.0.0.1)
186
+ activesupport (5.0.1)
195
187
  concurrent-ruby (~> 1.0, >= 1.0.2)
196
188
  i18n (~> 0.7)
197
189
  minitest (~> 5.1)
@@ -209,10 +201,7 @@ GEM
209
201
  babel-source (>= 4.0, < 6)
210
202
  execjs (~> 2.0)
211
203
  bcrypt (3.1.11)
212
- builder (3.2.2)
213
- bullet (5.4.3)
214
- activesupport (>= 3.0.0)
215
- uniform_notifier (~> 1.10.0)
204
+ builder (3.2.3)
216
205
  byebug (9.0.6)
217
206
  cancancan (1.15.0)
218
207
  capybara (2.11.0)
@@ -225,7 +214,7 @@ GEM
225
214
  capybara-screenshot (1.0.14)
226
215
  capybara (>= 1.0, < 3)
227
216
  launchy
228
- carrierwave (1.0.0.rc)
217
+ carrierwave (1.0.0)
229
218
  activemodel (>= 4.0.0)
230
219
  activesupport (>= 4.0.0)
231
220
  mime-types (>= 1.16)
@@ -236,13 +225,21 @@ GEM
236
225
  url
237
226
  coercible (1.0.0)
238
227
  descendants_tracker (~> 0.0.1)
239
- concurrent-ruby (1.0.2)
228
+ coffee-rails (4.2.1)
229
+ coffee-script (>= 2.2.0)
230
+ railties (>= 4.0.0, < 5.2.x)
231
+ coffee-script (2.4.1)
232
+ coffee-script-source
233
+ execjs
234
+ coffee-script-source (1.12.2)
235
+ concurrent-ruby (1.0.4)
240
236
  css_parser (1.4.7)
241
237
  addressable
242
238
  database_cleaner (1.5.3)
243
239
  date_validator (0.9.0)
244
240
  activemodel
245
241
  activesupport
242
+ db-query-matchers (0.7.0)
246
243
  descendants_tracker (0.0.4)
247
244
  thread_safe (~> 0.3, >= 0.3.1)
248
245
  devise (4.2.0)
@@ -264,31 +261,40 @@ GEM
264
261
  equalizer (0.0.11)
265
262
  erubis (2.7.0)
266
263
  execjs (2.7.0)
267
- factory_girl (4.7.0)
264
+ factory_girl (4.8.0)
268
265
  activesupport (>= 3.0.0)
269
- factory_girl_rails (4.7.0)
270
- factory_girl (~> 4.7.0)
266
+ factory_girl_rails (4.8.0)
267
+ factory_girl (~> 4.8.0)
271
268
  railties (>= 3.0.0)
272
- faker (1.6.6)
269
+ faker (1.7.2)
273
270
  i18n (~> 0.5)
274
- ffi (1.9.14)
271
+ faraday (0.10.1)
272
+ multipart-post (>= 1.2, < 3)
273
+ ffi (1.9.17)
275
274
  file_validators (2.1.0)
276
275
  activemodel (>= 3.0)
277
276
  mime-types (>= 1.0)
278
- foundation-rails (6.2.4.0)
277
+ foundation-rails (6.3.0.0)
279
278
  railties (>= 3.1.0)
280
279
  sass (>= 3.3.0, < 3.5)
281
280
  sprockets-es6 (>= 0.9.0)
281
+ foundation_rails_helper (3.0.0.rc2)
282
+ actionpack (>= 4.1)
283
+ activemodel (>= 4.1)
284
+ activesupport (>= 4.1)
285
+ railties (>= 4.1)
286
+ tzinfo (~> 1.2, >= 1.2.2)
282
287
  globalid (0.3.7)
283
288
  activesupport (>= 4.1.0)
284
- graphiql-rails (1.4.0)
289
+ graphiql-rails (1.4.1)
285
290
  rails
286
- graphql (1.3.0)
291
+ graphql (1.4.1)
292
+ hashie (3.4.6)
287
293
  high_voltage (3.0.0)
288
294
  highline (1.7.8)
289
295
  htmlentities (4.3.4)
290
296
  i18n (0.7.0)
291
- i18n-tasks (0.9.6)
297
+ i18n-tasks (0.9.8)
292
298
  activesupport (>= 4.0.2)
293
299
  ast (>= 2.1.0)
294
300
  easy_translate (>= 0.5.0)
@@ -299,23 +305,24 @@ GEM
299
305
  term-ansicolor (>= 1.3.2)
300
306
  terminal-table (>= 1.5.1)
301
307
  ice_nine (0.11.2)
302
- jquery-rails (4.2.1)
308
+ jquery-rails (4.2.2)
303
309
  rails-dom-testing (>= 1, < 3)
304
310
  railties (>= 4.2.0)
305
311
  thor (>= 0.14, < 2.0)
306
- json (2.0.2)
307
- kaminari (1.0.0.rc1)
312
+ json (2.0.3)
313
+ jwt (1.5.6)
314
+ kaminari (1.0.1)
308
315
  activesupport (>= 4.1.0)
309
- kaminari-actionview (= 1.0.0.rc1)
310
- kaminari-activerecord (= 1.0.0.rc1)
311
- kaminari-core (= 1.0.0.rc1)
312
- kaminari-actionview (1.0.0.rc1)
316
+ kaminari-actionview (= 1.0.1)
317
+ kaminari-activerecord (= 1.0.1)
318
+ kaminari-core (= 1.0.1)
319
+ kaminari-actionview (1.0.1)
313
320
  actionview
314
- kaminari-core (= 1.0.0.rc1)
315
- kaminari-activerecord (1.0.0.rc1)
321
+ kaminari-core (= 1.0.1)
322
+ kaminari-activerecord (1.0.1)
316
323
  activerecord
317
- kaminari-core (= 1.0.0.rc1)
318
- kaminari-core (1.0.0.rc1)
324
+ kaminari-core (= 1.0.1)
325
+ kaminari-core (1.0.1)
319
326
  launchy (2.4.3)
320
327
  addressable (~> 2.3)
321
328
  listen (3.1.5)
@@ -332,10 +339,39 @@ GEM
332
339
  mime-types-data (3.2016.0521)
333
340
  mini_magick (4.6.0)
334
341
  mini_portile2 (2.1.0)
335
- minitest (5.9.1)
342
+ minitest (5.10.1)
343
+ multi_json (1.12.1)
344
+ multi_xml (0.6.0)
345
+ multipart-post (2.0.0)
336
346
  nio4r (1.2.1)
337
- nokogiri (1.6.8.1)
347
+ nokogiri (1.7.0.1)
338
348
  mini_portile2 (~> 2.1.0)
349
+ oauth (0.5.1)
350
+ oauth2 (1.3.0)
351
+ faraday (>= 0.8, < 0.11)
352
+ jwt (~> 1.0)
353
+ multi_json (~> 1.3)
354
+ multi_xml (~> 0.5)
355
+ rack (>= 1.2, < 3)
356
+ omniauth (1.3.2)
357
+ hashie (>= 1.2, < 4)
358
+ rack (>= 1.0, < 3)
359
+ omniauth-facebook (4.0.0)
360
+ omniauth-oauth2 (~> 1.2)
361
+ omniauth-google-oauth2 (0.4.1)
362
+ jwt (~> 1.5.2)
363
+ multi_json (~> 1.3)
364
+ omniauth (>= 1.1.1)
365
+ omniauth-oauth2 (>= 1.3.1)
366
+ omniauth-oauth (1.1.0)
367
+ oauth
368
+ omniauth (~> 1.0)
369
+ omniauth-oauth2 (1.4.0)
370
+ oauth2 (~> 1.0)
371
+ omniauth (~> 1.2)
372
+ omniauth-twitter (1.3.0)
373
+ omniauth-oauth (~> 1.1)
374
+ rack
339
375
  orm_adapter (0.5.0)
340
376
  parser (2.3.3.1)
341
377
  ast (~> 2.2)
@@ -345,42 +381,42 @@ GEM
345
381
  cliver (~> 0.3.1)
346
382
  websocket-driver (>= 0.2.0)
347
383
  powerpack (0.1.1)
348
- public_suffix (2.0.4)
384
+ public_suffix (2.0.5)
349
385
  rack (2.0.1)
350
386
  rack-cors (0.4.0)
351
387
  rack-test (0.6.3)
352
388
  rack (>= 1.0)
353
- rails (5.0.0.1)
354
- actioncable (= 5.0.0.1)
355
- actionmailer (= 5.0.0.1)
356
- actionpack (= 5.0.0.1)
357
- actionview (= 5.0.0.1)
358
- activejob (= 5.0.0.1)
359
- activemodel (= 5.0.0.1)
360
- activerecord (= 5.0.0.1)
361
- activesupport (= 5.0.0.1)
389
+ rails (5.0.1)
390
+ actioncable (= 5.0.1)
391
+ actionmailer (= 5.0.1)
392
+ actionpack (= 5.0.1)
393
+ actionview (= 5.0.1)
394
+ activejob (= 5.0.1)
395
+ activemodel (= 5.0.1)
396
+ activerecord (= 5.0.1)
397
+ activesupport (= 5.0.1)
362
398
  bundler (>= 1.3.0, < 2.0)
363
- railties (= 5.0.0.1)
399
+ railties (= 5.0.1)
364
400
  sprockets-rails (>= 2.0.0)
365
401
  rails-controller-testing (1.0.1)
366
402
  actionpack (~> 5.x)
367
403
  actionview (~> 5.x)
368
404
  activesupport (~> 5.x)
369
- rails-dom-testing (2.0.1)
405
+ rails-dom-testing (2.0.2)
370
406
  activesupport (>= 4.2.0, < 6.0)
371
- nokogiri (~> 1.6.0)
407
+ nokogiri (~> 1.6)
372
408
  rails-html-sanitizer (1.0.3)
373
409
  loofah (~> 2.0)
374
- rails-i18n (5.0.1)
410
+ rails-i18n (5.0.2)
375
411
  i18n (~> 0.7)
376
412
  railties (~> 5.0)
377
- railties (5.0.0.1)
378
- actionpack (= 5.0.0.1)
379
- activesupport (= 5.0.0.1)
413
+ railties (5.0.1)
414
+ actionpack (= 5.0.1)
415
+ activesupport (= 5.0.1)
380
416
  method_source
381
417
  rake (>= 0.8.7)
382
418
  thor (>= 0.18.1, < 2.0)
383
- rainbow (2.1.0)
419
+ rainbow (2.2.1)
384
420
  rake (12.0.0)
385
421
  rb-fsevent (0.9.8)
386
422
  rb-inotify (0.9.7)
@@ -394,9 +430,9 @@ GEM
394
430
  redis (3.3.2)
395
431
  responders (2.3.0)
396
432
  railties (>= 4.2.0, < 5.1)
397
- roadie (3.2.0)
433
+ roadie (3.2.1)
398
434
  css_parser (~> 1.4.5)
399
- nokogiri (>= 1.5.0, < 1.7.0)
435
+ nokogiri (>= 1.5.0, < 1.8.0)
400
436
  roadie-rails (1.1.1)
401
437
  railties (>= 3.0, < 5.1)
402
438
  roadie (~> 3.1)
@@ -423,8 +459,8 @@ GEM
423
459
  rspec-repeat (1.0.2)
424
460
  rspec (~> 3.0)
425
461
  rspec-support (3.5.0)
426
- rubocop (0.46.0)
427
- parser (>= 2.3.1.1, < 3.0)
462
+ rubocop (0.47.1)
463
+ parser (>= 2.3.3.1, < 3.0)
428
464
  powerpack (~> 0.1)
429
465
  rainbow (>= 1.99.1, < 3.0)
430
466
  ruby-progressbar (~> 1.7)
@@ -432,7 +468,7 @@ GEM
432
468
  ruby-progressbar (1.8.1)
433
469
  ruby_dep (1.5.0)
434
470
  sass (3.4.23)
435
- sassc (1.11.0)
471
+ sassc (1.11.1)
436
472
  bundler
437
473
  ffi (~> 1.9.6)
438
474
  sass (>= 3.3.0)
@@ -443,11 +479,14 @@ GEM
443
479
  sprockets (> 2.11)
444
480
  sprockets-rails
445
481
  tilt
482
+ searchlight (4.1.0)
446
483
  simplecov (0.12.0)
447
484
  docile (~> 1.1.0)
448
485
  json (>= 1.8, < 3)
449
486
  simplecov-html (~> 0.10.0)
450
487
  simplecov-html (0.10.0)
488
+ social-share-button (0.8.8)
489
+ coffee-rails
451
490
  sprockets (3.7.1)
452
491
  concurrent-ruby (~> 1.0)
453
492
  rack (> 1, < 3)
@@ -463,21 +502,20 @@ GEM
463
502
  tins (~> 1.0)
464
503
  terminal-table (1.7.3)
465
504
  unicode-display_width (~> 1.1.1)
466
- thor (0.19.1)
505
+ thor (0.19.4)
467
506
  thread (0.2.2)
468
507
  thread_safe (0.3.5)
469
508
  tilt (2.0.5)
470
509
  tins (1.13.0)
471
- truncato (0.7.8)
510
+ truncato (0.7.9)
472
511
  htmlentities (~> 4.3.1)
473
- nokogiri (~> 1.6.1)
512
+ nokogiri (~> 1.7.0)
474
513
  turbolinks (5.0.1)
475
514
  turbolinks-source (~> 5)
476
515
  turbolinks-source (5.0.0)
477
516
  tzinfo (1.2.2)
478
517
  thread_safe (~> 0.1)
479
- unicode-display_width (1.1.2)
480
- uniform_notifier (1.10.0)
518
+ unicode-display_width (1.1.3)
481
519
  url (0.3.2)
482
520
  virtus (1.0.5)
483
521
  axiom-types (~> 0.1)
@@ -508,12 +546,11 @@ DEPENDENCIES
508
546
  decidim-meetings!
509
547
  decidim-pages!
510
548
  decidim-system!
511
- foundation_rails_helper!
512
549
  rake (~> 12.0.0)
513
550
  rspec (~> 3.0)
514
551
 
515
552
  RUBY VERSION
516
- ruby 2.3.3p222
553
+ ruby 2.4.0p0
517
554
 
518
555
  BUNDLED WITH
519
- 1.13.6
556
+ 1.13.7