Sha256: c555dd536c60d8c909bc499188bd14eda44259e50724c1c073e3eaf37f1f2840
Contents?: true
Size: 645 Bytes
Versions: 8
Compression:
Stored size: 645 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Gemsmith module Builders # Builds project skeleton with Gemfile configuration. class Bundler < Rubysmith::Builders::Bundler using Refinements::Struct 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 end end end
Version data entries
8 entries across 8 versions & 1 rubygems