rails_app_generator 0.1.28 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,158 +5,6 @@
5
5
  module RailsAppGenerator
6
6
  # AppGenerator is a wrapper for Rails::AppGenerator
7
7
  class AppGenerator < Rails::Generators::AppGenerator
8
- class_option :test , type: :string , default: 'rspec'
9
-
10
- # Gem Current Latest Requested Groups
11
- # aws-sdk
12
- # capistrano-bundler 1.6.0 2.1.0 ~> 1.2 development, test
13
- # capybara 3.33.0 3.37.1 = 3.33.0 development, test
14
- # clamby 1.6.6 1.6.8 = 1.6.6 default
15
- # createsend 5.1.1 6.0.0 ~> 5.1 default
16
- # database_cleaner 1.7.0 2.0.1 = 1.7.0 development, test
17
- # erubi 1.10.0 1.11.0
18
- # factory_bot 5.2.0 6.2.1
19
- # factory_bot_rails 5.2.0 6.2.0 = 5.2.0 development, test
20
- # guard-bundler 2.2.1 3.0.0 = 2.2.1 development, test
21
- # guard-rubocop 1.4.0 1.5.0 = 1.4.0 development, test
22
- # http-accept 1.7.0 2.2.0
23
- # net-ssh 6.1.0 7.0.1
24
- # oauth2 1.4.10 2.0.6
25
- # omniauth-oauth2 1.7.3 1.8.0
26
- # paper_trail 10.3.1 12.3.0 ~> 10.3 default
27
- # pg 0.21.0 1.4.2 ~> 0.20 default
28
- # pg_search 2.3.0 2.3.6 ~> 2.0 default
29
- # pry 0.13.1 0.14.1
30
- # public_suffix 2.0.5 5.0.0 ~> 2.0 default
31
- # pusher 1.4.3 2.0.2 ~> 1.3 default
32
- # rack-mini-profiler 0.10.7 3.0.0 ~> 0.10 default
33
- # rack-test 0.6.3 2.0.2
34
- # rails 5.0.7.2 7.0.3.1 = 5.0.7.2 default
35
- # railties 5.0.7.2 7.0.3.1
36
- # ransack 1.8.10 3.2.1 ~> 1.8 default
37
- # redis 3.3.5 4.7.1 ~> 3.3 default
38
- # redis-store 1.6.0 1.9.1
39
- # regexp_parser 1.8.2 2.5.0
40
- # rspec 3.10.0 3.11.0
41
- # rspec-core 3.10.1 3.11.0 = 3.10.1 development, test
42
- # rspec-expectations 3.10.1 3.11.0 = 3.10.1 development, test
43
- # rspec-mocks 3.10.2 3.11.1 = 3.10.2 development, test
44
- # rspec-rails 4.1.2 5.1.2 = 4.1.2 development, test
45
- # rspec-support 3.10.2 3.11.0 = 3.10.2 development, test
46
- # rubyzip 1.3.0 2.3.2 ~> 1.3 default
47
- # scenic 1.5.4 1.6.0 = 1.5.4 default
48
- # scout_apm 4.1.2 5.2.0 ~> 4.1 default
49
- # selenium-webdriver 3.142.7 4.3.0 = 3.142.7 development, test
50
- # shoulda-matchers 4.0.1 5.1.0 = 4.0.1 development, test
51
- # sidekiq 4.2.10 6.5.1 ~> 4.2 default
52
- # sidekiq-pool 1.9.3 2.0.1 ~> 1.8 default
53
- # sidekiq-unique-jobs 6.0.25 7.1.27 ~> 6.0 default
54
- # spring 2.1.1 4.0.0 ~> 2.0 development, test
55
- # sprockets 3.7.2 4.1.1 ~> 3.7 default
56
- # sprockets-rails 3.2.2 3.4.2
57
- # timecop 0.8.1 0.9.5 = 0.8.1 development, test
58
- # tzinfo 1.2.10 2.0.5
59
- # uglifier 3.2.0 4.2.0 ~> 3.2 default
60
- # unicorn 5.8.0 6.1.0 ~> 5.3 default
61
- # webmock 3.13.0 3.16.0 = 3.13.0 development, test
62
- # websocket-driver 0.6.5 0.7.5
63
-
64
- # acts_as_list 0.9.19 1.0.4 ~> 0.9 default
65
- # arel 7.1.4 9.0.0
66
- # bigdecimal 1.4.4 3.1.2 ~> 1.4 development, test
67
- # binding_of_caller 0.8.0 1.0.0 ~> 0.8 default
68
- # browser 2.7.1 5.3.1 ~> 2.3 default
69
- # capistrano-bundler 1.6.0 2.1.0 ~> 1.2 development, test
70
- # capybara 3.33.0 3.37.1 = 3.33.0 development, test
71
- # chartkick 2.3.5 4.2.0 ~> 2.3 default
72
- # childprocess 3.0.0 4.1.0
73
- # clamby 1.6.6 1.6.8 = 1.6.6 default
74
- # createsend 5.1.1 6.0.0 ~> 5.1 default
75
- # database_cleaner 1.7.0 2.0.1 = 1.7.0 development, test
76
- # factory_bot 5.2.0 6.2.1
77
- # factory_bot_rails 5.2.0 6.2.0 = 5.2.0 development, test
78
- # faker 1.9.6 2.22.0 ~> 1.7 default
79
- # groupdate 4.3.0 6.1.0 ~> 4.1 default
80
- # guard-bundler 2.2.1 3.0.0 = 2.2.1 development, test
81
- # guard-rubocop 1.4.0 1.5.0 = 1.4.0 development, test
82
- # hashie 3.6.0 5.0.0
83
- # http-accept 1.7.0 2.1.1
84
- # k_log 0.0.18 0.0.33 = 0.0.18 development, test
85
- # net-ssh 6.1.0 7.0.1
86
- # oauth2 1.4.10 2.0.6
87
- # omniauth-oauth2 1.7.3 1.8.0
88
- # paper_trail 10.3.1 12.3.0 ~> 10.3 default
89
- # pg 0.21.0 1.4.2 ~> 0.20 default
90
- # pg_search 2.3.0 2.3.6 ~> 2.0 default
91
- # pry 0.13.1 0.14.1
92
- # public_suffix 2.0.5 5.0.0 ~> 2.0 default
93
- # pusher 1.4.3 2.0.2 ~> 1.3 default
94
- # rack-mini-profiler 0.10.7 3.0.0 ~> 0.10 default
95
- # rack-test 0.6.3 2.0.2
96
- # rails 5.0.7.2 7.0.3.1 = 5.0.7.2 default
97
- # railties 5.0.7.2 7.0.3.1
98
- # ransack 1.8.10 3.2.1 ~> 1.8 default
99
- # redis 3.3.5 4.7.1 ~> 3.3 default
100
- # redis-store 1.6.0 1.9.1
101
- # regexp_parser 1.8.2 2.5.0
102
- # rspec 3.10.0 3.11.0
103
- # rspec-core 3.10.1 3.11.0 = 3.10.1 development, test
104
- # rspec-expectations 3.10.1 3.11.0 = 3.10.1 development, test
105
- # rspec-mocks 3.10.2 3.11.1 = 3.10.2 development, test
106
- # rspec-rails 4.1.2 5.1.2 = 4.1.2 development, test
107
- # rspec-support 3.10.2 3.11.0 = 3.10.2 development, test
108
- # rubyzip 1.3.0 2.3.2 ~> 1.3 default
109
- # scenic 1.5.4 1.6.0 = 1.5.4 default
110
- # scout_apm 4.1.2 5.2.0 ~> 4.1 default
111
- # selenium-webdriver 3.142.7 4.3.0 = 3.142.7 development, test
112
- # shoulda-matchers 4.0.1 5.1.0 = 4.0.1 development, test
113
- # sidekiq 4.2.10 6.5.1 ~> 4.2 default
114
- # sidekiq-pool 1.9.3 2.0.1 ~> 1.8 default
115
- # sidekiq-unique-jobs 6.0.25 7.1.27 ~> 6.0 default
116
- # spring 2.1.1 4.0.0 ~> 2.0 development, test
117
- # sprockets 3.7.2 4.1.1 ~> 3.7 default
118
- # sprockets-rails 3.2.2 3.4.2
119
- # timecop 0.8.1 0.9.5 = 0.8.1 development, test
120
- # tzinfo 1.2.10 2.0.5
121
- # uglifier 3.2.0 4.2.0 ~> 3.2 default
122
- # unicorn 5.8.0 6.1.0 ~> 5.3 default
123
- # webmock 3.13.0 3.14.0 = 3.13.0 development, test
124
- # websocket-driver 0.6.5 0.7.5
125
-
126
- class_option :add_irbrc , type: :boolean, default: false
127
- class_option :add_foreman , type: :boolean, default: false
128
- class_option :add_devise , type: :boolean, default: false
129
- class_option :add_dotenv , type: :boolean, default: false
130
- class_option :add_docker , type: :boolean, default: false
131
- class_option :add_docker_compose , type: :boolean, default: false
132
- class_option :add_rubocop , type: :boolean, default: false
133
- class_option :add_annotate , type: :boolean, default: false
134
- class_option :add_continuous_integration , type: :boolean, default: false
135
- class_option :add_high_voltage , type: :boolean, default: false
136
- class_option :add_generators , type: :boolean, default: false
137
- class_option :add_lograge , type: :boolean, default: false
138
- class_option :add_pundit , type: :boolean, default: false
139
- class_option :add_services , type: :boolean, default: false
140
- class_option :add_sidekiq , type: :boolean, default: false
141
- class_option :add_views , type: :boolean, default: false
142
- class_option :add_errors , type: :boolean, default: false
143
- class_option :add_scaffold , type: :boolean, default: false
144
- class_option :add_factory_bot , type: :boolean, default: false
145
- class_option :add_shoulda , type: :boolean, default: false
146
-
147
- # NEW GEM ADDONS
148
- class_option :add_acts_as_list , type: :boolean, default: false
149
- class_option :add_browser , type: :boolean, default: false
150
- class_option :add_chartkick , type: :boolean, default: false
151
- class_option :add_faker , type: :boolean, default: false
152
- class_option :add_groupdate , type: :boolean, default: false
153
- class_option :add_hexapdf , type: :boolean, default: false
154
- class_option :add_httparty , type: :boolean, default: false
155
- class_option :add_honeybadger , type: :boolean, default: false
156
- class_option :add_mini_magick , type: :boolean, default: false
157
- class_option :add_rails_html_sanitizer , type: :boolean, default: false
158
- class_option :add_twilio_ruby , type: :boolean, default: false
159
-
160
8
  class << self
