Sha256: 67709afa0b38b1944c1513e579359494085ceca4b633f2d013b3b79cca3863f4
Contents?: true
Size: 625 Bytes
Versions: 3
Compression:
Stored size: 625 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.+/, "") .replace(/.+zeitwerk.+/, "") .replace("\n\n\n\n", "\n") true end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-22.2.0 | lib/gemsmith/builders/bundler.rb |
gemsmith-22.1.0 | lib/gemsmith/builders/bundler.rb |
gemsmith-22.0.0 | lib/gemsmith/builders/bundler.rb |