lib/rubysmith/builders/git/commit.rb in rubysmith-3.2.0 vs lib/rubysmith/builders/git/commit.rb in rubysmith-3.3.0
- old
+ new
@@ -3,13 +3,17 @@
module Rubysmith
module Builders
module Git
# Builds project skeleton initial Git commit message.
class Commit
+ include Import[:specification]
+
def self.call(...) = new(...).call
- def initialize configuration, builder: Builder
+ def initialize configuration, builder: Builder, **dependencies
+ super(**dependencies)
+
@configuration = configuration
@builder = builder
end
def call
@@ -29,11 +33,11 @@
attr_reader :configuration, :builder
def body
<<~CONTENT
- Generated with [Rubysmith](https://www.alchemists.io/projects/rubysmith)
- 1.1.1.
+ Generated with [#{specification.label}](#{specification.homepage_url})
+ #{specification.version}.
CONTENT
end
def project_name = configuration.project_name
end