class Gemsmith::Builders::Specification

Builds project skeleton gem specification for use by RubyGems.

Public Instance Methods

call() click to toggle source
# File lib/gemsmith/builders/specification.rb, line 11
def call
  config = settings.merge template_path: "%project_name%/%project_name%.gemspec.erb"

  builder.call(config)
         .render
         .replace("    \n", "")
         .replace("      ", "    ")
         .replace("  \n", "")
         .replace("    spec", "  spec")
         .replace(/\}\s+s/m, "}\n\n  s")

  true
end