Class: Gemsmith::Tools::Versioner

Inherits:
Object
  • Object
show all
Defined in:
lib/gemsmith/tools/versioner.rb

Overview

Versions (tags: local and remote) current project.

Instance Method Summary collapse

Constructor Details

#initialize(publisher: Milestoner::Tags::Publisher.new, model: Milestoner::Configuration::Model) ⇒ Versioner

Returns a new instance of Versioner.



12
13
14
15
16
17
18
19
20
# File 'lib/gemsmith/tools/versioner.rb', line 12

def initialize(
  publisher: Milestoner::Tags::Publisher.new,
  model: Milestoner::Configuration::Model,
  **
)
  super(**)
  @publisher = publisher
  @model = model
end

Instance Method Details

#call(specification) ⇒ Object



22
# File 'lib/gemsmith/tools/versioner.rb', line 22

def call(specification) = publisher.call(specification.version).fmap { specification }