decidim 0.12.2 → 0.13.0.pre1
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/Rakefile +10 -0
- data/docs/checklist.md +1 -1
- data/docs/getting_started.md +4 -2
- data/lib/decidim/gem_manager.rb +37 -7
- data/lib/decidim/version.rb +1 -1
- metadata +76 -76
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69d337af76e327c8e52dec0190054f0cd909e21a6e77c0720c03323b512186e8
|
4
|
+
data.tar.gz: 375819889fbd37efbab9315edcffa7b03609a8f050679b04cf69e369e10ea554
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0eb97b784b3ca1ffdc2467457b5f1456738fe6ff98bfb23c30624ab17a20279cd169b8775b87d7f0d4b5edec42cb823cb98f7de090feab7d666379c3e5352865
|
7
|
+
data.tar.gz: 813e57d4f52b21048bb4845e6ca83cb3a17a9f228daf6bb22a02de0075bd02aca64032dade534c6e384db09069033e7706a25659351cd4032d1ab0d624d552ed
|
data/Rakefile
CHANGED
@@ -46,6 +46,16 @@ task :test_component do
|
|
46
46
|
Decidim::GemManager.test_component
|
47
47
|
end
|
48
48
|
|
49
|
+
desc "Installs all local gem versions globally"
|
50
|
+
task :install_all do
|
51
|
+
Decidim::GemManager.install_all
|
52
|
+
end
|
53
|
+
|
54
|
+
desc "Uninstalls all local gem versions"
|
55
|
+
task :uninstall_all do
|
56
|
+
Decidim::GemManager.uninstall_all
|
57
|
+
end
|
58
|
+
|
49
59
|
desc "Pushes a new build for each gem."
|
50
60
|
task release_all: [:update_versions, :check_locale_completeness, :webpack] do
|
51
61
|
Decidim::GemManager.run_all("rake release")
|
data/docs/checklist.md
CHANGED
@@ -10,7 +10,7 @@ As a technopolitical project, Decidim needs several things to work. This is a no
|
|
10
10
|
|
11
11
|
1. Customize the [**look and feel**](https://github.com/decidim/decidim/blob/master/docs/customization/styles.md) (colors, pictures, fonts, etc).
|
12
12
|
|
13
|
-
1. Configure **SSL**. We recommend using at least [Let's Encrypt](https://letsencrypt.org/) for a minimum security.
|
13
|
+
1. Configure **SSL**. We recommend using at least [Let's Encrypt](https://letsencrypt.org/) for a minimum security. You should also check that there's an enforced redirection from HTTP to HTTPS on your web server.
|
14
14
|
|
15
15
|
1. Configure your **SMTP** server.
|
16
16
|
|
data/docs/getting_started.md
CHANGED
@@ -46,8 +46,7 @@ Then create a development application
|
|
46
46
|
```console
|
47
47
|
d/bundle install
|
48
48
|
d/rake development_app
|
49
|
-
|
50
|
-
bin/rails server
|
49
|
+
d/rails server
|
51
50
|
```
|
52
51
|
|
53
52
|
In general, to use the docker development environment, change any instruction in
|
@@ -87,6 +86,9 @@ Visit [http://localhost:3000](http://localhost:3000) to see your app running.
|
|
87
86
|
|
88
87
|
Decidim comes pre-configured with some safe defaults, but can be changed through the `config/initializers/decidim.rb` file in your app. Check the comments there or read the comments in [the source file](https://github.com/decidim/decidim/blob/master/decidim-core/lib/decidim/core.rb) (the part with the `config_accessor` calls) for more up-to-date info.
|
89
88
|
|
89
|
+
If you want to run the automatic rake task to delete data portability files, write in `crontab -e`
|
90
|
+
`0 0 * * * cd /Users/you/projects/myrailsapp && /usr/local/bin/rake RAILS_ENV=production decidim:delete_data_portability_files`
|
91
|
+
|
90
92
|
We also have other guides on how to configure some extra components:
|
91
93
|
|
92
94
|
* [ActiveJob](https://github.com/decidim/decidim/blob/master/docs/services/activejob.md)
|
data/lib/decidim/gem_manager.rb
CHANGED
@@ -95,6 +95,31 @@ module Decidim
|
|
95
95
|
end
|
96
96
|
end
|
97
97
|
|
98
|
+
def install_all(out: STDOUT)
|
99
|
+
run_all(
|
100
|
+
"gem build %name && mv %name-%version.gem ..",
|
101
|
+
include_root: false,
|
102
|
+
out: out
|
103
|
+
)
|
104
|
+
|
105
|
+
new(root).run(
|
106
|
+
"gem build %name && gem install *.gem",
|
107
|
+
out: out
|
108
|
+
)
|
109
|
+
end
|
110
|
+
|
111
|
+
def uninstall_all(out: STDOUT)
|
112
|
+
run_all(
|
113
|
+
"gem uninstall %name -v %version --executables --force",
|
114
|
+
out: out
|
115
|
+
)
|
116
|
+
|
117
|
+
new(root).run(
|
118
|
+
"rm decidim-*.gem",
|
119
|
+
out: out
|
120
|
+
)
|
121
|
+
end
|
122
|
+
|
98
123
|
def run_all(command, out: STDOUT, include_root: true)
|
99
124
|
all_dirs(include_root: include_root) do |dir|
|
100
125
|
status = new(dir).run(command, out: out)
|
@@ -114,23 +139,28 @@ module Decidim
|
|
114
139
|
end
|
115
140
|
|
116
141
|
def all_dirs(include_root: true)
|
117
|
-
|
142
|
+
dirs = plugins
|
143
|
+
dirs << "./" if include_root
|
118
144
|
|
119
|
-
|
145
|
+
dirs.each { |dir| yield(dir) }
|
146
|
+
end
|
120
147
|
|
121
|
-
|
122
|
-
|
123
|
-
.each { |dir| yield(dir) }
|
148
|
+
def plugins
|
149
|
+
Dir.glob("#{root}/decidim-*/")
|
124
150
|
end
|
125
151
|
|
126
152
|
private
|
127
153
|
|
154
|
+
def root
|
155
|
+
File.expand_path(File.join("..", ".."), __dir__)
|
156
|
+
end
|
157
|
+
|
128
158
|
def semver_friendly_version
|
129
159
|
version.gsub(/\.pre/, "-pre").gsub(/\.dev/, "-dev")
|
130
160
|
end
|
131
161
|
|
132
162
|
def version_file
|
133
|
-
File.
|
163
|
+
File.join(root, ".decidim-version")
|
134
164
|
end
|
135
165
|
end
|
136
166
|
|
@@ -147,7 +177,7 @@ module Decidim
|
|
147
177
|
end
|
148
178
|
|
149
179
|
def name
|
150
|
-
|
180
|
+
self.class.plugins.map { |name| File.expand_path(name) }.include?(@dir) ? folder_name : "decidim"
|
151
181
|
end
|
152
182
|
|
153
183
|
def version
|
data/lib/decidim/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,260 +10,260 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-06-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-accountability
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.13.a
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.
|
28
|
+
version: 0.13.a
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: decidim-admin
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.13.a
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.
|
42
|
+
version: 0.13.a
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: decidim-api
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- -
|
47
|
+
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.
|
49
|
+
version: 0.13.a
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- -
|
54
|
+
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.
|
56
|
+
version: 0.13.a
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: decidim-assemblies
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.
|
63
|
+
version: 0.13.a
|
64
64
|
type: :runtime
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: 0.
|
70
|
+
version: 0.13.a
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: decidim-blogs
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - "~>"
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.
|
77
|
+
version: 0.13.a
|
78
78
|
type: :runtime
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
|
-
- -
|
82
|
+
- - "~>"
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.
|
84
|
+
version: 0.13.a
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: decidim-budgets
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
|
-
- -
|
89
|
+
- - "~>"
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: 0.
|
91
|
+
version: 0.13.a
|
92
92
|
type: :runtime
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
|
-
- -
|
96
|
+
- - "~>"
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version: 0.
|
98
|
+
version: 0.13.a
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
100
|
name: decidim-comments
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
|
-
- -
|
103
|
+
- - "~>"
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version: 0.
|
105
|
+
version: 0.13.a
|
106
106
|
type: :runtime
|
107
107
|
prerelease: false
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
|
-
- -
|
110
|
+
- - "~>"
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: 0.
|
112
|
+
version: 0.13.a
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: decidim-core
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
|
-
- -
|
117
|
+
- - "~>"
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version: 0.
|
119
|
+
version: 0.13.a
|
120
120
|
type: :runtime
|
121
121
|
prerelease: false
|
122
122
|
version_requirements: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
|
-
- -
|
124
|
+
- - "~>"
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
version: 0.
|
126
|
+
version: 0.13.a
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
128
|
name: decidim-debates
|
129
129
|
requirement: !ruby/object:Gem::Requirement
|
130
130
|
requirements:
|
131
|
-
- -
|
131
|
+
- - "~>"
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version: 0.
|
133
|
+
version: 0.13.a
|
134
134
|
type: :runtime
|
135
135
|
prerelease: false
|
136
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
|
-
- -
|
138
|
+
- - "~>"
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version: 0.
|
140
|
+
version: 0.13.a
|
141
141
|
- !ruby/object:Gem::Dependency
|
142
142
|
name: decidim-generators
|
143
143
|
requirement: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
|
-
- -
|
145
|
+
- - "~>"
|
146
146
|
- !ruby/object:Gem::Version
|
147
|
-
version: 0.
|
147
|
+
version: 0.13.a
|
148
148
|
type: :runtime
|
149
149
|
prerelease: false
|
150
150
|
version_requirements: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
|
-
- -
|
152
|
+
- - "~>"
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version: 0.
|
154
|
+
version: 0.13.a
|
155
155
|
- !ruby/object:Gem::Dependency
|
156
156
|
name: decidim-meetings
|
157
157
|
requirement: !ruby/object:Gem::Requirement
|
158
158
|
requirements:
|
159
|
-
- -
|
159
|
+
- - "~>"
|
160
160
|
- !ruby/object:Gem::Version
|
161
|
-
version: 0.
|
161
|
+
version: 0.13.a
|
162
162
|
type: :runtime
|
163
163
|
prerelease: false
|
164
164
|
version_requirements: !ruby/object:Gem::Requirement
|
165
165
|
requirements:
|
166
|
-
- -
|
166
|
+
- - "~>"
|
167
167
|
- !ruby/object:Gem::Version
|
168
|
-
version: 0.
|
168
|
+
version: 0.13.a
|
169
169
|
- !ruby/object:Gem::Dependency
|
170
170
|
name: decidim-pages
|
171
171
|
requirement: !ruby/object:Gem::Requirement
|
172
172
|
requirements:
|
173
|
-
- -
|
173
|
+
- - "~>"
|
174
174
|
- !ruby/object:Gem::Version
|
175
|
-
version: 0.
|
175
|
+
version: 0.13.a
|
176
176
|
type: :runtime
|
177
177
|
prerelease: false
|
178
178
|
version_requirements: !ruby/object:Gem::Requirement
|
179
179
|
requirements:
|
180
|
-
- -
|
180
|
+
- - "~>"
|
181
181
|
- !ruby/object:Gem::Version
|
182
|
-
version: 0.
|
182
|
+
version: 0.13.a
|
183
183
|
- !ruby/object:Gem::Dependency
|
184
184
|
name: decidim-participatory_processes
|
185
185
|
requirement: !ruby/object:Gem::Requirement
|
186
186
|
requirements:
|
187
|
-
- -
|
187
|
+
- - "~>"
|
188
188
|
- !ruby/object:Gem::Version
|
189
|
-
version: 0.
|
189
|
+
version: 0.13.a
|
190
190
|
type: :runtime
|
191
191
|
prerelease: false
|
192
192
|
version_requirements: !ruby/object:Gem::Requirement
|
193
193
|
requirements:
|
194
|
-
- -
|
194
|
+
- - "~>"
|
195
195
|
- !ruby/object:Gem::Version
|
196
|
-
version: 0.
|
196
|
+
version: 0.13.a
|
197
197
|
- !ruby/object:Gem::Dependency
|
198
198
|
name: decidim-proposals
|
199
199
|
requirement: !ruby/object:Gem::Requirement
|
200
200
|
requirements:
|
201
|
-
- -
|
201
|
+
- - "~>"
|
202
202
|
- !ruby/object:Gem::Version
|
203
|
-
version: 0.
|
203
|
+
version: 0.13.a
|
204
204
|
type: :runtime
|
205
205
|
prerelease: false
|
206
206
|
version_requirements: !ruby/object:Gem::Requirement
|
207
207
|
requirements:
|
208
|
-
- -
|
208
|
+
- - "~>"
|
209
209
|
- !ruby/object:Gem::Version
|
210
|
-
version: 0.
|
210
|
+
version: 0.13.a
|
211
211
|
- !ruby/object:Gem::Dependency
|
212
212
|
name: decidim-sortitions
|
213
213
|
requirement: !ruby/object:Gem::Requirement
|
214
214
|
requirements:
|
215
|
-
- -
|
215
|
+
- - "~>"
|
216
216
|
- !ruby/object:Gem::Version
|
217
|
-
version: 0.
|
217
|
+
version: 0.13.a
|
218
218
|
type: :runtime
|
219
219
|
prerelease: false
|
220
220
|
version_requirements: !ruby/object:Gem::Requirement
|
221
221
|
requirements:
|
222
|
-
- -
|
222
|
+
- - "~>"
|
223
223
|
- !ruby/object:Gem::Version
|
224
|
-
version: 0.
|
224
|
+
version: 0.13.a
|
225
225
|
- !ruby/object:Gem::Dependency
|
226
226
|
name: decidim-surveys
|
227
227
|
requirement: !ruby/object:Gem::Requirement
|
228
228
|
requirements:
|
229
|
-
- -
|
229
|
+
- - "~>"
|
230
230
|
- !ruby/object:Gem::Version
|
231
|
-
version: 0.
|
231
|
+
version: 0.13.a
|
232
232
|
type: :runtime
|
233
233
|
prerelease: false
|
234
234
|
version_requirements: !ruby/object:Gem::Requirement
|
235
235
|
requirements:
|
236
|
-
- -
|
236
|
+
- - "~>"
|
237
237
|
- !ruby/object:Gem::Version
|
238
|
-
version: 0.
|
238
|
+
version: 0.13.a
|
239
239
|
- !ruby/object:Gem::Dependency
|
240
240
|
name: decidim-system
|
241
241
|
requirement: !ruby/object:Gem::Requirement
|
242
242
|
requirements:
|
243
|
-
- -
|
243
|
+
- - "~>"
|
244
244
|
- !ruby/object:Gem::Version
|
245
|
-
version: 0.
|
245
|
+
version: 0.13.a
|
246
246
|
type: :runtime
|
247
247
|
prerelease: false
|
248
248
|
version_requirements: !ruby/object:Gem::Requirement
|
249
249
|
requirements:
|
250
|
-
- -
|
250
|
+
- - "~>"
|
251
251
|
- !ruby/object:Gem::Version
|
252
|
-
version: 0.
|
252
|
+
version: 0.13.a
|
253
253
|
- !ruby/object:Gem::Dependency
|
254
254
|
name: decidim-verifications
|
255
255
|
requirement: !ruby/object:Gem::Requirement
|
256
256
|
requirements:
|
257
|
-
- -
|
257
|
+
- - "~>"
|
258
258
|
- !ruby/object:Gem::Version
|
259
|
-
version: 0.
|
259
|
+
version: 0.13.a
|
260
260
|
type: :runtime
|
261
261
|
prerelease: false
|
262
262
|
version_requirements: !ruby/object:Gem::Requirement
|
263
263
|
requirements:
|
264
|
-
- -
|
264
|
+
- - "~>"
|
265
265
|
- !ruby/object:Gem::Version
|
266
|
-
version: 0.
|
266
|
+
version: 0.13.a
|
267
267
|
- !ruby/object:Gem::Dependency
|
268
268
|
name: bundler
|
269
269
|
requirement: !ruby/object:Gem::Requirement
|
@@ -368,9 +368,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
368
368
|
version: '2.3'
|
369
369
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
370
370
|
requirements:
|
371
|
-
- - "
|
371
|
+
- - ">"
|
372
372
|
- !ruby/object:Gem::Version
|
373
|
-
version:
|
373
|
+
version: 1.3.1
|
374
374
|
requirements: []
|
375
375
|
rubyforge_project:
|
376
376
|
rubygems_version: 2.7.6
|