decidim-generators 0.11.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +26 -0
  3. data/Gemfile.lock +671 -0
  4. data/README.md +76 -0
  5. data/Rakefile +32 -0
  6. data/exe/decidim +14 -0
  7. data/lib/decidim/generators/app_generator.rb +161 -0
  8. data/lib/decidim/generators/app_templates/Dockerfile.erb +1 -0
  9. data/lib/decidim/generators/app_templates/README.md.erb +22 -0
  10. data/lib/decidim/generators/app_templates/cable.yml.erb +9 -0
  11. data/lib/decidim/generators/app_templates/carrierwave.rb +28 -0
  12. data/lib/decidim/generators/app_templates/database.yml.erb +87 -0
  13. data/lib/decidim/generators/app_templates/decidim.scss.erb +3 -0
  14. data/lib/decidim/generators/app_templates/decidim_controller.rb.erb +5 -0
  15. data/lib/decidim/generators/app_templates/docker-compose.yml.erb +26 -0
  16. data/lib/decidim/generators/app_templates/example_authorization_handler.rb +55 -0
  17. data/lib/decidim/generators/app_templates/initializer.rb +47 -0
  18. data/lib/decidim/generators/app_templates/secrets.yml.erb +61 -0
  19. data/lib/decidim/generators/app_templates/social_share_button.rb +8 -0
  20. data/lib/decidim/generators/component_generator.rb +74 -0
  21. data/lib/decidim/generators/component_templates/Gemfile.erb +26 -0
  22. data/lib/decidim/generators/component_templates/LICENSE-AGPLv3.txt +661 -0
  23. data/lib/decidim/generators/component_templates/README.md.erb +30 -0
  24. data/lib/decidim/generators/component_templates/Rakefile +9 -0
  25. data/lib/decidim/generators/component_templates/app/assets/config/component_manifest.js +0 -0
  26. data/lib/decidim/generators/component_templates/app/assets/images/decidim/component/icon.svg +1 -0
  27. data/lib/decidim/generators/component_templates/app/controllers/decidim/component/admin/application_controller.rb.erb +15 -0
  28. data/lib/decidim/generators/component_templates/app/controllers/decidim/component/application_controller.rb.erb +13 -0
  29. data/lib/decidim/generators/component_templates/app/helpers/decidim/component/application_helper.rb.erb +10 -0
  30. data/lib/decidim/generators/component_templates/app/models/decidim/component/abilities/admin/admin_ability.rb.erb +17 -0
  31. data/lib/decidim/generators/component_templates/app/models/decidim/component/abilities/current_user_ability.rb.erb +47 -0
  32. data/lib/decidim/generators/component_templates/app/models/decidim/component/application_record.rb.erb +10 -0
  33. data/lib/decidim/generators/component_templates/bin/rails.erb +20 -0
  34. data/lib/decidim/generators/component_templates/config/i18n-tasks.yml.erb +10 -0
  35. data/lib/decidim/generators/component_templates/config/locales/en.yml.erb +6 -0
  36. data/lib/decidim/generators/component_templates/decidim-component.gemspec.erb +22 -0
  37. data/lib/decidim/generators/component_templates/lib/decidim/component.rb.erb +13 -0
  38. data/lib/decidim/generators/component_templates/lib/decidim/component/admin.rb.erb +10 -0
  39. data/lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb +32 -0
  40. data/lib/decidim/generators/component_templates/lib/decidim/component/component.rb.erb +40 -0
  41. data/lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb +29 -0
  42. data/lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb +13 -0
  43. data/lib/decidim/generators/component_templates/lib/decidim/component/version.rb.erb +10 -0
  44. data/lib/decidim/generators/component_templates/spec/factories.rb.erb +3 -0
  45. data/lib/decidim/generators/component_templates/spec/spec_helper.rb.erb +13 -0
  46. data/lib/decidim/generators/install_generator.rb +170 -0
  47. data/lib/decidim/generators/version.rb +10 -0
  48. metadata +123 -0
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This holds the decidim generators version.
4
+ module Decidim
5
+ module Generators
6
+ def self.version
7
+ "0.11.0.pre1"
8
+ end
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,123 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: decidim-generators
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.11.0.pre1
5
+ platform: ruby
6
+ authors:
7
+ - Josep Jaume Rey Peroy
8
+ - Marc Riera Casals
9
+ - Oriol Gual Oliva
10
+ autorequire:
11
+ bindir: exe
12
+ cert_chain: []
13
+ date: 2018-04-26 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: decidim-core
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - '='
20
+ - !ruby/object:Gem::Version
21
+ version: 0.11.0.pre1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - '='
27
+ - !ruby/object:Gem::Version
28
+ version: 0.11.0.pre1
29
+ - !ruby/object:Gem::Dependency
30
+ name: bundler
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - "~>"
34
+ - !ruby/object:Gem::Version
35
+ version: '1.12'
36
+ type: :development
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '1.12'
43
+ description: A generator and multiple gems made with Ruby on Rails.
44
+ email:
45
+ - josepjaume@gmail.com
46
+ - mrc2407@gmail.com
47
+ - oriolgual@gmail.com
48
+ executables:
49
+ - decidim
50
+ extensions: []
51
+ extra_rdoc_files: []
52
+ files:
53
+ - Gemfile
54
+ - Gemfile.lock
55
+ - README.md
56
+ - Rakefile
57
+ - exe/decidim
58
+ - lib/decidim/generators/app_generator.rb
59
+ - lib/decidim/generators/app_templates/Dockerfile.erb
60
+ - lib/decidim/generators/app_templates/README.md.erb
61
+ - lib/decidim/generators/app_templates/cable.yml.erb
62
+ - lib/decidim/generators/app_templates/carrierwave.rb
63
+ - lib/decidim/generators/app_templates/database.yml.erb
64
+ - lib/decidim/generators/app_templates/decidim.scss.erb
65
+ - lib/decidim/generators/app_templates/decidim_controller.rb.erb
66
+ - lib/decidim/generators/app_templates/docker-compose.yml.erb
67
+ - lib/decidim/generators/app_templates/example_authorization_handler.rb
68
+ - lib/decidim/generators/app_templates/initializer.rb
69
+ - lib/decidim/generators/app_templates/secrets.yml.erb
70
+ - lib/decidim/generators/app_templates/social_share_button.rb
71
+ - lib/decidim/generators/component_generator.rb
72
+ - lib/decidim/generators/component_templates/Gemfile.erb
73
+ - lib/decidim/generators/component_templates/LICENSE-AGPLv3.txt
74
+ - lib/decidim/generators/component_templates/README.md.erb
75
+ - lib/decidim/generators/component_templates/Rakefile
76
+ - lib/decidim/generators/component_templates/app/assets/config/component_manifest.js
77
+ - lib/decidim/generators/component_templates/app/assets/images/decidim/component/icon.svg
78
+ - lib/decidim/generators/component_templates/app/controllers/decidim/component/admin/application_controller.rb.erb
79
+ - lib/decidim/generators/component_templates/app/controllers/decidim/component/application_controller.rb.erb
80
+ - lib/decidim/generators/component_templates/app/helpers/decidim/component/application_helper.rb.erb
81
+ - lib/decidim/generators/component_templates/app/models/decidim/component/abilities/admin/admin_ability.rb.erb
82
+ - lib/decidim/generators/component_templates/app/models/decidim/component/abilities/current_user_ability.rb.erb
83
+ - lib/decidim/generators/component_templates/app/models/decidim/component/application_record.rb.erb
84
+ - lib/decidim/generators/component_templates/bin/rails.erb
85
+ - lib/decidim/generators/component_templates/config/i18n-tasks.yml.erb
86
+ - lib/decidim/generators/component_templates/config/locales/en.yml.erb
87
+ - lib/decidim/generators/component_templates/decidim-component.gemspec.erb
88
+ - lib/decidim/generators/component_templates/lib/decidim/component.rb.erb
89
+ - lib/decidim/generators/component_templates/lib/decidim/component/admin.rb.erb
90
+ - lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
91
+ - lib/decidim/generators/component_templates/lib/decidim/component/component.rb.erb
92
+ - lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
93
+ - lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
94
+ - lib/decidim/generators/component_templates/lib/decidim/component/version.rb.erb
95
+ - lib/decidim/generators/component_templates/spec/factories.rb.erb
96
+ - lib/decidim/generators/component_templates/spec/spec_helper.rb.erb
97
+ - lib/decidim/generators/install_generator.rb
98
+ - lib/decidim/generators/version.rb
99
+ homepage: https://github.com/decidim/decidim
100
+ licenses:
101
+ - AGPL-3.0
102
+ metadata: {}
103
+ post_install_message:
104
+ rdoc_options: []
105
+ require_paths:
106
+ - lib
107
+ required_ruby_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '2.3'
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">"
115
+ - !ruby/object:Gem::Version
116
+ version: 1.3.1
117
+ requirements: []
118
+ rubyforge_project:
119
+ rubygems_version: 2.7.3
120
+ signing_key:
121
+ specification_version: 4
122
+ summary: Citizen participation framework for Ruby on Rails.
123
+ test_files: []