Sha256: 39734817a420063167a8726887b3aeaeec2de0ade3fe2e7ac94ea8bbd3a123de

Contents?: true

Size: 598 Bytes

Versions: 1

Compression:

Stored size: 598 Bytes

Contents

# frozen_string_literal: true

# Moments version builder module
module JWT
  def self.gem_version
    Gem::Version.new VERSION::STRING
  end

  # Moments version builder module
  module VERSION
    # major version
    MAJOR = 2
    # minor version
    MINOR = 5
    # tiny version
    TINY  = 0
    # alpha, beta, etc. tag
    PRE   = nil

    # Build version string
    STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
  end

  def self.openssl_3?
    return false if OpenSSL::OPENSSL_VERSION.include?('LibreSSL')
    return true if OpenSSL::OPENSSL_VERSION_NUMBER >= 3 * 0x10000000
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jwt-2.5.0 lib/jwt/version.rb