lib/gemsmith/tools/versioner.rb in gemsmith-17.0.1 vs lib/gemsmith/tools/versioner.rb in gemsmith-18.0.0
- old
+ new
@@ -5,18 +5,21 @@
module Gemsmith
module Tools
# Versions (tags) current project (local and remote).
class Versioner
+ include Import[:configuration]
include Dry::Monads[:result]
def initialize client: Milestoner::Tags::Publisher.new,
content: Milestoner::Configuration::Content,
- container: Container
+ **dependencies
+
+ super(**dependencies)
+
@client = client
@content = content
- @container = container
end
def call specification
client.call settings(specification)
Success specification
@@ -24,20 +27,17 @@
Failure error.message
end
private
- attr_reader :client, :content, :container
+ attr_reader :client, :content
def settings specification
content[
documentation_format: configuration.extensions_milestoner_documentation_format,
prefixes: configuration.extensions_milestoner_prefixes,
- sign: configuration.extensions_milestoner_sign,
version: specification.version
]
end
-
- def configuration = container[__method__]
end
end
end