161
9
  # points to the original rails templates
162
10
  attr_writer :rails_template_path
@@ -179,6 +27,35 @@ module RailsAppGenerator
179
27
  @addon_template_path ||= gem_template_path('rails_app_generator', 'templates/addons/%<addon>s')
180
28
  end
181
29
 
30
+ def add_class_option(option)
31
+ find_name = option.name.to_s
32
+ existing_option = class_options.find { |class_option| class_option[1].name == find_name }
33
+
34
+ return if existing_option
35
+
36
+ args = {
37
+ type: option.type,
38
+ default: option.default,
39
+ required: option.required
40
+ }
41
+
42
+ # for some reason, Railties uses :desc while thor uses :description and thor has nice humanization when key is missing
43
+ args[:desc] = option.description unless option.description
44
+
45
+ class_option(option.name, **args)
46
+ end
47
+
48
+ def to_h
49
+ thor_options = class_options.map { |o| o[1] }
50
+ options_hash = RailsAppGenerator::Util.thor_options_to_hash(thor_options)
51
+
52
+ # class_options_detailed: options_hash,
53
+ {
54
+ class_option_keys: options_hash.map { |option| option[:name] },
55
+ class_options: options_hash.map { |option| option.slice(:name, :description, :type, :default, :required) }
56
+ }
57
+ end
58
+
182
59
  private
