app_generators/newgem/newgem_generator.rb in newgem-1.4.1 vs app_generators/newgem/newgem_generator.rb in newgem-1.5.0
- old
+ new
@@ -20,11 +20,11 @@
attr_reader :version, :version_str, :author, :email, :project_url
# extensions/option
attr_reader :test_framework
attr_reader :bin_names_list
- attr_reader :enable_website
+ attr_reader :enable_website, :enable_cucumber
attr_reader :manifest
attr_reader :is_jruby
def initialize(runtime_args, runtime_options = {})
super(config_args_and_runtime_args(runtime_args), runtime_options)
@@ -164,10 +164,11 @@
@enable_website = options[:enable_website]
@test_framework = options[:test_framework] || "test_unit"
@is_jruby = options[:jruby]
@project_name = options[:project] if options.include?(:project)
@install_generators = options[:install] || []
+ @enable_cucumber = @install_generators.include?('cucumber')
end
# first attempt to merge config args (single string) and runtime args
def config_args_and_runtime_args(runtime_args)
newgem_config = File.expand_path(File.join(ENV['HOME'], '.newgem.yml'))
@@ -181,11 +182,9 @@
end
# Installation skeleton. Intermediate directories are automatically
# created so don't sweat their absence here.
BASEDIRS = %w(
- doc
lib
script
- tasks
)
end