decidim 0.7.4 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/Gemfile.lock +74 -63
- data/README.md +33 -37
- data/Rakefile +40 -33
- data/docs/getting_started.md +0 -14
- data/docs/managing_translations_i18n.md +24 -0
- data/docs/testing.md +1 -1
- data/docs/view_hooks.md +74 -0
- data/lib/decidim.rb +2 -0
- data/lib/decidim/version.rb +1 -1
- data/lib/generators/decidim/app_generator.rb +9 -15
- data/lib/generators/decidim/docker_generator.rb +12 -14
- data/lib/generators/decidim/install_generator.rb +1 -1
- data/lib/generators/decidim/templates/Dockerfile.erb +1 -1
- data/lib/generators/decidim/templates/docker-compose.yml.erb +2 -23
- metadata +57 -79
- data/.babelrc +0 -17
- data/.circleci/config.yml +0 -387
- data/.codeclimate.yml +0 -57
- data/.csslintrc +0 -2
- data/.decidim-version +0 -1
- data/.dockerignore +0 -5
- data/.editorconfig +0 -9
- data/.eslintignore +0 -15
- data/.eslintrc.json +0 -277
- data/.gitattributes +0 -3
- data/.github/ISSUE_TEMPLATE.md +0 -31
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -16
- data/.gitignore +0 -15
- data/.inch.yml +0 -5
- data/.rubocop.yml +0 -1278
- data/.ruby-version +0 -1
- data/.simplecov +0 -12
- data/.yardopts +0 -8
- data/CHANGELOG.md +0 -1875
- data/CODE_OF_CONDUCT.md +0 -49
- data/Dockerfile.ci +0 -28
- data/codecov.yml +0 -104
- data/config/i18n-tasks.yml +0 -135
- data/crowdin.yaml +0 -3
- data/decidim.gemspec +0 -44
- data/docker-compose.yml +0 -27
- data/jsconfig.json +0 -3
- data/lib/generators/decidim/templates/Dockerfile.dev.erb +0 -21
- data/lib/generators/decidim/templates/decidim/dummy_authorization_handler.rb +0 -27
- data/logo.svg +0 -62
- data/package-lock.json +0 -11607
- data/package.json +0 -108
- data/spec/generator_spec.rb +0 -51
- data/spec/i18n_spec.rb +0 -37
- data/tsconfig.json +0 -21
- data/tslint.json +0 -11
- data/webpack.config.js +0 -82
- data/webpack.d.ts +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: beb17f252a4a242db4028af2bbb1be3503ddf514
|
4
|
+
data.tar.gz: b8954b00b42ec9b8ada8c6a1a268f6a7a8f7cfda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc86a4bc0beaea794c01b456b9ec7daa66dda858e439b0689f0a350f458294f19304bcb2909ef4fe0497f6e460d99b6dddcfe2335ca5946bcd76c8c7b842e51a
|
7
|
+
data.tar.gz: cd0550e7e712fe7e93d4f56e0dfcdcd092d0c156048c1e3b7b920084a36bb8aa903307b4f4beacca727531a44895f64190494c34753ac32ba4cd0f2fcdd28d44
|
data/Gemfile.lock
CHANGED
@@ -1,59 +1,59 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
decidim (0.
|
5
|
-
decidim-accountability (= 0.
|
6
|
-
decidim-admin (= 0.
|
7
|
-
decidim-api (= 0.
|
8
|
-
decidim-budgets (= 0.
|
9
|
-
decidim-comments (= 0.
|
10
|
-
decidim-core (= 0.
|
11
|
-
decidim-meetings (= 0.
|
12
|
-
decidim-pages (= 0.
|
13
|
-
decidim-participatory_processes (= 0.
|
14
|
-
decidim-proposals (= 0.
|
15
|
-
decidim-surveys (= 0.
|
16
|
-
decidim-system (= 0.
|
17
|
-
|
18
|
-
|
19
|
-
decidim-
|
4
|
+
decidim (0.8.0)
|
5
|
+
decidim-accountability (= 0.8.0)
|
6
|
+
decidim-admin (= 0.8.0)
|
7
|
+
decidim-api (= 0.8.0)
|
8
|
+
decidim-budgets (= 0.8.0)
|
9
|
+
decidim-comments (= 0.8.0)
|
10
|
+
decidim-core (= 0.8.0)
|
11
|
+
decidim-meetings (= 0.8.0)
|
12
|
+
decidim-pages (= 0.8.0)
|
13
|
+
decidim-participatory_processes (= 0.8.0)
|
14
|
+
decidim-proposals (= 0.8.0)
|
15
|
+
decidim-surveys (= 0.8.0)
|
16
|
+
decidim-system (= 0.8.0)
|
17
|
+
decidim-verifications (= 0.8.0)
|
18
|
+
decidim-accountability (0.8.0)
|
19
|
+
decidim-comments (= 0.8.0)
|
20
|
+
decidim-core (= 0.8.0)
|
20
21
|
kaminari (~> 1.0.1)
|
21
22
|
searchlight (~> 4.1.0)
|
22
|
-
decidim-admin (0.
|
23
|
+
decidim-admin (0.8.0)
|
23
24
|
active_link_to (~> 1.0.0)
|
24
|
-
decidim-core (= 0.
|
25
|
+
decidim-core (= 0.8.0)
|
25
26
|
devise (~> 4.2)
|
26
27
|
devise-i18n (~> 1.2.0)
|
27
28
|
devise_invitable (~> 1.7.0)
|
28
|
-
foundation_rails_helper (~> 3.0.0.rc)
|
29
29
|
jquery-rails (~> 4.3.1)
|
30
30
|
sassc-rails (~> 1.3.0)
|
31
31
|
select2-rails (~> 4.0.3)
|
32
|
-
decidim-api (0.
|
32
|
+
decidim-api (0.8.0)
|
33
33
|
graphiql-rails (~> 1.4.2, < 1.4.5)
|
34
34
|
graphql (~> 1.6.0)
|
35
35
|
rack-cors (~> 1.0.1)
|
36
36
|
sprockets-es6 (~> 0.9.2)
|
37
|
-
decidim-budgets (0.
|
38
|
-
decidim-comments (= 0.
|
39
|
-
decidim-core (= 0.
|
37
|
+
decidim-budgets (0.8.0)
|
38
|
+
decidim-comments (= 0.8.0)
|
39
|
+
decidim-core (= 0.8.0)
|
40
40
|
kaminari (~> 1.0.1)
|
41
41
|
searchlight (~> 4.1.0)
|
42
|
-
decidim-comments (0.
|
43
|
-
decidim-core (= 0.
|
42
|
+
decidim-comments (0.8.0)
|
43
|
+
decidim-core (= 0.8.0)
|
44
44
|
jquery-rails (~> 4.0)
|
45
|
-
decidim-core (0.
|
45
|
+
decidim-core (0.8.0)
|
46
46
|
active_link_to (~> 1.0.4)
|
47
47
|
autoprefixer-rails (~> 7.1.1)
|
48
48
|
cancancan (~> 2.0.0)
|
49
49
|
carrierwave (~> 1.1.0)
|
50
50
|
date_validator (~> 0.9.0)
|
51
|
-
decidim-api (= 0.
|
51
|
+
decidim-api (= 0.8.0)
|
52
52
|
devise (~> 4.3)
|
53
53
|
devise-i18n (~> 1.2.0)
|
54
54
|
file_validators (~> 2.1.0)
|
55
|
-
foundation-rails (~> 6.
|
56
|
-
foundation_rails_helper (~> 3.0.0
|
55
|
+
foundation-rails (~> 6.4.1)
|
56
|
+
foundation_rails_helper (~> 3.0.0)
|
57
57
|
geocoder (~> 1.4.2)
|
58
58
|
high_voltage (~> 3.0.0)
|
59
59
|
invisible_captcha (~> 0.9.2)
|
@@ -63,6 +63,7 @@ PATH
|
|
63
63
|
omniauth-facebook (~> 4.0.0)
|
64
64
|
omniauth-google-oauth2 (~> 0.5.0)
|
65
65
|
omniauth-twitter (~> 1.4.0)
|
66
|
+
paper_trail (~> 8.0.1)
|
66
67
|
pg (~> 0.21.0)
|
67
68
|
premailer-rails (~> 1.9.5)
|
68
69
|
rails (~> 5.1.3)
|
@@ -75,58 +76,60 @@ PATH
|
|
75
76
|
spreadsheet (~> 1.1)
|
76
77
|
sprockets-es6 (~> 0.9.2)
|
77
78
|
truncato (~> 0.7.10)
|
79
|
+
valid_email2 (~> 2.1.1)
|
78
80
|
wisper (~> 2.0.0)
|
79
|
-
decidim-dev (0.
|
81
|
+
decidim-dev (0.8.0)
|
80
82
|
byebug
|
81
83
|
capybara (~> 2.15)
|
82
84
|
capybara-screenshot (~> 1.0)
|
83
85
|
codecov (~> 0.1.9)
|
84
86
|
database_cleaner (~> 1.6)
|
85
87
|
db-query-matchers (~> 0.9.0)
|
86
|
-
decidim (= 0.
|
87
|
-
|
88
|
+
decidim (= 0.8.0)
|
89
|
+
factory_bot_rails (~> 4.8)
|
88
90
|
i18n-tasks (= 0.9.18)
|
89
91
|
listen (~> 3.1)
|
90
92
|
nokogiri (~> 1.8)
|
91
93
|
puma (~> 3.10)
|
92
94
|
rails-controller-testing (~> 1.0)
|
93
95
|
rspec-html-matchers (~> 0.9.1)
|
94
|
-
rspec-rails (~> 3.
|
95
|
-
rspec-repeat (~> 1.0)
|
96
|
+
rspec-rails (~> 3.7)
|
96
97
|
rubocop (~> 0.51.0)
|
98
|
+
rubocop-rspec (~> 1.20)
|
97
99
|
selenium-webdriver (~> 3.7)
|
98
100
|
simplecov (~> 0.13)
|
99
101
|
webmock (~> 3.0)
|
100
102
|
wisper-rspec (~> 0.0.3)
|
101
|
-
decidim-meetings (0.
|
103
|
+
decidim-meetings (0.8.0)
|
102
104
|
date_validator (~> 0.9)
|
103
|
-
decidim-core (= 0.
|
105
|
+
decidim-core (= 0.8.0)
|
104
106
|
httparty (~> 0.15.0)
|
105
107
|
icalendar (~> 2.4.1)
|
106
108
|
jquery-tmpl-rails (~> 1.1.0)
|
107
109
|
kaminari (~> 1.0.1)
|
108
110
|
searchlight (~> 4.1.0)
|
109
|
-
decidim-pages (0.
|
110
|
-
decidim-core (= 0.
|
111
|
-
decidim-participatory_processes (0.
|
112
|
-
decidim-core (= 0.
|
113
|
-
decidim-proposals (0.
|
114
|
-
decidim-comments (= 0.
|
115
|
-
decidim-core (= 0.
|
111
|
+
decidim-pages (0.8.0)
|
112
|
+
decidim-core (= 0.8.0)
|
113
|
+
decidim-participatory_processes (0.8.0)
|
114
|
+
decidim-core (= 0.8.0)
|
115
|
+
decidim-proposals (0.8.0)
|
116
|
+
decidim-comments (= 0.8.0)
|
117
|
+
decidim-core (= 0.8.0)
|
116
118
|
kaminari (~> 1.0.1)
|
117
119
|
social-share-button (~> 1.0.0)
|
118
|
-
decidim-surveys (0.
|
119
|
-
decidim-core (= 0.
|
120
|
+
decidim-surveys (0.8.0)
|
121
|
+
decidim-core (= 0.8.0)
|
120
122
|
jquery-tmpl-rails (~> 1.1.0)
|
121
|
-
decidim-system (0.
|
123
|
+
decidim-system (0.8.0)
|
122
124
|
active_link_to (~> 1.0.0)
|
123
|
-
decidim-core (= 0.
|
125
|
+
decidim-core (= 0.8.0)
|
124
126
|
devise (~> 4.2)
|
125
127
|
devise-i18n (~> 1.2.0)
|
126
128
|
devise_invitable (~> 1.7.1)
|
127
|
-
foundation_rails_helper (~> 3.0.0)
|
128
129
|
jquery-rails (~> 4.3.1)
|
129
130
|
sassc-rails (~> 1.3.0)
|
131
|
+
decidim-verifications (0.8.0)
|
132
|
+
decidim-core (= 0.8.0)
|
130
133
|
|
131
134
|
GEM
|
132
135
|
remote: https://rubygems.org/
|
@@ -222,7 +225,7 @@ GEM
|
|
222
225
|
concurrent-ruby (1.0.5)
|
223
226
|
crack (0.4.3)
|
224
227
|
safe_yaml (~> 1.0.0)
|
225
|
-
crass (1.0.
|
228
|
+
crass (1.0.3)
|
226
229
|
css_parser (1.6.0)
|
227
230
|
addressable
|
228
231
|
database_cleaner (1.6.2)
|
@@ -251,12 +254,12 @@ GEM
|
|
251
254
|
thread
|
252
255
|
thread_safe
|
253
256
|
equalizer (0.0.11)
|
254
|
-
erubi (1.
|
257
|
+
erubi (1.7.0)
|
255
258
|
execjs (2.7.0)
|
256
|
-
|
259
|
+
factory_bot (4.8.2)
|
257
260
|
activesupport (>= 3.0.0)
|
258
|
-
|
259
|
-
|
261
|
+
factory_bot_rails (4.8.2)
|
262
|
+
factory_bot (~> 4.8.2)
|
260
263
|
railties (>= 3.0.0)
|
261
264
|
faker (1.8.4)
|
262
265
|
i18n (~> 0.5)
|
@@ -266,7 +269,7 @@ GEM
|
|
266
269
|
file_validators (2.1.0)
|
267
270
|
activemodel (>= 3.0)
|
268
271
|
mime-types (>= 1.0)
|
269
|
-
foundation-rails (6.
|
272
|
+
foundation-rails (6.4.1.3)
|
270
273
|
railties (>= 3.1.0)
|
271
274
|
sass (>= 3.3.0, < 3.5)
|
272
275
|
sprockets-es6 (>= 0.9.0)
|
@@ -276,7 +279,7 @@ GEM
|
|
276
279
|
activesupport (>= 4.1, < 6.0)
|
277
280
|
railties (>= 4.1, < 6.0)
|
278
281
|
tzinfo (~> 1.2, >= 1.2.2)
|
279
|
-
geocoder (1.4.
|
282
|
+
geocoder (1.4.5)
|
280
283
|
globalid (0.4.0)
|
281
284
|
activesupport (>= 4.2.0)
|
282
285
|
graphiql-rails (1.4.4)
|
@@ -285,11 +288,12 @@ GEM
|
|
285
288
|
hashdiff (0.3.7)
|
286
289
|
hashie (3.5.6)
|
287
290
|
high_voltage (3.0.0)
|
288
|
-
highline (1.7.
|
291
|
+
highline (1.7.10)
|
289
292
|
htmlentities (4.3.4)
|
290
293
|
httparty (0.15.6)
|
291
294
|
multi_xml (>= 0.5.2)
|
292
|
-
i18n (0.
|
295
|
+
i18n (0.9.1)
|
296
|
+
concurrent-ruby (~> 1.0)
|
293
297
|
i18n-tasks (0.9.18)
|
294
298
|
activesupport (>= 4.0.2)
|
295
299
|
ast (>= 2.1.0)
|
@@ -382,6 +386,9 @@ GEM
|
|
382
386
|
omniauth-oauth (~> 1.1)
|
383
387
|
rack
|
384
388
|
orm_adapter (0.5.0)
|
389
|
+
paper_trail (8.0.1)
|
390
|
+
activerecord (>= 4.2, < 5.2)
|
391
|
+
request_store (~> 1.1)
|
385
392
|
parallel (1.12.0)
|
386
393
|
parser (2.4.0.2)
|
387
394
|
ast (~> 2.3)
|
@@ -394,11 +401,11 @@ GEM
|
|
394
401
|
premailer-rails (1.9.7)
|
395
402
|
actionmailer (>= 3, < 6)
|
396
403
|
premailer (~> 1.7, >= 1.7.9)
|
397
|
-
public_suffix (3.0.
|
404
|
+
public_suffix (3.0.1)
|
398
405
|
puma (3.10.0)
|
399
406
|
rack (2.0.3)
|
400
407
|
rack-cors (1.0.2)
|
401
|
-
rack-test (0.
|
408
|
+
rack-test (0.8.2)
|
402
409
|
rack (>= 1.0, < 3)
|
403
410
|
rails (5.1.4)
|
404
411
|
actioncable (= 5.1.4)
|
@@ -432,7 +439,7 @@ GEM
|
|
432
439
|
thor (>= 0.18.1, < 2.0)
|
433
440
|
rainbow (2.2.2)
|
434
441
|
rake
|
435
|
-
rake (12.
|
442
|
+
rake (12.3.0)
|
436
443
|
rb-fsevent (0.10.2)
|
437
444
|
rb-inotify (0.9.10)
|
438
445
|
ffi (>= 0.5.0, < 2)
|
@@ -443,6 +450,7 @@ GEM
|
|
443
450
|
virtus (~> 1.0.5)
|
444
451
|
wisper (>= 1.6.1)
|
445
452
|
redis (3.3.5)
|
453
|
+
request_store (1.3.2)
|
446
454
|
responders (2.4.0)
|
447
455
|
actionpack (>= 4.2.0, < 5.3)
|
448
456
|
railties (>= 4.2.0, < 5.3)
|
@@ -469,8 +477,6 @@ GEM
|
|
469
477
|
rspec-expectations (~> 3.7.0)
|
470
478
|
rspec-mocks (~> 3.7.0)
|
471
479
|
rspec-support (~> 3.7.0)
|
472
|
-
rspec-repeat (1.0.2)
|
473
|
-
rspec (~> 3.0)
|
474
480
|
rspec-support (3.7.0)
|
475
481
|
rubocop (0.51.0)
|
476
482
|
parallel (~> 1.10)
|
@@ -479,6 +485,8 @@ GEM
|
|
479
485
|
rainbow (>= 2.2.2, < 3.0)
|
480
486
|
ruby-progressbar (~> 1.7)
|
481
487
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
488
|
+
rubocop-rspec (1.20.1)
|
489
|
+
rubocop (>= 0.51.0)
|
482
490
|
ruby-ole (1.2.12.1)
|
483
491
|
ruby-progressbar (1.9.0)
|
484
492
|
ruby_dep (1.5.0)
|
@@ -536,12 +544,15 @@ GEM
|
|
536
544
|
truncato (0.7.10)
|
537
545
|
htmlentities (~> 4.3.1)
|
538
546
|
nokogiri (~> 1.8.0, >= 1.7.0)
|
539
|
-
tzinfo (1.2.
|
547
|
+
tzinfo (1.2.4)
|
540
548
|
thread_safe (~> 0.1)
|
541
549
|
uglifier (3.2.0)
|
542
550
|
execjs (>= 0.3.0, < 3)
|
543
551
|
unicode-display_width (1.3.0)
|
544
552
|
url (0.3.2)
|
553
|
+
valid_email2 (2.1.1)
|
554
|
+
activemodel (>= 3.2)
|
555
|
+
mail (~> 2.5)
|
545
556
|
virtus (1.0.5)
|
546
557
|
axiom-types (~> 0.1)
|
547
558
|
coercible (~> 1.0)
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@ The participatory democracy framework.
|
|
4
4
|
|
5
5
|
> Democracy never felt so real.
|
6
6
|
|
7
|
-
[Decidim](https://decidim.org) is a participatory democracy framework written
|
7
|
+
[Decidim](https://decidim.org) is a participatory democracy framework, written in Ruby on Rails, originally developed for the Barcelona City government online and offline participation website. Installing these libraries will provide you 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
8
|
|
9
9
|
All members of the Decidim community agree with [Decidim Social Contract or Code of Democratic Guarantees](http://www.decidim.org/contract/).
|
10
10
|
|
@@ -16,10 +16,10 @@ All members of the Decidim community agree with [Decidim Social Contract or Code
|
|
16
16
|
[![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/decidim/decidim/master)
|
17
17
|
[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/decidim/decidim)
|
18
18
|
|
19
|
+
Code quality
|
19
20
|
|
20
|
-
### Code quality
|
21
21
|
[![Build Status](https://img.shields.io/circleci/project/github/decidim/decidim/master.svg)](https://circleci.com/gh/decidim/decidim)
|
22
|
-
[![
|
22
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/ad8fa445086e491486b6/maintainability)](https://codeclimate.com/github/decidim/decidim/maintainability)
|
23
23
|
[![codecov](https://img.shields.io/codecov/c/github/decidim/decidim.svg)](https://codecov.io/gh/decidim/decidim)
|
24
24
|
[![Dependency Status](https://img.shields.io/gemnasium/decidim/decidim.svg)](https://gemnasium.com/github.com/decidim/decidim)
|
25
25
|
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/decidim/localized.svg)](https://crowdin.com/project/decidim)
|
@@ -27,7 +27,8 @@ All members of the Decidim community agree with [Decidim Social Contract or Code
|
|
27
27
|
[![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)
|
28
28
|
[![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)
|
29
29
|
|
30
|
-
|
30
|
+
Project management [[See on Waffle.io]](https://waffle.io/decidim/decidim)
|
31
|
+
|
31
32
|
[![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)
|
32
33
|
[![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)
|
33
34
|
[![Bugs](https://img.shields.io/waffle/label/decidim/decidim/bug.svg)](https://github.com/decidim/decidim/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
|
@@ -36,14 +37,14 @@ All members of the Decidim community agree with [Decidim Social Contract or Code
|
|
36
37
|
|
37
38
|
---
|
38
39
|
|
39
|
-
|
40
|
+
# What do you need to do?
|
40
41
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
42
|
+
* [Get started with Decidim](#getting-started-with-decidim)
|
43
|
+
* [Contribute to the project](#how-to-contribute)
|
44
|
+
* [Decidim components](#officially-supported-libraries)
|
45
|
+
* [How to test Decidim engines](docs/testing.md)
|
46
|
+
* [Create & browse development app](#browse-decidim)
|
47
|
+
* [Technical tradeoffs](#technical-tradeoffs)
|
47
48
|
|
48
49
|
---
|
49
50
|
|
@@ -55,63 +56,58 @@ We've set up a guide on how to install, set up and upgrade Decidim. See the [Get
|
|
55
56
|
|
56
57
|
### As a Translator
|
57
58
|
|
58
|
-
Decidim is already translated on multiple languages (English, Spanish, Catalan, Basque, Italian, Finnish, Dutch, French and Ukrainian). You can help us at [Crowdin, the translation service](https://crowdin.com/project/decidim), reviewing
|
59
|
+
Decidim is already translated on multiple languages (English, Spanish, Catalan, Basque, Italian, Finnish, Dutch, French, Russian and Ukrainian). You can help us at [Crowdin, the translation service](https://crowdin.com/project/decidim), reviewing these translations or proposing a new language to add to the platform.
|
59
60
|
|
60
61
|
### As a Developer
|
61
62
|
|
62
63
|
In order to develop on decidim, you'll need:
|
63
64
|
|
65
|
+
* **Git** 2.15+
|
64
66
|
* **PostgreSQL** 9.4+
|
65
67
|
* **Ruby** 2.4.1
|
66
|
-
* **NodeJS**
|
68
|
+
* **NodeJS** 9.x.x (with `yarn` as a package manager)
|
67
69
|
* **ImageMagick**
|
68
|
-
<<<<<<< HEAD
|
69
|
-
* **PhantomJS**
|
70
|
-
=======
|
71
70
|
* **Chrome** browser and [chromedriver](https://sites.google.com/a/chromium.org/chromedriver/).
|
72
|
-
>>>>>>> 898adf74b... Migrate to headless chrome (#2157)
|
73
71
|
|
74
72
|
The easiest way to work on decidim is to clone decidim's repository and install its dependencies
|
75
73
|
|
76
74
|
```bash
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
75
|
+
git clone git@github.com:decidim/decidim.git
|
76
|
+
cd decidim
|
77
|
+
bundle install
|
78
|
+
yarn install
|
81
79
|
```
|
82
80
|
|
83
|
-
You have several rake tasks available
|
81
|
+
You have several rake tasks available:
|
84
82
|
|
85
83
|
* `bundle exec rake development_app`: Creates a development app which you can use to run an application with the gems in your path.
|
86
|
-
* `bundle exec rake
|
87
|
-
to be used for testing.
|
84
|
+
* `bundle exec rake test_app`: Generates a dummy application to be used for testing.
|
88
85
|
* `bundle exec rake test_all`: Runs the tests of every engine using the dummy
|
89
86
|
application
|
90
87
|
|
91
88
|
#### Browse Decidim
|
92
89
|
|
93
90
|
After you create a development app (`bundle exec rake development_app`):
|
94
|
-
|
95
|
-
|
96
|
-
|
91
|
+
|
92
|
+
* `cd development_app`
|
93
|
+
* `bundle exec rails s`
|
94
|
+
* Go to 'http://localhost:3000'
|
97
95
|
|
98
96
|
Optionally, you can log in as: user@example.org | decidim123456
|
99
97
|
|
100
98
|
Also, if you want to verify yourself against the default authorization handler use a document number ended with "X".
|
101
99
|
|
102
|
-
|
103
100
|
#### Browse Admin Interface
|
104
101
|
|
105
102
|
After you create a development app (`bundle exec rake development_app`):
|
106
|
-
- `cd development_app`
|
107
|
-
- `bundle exec rails s`
|
108
|
-
- Go to 'http://localhost:3000/admin'
|
109
|
-
- Login data: admin@example.org | decidim123456
|
110
103
|
|
104
|
+
* `cd development_app`
|
105
|
+
* `bundle exec rails s`
|
106
|
+
* Go to 'http://localhost:3000/admin'
|
107
|
+
* Login data: admin@example.org | decidim123456
|
111
108
|
|
112
109
|
## Officially supported libraries
|
113
110
|
|
114
|
-
|
115
111
|
| Library | Description |
|
116
112
|
| ------------- |-------------|
|
117
113
|
| [Admin](https://github.com/decidim/decidim/tree/master/decidim-admin) | This library adds an administration dashboard so users can manage their organization and all other entities. |
|
@@ -133,20 +129,19 @@ After you create a development app (`bundle exec rake development_app`):
|
|
133
129
|
|
134
130
|
### Architecture
|
135
131
|
|
136
|
-
This is not your typical Ruby on Rails Vanilla App. We've tried
|
132
|
+
This is not your typical Ruby on Rails Vanilla App. We've tried using [Consul](http://decide.es) but we found some problems on reutilization, adaptation, modularization and configuration. You can read more about that on "[Propuesta de Cambios de Arquitectura de Consul](https://www.gitbook.com/book/alabs/propuesta-de-cambios-en-la-arquitectura-de-consul/details)".
|
137
133
|
|
138
134
|
### Turbolinks
|
139
135
|
|
140
136
|
Decidim doesn't support `turbolinks` so it isn't included on our generated apps and it's removed for existing Rails applications which install the Decidim engine.
|
141
137
|
|
142
|
-
The main reason
|
138
|
+
The main reason 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.
|
143
139
|
|
144
140
|
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.
|
145
141
|
|
146
142
|
## Following our license
|
147
143
|
|
148
|
-
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
|
149
|
-
|
144
|
+
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 you can contact us on [Gitter](https://gitter.im/decidim/decidim).
|
150
145
|
|
151
146
|
## Example applications
|
152
147
|
|
@@ -163,3 +158,4 @@ Since Decidim is a ruby gem, you can check out the [dependent repositories](http
|
|
163
158
|
* [Erabaki Pamplona](https://erabaki.pamplona.es) - [View code](https://github.com/ErabakiPamplona/erabaki)
|
164
159
|
* [Decidim Mataró](https://www.decidimmataro.cat) - [View code](https://github.com/AjuntamentDeMataro/decidim-mataro)
|
165
160
|
* [Commission Nationale du Débat Public (France)](https://cndp.opensourcepolitics.eu/)
|
161
|
+
* [MetaDecidim](https://meta.decidim.barcelona/) - [View Code](https://github.com/decidim/metadecidim)
|