183
60
 
184
61
  def gem_template_path(gem_name, template_path)
@@ -202,16 +79,11 @@ module RailsAppGenerator
202
79
 
203
80
  attr_reader :addon_instances
204
81
 
205
- # attr_reader :before_bundle_addon_callbacks
206
- # attr_reader :after_bundle_addon_callbacks
207
-
208
82
  def initialize(*args)
209
83
  super
210
84
 
211
85
  @force_copy = false
212
86
  @addon_instances = []
213
- # @before_bundle_addon_callbacks = []
214
- # @after_bundle_addon_callbacks = []
215
87
 
216
88
  # puts '----------------------------------------------------'
217
89
  # puts options
@@ -271,6 +143,8 @@ module RailsAppGenerator
271
143
  # end
272
144
 
273
145
  def create_root_files
146
+ RailsAppGenerator::Util.write_last_run('app_generator_data.json', to_h)
147
+
274
148
  super
275
149
 
276
150
  add_if(:irbrc)
@@ -331,6 +205,12 @@ module RailsAppGenerator
331
205
  end
332
206
 
333
207
  no_commands do
208
+ def to_h
209
+ {
210
+ options: options
211
+ }
212
+ end
213
+
334
214
  # https://codingpackets.com/blog/rails-generators-cheat-sheet/
