Sha256: 90f88e0d687d7a169d5cb176bebec9e66ae156445041b83fbf70eb96a776e667
Contents?: true
Size: 739 Bytes
Versions: 2
Compression:
Stored size: 739 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Rubysmith module Builders # Builds Bundler Gemfile configuration for project skeleton. class Bundler < Abstract using Refinements::Struct def call builder.call(configuration.merge(template_path: "%project_name%/Gemfile.erb")) .render .replace(/\n\s+group/, "\n\ngroup") .replace(/\n\s+gem/, "\n gem") .replace(/ (?=.+(refinements|zeitwerk))/, "") .replace(/(\n+|\s+)end/, "\nend") .replace(/\n\ngroup :(quality|development|test|tools) do\nend/, "") .replace(/org"\n+/, "org\"\n\n") configuration end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysmith-6.10.0 | lib/rubysmith/builders/bundler.rb |
rubysmith-6.9.0 | lib/rubysmith/builders/bundler.rb |