Sha256: 62679133ecc2161cc6e53e9c8da1319703622472d6c514d86781b84f3c6b008f
Contents?: true
Size: 986 Bytes
Versions: 2
Compression:
Stored size: 986 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 = 7 # 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 def self.rbnacl? defined?(::RbNaCl) end def self.rbnacl_6_or_greater? rbnacl? && ::Gem::Version.new(::RbNaCl::VERSION) >= ::Gem::Version.new('6.0.0') end def self.openssl_3_hmac_empty_key_regression? openssl_3? && openssl_version <= ::Gem::Version.new('3.0.0') end def self.openssl_version @openssl_version ||= ::Gem::Version.new(OpenSSL::VERSION) end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
fluent-plugin-google-cloud-logging-on-prem-0.1.0 | vendor/ruby/3.1.0/gems/jwt-2.7.0/lib/jwt/version.rb |
jwt-2.7.0 | lib/jwt/version.rb |