decidim 0.0.7 → 0.0.8.1

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 (148) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +67 -0
  3. data/.eslintignore +1 -1
  4. data/.eslintrc.json +1 -0
  5. data/.travis.yml +4 -1
  6. data/Gemfile.lock +49 -48
  7. data/README.md +44 -118
  8. data/Rakefile +9 -13
  9. data/decidim-admin/README.md +2 -2
  10. data/decidim-admin/app/assets/javascripts/decidim/admin/application.js.es6 +13 -0
  11. data/decidim-admin/app/assets/javascripts/decidim/admin/toggle_nav.js.es6 +17 -0
  12. data/decidim-admin/app/assets/stylesheets/decidim/admin/_decidim.scss +0 -1
  13. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_datepicker.scss +224 -0
  14. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_modules.scss +1 -0
  15. data/decidim-admin/app/controllers/decidim/admin/newsletters_controller.rb +1 -1
  16. data/decidim-admin/app/forms/decidim/admin/participatory_process_user_role_form.rb +9 -0
  17. data/decidim-admin/app/helpers/decidim/admin/application_helper.rb +6 -0
  18. data/decidim-admin/app/views/decidim/admin/categories/index.html.erb +1 -1
  19. data/decidim-admin/app/views/decidim/admin/participatory_process_groups/index.html.erb +1 -1
  20. data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/_form.html.erb +2 -3
  21. data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +1 -1
  22. data/decidim-admin/app/views/decidim/admin/static_pages/index.html.erb +2 -2
  23. data/decidim-admin/app/views/layouts/decidim/admin/_application.html.erb +2 -1
  24. data/decidim-admin/app/views/layouts/decidim/admin/pages.html.erb +1 -1
  25. data/decidim-admin/config/i18n-tasks.yml +2 -0
  26. data/decidim-admin/config/locales/ca.yml +22 -17
  27. data/decidim-admin/config/locales/en.yml +22 -17
  28. data/decidim-admin/config/locales/es.yml +23 -18
  29. data/decidim-admin/config/locales/eu.yml +0 -19
  30. data/decidim-admin/config/locales/fi.yml +0 -14
  31. data/decidim-admin/config/locales/fr.yml +141 -0
  32. data/decidim-admin/config/locales/nl.yml +5 -0
  33. data/decidim-admin/spec/features/admin_invite_spec.rb +7 -1
  34. data/decidim-admin/spec/features/admin_manages_organization_spec.rb +1 -1
  35. data/decidim-admin/spec/features/admin_manages_participatory_process_groups_spec.rb +1 -1
  36. data/decidim-admin/spec/features/admin_manages_participatory_processes_spec.rb +1 -1
  37. data/decidim-admin/spec/features/static_pages_spec.rb +0 -5
  38. data/decidim-admin/spec/forms/organization_form_spec.rb +6 -1
  39. data/decidim-admin/spec/shared/manage_process_admins_examples.rb +2 -2
  40. data/decidim-admin/spec/shared/manage_process_steps_examples.rb +21 -17
  41. data/decidim-admin/spec/shared/manage_processes_examples.rb +13 -10
  42. data/decidim-admin/spec/shared/participatory_admin_shared_context.rb +3 -3
  43. data/decidim-admin/vendor/assets/javascripts/moment.min.js +7 -0
  44. data/decidim-api/README.md +2 -2
  45. data/decidim-budgets/README.md +2 -2
  46. data/decidim-budgets/config/locales/ca.yml +3 -3
  47. data/decidim-budgets/config/locales/en.yml +3 -3
  48. data/decidim-budgets/config/locales/es.yml +3 -3
  49. data/decidim-budgets/config/locales/eu.yml +0 -3
  50. data/decidim-budgets/config/locales/fi.yml +0 -3
  51. data/decidim-budgets/config/locales/fr.yml +97 -0
  52. data/decidim-budgets/config/locales/nl.yml +5 -0
  53. data/decidim-budgets/db/migrate/20170410074214_remove_not_null_reference_budgets.rb +5 -0
  54. data/decidim-budgets/spec/shared/manage_projects_examples.rb +1 -1
  55. data/decidim-comments/README.md +2 -2
  56. data/decidim-comments/app/assets/javascripts/decidim/comments/bundle.js +0 -0
  57. data/decidim-comments/config/locales/fr.yml +5 -0
  58. data/decidim-comments/config/locales/nl.yml +5 -0
  59. data/decidim-dev/README.md +2 -2
  60. data/decidim-dev/config/locales/fr.yml +5 -0
  61. data/decidim-dev/config/locales/nl.yml +5 -0
  62. data/decidim-dev/lib/decidim/dev.rb +8 -5
  63. data/decidim-dev/lib/decidim/dev/common_rake.rb +1 -23
  64. data/decidim-dev/lib/decidim/dev/railtie.rb +13 -0
  65. data/decidim-dev/lib/decidim/dev/test/base_spec_helper.rb +6 -5
  66. data/decidim-dev/lib/generators/decidim/dummy_generator.rb +13 -16
  67. data/decidim-dev/lib/tasks/test_app.rake +18 -0
  68. data/decidim-meetings/README.md +2 -2
  69. data/decidim-meetings/app/controllers/decidim/meetings/meeting_widgets_controller.rb +21 -0
  70. data/decidim-meetings/app/controllers/decidim/meetings/meetings_controller.rb +2 -0
  71. data/decidim-meetings/app/views/decidim/meetings/meeting_widgets/.erb +16 -0
  72. data/decidim-meetings/app/views/decidim/meetings/meeting_widgets/show.html.erb +18 -0
  73. data/decidim-meetings/app/views/decidim/meetings/meetings/show.html.erb +1 -0
  74. data/decidim-meetings/config/locales/ca.yml +5 -5
  75. data/decidim-meetings/config/locales/en.yml +5 -5
  76. data/decidim-meetings/config/locales/es.yml +5 -5
  77. data/decidim-meetings/config/locales/eu.yml +0 -7
  78. data/decidim-meetings/config/locales/fi.yml +0 -7
  79. data/decidim-meetings/config/locales/fr.yml +5 -0
  80. data/decidim-meetings/config/locales/nl.yml +5 -0
  81. data/decidim-meetings/db/migrate/20170410074252_remove_not_null_reference_meetings.rb +5 -0
  82. data/decidim-meetings/lib/decidim/meetings/list_engine.rb +3 -1
  83. data/decidim-meetings/spec/shared/manage_meetings_examples.rb +87 -72
  84. data/decidim-pages/README.md +2 -2
  85. data/decidim-pages/config/locales/ca.yml +1 -1
  86. data/decidim-pages/config/locales/en.yml +1 -1
  87. data/decidim-pages/config/locales/es.yml +1 -1
  88. data/decidim-pages/config/locales/eu.yml +0 -1
  89. data/decidim-pages/config/locales/fi.yml +0 -1
  90. data/decidim-pages/config/locales/fr.yml +5 -0
  91. data/decidim-pages/config/locales/nl.yml +5 -0
  92. data/decidim-proposals/README.md +2 -2
  93. data/decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb +24 -0
  94. data/decidim-proposals/app/controllers/decidim/proposals/proposals_controller.rb +13 -4
  95. data/decidim-proposals/app/helpers/decidim/proposals/application_helper.rb +15 -0
  96. data/decidim-proposals/app/helpers/decidim/proposals/proposal_order_helper.rb +1 -1
  97. data/decidim-proposals/app/views/decidim/proposals/admin/proposals/index.html.erb +6 -9
  98. data/decidim-proposals/app/views/decidim/proposals/proposal_widgets/show.html.erb +25 -0
  99. data/decidim-proposals/app/views/decidim/proposals/proposals/_vote_button.html.erb +9 -3
  100. data/decidim-proposals/app/views/decidim/proposals/proposals/_votes_count.html.erb +8 -7
  101. data/decidim-proposals/app/views/decidim/proposals/proposals/show.html.erb +3 -6
  102. data/decidim-proposals/config/locales/ca.yml +5 -5
  103. data/decidim-proposals/config/locales/en.yml +6 -5
  104. data/decidim-proposals/config/locales/es.yml +5 -5
  105. data/decidim-proposals/config/locales/eu.yml +0 -6
  106. data/decidim-proposals/config/locales/fi.yml +0 -5
  107. data/decidim-proposals/config/locales/fr.yml +5 -0
  108. data/decidim-proposals/config/locales/nl.yml +5 -0
  109. data/decidim-proposals/db/migrate/20170410073742_remove_not_null_reference_proposals.rb +5 -0
  110. data/decidim-proposals/lib/decidim/proposals/engine.rb +1 -0
  111. data/decidim-proposals/lib/decidim/proposals/feature.rb +1 -0
  112. data/decidim-proposals/spec/features/proposals_spec.rb +1 -6
  113. data/decidim-proposals/spec/features/vote_proposal_spec.rb +15 -0
  114. data/decidim-proposals/spec/helpers/proposal_order_helper_spec.rb +13 -3
  115. data/decidim-proposals/spec/shared/manage_proposals_examples.rb +43 -9
  116. data/decidim-results/README.md +2 -2
  117. data/decidim-results/app/controllers/decidim/results/result_widgets_controller.rb +17 -0
  118. data/decidim-results/app/controllers/decidim/results/results_controller.rb +1 -0
  119. data/decidim-results/app/views/decidim/results/result_widgets/show.html.erb +10 -0
  120. data/decidim-results/app/views/decidim/results/results/show.html.erb +1 -0
  121. data/decidim-results/config/locales/ca.yml +3 -3
  122. data/decidim-results/config/locales/en.yml +3 -3
  123. data/decidim-results/config/locales/es.yml +3 -3
  124. data/decidim-results/config/locales/eu.yml +0 -3
  125. data/decidim-results/config/locales/fi.yml +0 -3
  126. data/decidim-results/config/locales/fr.yml +5 -0
  127. data/decidim-results/config/locales/nl.yml +5 -0
  128. data/decidim-results/db/migrate/20170410074358_remove_not_null_reference_results.rb +5 -0
  129. data/decidim-results/lib/decidim/results/list_engine.rb +3 -1
  130. data/decidim-results/spec/shared/manage_results_examples.rb +1 -1
  131. data/decidim-system/config/locales/ca.yml +3 -3
  132. data/decidim-system/config/locales/en.yml +3 -3
  133. data/decidim-system/config/locales/es.yml +3 -3
  134. data/decidim-system/config/locales/eu.yml +0 -3
  135. data/decidim-system/config/locales/fi.yml +0 -3
  136. data/decidim-system/config/locales/fr.yml +5 -0
  137. data/decidim-system/config/locales/nl.yml +5 -0
  138. data/docs/features_and_components.md +1 -1
  139. data/docs/geocoding.md +34 -0
  140. data/docs/getting_started.md +135 -0
  141. data/docs/testing.md +17 -0
  142. data/lib/generators/decidim/app_generator.rb +7 -0
  143. data/lib/generators/decidim/templates/Gemfile.erb +4 -4
  144. data/lib/generators/decidim/templates/README.md.erb +1 -1
  145. data/lib/generators/decidim/templates/authorization_handler.rb +5 -1
  146. data/package.json +1 -1
  147. data/run_ci.sh +6 -6
  148. metadata +61 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e9c56c3c5c523b0fb73cb2829124e26f0941c5a
