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.
- checksums.yaml +4 -4
- data/.circleci/config.yml +67 -0
- data/.eslintignore +1 -1
- data/.eslintrc.json +1 -0
- data/.travis.yml +4 -1
- data/Gemfile.lock +49 -48
- data/README.md +44 -118
- data/Rakefile +9 -13
- data/decidim-admin/README.md +2 -2
- data/decidim-admin/app/assets/javascripts/decidim/admin/application.js.es6 +13 -0
- data/decidim-admin/app/assets/javascripts/decidim/admin/toggle_nav.js.es6 +17 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/_decidim.scss +0 -1
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_datepicker.scss +224 -0
- data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_modules.scss +1 -0
- data/decidim-admin/app/controllers/decidim/admin/newsletters_controller.rb +1 -1
- data/decidim-admin/app/forms/decidim/admin/participatory_process_user_role_form.rb +9 -0
- data/decidim-admin/app/helpers/decidim/admin/application_helper.rb +6 -0
- data/decidim-admin/app/views/decidim/admin/categories/index.html.erb +1 -1
- data/decidim-admin/app/views/decidim/admin/participatory_process_groups/index.html.erb +1 -1
- data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/_form.html.erb +2 -3
- data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +1 -1
- data/decidim-admin/app/views/decidim/admin/static_pages/index.html.erb +2 -2
- data/decidim-admin/app/views/layouts/decidim/admin/_application.html.erb +2 -1
- data/decidim-admin/app/views/layouts/decidim/admin/pages.html.erb +1 -1
- data/decidim-admin/config/i18n-tasks.yml +2 -0
- data/decidim-admin/config/locales/ca.yml +22 -17
- data/decidim-admin/config/locales/en.yml +22 -17
- data/decidim-admin/config/locales/es.yml +23 -18
- data/decidim-admin/config/locales/eu.yml +0 -19
- data/decidim-admin/config/locales/fi.yml +0 -14
- data/decidim-admin/config/locales/fr.yml +141 -0
- data/decidim-admin/config/locales/nl.yml +5 -0
- data/decidim-admin/spec/features/admin_invite_spec.rb +7 -1
- data/decidim-admin/spec/features/admin_manages_organization_spec.rb +1 -1
- data/decidim-admin/spec/features/admin_manages_participatory_process_groups_spec.rb +1 -1
- data/decidim-admin/spec/features/admin_manages_participatory_processes_spec.rb +1 -1
- data/decidim-admin/spec/features/static_pages_spec.rb +0 -5
- data/decidim-admin/spec/forms/organization_form_spec.rb +6 -1
- data/decidim-admin/spec/shared/manage_process_admins_examples.rb +2 -2
- data/decidim-admin/spec/shared/manage_process_steps_examples.rb +21 -17
- data/decidim-admin/spec/shared/manage_processes_examples.rb +13 -10
- data/decidim-admin/spec/shared/participatory_admin_shared_context.rb +3 -3
- data/decidim-admin/vendor/assets/javascripts/moment.min.js +7 -0
- data/decidim-api/README.md +2 -2
- data/decidim-budgets/README.md +2 -2
- data/decidim-budgets/config/locales/ca.yml +3 -3
- data/decidim-budgets/config/locales/en.yml +3 -3
- data/decidim-budgets/config/locales/es.yml +3 -3
- data/decidim-budgets/config/locales/eu.yml +0 -3
- data/decidim-budgets/config/locales/fi.yml +0 -3
- data/decidim-budgets/config/locales/fr.yml +97 -0
- data/decidim-budgets/config/locales/nl.yml +5 -0
- data/decidim-budgets/db/migrate/20170410074214_remove_not_null_reference_budgets.rb +5 -0
- data/decidim-budgets/spec/shared/manage_projects_examples.rb +1 -1
- data/decidim-comments/README.md +2 -2
- data/decidim-comments/app/assets/javascripts/decidim/comments/bundle.js +0 -0
- data/decidim-comments/config/locales/fr.yml +5 -0
- data/decidim-comments/config/locales/nl.yml +5 -0
- data/decidim-dev/README.md +2 -2
- data/decidim-dev/config/locales/fr.yml +5 -0
- data/decidim-dev/config/locales/nl.yml +5 -0
- data/decidim-dev/lib/decidim/dev.rb +8 -5
- data/decidim-dev/lib/decidim/dev/common_rake.rb +1 -23
- data/decidim-dev/lib/decidim/dev/railtie.rb +13 -0
- data/decidim-dev/lib/decidim/dev/test/base_spec_helper.rb +6 -5
- data/decidim-dev/lib/generators/decidim/dummy_generator.rb +13 -16
- data/decidim-dev/lib/tasks/test_app.rake +18 -0
- data/decidim-meetings/README.md +2 -2
- data/decidim-meetings/app/controllers/decidim/meetings/meeting_widgets_controller.rb +21 -0
- data/decidim-meetings/app/controllers/decidim/meetings/meetings_controller.rb +2 -0
- data/decidim-meetings/app/views/decidim/meetings/meeting_widgets/.erb +16 -0
- data/decidim-meetings/app/views/decidim/meetings/meeting_widgets/show.html.erb +18 -0
- data/decidim-meetings/app/views/decidim/meetings/meetings/show.html.erb +1 -0
- data/decidim-meetings/config/locales/ca.yml +5 -5
- data/decidim-meetings/config/locales/en.yml +5 -5
- data/decidim-meetings/config/locales/es.yml +5 -5
- data/decidim-meetings/config/locales/eu.yml +0 -7
- data/decidim-meetings/config/locales/fi.yml +0 -7
- data/decidim-meetings/config/locales/fr.yml +5 -0
- data/decidim-meetings/config/locales/nl.yml +5 -0
- data/decidim-meetings/db/migrate/20170410074252_remove_not_null_reference_meetings.rb +5 -0
- data/decidim-meetings/lib/decidim/meetings/list_engine.rb +3 -1
- data/decidim-meetings/spec/shared/manage_meetings_examples.rb +87 -72
- data/decidim-pages/README.md +2 -2
- data/decidim-pages/config/locales/ca.yml +1 -1
- data/decidim-pages/config/locales/en.yml +1 -1
- data/decidim-pages/config/locales/es.yml +1 -1
- data/decidim-pages/config/locales/eu.yml +0 -1
- data/decidim-pages/config/locales/fi.yml +0 -1
- data/decidim-pages/config/locales/fr.yml +5 -0
- data/decidim-pages/config/locales/nl.yml +5 -0
- data/decidim-proposals/README.md +2 -2
- data/decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb +24 -0
- data/decidim-proposals/app/controllers/decidim/proposals/proposals_controller.rb +13 -4
- data/decidim-proposals/app/helpers/decidim/proposals/application_helper.rb +15 -0
- data/decidim-proposals/app/helpers/decidim/proposals/proposal_order_helper.rb +1 -1
- data/decidim-proposals/app/views/decidim/proposals/admin/proposals/index.html.erb +6 -9
- data/decidim-proposals/app/views/decidim/proposals/proposal_widgets/show.html.erb +25 -0
- data/decidim-proposals/app/views/decidim/proposals/proposals/_vote_button.html.erb +9 -3
- data/decidim-proposals/app/views/decidim/proposals/proposals/_votes_count.html.erb +8 -7
- data/decidim-proposals/app/views/decidim/proposals/proposals/show.html.erb +3 -6
- data/decidim-proposals/config/locales/ca.yml +5 -5
- data/decidim-proposals/config/locales/en.yml +6 -5
- data/decidim-proposals/config/locales/es.yml +5 -5
- data/decidim-proposals/config/locales/eu.yml +0 -6
- data/decidim-proposals/config/locales/fi.yml +0 -5
- data/decidim-proposals/config/locales/fr.yml +5 -0
- data/decidim-proposals/config/locales/nl.yml +5 -0
- data/decidim-proposals/db/migrate/20170410073742_remove_not_null_reference_proposals.rb +5 -0
- data/decidim-proposals/lib/decidim/proposals/engine.rb +1 -0
- data/decidim-proposals/lib/decidim/proposals/feature.rb +1 -0
- data/decidim-proposals/spec/features/proposals_spec.rb +1 -6
- data/decidim-proposals/spec/features/vote_proposal_spec.rb +15 -0
- data/decidim-proposals/spec/helpers/proposal_order_helper_spec.rb +13 -3
- data/decidim-proposals/spec/shared/manage_proposals_examples.rb +43 -9
- data/decidim-results/README.md +2 -2
- data/decidim-results/app/controllers/decidim/results/result_widgets_controller.rb +17 -0
- data/decidim-results/app/controllers/decidim/results/results_controller.rb +1 -0
- data/decidim-results/app/views/decidim/results/result_widgets/show.html.erb +10 -0
- data/decidim-results/app/views/decidim/results/results/show.html.erb +1 -0
- data/decidim-results/config/locales/ca.yml +3 -3
- data/decidim-results/config/locales/en.yml +3 -3
- data/decidim-results/config/locales/es.yml +3 -3
- data/decidim-results/config/locales/eu.yml +0 -3
- data/decidim-results/config/locales/fi.yml +0 -3
- data/decidim-results/config/locales/fr.yml +5 -0
- data/decidim-results/config/locales/nl.yml +5 -0
- data/decidim-results/db/migrate/20170410074358_remove_not_null_reference_results.rb +5 -0
- data/decidim-results/lib/decidim/results/list_engine.rb +3 -1
- data/decidim-results/spec/shared/manage_results_examples.rb +1 -1
- data/decidim-system/config/locales/ca.yml +3 -3
- data/decidim-system/config/locales/en.yml +3 -3
- data/decidim-system/config/locales/es.yml +3 -3
- data/decidim-system/config/locales/eu.yml +0 -3
- data/decidim-system/config/locales/fi.yml +0 -3
- data/decidim-system/config/locales/fr.yml +5 -0
- data/decidim-system/config/locales/nl.yml +5 -0
- data/docs/features_and_components.md +1 -1
- data/docs/geocoding.md +34 -0
- data/docs/getting_started.md +135 -0
- data/docs/testing.md +17 -0
- data/lib/generators/decidim/app_generator.rb +7 -0
- data/lib/generators/decidim/templates/Gemfile.erb +4 -4
- data/lib/generators/decidim/templates/README.md.erb +1 -1
- data/lib/generators/decidim/templates/authorization_handler.rb +5 -1
- data/package.json +1 -1
- data/run_ci.sh +6 -6
- metadata +61 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feedaf0fc01eb2cb7a26fd16e8f206dab452d663
|
4
|
+
data.tar.gz: ee7b6ff683d0bf198b51a72d1e1398d443eb5fa9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/.eslintrc.json
CHANGED
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.
|
5
|
-
decidim-admin (= 0.0.
|
6
|
-
decidim-api (= 0.0.
|
7
|
-
decidim-budgets (= 0.0.
|
8
|
-
decidim-comments (= 0.0.
|
9
|
-
decidim-core (= 0.0.
|
10
|
-
decidim-meetings (= 0.0.
|
11
|
-
decidim-pages (= 0.0.
|
12
|
-
decidim-proposals (= 0.0.
|
13
|
-
decidim-results (= 0.0.
|
14
|
-
decidim-system (= 0.0.
|
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.
|
18
|
-
decidim-comments (= 0.0.
|
19
|
-
decidim-core (= 0.0.
|
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.
|
24
|
-
decidim-comments (= 0.0.
|
25
|
-
decidim-core (= 0.0.
|
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.
|
30
|
-
decidim-comments (= 0.0.
|
31
|
-
decidim-core (= 0.0.
|
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.
|
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.
|
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.
|
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.
|
66
|
-
decidim-core (= 0.0.
|
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.
|
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.
|
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.
|
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.
|
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.
|
135
|
+
decidim-meetings (0.0.8.1)
|
136
136
|
date_validator (~> 0.9)
|
137
|
-
decidim-core (= 0.0.
|
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.
|
148
|
-
decidim-comments (= 0.0.
|
149
|
-
decidim-core (= 0.0.
|
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.
|
155
|
+
decidim-system (0.0.8.1)
|
156
156
|
active_link_to (~> 1.0.0)
|
157
|
-
decidim-core (= 0.0.
|
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.
|
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.
|
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.
|
312
|
-
activesupport (>= 4.
|
311
|
+
globalid (0.4.0)
|
312
|
+
activesupport (>= 4.2.0)
|
313
313
|
graphiql-rails (1.4.1)
|
314
314
|
rails
|
315
|
-
graphql (1.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
|
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.
|
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.
|
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.
|
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.
|
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.
|
592
|
-
decidim-results (= 0.0.
|
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
|
-
|
1
|
+
<img src="https://decidim.github.io/images/logo.svg" alt="Decidim Logo">
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
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/
|
10
|
-
[![Code Climate](https://img.shields.io/codeclimate/github/
|
11
|
-
[![codecov](https://img.shields.io/codecov/c/github/
|
12
|
-
[![Dependency Status](https://img.shields.io/gemnasium/
|
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/
|
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/
|
19
|
-
[![Stories in Discussion](https://img.shields.io/waffle/label/
|
20
|
-
[![Stories in Planned](https://img.shields.io/waffle/label/
|
21
|
-
[![Bugs](https://img.shields.io/waffle/label/
|
22
|
-
[![In Progress](https://img.shields.io/waffle/label/
|
23
|
-
[![In Review](https://img.shields.io/waffle/label/
|
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
|
-
##
|
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
|
-
|
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:
|
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
|
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/
|
174
|
-
| [API](https://github.com/
|
175
|
-
| [
|
176
|
-
| [
|
177
|
-
| [
|
178
|
-
| [
|
179
|
-
| [
|
180
|
-
| [
|
181
|
-
| [
|
182
|
-
|
183
|
-
|
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/
|
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/
|
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
|