335
215
 
336
216
  # OLD style will be removed soon
@@ -26,7 +26,9 @@ module RailsAppGenerator
26
26
  args = profile[:args]
27
27
  opts = RailsAppGenerator::RailsOptions.new(profile[:opts])
28
28
 
29
- starter = RailsAppGenerator::Starter.new(args)
29
+ RailsAppGenerator::Util.write_last_run('rails_options_data.json', opts.to_h)
30
+
31
+ starter = RailsAppGenerator::Starter.new(args)
30
32
 
31
33
  starter.delete_target_folder
32
34
  starter.start(opts)
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RailsAppGenerator
4
+ # Structure for storing Rails Application Generator configuration
5
+ class RagConfiguration
6
+ # include KLog::Logging
7
+
8
+ attr_reader :options
9
+
10
+ def initialize
11
+ @options = []
12
+ end
13
+
14
+ def add_option(name, **args)
15
+ @options << RailsAppGenerator::BuildOption.new(name, **args)
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RailsAppGenerator
4
+ # Register this configuration access extension for Rag configuration
5
+ module RagConfigurationExtension
6
+ def rag
7
+ return @rag if defined? @rag
8
+
9
+ @rag = RagConfiguration.new
10
+ end
11
+ end
12
+ end
13
+
14
+ KConfig::Configuration.register(:rag, RailsAppGenerator::RagConfigurationExtension)
@@ -6,17 +6,12 @@ module RailsAppGenerator
6
6
  # This class maps closely (but not exactly) to Thor's options
7
7
  # The pattern is not exactly the same, it is easy to map the options
8
8
  # you need from other generators such as: railties/lib/rails/generators/app_base.rb
9
- #
10
- # @example
11
- # class_option :skip_git, type: :boolean, default: false, desc: "Skip .gitignore file"
12
- # becomes
13
- # register_option :skip_git, type: :boolean, default: false, desc: "Skip .gitignore file"
14
9
  class BuildOption
15
- attr_reader :name, :desc, :type, :default, :required, :mapper
10
+ attr_reader :name, :description, :type, :default, :required, :mapper
16
11
 
17
- def initialize(**args)
18
- @name = args[:name]
19
- @desc = args[:desc] || ''
12
+ def initialize(name, **args)
13
+ @name = name
14
+ @description = args[:description] || ''
20
15
  @type = args[:type] || :string
21
16
  @required = args.fetch(:required, false)
22
17
  @default = args[:default] || sane_default
@@ -27,6 +22,16 @@ module RailsAppGenerator
27
22
 
28
23
  def cmd_option(value); end
29
24
 
25
+ def to_h
26
+ {
27
+ name: name,
28
+ description: description,
29
+ type: type,
30
+ default: default,
31
+ required: required
32
+ }
33
+ end
34
+
30
35
  private
31
36
 
32
37
  def sane_default
@@ -21,34 +21,76 @@ module RailsAppGenerator
21
21
  @class_options_lookup ||= {}
22
22
  end
23
23
 
24
- # Future options are placeholders for options that are not yet implemented
25
- def future_option(name, **args); end
26
-
27
24
  # Register an option with the builder, this method has the same signature as Thor.
28
25
  #
29
26
  # This is so options can be used interchangeably between OptionsBuilder and Thor.
30
27
  def class_option(name, **args)
31
- return if class_options_lookup.key?(name)
28
+ option = BuildOption.new(name, args)
29
+
30
+ add_class_option(option)
31
+ end
32
32
 
33
- option = BuildOption.new(**{ name: name }.merge(args))
33
+ def add_class_option(option)
34
+ if class_options_lookup.key?(option.name)
35
+ # raise ArgumentError, "Option #{option.name} already registered"
36
+ puts "Option #{option.name} already registered"
37
+ return
38
+ end
34
39
 
35
- class_options_lookup[name] = option
40
+ class_options_lookup[option.name.to_sym] = option
36
41
  class_options << option
