Sha256: 686453984abbea37563c7cbd47ee8e40f9526645a21fd27067271ae34bcc94c5

Contents?: true

Size: 308 Bytes

Versions: 13

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true

module Milestoner
  module Commits
    module Enrichers
      # Enriches a commit URI based on trailer information.
      class URI
        include Milestoner::Import[:settings]

        def call(commit) = format settings.commit_uri, id: commit.sha
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
milestoner-18.11.0 lib/milestoner/commits/enrichers/uri.rb
milestoner-18.10.0 lib/milestoner/commits/enrichers/uri.rb
milestoner-18.9.0 lib/milestoner/commits/enrichers/uri.rb
milestoner-18.8.0 lib/milestoner/commits/enrichers/uri.rb
milestoner-18.7.0 lib/milestoner/commits/enrichers/uri.rb
milestoner-18.6.0 lib/milestoner/commits/enrichers/uri.rb
milestoner-18.5.0 lib/milestoner/commits/enrichers/uri.rb
milestoner-18.4.0 lib/milestoner/commits/enrichers/uri.rb
milestoner-18.3.0 lib/milestoner/commits/enrichers/uri.rb
milestoner-18.2.0 lib/milestoner/commits/enrichers/uri.rb
milestoner-18.1.0 lib/milestoner/commits/enrichers/uri.rb
milestoner-18.0.1 lib/milestoner/commits/enrichers/uri.rb
milestoner-18.0.0 lib/milestoner/commits/enrichers/uri.rb