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.
@@ -1,6 +1,6 @@
1
1
  # <%= app_name %>
2
2
 
3
- Citizen Participation and Open Government application.
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
 
@@ -82,6 +82,7 @@ test:
82
82
  #
83
83
  # production:
84
84
  # url: <%%= ENV['DATABASE_URL'] %>
85
- #
85
+
86
86
  production:
87
+ <<: *default
87
88
  url: <%%= ENV['DATABASE_URL'] %>
@@ -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 ActionAuthorizer < Decidim::Verifications::DefaultActionAuthorizer
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::ActionAuthorizer"
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"
@@ -17,7 +17,7 @@ group :development, :test do
17
17
  end
18
18
 
19
19
  group :development do
20
- gem "faker", "~> 1.8"
20
+ gem "faker", "~> 1.9"
21
21
  gem "letter_opener_web", "~> 1.3"
22
22
  gem "listen", "~> 3.1"
23
23
  gem "spring", "~> 2.0"
@@ -7,6 +7,7 @@ module Decidim
7
7
  isolate_namespace Decidim::<%= component_module_name %>::Admin
8
8
 
9
9
  paths["db/migrate"] = nil
10
+ paths["lib/tasks"] = nil
10
11
 
11
12
  routes do
12
13
  # Add admin engine routes here
@@ -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
- # In order to ensure that migrations don't eager load models with not
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
 
@@ -4,7 +4,7 @@
4
4
  module Decidim
5
5
  module Generators
6
6
  def self.version
7
- "0.13.1"
7
+ "0.14.1"
8
8
  end
9
9
  end
10
10
  end
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.13.1
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-07-24 00:00:00.000000000 Z
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.13.1
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.13.1
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.6
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.