Sha256: f5b46d80881b4423e58200aa936dfd24d04e2a90da6206f2e241c7c032be16b7
Contents?: true
Size: 809 Bytes
Versions: 9
Compression:
Stored size: 809 Bytes
Contents
# frozen_string_literal: true require "refinements/structs" module Gemsmith module Builders # Builds project skeleton gem specification for use by RubyGems. class Specification using Refinements::Structs def self.call(...) = new(...).call def initialize configuration, builder: Rubysmith::Builder @configuration = configuration @builder = builder end def call config = configuration.merge template_path: "%project_name%/%project_name%.gemspec.erb" builder.call(config) .render .replace(" \n", "") .replace(" spec", " spec") .replace(/\}\s+s/m, "}\n\n s") configuration end private attr_reader :configuration, :builder end end end
Version data entries
9 entries across 9 versions & 1 rubygems