lib/gemsmith/skeletons/rails_skeleton.rb in gemsmith-4.3.0 vs lib/gemsmith/skeletons/rails_skeleton.rb in gemsmith-5.0.0
- old
+ new
@@ -1,9 +1,12 @@
module Gemsmith
module Skeletons
class RailsSkeleton < BaseSkeleton
def create_engine
- system "rails plugin new #{template_options.fetch :gem_name} #{engine_options}"
+ gem_name = template_options.fetch :gem_name
+ system "rails plugin new #{gem_name} #{engine_options}"
+ remove_file "#{gem_name}/MIT-LICENSE", template_options
+ remove_file "#{gem_name}/README.rdoc", template_options
end
def create_generator_files
empty_directory "#{generator_root}/templates"
template "#{generator_root}/install/install_generator.rb.tt", template_options