Sha256: cf1f2fbde990923bd386ed08a7f1d2fa9a0602aa21d99c06042a65cba9d9abf8

Contents?: true

Size: 317 Bytes

Versions: 10

Compression:

Stored size: 317 Bytes

Contents

module PactBroker
  module Client
    class Matrix
      class AbbreviateVersionNumber
        def self.call version_number
          if version_number
            version_number.gsub(/[A-Za-z0-9]{40}/) do | val |
              val[0...7] + "..."
            end
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pact_broker-client-1.49.0 lib/pact_broker/client/matrix/abbreviate_version_number.rb
pact_broker-client-1.48.0 lib/pact_broker/client/matrix/abbreviate_version_number.rb
pact_broker-client-1.47.1 lib/pact_broker/client/matrix/abbreviate_version_number.rb
pact_broker-client-1.47.0 lib/pact_broker/client/matrix/abbreviate_version_number.rb
pact_broker-client-1.46.0 lib/pact_broker/client/matrix/abbreviate_version_number.rb
pact_broker-client-1.45.0 lib/pact_broker/client/matrix/abbreviate_version_number.rb
pact_broker-client-1.44.0 lib/pact_broker/client/matrix/abbreviate_version_number.rb
pact_broker-client-1.43.0 lib/pact_broker/client/matrix/abbreviate_version_number.rb
pact_broker-client-1.42.0 lib/pact_broker/client/matrix/abbreviate_version_number.rb
pact_broker-client-1.41.0 lib/pact_broker/client/matrix/abbreviate_version_number.rb