lib/gemsmith/skeletons/rails_skeleton.rb in gemsmith-4.0.0 vs lib/gemsmith/skeletons/rails_skeleton.rb in gemsmith-4.1.0

- old
+ new

@@ -1,8 +1,12 @@ module Gemsmith module Skeletons class RailsSkeleton < BaseSkeleton + def create_engine + system "rails plugin new #{template_options.fetch :gem_name} #{engine_options}" + end + def create_generator_files empty_directory "#{generator_root}/templates" template "#{generator_root}/install/install_generator.rb.tt", template_options template "#{generator_root}/install/USAGE.tt", template_options template "#{generator_root}/upgrade/upgrade_generator.rb.tt", template_options @@ -14,9 +18,13 @@ template "%gem_name%/gemfiles/rails-4.1.x.gemfile.tt", template_options end end private + + def engine_options + "--skip --skip-bundle --skip-test-unit --skip-keeps --mountable --dummy-path=spec/dummy" + end def lib_gem_root "#{lib_root}/%gem_name%" end