37
42
  end
38
43
 
44
+ def add_thor_class_option(thor_option)
45
+ args = {
46
+ description: thor_option.description,
47
+ type: thor_option.type,
48
+ default: thor_option.default,
49
+ required: thor_option.required
50
+ }
51
+ option = BuildOption.new(thor_option.name, args)
52
+
53
+ add_class_option(option)
54
+ end
55
+
39
56
  def reset
40
57
  @class_options = nil
41
58
  @class_options_lookup = nil
42
59
  end
60
+
61
+ def to_h
62
+ {
63
+ class_option_keys: class_options.map(&:name),
64
+ class_options: class_options.map(&:to_h)
65
+ }
66
+ end
43
67
  end
44
68
 
69
+ # rubocop:disable Metrics/AbcSize
45
70
  def cmd_line_options
46
- self.class.class_options.map do |option|
71
+ available_options = options.clone
72
+
73
+ result = self.class.class_options.map do |option|
47
74
  mapper = option.mapper
48
- value = options[option.name]
75
+ key = option.name.to_sym
76
+ value = options[key]
77
+ available_options.delete(key)
78
+ # if available_options.delete(option.name.to_sym)
79
+ # puts "option IS registered: #{option.name}"
80
+ # else
81
+ # puts "option not registered: #{option.name}"
82
+ # end
83
+
49
84
  mapper.map(option.name, value)
50
85
  end.reject(&:blank?)
86
+
87
+ return result if available_options.empty?
88
+
89
+ puts "options not registered: #{available_options.keys.join(', ')}"
90
+ result
91
+ # raise 'Unknown options'
51
92
  end
93
+ # rubocop:enable Metrics/AbcSize
52
94
 
53
95
  def debug
54
96
  puts '[ Options JSON ]----------------------------------------------------'
@@ -57,10 +99,16 @@ module RailsAppGenerator
57
99
  puts cmd_line_options
58
100
  end
59
101
 
102
+ def to_h
103
+ {
104
+ options: options
105
+ }
106
+ end
107
+
60
108
  private
61
109
 
62
110
  def default_options
63
- self.class.class_options.to_h { |option| [option.name, option.default] }
111
+ self.class.class_options.to_h { |option| [option.name.to_sym, option.default] }
64
112
  end
65
113
  end
66
114
  end
@@ -2,74 +2,12 @@
2
2
 
3
3
  module RailsAppGenerator
4
4
  class RailsOptions < OptionsBuilder
