Class: Gemsmith::Builders::Bundler
- Inherits:
-
Rubysmith::Builders::Bundler
- Object
- Rubysmith::Builders::Bundler
- Gemsmith::Builders::Bundler
- Defined in:
- lib/gemsmith/builders/bundler.rb
Overview
Builds project skeleton with Gemfile configuration.
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/gemsmith/builders/bundler.rb', line 11 def call super builder.call(settings.merge(template_path: "%project_name%/Gemfile.erb")) .insert_after("source", "\ngemspec\n") .replace(/spec\n\n\Z/m, "spec\n") .replace(/.+(refinements|zeitwerk).+/, "") .replace(/"\s+group/m, %("\n\ngroup)) .replace("\n\n\n\n", "\n") true end |