4
- data.tar.gz: 7fcec2d679fc0ab79092b496a8bbe21dffba3177
3
+ metadata.gz: feedaf0fc01eb2cb7a26fd16e8f206dab452d663
4
+ data.tar.gz: ee7b6ff683d0bf198b51a72d1e1398d443eb5fa9
5
5
  SHA512:
6
- metadata.gz: a878386ca9e3ff9a9d30df4fed2078b34b416096b53d82e594504bd77e658c77bdd6446478342fe91b49e4170e6f31b4c828af065e1b56165ab029f3b862fab7
7
- data.tar.gz: 21d78117f80c05f38657886e9327b3a402a5905a5eb494b9e270ff076ac79419e653efb78eb95a893e8ff072e02cc4a7b86a72215e0d131bc6321c21fd76257b
6
+ metadata.gz: '0691c45dca41ada76a68a3d251f7a7253f93e1e9d7f4c974ad236f3a46058ba5bd5f00fa8ae210288198a2bb0f68e3b75ced65dbeff76607ecea747fff41c5ac'
7
+ data.tar.gz: 197e77db2106af6e31b226052a0cbeb97c4eb60c03da4872f19bba7ec085b90d72e448765f132134dad12264f7a70e5ba9e02a6cf457ce9faadf09e4453e282e
@@ -0,0 +1,67 @@
1
+ version: 2
2
+ jobs:
3
+ build:
4
+ docker:
5
+ - image: codegram/decidim
6
+ environment:
7
+ SIMPLECOV: true
8
+ DATABASE_USERNAME: postgres
9
+ - image: postgres
10
+ environment:
11
+ POSTGRES_USER: postgres
12
+ parallelism: 4
13
+ working_directory: /code
14
+ steps:
15
+ - run:
16
+ name: Install PhantomJS
17
+ command: |
18
+ curl -OLk https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
19
+ tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
20
+ mv phantomjs-2.1.1-linux-x86_64 /usr/local/share
21
+ ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
22
+ rm phantomjs-2.1.1-linux-x86_64.tar.bz2
23
+ - checkout
24
+ - run:
25
+ name: Install app dependencies
26
+ command: |
27
+ bundle install
28
+ yarn
29
+ - run:
30
+ name: Generate test app
31
+ command: bundle exec rake decidim:generate_test_app
32
+ - run:
33
+ name: Run tests
34
+ command: |
35
+ case $CIRCLE_NODE_INDEX in
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
42
+ ;;
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
48
+ ;;
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
54
+ ;;
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
64
+ ;;
65
+ esac
66
+ - store_artifacts:
67
+ path: /code/spec/decidim_dummy_app/tmp/capybara
data/.eslintignore CHANGED
@@ -1,6 +1,6 @@
1
1
  **/*{.,-}min.js
2
2
  decidim-*/vendor/**/*.js