5
- # NOTE: Currently you need to register new options in two places
6
- # here and in lib/rails_app_generator/app_generator.rb
7
- class_option :template , type: :string # , desc: "Path to some #{name} template (can be a filesystem path or URL)"
8
- future_option :database , type: :string , default: 'sqlite3' # , desc: "Preconfigure for selected database (options: #{DATABASES.join('/')})"
9
- class_option :skip_git , type: :boolean, default: false # , desc: "Skip .gitignore file"
10
- future_option :skip_keeps , type: :boolean, default: false # , desc: "Skip source control .keep files"
11
- future_option :skip_action_mailer , type: :boolean, default: false # , desc: "Skip Action Mailer files"
12
- future_option :skip_action_mailbox , type: :boolean, default: false # , desc: "Skip Action Mailbox gem"
13
- future_option :skip_action_text , type: :boolean, default: false # , desc: "Skip Action Text gem"
14
- future_option :skip_active_record , type: :boolean, default: false # , desc: "Skip Active Record files"
15
- future_option :skip_active_job , type: :boolean, default: false # , desc: "Skip Active Job"
16
- future_option :skip_active_storage , type: :boolean, default: false # , desc: "Skip Active Storage files"
17
- future_option :skip_action_cable , type: :boolean, default: false # , desc: "Skip Action Cable files"
18
- future_option :skip_asset_pipeline , type: :boolean, default: false #
19
- future_option :asset_pipeline , type: :string , default: 'sprockets' # , desc: "Choose your asset pipeline [options: sprockets (default), propshaft]"
20
- future_option :skip_javascript , type: :boolean, default: false # name == 'plugin' # , desc: "Skip JavaScript files"
21
- future_option :skip_hotwire , type: :boolean, default: false # , desc: "Skip Hotwire integration"
22
- future_option :skip_jbuilder , type: :boolean, default: false # , desc: "Skip jbuilder gem"
23
- class_option :skip_test , type: :boolean, default: false # , desc: "Skip test files"
24
- class_option :test , type: :string , default: 'rspec' # , desc: "minitest or rspec (default: rspec)"
25
- future_option :skip_system_test , type: :boolean, default: false # , desc: "Skip system test files"
26
- future_option :skip_bootsnap , type: :boolean, default: false # , desc: "Skip bootsnap gem"
27
- future_option :dev , type: :boolean, default: false # , desc: "Set up the #{name} with Gemfile pointing to your Rails checkout"
28
- future_option :edge , type: :boolean, default: false # , desc: "Set up the #{name} with Gemfile pointing to Rails repository"
29
- future_option :main , type: :boolean, default: false # , desc: "Set up the #{name} with Gemfile pointing to Rails repository main branch"
30
- future_option :rc , type: :string , default: nil # , desc: "Path to file containing extra configuration options for rails command"
31
- future_option :no_rc , type: :boolean, default: false # , desc: "Skip loading of extra configuration options from .railsrc file"
32
- future_option :help , type: :boolean # , group: :rails # , desc: "Show this help message and quit"
33
- future_option :version , type: :boolean # , group: :rails, desc: "Show Rails version number and quit"
34
- future_option :api , type: :boolean # , desc: "Preconfigure smaller stack for API only apps"
35
- future_option :minimal , type: :boolean # , desc: "Preconfigure a minimal rails app"
36
- future_option :javascript , type: :string , default: 'importmap' # , desc: "Choose JavaScript approach [options: importmap (default), webpack, esbuild, rollup]"
37
- class_option :css , type: :string # , desc: "Choose CSS processor [options: tailwind, bootstrap, bulma, postcss, sass... check https://github.com/rails/cssbundling-rails]"
38
- class_option :skip_bundle , type: :boolean, default: false # , desc: "Don't run bundle install"
39
-
40
- class_option :add_irbrc , type: :boolean, default: false
41
- class_option :add_foreman , type: :boolean, default: false
42
- class_option :add_devise , type: :boolean, default: false
43
- class_option :add_dotenv , type: :boolean, default: false
44
- class_option :add_docker , type: :boolean, default: false
45
- class_option :add_docker_compose , type: :boolean, default: false
46
- class_option :add_rubocop , type: :boolean, default: false
47
- class_option :add_annotate , type: :boolean, default: false
48
- class_option :add_continuous_integration , type: :boolean, default: false
49
- class_option :add_high_voltage , type: :boolean, default: false
50
- class_option :add_generators , type: :boolean, default: false
51
- class_option :add_lograge , type: :boolean, default: false
52
- class_option :add_pundit , type: :boolean, default: false
53
- class_option :add_services , type: :boolean, default: false
54
- class_option :add_sidekiq , type: :boolean, default: false
55
- class_option :add_views , type: :boolean, default: false
56
- class_option :add_errors , type: :boolean, default: false
57
- class_option :add_scaffold , type: :boolean, default: false
58
- class_option :add_factory_bot , type: :boolean, default: false
59
- class_option :add_shoulda , type: :boolean, default: false
60
-
61
- # NEW GEM ADDONS
62
- class_option :add_acts_as_list , type: :boolean, default: false
63
- class_option :add_browser , type: :boolean, default: false
64
- class_option :add_chartkick , type: :boolean, default: false
65
- class_option :add_faker , type: :boolean, default: false
66
- class_option :add_groupdate , type: :boolean, default: false
67
- class_option :add_hexapdf , type: :boolean, default: false
68
- class_option :add_httparty , type: :boolean, default: false
69
- class_option :add_honeybadger , type: :boolean, default: false
70
- class_option :add_mini_magick , type: :boolean, default: false
71
- class_option :add_rails_html_sanitizer , type: :boolean, default: false
72
- class_option :add_twilio_ruby , type: :boolean, default: false
5
+ # FIND MORE TEMPLATES HERE
6
+ # https://railsbytes.com/public/templates
7
+ # http://www.railscomposer.com/
8
+ # https://github.com/RailsApps/rails-composer
9
+ # https://github.com/carbonfive/raygun-rails
10
+ # https://github.com/abhaynikam/boring_generators
73
11
 
74
12
  # if options[:minimal]
75
13
  # self.options = options.merge(