decidim-core 0.0.1.alpha2 → 0.0.1.alpha3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +11 -6
- data/app/assets/config/decidim_core_manifest.js +1 -0
- data/app/assets/images/decidim/badge-ajuntament-footer.png +0 -0
- data/app/assets/images/decidim/badge-ajuntament-header.svg +60 -0
- data/app/assets/images/decidim/cc-badge.png +0 -0
- data/app/assets/images/decidim/hero-home.jpg +0 -0
- data/app/assets/images/decidim/icons.svg +1 -0
- data/app/assets/javascripts/decidim.js +12 -1
- data/app/assets/stylesheets/{decidim.css → decidim.scss} +2 -1
- data/app/assets/stylesheets/decidim/application.sass +7 -0
- data/app/assets/stylesheets/decidim/layouts/_home.scss +244 -0
- data/app/assets/stylesheets/decidim/layouts/_user.scss +24 -0
- data/app/assets/stylesheets/decidim/layouts/_view.scss +22 -0
- data/app/assets/stylesheets/decidim/modules/_address.scss +26 -0
- data/app/assets/stylesheets/decidim/modules/_author-avatar.scss +119 -0
- data/app/assets/stylesheets/decidim/modules/_buttons.scss +120 -0
- data/app/assets/stylesheets/decidim/modules/_callout.scss +25 -0
- data/app/assets/stylesheets/decidim/modules/_card-grid.scss +22 -0
- data/app/assets/stylesheets/decidim/modules/_cards.scss +520 -0
- data/app/assets/stylesheets/decidim/modules/_comments.scss +119 -0
- data/app/assets/stylesheets/decidim/modules/_defintion-data.scss +54 -0
- data/app/assets/stylesheets/decidim/modules/_extra.scss +43 -0
- data/app/assets/stylesheets/decidim/modules/_filters.scss +96 -0
- data/app/assets/stylesheets/decidim/modules/_flag.scss +9 -0
- data/app/assets/stylesheets/decidim/modules/_footer.scss +90 -0
- data/app/assets/stylesheets/decidim/modules/_forms.scss +30 -0
- data/app/assets/stylesheets/decidim/modules/_help.scss +14 -0
- data/app/assets/stylesheets/decidim/modules/_icons.scss +32 -0
- data/app/assets/stylesheets/decidim/modules/_layout.scss +58 -0
- data/app/assets/stylesheets/decidim/modules/_list-docs.scss +30 -0
- data/app/assets/stylesheets/decidim/modules/_main-container.scss +70 -0
- data/app/assets/stylesheets/decidim/modules/_map.scss +72 -0
- data/app/assets/stylesheets/decidim/modules/_navbar.scss +258 -0
- data/app/assets/stylesheets/decidim/modules/_opinion-toggle.scss +30 -0
- data/app/assets/stylesheets/decidim/modules/_order-by.scss +66 -0
- data/app/assets/stylesheets/decidim/modules/_owl-carousel.scss +72 -0
- data/app/assets/stylesheets/decidim/modules/_phase-nav.scss +177 -0
- data/app/assets/stylesheets/decidim/modules/_popularity.scss +74 -0
- data/app/assets/stylesheets/decidim/modules/_process-header.scss +125 -0
- data/app/assets/stylesheets/decidim/modules/_process-info.scss +44 -0
- data/app/assets/stylesheets/decidim/modules/_process-nav.scss +99 -0
- data/app/assets/stylesheets/decidim/modules/_reference.scss +6 -0
- data/app/assets/stylesheets/decidim/modules/_reveal.scss +20 -0
- data/app/assets/stylesheets/decidim/modules/_share.scss +28 -0
- data/app/assets/stylesheets/decidim/modules/_signup.scss +39 -0
- data/app/assets/stylesheets/decidim/modules/_static-pages.scss +46 -0
- data/app/assets/stylesheets/decidim/modules/_status-labels.scss +14 -0
- data/app/assets/stylesheets/decidim/modules/_tags.scss +29 -0
- data/app/assets/stylesheets/decidim/modules/_timeline.scss +189 -0
- data/app/assets/stylesheets/decidim/modules/_title-action.scss +28 -0
- data/app/assets/stylesheets/decidim/modules/_typography.scss +116 -0
- data/app/assets/stylesheets/decidim/modules/_user-form.scss +14 -0
- data/app/assets/stylesheets/decidim/modules/_video.scss +18 -0
- data/app/assets/stylesheets/decidim/utils/_fontface.scss +1 -0
- data/app/assets/stylesheets/decidim/utils/_helpers.sass +21 -0
- data/app/assets/stylesheets/decidim/utils/_keyframes.sass +13 -0
- data/app/assets/stylesheets/decidim/utils/_mixins.sass +33 -0
- data/app/assets/stylesheets/decidim/utils/_settings.scss +570 -0
- data/app/assets/stylesheets/decidim/utils/_toggle-expand.scss +8 -0
- data/app/assets/stylesheets/decidim/utils/_variables.scss +25 -0
- data/app/controllers/concerns/decidim/needs_organization.rb +31 -0
- data/app/controllers/decidim/application_controller.rb +1 -0
- data/app/controllers/decidim/devise/confirmations_controller.rb +10 -0
- data/app/controllers/decidim/devise/invitations_controller.rb +20 -0
- data/app/controllers/decidim/devise/passwords_controller.rb +10 -0
- data/app/controllers/decidim/devise/registrations_controller.rb +19 -0
- data/app/controllers/decidim/devise/sessions_controller.rb +10 -0
- data/app/helpers/decidim/application_helper.rb +3 -0
- data/app/helpers/decidim/layout_helper.rb +27 -0
- data/app/helpers/decidim/translations_helper.rb +16 -0
- data/app/mailers/decidim/decidim_devise_mailer.rb +11 -0
- data/app/middleware/decidim/current_organization.rb +28 -0
- data/app/models/decidim/organization.rb +9 -0
- data/app/models/decidim/participatory_process.rb +14 -0
- data/app/models/decidim/user.rb +28 -4
- data/app/views/decidim/devise/confirmations/new.html.erb +15 -0
- data/app/views/decidim/devise/invitations/edit.html.erb +14 -0
- data/app/views/decidim/devise/passwords/edit.html.erb +20 -0
- data/app/views/decidim/devise/passwords/new.html.erb +15 -0
- data/app/views/decidim/devise/registrations/edit.html.erb +35 -0
- data/app/views/decidim/devise/registrations/new.html.erb +23 -0
- data/app/views/decidim/devise/sessions/new.html.erb +23 -0
- data/app/views/decidim/devise/shared/_links.html.erb +25 -0
- data/app/views/decidim/home/show.html.erb +16 -4
- data/app/views/devise/mailer/confirmation_instructions.html.erb +4 -0
- data/app/views/devise/mailer/organization_admin_invitation_instructions.html.erb +10 -0
- data/app/views/devise/mailer/organization_admin_invitation_instructions.text.erb +11 -0
- data/app/views/devise/mailer/password_change.html.erb +3 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/layouts/decidim/_footer.html.erb +28 -2
- data/app/views/layouts/decidim/_header.html.erb +59 -2
- data/config/i18n-tasks.yml +120 -0
- data/config/initializers/devise.rb +58 -8
- data/config/locales/en.yml +35 -0
- data/config/routes.rb +12 -1
- data/db/migrate/20160919104837_create_decidim_organizations.rb +13 -0
- data/db/migrate/20160920140207_devise_invitable_add_to_decidim_users.rb +23 -0
- data/db/migrate/20160920141039_user_belongs_to_organization.rb +5 -0
- data/db/migrate/20160920141151_user_has_roles.rb +5 -0
- data/db/migrate/20161005130108_add_participatory_processes.rb +17 -0
- data/db/migrate/20161005153007_add_description_to_organizations.rb +9 -0
- data/db/migrate/20161006085629_add_confirmable_to_devise.rb +14 -0
- data/db/seeds.rb +35 -0
- data/lib/decidim/core.rb +0 -1
- data/lib/decidim/core/engine.rb +30 -0
- data/lib/decidim/core/version.rb +1 -1
- data/lib/decidim/devise_failure_app.rb +36 -0
- data/lib/decidim/form_builder.rb +38 -0
- data/lib/decidim/translatable_attributes.rb +86 -0
- data/lib/devise/models/decidim_validatable.rb +67 -0
- data/lib/tasks/factory_girl.rake +16 -0
- metadata +254 -9
- data/config/locales/devise.en.yml +0 -62
- data/lib/decidim/testing_support/common_rake.rb +0 -13
- data/lib/generators/decidim/dummy_generator.rb +0 -58
- data/lib/generators/decidim/install_generator.rb +0 -76
- data/lib/generators/decidim/templates/initializer.rb +0 -4
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
namespace :factory_girl do
|
3
|
+
desc "Verify that all FactoryGirl factories are valid"
|
4
|
+
task lint: :environment do
|
5
|
+
if Rails.env.test?
|
6
|
+
begin
|
7
|
+
DatabaseCleaner.start
|
8
|
+
FactoryGirl.lint
|
9
|
+
ensure
|
10
|
+
DatabaseCleaner.clean
|
11
|
+
end
|
12
|
+
else
|
13
|
+
system("bundle exec rake factory_girl:lint RAILS_ENV='test'")
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.alpha3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-10-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -28,12 +28,166 @@ dependencies:
|
|
28
28
|
version: 5.0.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: devise
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - "~>"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '4.2'
|
36
|
+
type: :runtime
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '4.2'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: devise-i18n
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 1.1.0
|
50
|
+
type: :runtime
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 1.1.0
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: rectify
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.6'
|
64
|
+
type: :runtime
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0.6'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: foundation-rails
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 6.2.3.0
|
78
|
+
type: :runtime
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - "~>"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 6.2.3.0
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: sass-rails
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - "~>"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 5.0.0
|
92
|
+
type: :runtime
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - "~>"
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 5.0.0
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: jquery-rails
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - "~>"
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '4.0'
|
106
|
+
type: :runtime
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - "~>"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '4.0'
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: turbolinks
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: 5.0.0
|
120
|
+
type: :runtime
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - "~>"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: 5.0.0
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: jquery-turbolinks
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - "~>"
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 2.1.0
|
134
|
+
type: :runtime
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - "~>"
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: 2.1.0
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: jbuilder
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - "~>"
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '2.5'
|
148
|
+
type: :runtime
|
149
|
+
prerelease: false
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - "~>"
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '2.5'
|
155
|
+
- !ruby/object:Gem::Dependency
|
156
|
+
name: foundation_rails_helper
|
157
|
+
requirement: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - "~>"
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: 2.0.0
|
162
|
+
type: :runtime
|
163
|
+
prerelease: false
|
164
|
+
version_requirements: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - "~>"
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: 2.0.0
|
169
|
+
- !ruby/object:Gem::Dependency
|
170
|
+
name: active_link_to
|
171
|
+
requirement: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - "~>"
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: 1.0.0
|
176
|
+
type: :runtime
|
177
|
+
prerelease: false
|
178
|
+
version_requirements: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - "~>"
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: 1.0.0
|
183
|
+
- !ruby/object:Gem::Dependency
|
184
|
+
name: decidim-dev
|
31
185
|
requirement: !ruby/object:Gem::Requirement
|
32
186
|
requirements:
|
33
187
|
- - ">="
|
34
188
|
- !ruby/object:Gem::Version
|
35
189
|
version: '0'
|
36
|
-
type: :
|
190
|
+
type: :development
|
37
191
|
prerelease: false
|
38
192
|
version_requirements: !ruby/object:Gem::Requirement
|
39
193
|
requirements:
|
@@ -52,32 +206,123 @@ files:
|
|
52
206
|
- MIT-LICENSE
|
53
207
|
- README.md
|
54
208
|
- Rakefile
|
209
|
+
- app/assets/config/decidim_core_manifest.js
|
210
|
+
- app/assets/images/decidim/badge-ajuntament-footer.png
|
211
|
+
- app/assets/images/decidim/badge-ajuntament-header.svg
|
212
|
+
- app/assets/images/decidim/cc-badge.png
|
213
|
+
- app/assets/images/decidim/hero-home.jpg
|
214
|
+
- app/assets/images/decidim/icons.svg
|
55
215
|
- app/assets/javascripts/decidim.js
|
56
|
-
- app/assets/stylesheets/decidim.
|
216
|
+
- app/assets/stylesheets/decidim.scss
|
217
|
+
- app/assets/stylesheets/decidim/application.sass
|
218
|
+
- app/assets/stylesheets/decidim/layouts/_home.scss
|
219
|
+
- app/assets/stylesheets/decidim/layouts/_user.scss
|
220
|
+
- app/assets/stylesheets/decidim/layouts/_view.scss
|
221
|
+
- app/assets/stylesheets/decidim/modules/_address.scss
|
222
|
+
- app/assets/stylesheets/decidim/modules/_author-avatar.scss
|
223
|
+
- app/assets/stylesheets/decidim/modules/_buttons.scss
|
224
|
+
- app/assets/stylesheets/decidim/modules/_callout.scss
|
225
|
+
- app/assets/stylesheets/decidim/modules/_card-grid.scss
|
226
|
+
- app/assets/stylesheets/decidim/modules/_cards.scss
|
227
|
+
- app/assets/stylesheets/decidim/modules/_comments.scss
|
228
|
+
- app/assets/stylesheets/decidim/modules/_defintion-data.scss
|
229
|
+
- app/assets/stylesheets/decidim/modules/_extra.scss
|
230
|
+
- app/assets/stylesheets/decidim/modules/_filters.scss
|
231
|
+
- app/assets/stylesheets/decidim/modules/_flag.scss
|
232
|
+
- app/assets/stylesheets/decidim/modules/_footer.scss
|
233
|
+
- app/assets/stylesheets/decidim/modules/_forms.scss
|
234
|
+
- app/assets/stylesheets/decidim/modules/_help.scss
|
235
|
+
- app/assets/stylesheets/decidim/modules/_icons.scss
|
236
|
+
- app/assets/stylesheets/decidim/modules/_layout.scss
|
237
|
+
- app/assets/stylesheets/decidim/modules/_list-docs.scss
|
238
|
+
- app/assets/stylesheets/decidim/modules/_main-container.scss
|
239
|
+
- app/assets/stylesheets/decidim/modules/_map.scss
|
240
|
+
- app/assets/stylesheets/decidim/modules/_navbar.scss
|
241
|
+
- app/assets/stylesheets/decidim/modules/_opinion-toggle.scss
|
242
|
+
- app/assets/stylesheets/decidim/modules/_order-by.scss
|
243
|
+
- app/assets/stylesheets/decidim/modules/_owl-carousel.scss
|
244
|
+
- app/assets/stylesheets/decidim/modules/_phase-nav.scss
|
245
|
+
- app/assets/stylesheets/decidim/modules/_popularity.scss
|
246
|
+
- app/assets/stylesheets/decidim/modules/_process-header.scss
|
247
|
+
- app/assets/stylesheets/decidim/modules/_process-info.scss
|
248
|
+
- app/assets/stylesheets/decidim/modules/_process-nav.scss
|
249
|
+
- app/assets/stylesheets/decidim/modules/_reference.scss
|
250
|
+
- app/assets/stylesheets/decidim/modules/_reveal.scss
|
251
|
+
- app/assets/stylesheets/decidim/modules/_share.scss
|
252
|
+
- app/assets/stylesheets/decidim/modules/_signup.scss
|
253
|
+
- app/assets/stylesheets/decidim/modules/_static-pages.scss
|
254
|
+
- app/assets/stylesheets/decidim/modules/_status-labels.scss
|
255
|
+
- app/assets/stylesheets/decidim/modules/_tags.scss
|
256
|
+
- app/assets/stylesheets/decidim/modules/_timeline.scss
|
257
|
+
- app/assets/stylesheets/decidim/modules/_title-action.scss
|
258
|
+
- app/assets/stylesheets/decidim/modules/_typography.scss
|
259
|
+
- app/assets/stylesheets/decidim/modules/_user-form.scss
|
260
|
+
- app/assets/stylesheets/decidim/modules/_video.scss
|
261
|
+
- app/assets/stylesheets/decidim/utils/_fontface.scss
|
262
|
+
- app/assets/stylesheets/decidim/utils/_helpers.sass
|
263
|
+
- app/assets/stylesheets/decidim/utils/_keyframes.sass
|
264
|
+
- app/assets/stylesheets/decidim/utils/_mixins.sass
|
265
|
+
- app/assets/stylesheets/decidim/utils/_settings.scss
|
266
|
+
- app/assets/stylesheets/decidim/utils/_toggle-expand.scss
|
267
|
+
- app/assets/stylesheets/decidim/utils/_variables.scss
|
268
|
+
- app/controllers/concerns/decidim/needs_organization.rb
|
57
269
|
- app/controllers/decidim/application_controller.rb
|
270
|
+
- app/controllers/decidim/devise/confirmations_controller.rb
|
271
|
+
- app/controllers/decidim/devise/invitations_controller.rb
|
272
|
+
- app/controllers/decidim/devise/passwords_controller.rb
|
273
|
+
- app/controllers/decidim/devise/registrations_controller.rb
|
274
|
+
- app/controllers/decidim/devise/sessions_controller.rb
|
58
275
|
- app/controllers/decidim/home_controller.rb
|
59
276
|
- app/helpers/decidim/application_helper.rb
|
60
277
|
- app/helpers/decidim/layout_helper.rb
|
278
|
+
- app/helpers/decidim/translations_helper.rb
|
61
279
|
- app/jobs/decidim/application_job.rb
|
62
280
|
- app/mailers/decidim/application_mailer.rb
|
281
|
+
- app/mailers/decidim/decidim_devise_mailer.rb
|
282
|
+
- app/middleware/decidim/current_organization.rb
|
63
283
|
- app/models/decidim/application_record.rb
|
284
|
+
- app/models/decidim/organization.rb
|
285
|
+
- app/models/decidim/participatory_process.rb
|
64
286
|
- app/models/decidim/user.rb
|
287
|
+
- app/views/decidim/devise/confirmations/new.html.erb
|
288
|
+
- app/views/decidim/devise/invitations/edit.html.erb
|
289
|
+
- app/views/decidim/devise/passwords/edit.html.erb
|
290
|
+
- app/views/decidim/devise/passwords/new.html.erb
|
291
|
+
- app/views/decidim/devise/registrations/edit.html.erb
|
292
|
+
- app/views/decidim/devise/registrations/new.html.erb
|
293
|
+
- app/views/decidim/devise/sessions/new.html.erb
|
294
|
+
- app/views/decidim/devise/shared/_links.html.erb
|
65
295
|
- app/views/decidim/home/show.html.erb
|
296
|
+
- app/views/devise/mailer/confirmation_instructions.html.erb
|
297
|
+
- app/views/devise/mailer/organization_admin_invitation_instructions.html.erb
|
298
|
+
- app/views/devise/mailer/organization_admin_invitation_instructions.text.erb
|
299
|
+
- app/views/devise/mailer/password_change.html.erb
|
300
|
+
- app/views/devise/mailer/reset_password_instructions.html.erb
|
66
301
|
- app/views/layouts/decidim/_footer.html.erb
|
67
302
|
- app/views/layouts/decidim/_header.html.erb
|
68
303
|
- app/views/layouts/decidim/_meta.html.erb
|
304
|
+
- config/i18n-tasks.yml
|
69
305
|
- config/initializers/devise.rb
|
70
|
-
- config/locales/
|
306
|
+
- config/locales/en.yml
|
71
307
|
- config/routes.rb
|
72
308
|
- db/migrate/20160817115213_devise_create_decidim_users.rb
|
309
|
+
- db/migrate/20160919104837_create_decidim_organizations.rb
|
310
|
+
- db/migrate/20160920140207_devise_invitable_add_to_decidim_users.rb
|
311
|
+
- db/migrate/20160920141039_user_belongs_to_organization.rb
|
312
|
+
- db/migrate/20160920141151_user_has_roles.rb
|
313
|
+
- db/migrate/20161005130108_add_participatory_processes.rb
|
314
|
+
- db/migrate/20161005153007_add_description_to_organizations.rb
|
315
|
+
- db/migrate/20161006085629_add_confirmable_to_devise.rb
|
316
|
+
- db/seeds.rb
|
73
317
|
- lib/decidim/core.rb
|
74
318
|
- lib/decidim/core/engine.rb
|
75
319
|
- lib/decidim/core/version.rb
|
76
|
-
- lib/decidim/
|
77
|
-
- lib/
|
78
|
-
- lib/
|
79
|
-
- lib/
|
320
|
+
- lib/decidim/devise_failure_app.rb
|
321
|
+
- lib/decidim/form_builder.rb
|
322
|
+
- lib/decidim/translatable_attributes.rb
|
323
|
+
- lib/devise/models/decidim_validatable.rb
|
80
324
|
- lib/tasks/decidim_tasks.rake
|
325
|
+
- lib/tasks/factory_girl.rake
|
81
326
|
homepage: ''
|
82
327
|
licenses:
|
83
328
|
- MIT
|
@@ -1,62 +0,0 @@
|
|
1
|
-
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
2
|
-
|
3
|
-
en:
|
4
|
-
devise:
|
5
|
-
confirmations:
|
6
|
-
confirmed: "Your email address has been successfully confirmed."
|
7
|
-
send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
|
8
|
-
send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes."
|
9
|
-
failure:
|
10
|
-
already_authenticated: "You are already signed in."
|
11
|
-
inactive: "Your account is not activated yet."
|
12
|
-
invalid: "Invalid %{authentication_keys} or password."
|
13
|
-
locked: "Your account is locked."
|
14
|
-
last_attempt: "You have one more attempt before your account is locked."
|
15
|
-
not_found_in_database: "Invalid %{authentication_keys} or password."
|
16
|
-
timeout: "Your session expired. Please sign in again to continue."
|
17
|
-
unauthenticated: "You need to sign in or sign up before continuing."
|
18
|
-
unconfirmed: "You have to confirm your email address before continuing."
|
19
|
-
mailer:
|
20
|
-
confirmation_instructions:
|
21
|
-
subject: "Confirmation instructions"
|
22
|
-
reset_password_instructions:
|
23
|
-
subject: "Reset password instructions"
|
24
|
-
unlock_instructions:
|
25
|
-
subject: "Unlock instructions"
|
26
|
-
password_change:
|
27
|
-
subject: "Password Changed"
|
28
|
-
omniauth_callbacks:
|
29
|
-
failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
|
30
|
-
success: "Successfully authenticated from %{kind} account."
|
31
|
-
passwords:
|
32
|
-
no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
|
33
|
-
send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
|
34
|
-
send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
|
35
|
-
updated: "Your password has been changed successfully. You are now signed in."
|
36
|
-
updated_not_active: "Your password has been changed successfully."
|
37
|
-
registrations:
|
38
|
-
destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
|
39
|
-
signed_up: "Welcome! You have signed up successfully."
|
40
|
-
signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
|
41
|
-
signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
|
42
|
-
signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
|
43
|
-
update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address."
|
44
|
-
updated: "Your account has been updated successfully."
|
45
|
-
sessions:
|
46
|
-
signed_in: "Signed in successfully."
|
47
|
-
signed_out: "Signed out successfully."
|
48
|
-
already_signed_out: "Signed out successfully."
|
49
|
-
unlocks:
|
50
|
-
send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
|
51
|
-
send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
|
52
|
-
unlocked: "Your account has been unlocked successfully. Please sign in to continue."
|
53
|
-
errors:
|
54
|
-
messages:
|
55
|
-
already_confirmed: "was already confirmed, please try signing in"
|
56
|
-
confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
|
57
|
-
expired: "has expired, please request a new one"
|
58
|
-
not_found: "not found"
|
59
|
-
not_locked: "was not locked"
|
60
|
-
not_saved:
|
61
|
-
one: "1 error prohibited this %{resource} from being saved:"
|
62
|
-
other: "%{count} errors prohibited this %{resource} from being saved:"
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
require_relative "../../../../decidim-core/lib/generators/decidim/dummy_generator"
|
3
|
-
|
4
|
-
desc "Generates a dummy app for testing"
|
5
|
-
namespace :common do
|
6
|
-
task :test_app do |_t, _args|
|
7
|
-
Decidim::Generators::DummyGenerator.start [
|
8
|
-
"--lib_name=#{ENV["LIB_NAME"]}",
|
9
|
-
"--migrate=true",
|
10
|
-
"--quiet"
|
11
|
-
]
|
12
|
-
end
|
13
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
require "rails/generators"
|
3
|
-
require_relative "../../../../lib/generators/decidim/app_generator"
|
4
|
-
|
5
|
-
module Decidim
|
6
|
-
module Generators
|
7
|
-
# Generates a dummy test Rails app for the given library folder. It uses
|
8
|
-
# the `AppGenerator` class to actually generate the Rails app, so this
|
9
|
-
# generator only sets the path and some flags.
|
10
|
-
#
|
11
|
-
# The Rails app will be installed with some flags to disable git, tests,
|
12
|
-
# Gemfile and other options. Refer to the `create_dummy_app` method to see
|
13
|
-
# all the flags passed to the `AppGenerator` class, which is the one that
|
14
|
-
# actually generates the Rails app.
|
15
|
-
#
|
16
|
-
# Remember that, for how generators work, actions are executed based on the
|
17
|
-
# definition order of the public methods.
|
18
|
-
class DummyGenerator < Rails::Generators::Base
|
19
|
-
desc "Generate dummy app for testing purposes"
|
20
|
-
|
21
|
-
class_option :lib_name, type: :string,
|
22
|
-
desc: "The library where the dummy app will be installed"
|
23
|
-
|
24
|
-
class_option :migrate, type: :boolean, default: false,
|
25
|
-
desc: "Run migrations after installing decidim"
|
26
|
-
|
27
|
-
def cleanup
|
28
|
-
remove_directory_if_exists(dummy_path)
|
29
|
-
end
|
30
|
-
|
31
|
-
def create_dummy_app
|
32
|
-
Decidim::Generators::AppGenerator.start [
|
33
|
-
dummy_path,
|
34
|
-
"--skip_gemfile",
|
35
|
-
"--skip-bundle",
|
36
|
-
"--skip-git",
|
37
|
-
"--skip-keeps",
|
38
|
-
"--skip-test",
|
39
|
-
"--migrate=#{options[:migrate]}"
|
40
|
-
]
|
41
|
-
end
|
42
|
-
|
43
|
-
private
|
44
|
-
|
45
|
-
def dummy_path
|
46
|
-
ENV["DUMMY_PATH"] || "spec/#{short_lib_name}_dummy"
|
47
|
-
end
|
48
|
-
|
49
|
-
def remove_directory_if_exists(path)
|
50
|
-
remove_dir(path) if File.directory?(path)
|
51
|
-
end
|
52
|
-
|
53
|
-
def short_lib_name
|
54
|
-
options[:lib_name].split("/").last
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|