decidim-generators 0.13.1 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +138 -140
- data/exe/decidim +14 -1
- data/lib/decidim/generators/app_generator.rb +4 -0
- data/lib/decidim/generators/app_templates/LICENSE-AGPLv3.txt +661 -0
- data/lib/decidim/generators/app_templates/README.md.erb +1 -1
- data/lib/decidim/generators/app_templates/database.yml.erb +2 -1
- data/lib/decidim/generators/app_templates/dummy_authorization_handler.rb +1 -1
- data/lib/decidim/generators/app_templates/verifications_initializer.rb +1 -1
- data/lib/decidim/generators/component_generator.rb +1 -0
- data/lib/decidim/generators/component_templates/Gemfile.erb +1 -1
- data/lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb +1 -0
- data/lib/decidim/generators/install_generator.rb +2 -13
- data/lib/decidim/generators/version.rb +1 -1
- metadata +6 -5
@@ -1,6 +1,6 @@
|
|
1
1
|
# <%= app_name %>
|
2
2
|
|
3
|
-
|
3
|
+
Free Open-Source participatory democracy, citizen participation and open government for cities and organizations
|
4
4
|
|
5
5
|
This is the open-source repository for <%= app_name %>, based on [Decidim](https://github.com/decidim/decidim).
|
6
6
|
|
@@ -72,7 +72,7 @@ class DummyAuthorizationHandler < Decidim::AuthorizationHandler
|
|
72
72
|
# If you need custom authorization logic, you can implement your own action
|
73
73
|
# authorizer. In this case, it allows to set a list of valid postal codes for
|
74
74
|
# an authorization.
|
75
|
-
class
|
75
|
+
class DummyActionAuthorizer < Decidim::Verifications::DefaultActionAuthorizer
|
76
76
|
attr_reader :allowed_postal_codes
|
77
77
|
|
78
78
|
# Overrides the parent class method, but it still uses it to keep the base behavior
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Decidim::Verifications.register_workflow(:dummy_authorization_handler) do |workflow|
|
4
4
|
workflow.form = "DummyAuthorizationHandler"
|
5
|
-
workflow.action_authorizer = "DummyAuthorizationHandler::
|
5
|
+
workflow.action_authorizer = "DummyAuthorizationHandler::DummyActionAuthorizer"
|
6
6
|
workflow.expires_in = 1.hour
|
7
7
|
|
8
8
|
workflow.options do |options|
|
@@ -28,6 +28,7 @@ module Decidim
|
|
28
28
|
template "decidim-component.gemspec.erb", "#{component_folder}/decidim-#{component_name}.gemspec"
|
29
29
|
template "Gemfile.erb", "#{component_folder}/Gemfile" if options[:external]
|
30
30
|
template "Rakefile", "#{component_folder}/Rakefile"
|
31
|
+
template "LICENSE-AGPLv3.txt", "#{component_folder}/LICENSE-AGPLv3.txt"
|
31
32
|
template "README.md.erb", "#{component_folder}/README.md"
|
32
33
|
template ".gitignore", "#{component_folder}/.gitignore"
|
33
34
|
template ".circleci/config.yml", "#{component_folder}/.circleci/config.yml"
|
@@ -130,19 +130,8 @@ module Decidim
|
|
130
130
|
def recreate_db
|
131
131
|
soft_rails "db:environment:set", "db:drop"
|
132
132
|
rails "db:create"
|
133
|
-
|
134
|
-
|
135
|
-
# yet fully populated schemas (which could break commands which load
|
136
|
-
# migrations and seeds in the same process, such as `rails db:migrate
|
137
|
-
# db:seed`), we make sure to run them in the same process if seeds are
|
138
|
-
# requested so that we can catch these situations earlier than end
|
139
|
-
# users.
|
140
|
-
if options[:seed_db]
|
141
|
-
rails "db:migrate", "db:seed"
|
142
|
-
else
|
143
|
-
rails "db:migrate"
|
144
|
-
end
|
145
|
-
|
133
|
+
rails "db:migrate"
|
134
|
+
rails "db:seed" if options[:seed_db]
|
146
135
|
rails "db:test:prepare"
|
147
136
|
end
|
148
137
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-09-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.14.1
|
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.14.1
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: bundler
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- exe/decidim
|
58
58
|
- lib/decidim/generators/app_generator.rb
|
59
59
|
- lib/decidim/generators/app_templates/Dockerfile.erb
|
60
|
+
- lib/decidim/generators/app_templates/LICENSE-AGPLv3.txt
|
60
61
|
- lib/decidim/generators/app_templates/README.md.erb
|
61
62
|
- lib/decidim/generators/app_templates/another_dummy_authorization_handler.rb
|
62
63
|
- lib/decidim/generators/app_templates/cable.yml.erb
|
@@ -116,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
117
|
version: '0'
|
117
118
|
requirements: []
|
118
119
|
rubyforge_project:
|
119
|
-
rubygems_version: 2.7.
|
120
|
+
rubygems_version: 2.7.7
|
120
121
|
signing_key:
|
121
122
|
specification_version: 4
|
122
123
|
summary: Citizen participation framework for Ruby on Rails.
|