3
- decidim-*/spec/*_dummy_app/**/*.js
3
+ spec/decidim_dummy_app/**/*.js
4
4
  development_app
5
5
  **/node_modules/**
6
6
  vendor/bundle/**
data/.eslintrc.json CHANGED
@@ -30,6 +30,7 @@
30
30
  "Quill": false,
31
31
  "SVGInjector": false,
32
32
  "require": false,
33
+ "DecidimAdmin": false,
33
34
  "L": false
34
35
  },
35
36
  "rules": {
data/.travis.yml CHANGED
@@ -18,6 +18,7 @@ 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
21
22
  matrix:
22
23
  - GEM=. DB=postgres
23
24
  - GEM=decidim-admin DB=postgres
@@ -53,8 +54,10 @@ cache:
53
54
  - $BUNDLE_PATH
54
55
  - $HOME/travis_phantomjs
55
56
 
57
+ before_script:
58
+ - bundle exec rake decidim:generate_test_app
59
+
56
60
  script:
57
- - cd $GEM;
58
61
  - $TRAVIS_BUILD_DIR/run_ci.sh
59
62
 
60
63
  rvm:
data/Gemfile.lock CHANGED
@@ -1,34 +1,34 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- decidim (0.0.7)
5
- decidim-admin (= 0.0.7)
6
- decidim-api (= 0.0.7)
7
- decidim-budgets (= 0.0.7)
8
- decidim-comments (= 0.0.7)
9
- decidim-core (= 0.0.7)
10
- decidim-meetings (= 0.0.7)
11
- decidim-pages (= 0.0.7)
12
- decidim-proposals (= 0.0.7)
13
- decidim-results (= 0.0.7)
14
- decidim-system (= 0.0.7)
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)
15
15
  rails (~> 5.0.2)
16
16
  rails-i18n (~> 5.0.2)
17
- decidim-budgets (0.0.7)
18
- decidim-comments (= 0.0.7)
19
- decidim-core (= 0.0.7)
17
+ decidim-budgets (0.0.8.1)
18
+ decidim-comments (= 0.0.8.1)
19
+ decidim-core (= 0.0.8.1)
20
20
  kaminari (~> 1.0.0.rc1)
21
21
  rectify (~> 0.8)
22
22
  searchlight (~> 4.1.0)
23
- decidim-proposals (0.0.7)
24
- decidim-comments (= 0.0.7)
25
- decidim-core (= 0.0.7)
23
+ decidim-proposals (0.0.8.1)
24
+ decidim-comments (= 0.0.8.1)
25
+ decidim-core (= 0.0.8.1)
26
26
  kaminari (~> 1.0.1)
27
27
  rectify (~> 0.8.0)
28
28
  social-share-button (~> 0.9.0)
29
- decidim-results (0.0.7)
30
- decidim-comments (= 0.0.7)
31
- decidim-core (= 0.0.7)
29
+ decidim-results (0.0.8.1)
30
+ decidim-comments (= 0.0.8.1)
31
+ decidim-core (= 0.0.8.1)
32
32
  kaminari (~> 1.0.0.rc1)
33
33
  rectify (~> 0.8)
34
34
  searchlight (~> 4.1.0)
@@ -36,10 +36,10 @@ PATH
36
36
  PATH
37
37
  remote: decidim-admin
38
38
  specs:
39
- decidim-admin (0.0.7)
39
+ decidim-admin (0.0.8.1)
40
40
  active_link_to (~> 1.0.0)
41
41
  carrierwave (~> 1.0.0.rc)
42
- decidim-core (= 0.0.7)
42
+ decidim-core (= 0.0.8.1)
43
43
  devise (~> 4.2)
44
44
  devise-i18n (~> 1.1.0)
45
45
  devise_invitable (~> 1.7.0)
@@ -52,7 +52,7 @@ PATH
52
52
  PATH
53
53
  remote: decidim-api
54
54
  specs:
55
- decidim-api (0.0.7)
55
+ decidim-api (0.0.8.1)
56
56
  graphiql-rails (~> 1.4.1)
57
57
  graphql (~> 1.5.3)
58
58
  rack-cors (~> 0.4.0)
@@ -62,21 +62,21 @@ PATH
62
62
  PATH
63
63
  remote: decidim-comments
64
64
  specs:
65
- decidim-comments (0.0.7)
66
- decidim-core (= 0.0.7)
65
+ decidim-comments (0.0.8.1)
66
+ decidim-core (= 0.0.8.1)
67
67
  jquery-rails (~> 4.0)
68
68
  rails (~> 5.0.2)
69
69
 
70
70
  PATH
71
71
  remote: decidim-core
72
72
  specs:
73
- decidim-core (0.0.7)
73
+ decidim-core (0.0.8.1)
74
74
  active_link_to (~> 1.0.0)
75
75
  autoprefixer-rails (~> 6.7, >= 6.7.4)
76
76
  cancancan (~> 1.16.0)
77
77
  carrierwave (~> 1.0.0)
78
78
  date_validator (~> 0.9.0)
79
- decidim-api (= 0.0.7)
79
+ decidim-api (= 0.0.8.1)
80
80
  devise (~> 4.2)
81
81
  devise-i18n (~> 1.1.0)
82
82
  file_validators (~> 2.1.0)
@@ -105,14 +105,14 @@ PATH
105
105
  PATH
106
106
  remote: decidim-dev
107
107
  specs:
108
- decidim-dev (0.0.7)
108
+ decidim-dev (0.0.8.1)
109
109
  byebug
110
110
  capybara (~> 2.12.0)
111
111
  capybara-screenshot (~> 1.0.14)
112
112
  codecov (~> 0.1.9)
113
113
  database_cleaner (~> 1.5.0)
114
114
  db-query-matchers (~> 0.7.0)
115
- decidim (= 0.0.7)
115
+ decidim (= 0.0.8.1)
116
116
  factory_girl_rails
117
117
  faker (~> 1.7.3)
118
118
  i18n-tasks (= 0.9.12)
@@ -132,9 +132,9 @@ PATH
132
132
  PATH
133
133
  remote: decidim-meetings
134
134
  specs:
135
- decidim-meetings (0.0.7)
135
+ decidim-meetings (0.0.8.1)
136
136
  date_validator (~> 0.9)
137
- decidim-core (= 0.0.7)
137
+ decidim-core (= 0.0.8.1)
138
138
  httparty (~> 0.14.0)
139
139
  jquery-tmpl-rails (~> 1.1.0)
140
140
  kaminari (~> 1.0.1)
@@ -144,17 +144,17 @@ PATH
144
144
  PATH
145
145
  remote: decidim-pages
146
146
  specs:
147
- decidim-pages (0.0.7)
148
- decidim-comments (= 0.0.7)
149
- decidim-core (= 0.0.7)
147
+ decidim-pages (0.0.8.1)
148
+ decidim-comments (= 0.0.8.1)
149
+ decidim-core (= 0.0.8.1)
150
150
  rectify (~> 0.8.0)
151
151
 
152
152
  PATH
153
153
  remote: decidim-system
154
154
  specs:
155
- decidim-system (0.0.7)
155
+ decidim-system (0.0.8.1)
156
156
  active_link_to (~> 1.0.0)
157
- decidim-core (= 0.0.7)
157
+ decidim-core (= 0.0.8.1)
158
158
  devise (~> 4.2)
159
159
  devise-i18n (~> 1.1.0)
160
160
  devise_invitable (~> 1.7.1)
@@ -211,7 +211,7 @@ GEM
211
211
  public_suffix (~> 2.0, >= 2.0.2)
212
212
  arel (7.1.4)
213
213
  ast (2.3.0)
214
- autoprefixer-rails (6.7.7.1)
214
+ autoprefixer-rails (6.7.7.2)
215
215
  execjs
216
216
  axiom-types (0.1.1)
217
217
  descendants_tracker (~> 0.0.4)
@@ -256,7 +256,7 @@ GEM
256
256
  concurrent-ruby (1.0.5)
257
257
  crack (0.4.3)
258
258
  safe_yaml (~> 1.0.0)
259
- css_parser (1.4.10)
259
+ css_parser (1.5.0)
260
260
  addressable
261
261
  database_cleaner (1.5.3)
262
262
  date_validator (0.9.0)
@@ -308,11 +308,11 @@ GEM
308
308
  railties (>= 4.1)
309
309
  tzinfo (~> 1.2, >= 1.2.2)
310
310
  geocoder (1.4.3)
311
- globalid (0.3.7)
312
- activesupport (>= 4.1.0)
311
+ globalid (0.4.0)
312
+ activesupport (>= 4.2.0)
313
313
  graphiql-rails (1.4.1)
314
314
  rails
315
- graphql (1.5.5)
315
+ graphql (1.5.9)
316
316
  hashdiff (0.3.2)
317
317
  hashie (3.5.5)
318
318
  high_voltage (3.0.0)
@@ -340,7 +340,7 @@ GEM
340
340
  thor (>= 0.14, < 2.0)
341
341
  jquery-tmpl-rails (1.1.0)
342
342
  rails (>= 3.1.0)
343
- json (2.0.3)
343
+ json (2.1.0)
344
344
  jwt (1.5.6)
345
345
  kaminari (1.0.1)
346
346
  activesupport (>= 4.1.0)
@@ -418,11 +418,11 @@ GEM
418
418
  cliver (~> 0.3.1)
419
419
  websocket-driver (>= 0.2.0)
420
420
  powerpack (0.1.1)
421
- premailer (1.10.2)
421
+ premailer (1.10.3)
422
422
  addressable
423
423
  css_parser (>= 1.4.10)
424
424
  htmlentities (>= 4.0.0)
425
- premailer-rails (1.9.5)
425
+ premailer-rails (1.9.6)
426
426
  actionmailer (>= 3, < 6)
427
427
  premailer (~> 1.7, >= 1.7.9)
428
428
  public_suffix (2.0.5)
@@ -460,7 +460,8 @@ GEM
460
460
  method_source
461
461
  rake (>= 0.8.7)
462
462
  thor (>= 0.18.1, < 2.0)
463
- rainbow (2.2.1)
463
+ rainbow (2.2.2)
464
+ rake
464
465
  rake (12.0.0)
465
466
  rb-fsevent (0.9.8)
466
467
  rb-inotify (0.9.8)
@@ -540,7 +541,7 @@ GEM
540
541
  actionpack (>= 4.0)
541
542
  activesupport (>= 4.0)
542
543
  sprockets (>= 3.0.0)
543
- term-ansicolor (1.5.0)
544
+ term-ansicolor (1.6.0)
544
545
  tins (~> 1.0)
545
546
  terminal-table (1.7.3)
546
547
  unicode-display_width (~> 1.1.1)
@@ -588,8 +589,8 @@ DEPENDENCIES
588
589
  decidim-dev!
589
590
  decidim-meetings!
590
591
  decidim-pages!
591
- decidim-proposals (= 0.0.7)
592
- decidim-results (= 0.0.7)
592
+ decidim-proposals (= 0.0.8.1)
593
+ decidim-results (= 0.0.8.1)
593
594
  decidim-system!
594
595
  rake (~> 12.0.0)
595
596
  rspec (~> 3.0)
data/README.md CHANGED
@@ -1,121 +1,53 @@
1
- # Decidim [![Gem](https://img.shields.io/gem/v/decidim.svg)](https://rubygems.org/gems/decidim) [![Gem](https://img.shields.io/gem/dt/decidim.svg)](https://rubygems.org/gems/decidim) [![GitHub contributors](https://img.shields.io/github/contributors/AjuntamentdeBarcelona/decidim.svg)](https://github.com/AjuntamentdeBarcelona/decidim/graphs/contributors) [![License: AGPL v3](https://img.shields.io/github/license/AjuntamentdeBarcelona/decidim.svg)](https://github.com/AjuntamentdeBarcelona/decidim/blob/master/LICENSE-AGPLv3.txt)
1
+ <img src="https://decidim.github.io/images/logo.svg" alt="Decidim Logo">
2
2
 
3
- [![Demo](https://img.shields.io/badge/demo-staging-orange.svg?style=flat)](http://staging.decidim.codegram.com)
4
- [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/AjuntamentdeBarcelona/decidim/master)
5
- [![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/AjuntamentdeBarcelona/decidim)
3
+ The participatory democracy framework.
4
+
5
+ > Democracy never felt so real.
6
+
7
+ Decidim is a participatory democracy framework written on Ruby on Rails originally developed for the Barcelona City government online and offline participation website. Installing this libraries you'll get a generator and gems to help you develop web applications like the ones found on [example applications](#example-applications) or like [our demo application](http://staging.decidim.codegram.com).
8
+
9
+ ---
10
+
11
+ [![Gem](https://img.shields.io/gem/v/decidim.svg)](https://rubygems.org/gems/decidim)
12
+ [![Gem](https://img.shields.io/gem/dt/decidim.svg)](https://rubygems.org/gems/decidim)
13
+ [![GitHub contributors](https://img.shields.io/github/contributors/decidim/decidim.svg)](https://github.com/decidim/decidim/graphs/contributors)
14
+ [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/decidim/decidim/master)
15
+ [![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/decidim/decidim)
6
16
 
7
17
 
8
18
  ### Code quality
9
- [![Build Status](https://img.shields.io/travis/AjuntamentdeBarcelona/decidim/master.svg)](https://travis-ci.org/AjuntamentdeBarcelona/decidim)
10
- [![Code Climate](https://img.shields.io/codeclimate/github/AjuntamentdeBarcelona/decidim.svg)](https://codeclimate.com/github/AjuntamentdeBarcelona/decidim/trends)
11
- [![codecov](https://img.shields.io/codecov/c/github/AjuntamentdeBarcelona/decidim.svg)](https://codecov.io/gh/AjuntamentdeBarcelona/decidim)
12
- [![Dependency Status](https://img.shields.io/gemnasium/AjuntamentdeBarcelona/decidim.svg)](https://gemnasium.com/github.com/AjuntamentdeBarcelona/decidim)
19
+ [![Build Status](https://img.shields.io/circleci/project/github/decidim/decidim/master.svg)](https://circleci.com/gh/decidim/decidim)
20
+ [![Code Climate](https://img.shields.io/codeclimate/github/decidim/decidim.svg)](https://codeclimate.com/github/decidim/decidim/trends)
21
+ [![codecov](https://img.shields.io/codecov/c/github/decidim/decidim.svg)](https://codecov.io/gh/decidim/decidim)
22
+ [![Dependency Status](https://img.shields.io/gemnasium/decidim/decidim.svg)](https://gemnasium.com/github.com/decidim/decidim)
13
23
  [![Crowdin](https://d322cqt584bo4o.cloudfront.net/decidim/localized.svg)](https://crowdin.com/project/decidim/invite)
14
- [![Inline docs](http://inch-ci.org/github/AjuntamentdeBarcelona/decidim.svg?branch=master)](http://inch-ci.org/github/AjuntamentdeBarcelona/decidim)
24
+ [![Inline docs](http://inch-ci.org/github/decidim/decidim.svg?branch=master)](http://inch-ci.org/github/decidim/decidim)
15
25
  [![Accessibility issues](https://rocketvalidator.com/badges/a11y_issues.svg?url=http://staging.decidim.codegram.com/)](https://rocketvalidator.com/badges/link?url=http://staging.decidim.codegram.com/&report=a11y)
16
26
  [![HTML issues](https://rocketvalidator.com/badges/html_issues.svg?url=http://staging.decidim.codegram.com/)](https://rocketvalidator.com/badges/link?url=http://staging.decidim.codegram.com/&report=html)
17
27
 
18
- ### Project management [[See on Waffle.io]](https://waffle.io/AjuntamentdeBarcelona/decidim)
19
- [![Stories in Discussion](https://img.shields.io/waffle/label/AjuntamentdeBarcelona/decidim/discussion.svg)](https://github.com/AjuntamentdeBarcelona/decidim/issues?q=is%3Aopen+is%3Aissue+label%3Adiscussion)
20
- [![Stories in Planned](https://img.shields.io/waffle/label/AjuntamentdeBarcelona/decidim/planned.svg)](https://github.com/AjuntamentdeBarcelona/decidim/issues?q=is%3Aopen+is%3Aissue+label%3Aplanned)
21
- [![Bugs](https://img.shields.io/waffle/label/AjuntamentdeBarcelona/decidim/bug.svg)](https://github.com/AjuntamentdeBarcelona/decidim/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
22
- [![In Progress](https://img.shields.io/waffle/label/AjuntamentdeBarcelona/decidim/in-progress.svg)](https://github.com/AjuntamentdeBarcelona/decidim/issues?q=is%3Aopen+is%3Aissue+label%3Ain-progress)
23
- [![In Review](https://img.shields.io/waffle/label/AjuntamentdeBarcelona/decidim/in-review.svg)](https://github.com/AjuntamentdeBarcelona/decidim/issues?q=is%3Aopen+is%3Aissue+label%3Ain-review)
28
+ ### Project management [[See on Waffle.io]](https://waffle.io/decidim/decidim)
29
+ [![Stories in Discussion](https://img.shields.io/waffle/label/decidim/decidim/discussion.svg)](https://github.com/decidim/decidim/issues?q=is%3Aopen+is%3Aissue+label%3Adiscussion)
30
+ [![Stories in Planned](https://img.shields.io/waffle/label/decidim/decidim/planned.svg)](https://github.com/decidim/decidim/issues?q=is%3Aopen+is%3Aissue+label%3Aplanned)
31
+ [![Bugs](https://img.shields.io/waffle/label/decidim/decidim/bug.svg)](https://github.com/decidim/decidim/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
32
+ [![In Progress](https://img.shields.io/waffle/label/decidim/decidim/in-progress.svg)](https://github.com/decidim/decidim/issues?q=is%3Aopen+is%3Aissue+label%3Ain-progress)
33
+ [![In Review](https://img.shields.io/waffle/label/decidim/decidim/in-review.svg)](https://github.com/decidim/decidim/issues?q=is%3Aopen+is%3Aissue+label%3Ain-review)
24
34
 
25
35
  ---
26
36
 
27
- Decidim is a participatory democracy framework written on Ruby on Rails originally developed for the Barcelona City government online and offline participation website. Installing this libraries you'll get a generator and gems to help you develop web applications like the ones found on [example applications](#example-applications).
28
-
29
37
  ## What do you need to do?
30
38
 
39
+ - [Get started with Decidim](#getting-started-with-decidim)
31
40
  - [Contribute to the project](#how-to-contribute)
41
+ - [How to test Decidim engines](#testing)
32
42
  - [Create & browse development app](#browse-decidim)
33
- - [Install "Decidim" for an organization](#installation-instructions)
34
- - [Upgrade an already existing "Decidim" installation](#upgrade-instructions)
35
- - [Use Docker to deploy "Decidim"](#docker-instructions)
36
- - [Deploying to Heroku](#deploying-to-heroku)
37
43
  - [Check current components](#components)
38
- - [Further configuration](#further-configuration)
39
44
  - [Technical tradeoffs](#technical-tradeoffs)
40
45
 
41
46
  ---
42
47
 
43
- ## Installation instructions
44
-
45
- First of all, you need to install the `decidim` gem, which currently is in a *prerelease* status.
46
-
47
- ```
48
- $ gem install decidim decidim-core --pre
49
- ```
50
-
51
- Afterwards, you can create an application with the nice `decidim` executable:
52
-
53
- ```
54
- $ decidim decidim_application
55
- $ cd decidim_application
56
- ```
57
-
58
- **Note**: *These steps will be replaced by a simple `gem install decidim && decidim decidim_application` once the gem is released.*
59
-
60
- You should now setup your database:
61
-
62
- ```
63
- $ rails db:setup
64
- ```
65
-
66
- This will also create some default data so you can start testing the app:
67
-
68
- * A `Decidim::System::Admin` with email `system@example.org` and password
69
- `decidim123456`, to log in at `/system`.
70
- * A `Decidim::Organization` named `Decidim Staging`. You probably want to
71
- change its name and hostname to match your needs.
72
- * A `Decidim::User` acting as an admin for the organization, with email
73
- `admin@example.org` and password `decidim123456`.
74
- * A `Decidim::User` that also belongs to the organization but it's a regular
75
- user, with email `user@example.org` and password `decidim123456`.
76
-
77
- This data won't be created in production environments, if you still want to do it, run:
78
-
79
- ```
80
- $ SEED=true rails db:setup
81
- ```
48
+ ## Getting started with Decidim
82
49
 
83
- You can now start your server!
84
-
85
- ```
86
- $ rails s
87
- ```
88
-
89
- ## Upgrade instructions
90
-
91
- ```
92
- $ bundle update decidim
93
- ```
94
-
95
- And don't forget to run the upgrade script:
96
-
97
- ```
98
- $ rails decidim:upgrade
99
-
100
- ```
101
-
102
- If new migrations appear, remember to:
103
- ```
104
- $ rails db:migrate
105
- ```
106
-
107
- ## Docker instructions
108
-
109
- You can use Docker instead of installing the gems yourself. Run `docker-compose build` and then you can generate a new decidim application using `docker-compose run --rm decidim bundle exec bin/decidim <app-name>`.
110
-
111
- Also you can run it as a standalone container like this:
112
- `docker run --rm -v $(pwd):/tmp -it codegram/decidim bundle exec bin/decidim /tmp/<app-name>`
113
-
114
- Now you have a new Decidim app created at `<app-name>` 🎉
115
-
116
- ## Deploying to Heroku
117
-
118
- Once you've generated the Decidim app you might need to do some changes in order to deploy it to Heroku. You can check [codegram/decidim-deploy-heroku](https://github.com/codegram/decidim-deploy-heroku) for an opinionated example of things to do before deploying to Heroku.
50
+ We've set up a guide on how to install, set up and upgrade Decidim. See the [Getting started guide](https://github.com/decidim/decidim/blob/master/docs/getting_started.md).
119
51
 
120
52
  ## How to contribute
121
53
 
@@ -130,7 +62,7 @@ In order to develop on decidim, you'll need:
130
62
  The easiest way to work on decidim is to clone decidim's repository and install its dependencies
131
63
 
132
64
  ```bash
133
- $ git clone git@github.com:AjuntamentdeBarcelona/decidim.git
65
+ $ git clone git@github.com:decidim/decidim.git
134
66
  $ cd decidim
135
67
  $ bundle install
136
68
  $ yarn install
@@ -138,11 +70,8 @@ $ yarn install
138
70
 
139
71
  You have several rake tasks available for you:
140
72
 
141
- * `bundle exec rake development_app`: Creates a development app inside `decidim_development` which you can use to run an application with the gems in your path.
73
+ * `bundle exec rake development_app`: Creates a development app which you can use to run an application with the gems in your path.
142
74
  * `bundle exec rake test_all`: Generates a test app for every engine and runs their tests.
143
- * `bundle exec rake generate_all`: Generates all the tests apps but doesn't run the tests - this is useful is you want to run them manually afterwards.
144
- * `cd <component>` and do `bundle exec rspec spec` to run those particular tests.
145
-
146
75
 
147
76
  ### Browse Decidim
148
77
 
@@ -170,20 +99,17 @@ After you create a development app (`bundle exec rake development_app`):
170
99
 
171
100
  | Component | Description |
172
101
  | ------------- |-------------|
173
- | [Admin](https://github.com/AjuntamentdeBarcelona/decidim/tree/master/decidim-admin) | This library adds an administration dashboard so users can manage their organization, participatory processes and all other entities. |
174
- | [API](https://github.com/AjuntamentdeBarcelona/decidim/tree/master/decidim-api) | This library exposes a GraphQL API to programatically interact with the Decidim platform via HTTP |
175
- | [Comments](https://github.com/AjuntamentdeBarcelona/decidim/tree/master/decidim-comments) | The Comments module adds the ability to include comments to any resource which can be commentable by users. |
176
- | [Core](https://github.com/AjuntamentdeBarcelona/decidim/tree/master/decidim-core) | The basics of Decidim: users, participatory processes, etc. This is the only required engine to run Decidim, all the others are optional. |
177
- | [Dev](https://github.com/AjuntamentdeBarcelona/decidim/tree/master/decidim-dev) | This gem aids the local development of Decidim's features. |
178
- | [Meeting](https://github.com/AjuntamentdeBarcelona/decidim/tree/master/decidim-meetings) | The Meeeting module adds meeting to any participatory process. It adds a CRUD engine to the admin and public view scoped inside the participatory process. |
179
- | [Pages](https://github.com/AjuntamentdeBarcelona/decidim/tree/master/decidim-pages) | The Pages module adds static page capabilities to any participatory process. It basically provides an interface to include arbitrary HTML content to any step. |
180
- | [Proposals](https://github.com/AjuntamentdeBarcelona/decidim/tree/master/decidim-proposals) | The Proposals module adds one of the main features of Decidim: allows users to contribute to a participatory process by creating proposals. |
181
- | [System](https://github.com/AjuntamentdeBarcelona/decidim/tree/master/decidim-system) | Multitenant Admin to manage multiple organizations in a single installation |
182
-
183
- ## Further configuration
184
-
185
- - [Social providers integration](https://github.com/AjuntamentdeBarcelona/decidim/blob/master/docs/social_providers.md): Enable sign up from social networks.
186
- - [Analytics](https://github.com/AjuntamentdeBarcelona/decidim/blob/master/docs/analytics.md): How to enable analytics
102
+ | [Admin](https://github.com/decidim/decidim/tree/master/decidim-admin) | This library adds an administration dashboard so users can manage their organization, participatory processes and all other entities. |
103
+ | [API](https://github.com/decidim/decidim/tree/master/decidim-api) | This library exposes a GraphQL API to programatically interact with the Decidim platform via HTTP |
104
+ | [Budgets](https://github.com/decidim/decidim/tree/master/decidim-budgets) | Adds a participatory budgets system to any participatory process. |
105
+ | [Comments](https://github.com/decidim/decidim/tree/master/decidim-comments) | The Comments module adds the ability to include comments to any resource which can be commentable by users. |
106
+ | [Core](https://github.com/decidim/decidim/tree/master/decidim-core) | The basics of Decidim: users, participatory processes, etc. This is the only required engine to run Decidim, all the others are optional. |
107
+ | [Dev](https://github.com/decidim/decidim/tree/master/decidim-dev) | This gem aids the local development of Decidim's features. |
108
+ | [Meeting](https://github.com/decidim/decidim/tree/master/decidim-meetings) | The Meeeting module adds meeting to any participatory process. It adds a CRUD engine to the admin and public view scoped inside the participatory process. |
109
+ | [Pages](https://github.com/decidim/decidim/tree/master/decidim-pages) | The Pages module adds static page capabilities to any participatory process. It basically provides an interface to include arbitrary HTML content to any step. |
110
+ | [Proposals](https://github.com/decidim/decidim/tree/master/decidim-proposals) | The Proposals module adds one of the main features of Decidim: allows users to contribute to a participatory process by creating proposals. |
111
+ | [Results](https://github.com/decidim/decidim/tree/master/decidim-results) | Adds a results section to any participatory process so users can follow along the state of the accepted proposals. |
112
+ | [System](https://github.com/decidim/decidim/tree/master/decidim-system) | Multitenant Admin to manage multiple organizations in a single installation |
187
113
 
188
114
  ## Technical tradeoffs
189
115
 
@@ -197,11 +123,11 @@ Decidim doesn't support `turbolinks` so it isn't included on our generated apps
197
123
 
198
124
  The main reason for this is we are injecting some scripts into the body for some individual pages and Turbolinks loads the scripts in parallel. For some libraries like [leaflet](http://leafletjs.com/) it's very inconvenient because its plugins extend an existing global object.
199
125
 
200
- The support of Turbolinks was dropped in [d8c7d9f](https://github.com/AjuntamentdeBarcelona/decidim/commit/d8c7d9f63e4d75307e8f7a0360bef977fab209b6). If you're interested in bringing turbolinks back, further discussion is welcome.
126
+ The support of Turbolinks was dropped in [d8c7d9f](https://github.com/decidim/decidim/commit/d8c7d9f63e4d75307e8f7a0360bef977fab209b6). If you're interested in bringing turbolinks back, further discussion is welcome.
201
127
 
202
128
  ## Following our license
203
129
 
204
- If you plan to release your application you'll need to publish it using the same license: GPL Affero 3. We recommend doing that on Github before publishing, you can read more on "[Being Open Source From Day One is Especially Important for Government Projects](http://producingoss.com/en/governments-and-open-source.html#starting-open-for-govs)". If you have any trouble doing that you can contact us on [Gitter](https://gitter.im/AjuntamentdeBarcelona/decidim).
130
+ If you plan to release your application you'll need to publish it using the same license: GPL Affero 3. We recommend doing that on Github before publishing, you can read more on "[Being Open Source From Day One is Especially Important for Government Projects](http://producingoss.com/en/governments-and-open-source.html#starting-open-for-govs)". If you have any trouble doing that you can contact us on [Gitter](https://gitter.im/decidim/decidim).
205
131
 
206
132
 
207
133
  ## Example applications