Sha256: 9b41f51697a5278b044627836cd355291e5f06be64fd626c732d6b741ff36110

Contents?: true

Size: 545 Bytes

Versions: 10

Compression:

Stored size: 545 Bytes

Contents

# frozen_string_literal: true

require "milestoner"

module Rubysmith
  module Extensions
    # Ensures project can be published (tagged) in a reliable and consistent fashion.
    class Milestoner
      def self.call(...) = new(...).call

      def initialize configuration, client: ::Milestoner::Tags::Publisher.new
        @configuration = configuration
        @client = client
      end

      def call = client.call(configuration.project_version) && configuration

      private

      attr_reader :configuration, :client
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rubysmith-6.10.0 lib/rubysmith/extensions/milestoner.rb
rubysmith-6.9.0 lib/rubysmith/extensions/milestoner.rb
rubysmith-6.6.0 lib/rubysmith/extensions/milestoner.rb
rubysmith-6.5.0 lib/rubysmith/extensions/milestoner.rb
rubysmith-6.4.0 lib/rubysmith/extensions/milestoner.rb
rubysmith-6.3.0 lib/rubysmith/extensions/milestoner.rb
rubysmith-6.2.1 lib/rubysmith/extensions/milestoner.rb
rubysmith-6.2.0 lib/rubysmith/extensions/milestoner.rb
rubysmith-6.1.0 lib/rubysmith/extensions/milestoner.rb
rubysmith-6.0.0 lib/rubysmith/extensions/milestoner.rb