Sha256: 7ad971ce32345eb481742d1c16de2c2cdf351ad3687c1b9997e913e3f12a6da9
Contents?: true
Size: 613 Bytes
Versions: 1
Compression:
Stored size: 613 Bytes
Contents
# frozen_string_literal: true require 'json' # Awskeyring Module, # Version const and query of latest. module Awskeyring # The Gem's version number VERSION = '1.10.1' # The Gem's homepage HOMEPAGE = 'https://github.com/tristanmorgan/awskeyring' # RubyGems Version url GEM_VERSION_URL = 'https://rubygems.org/api/v1/versions/awskeyring/latest.json' # Retrieve the latest version from RubyGems # def self.latest_version uri = URI(GEM_VERSION_URL) request = Net::HTTP.new(uri.host, uri.port) request.use_ssl = true JSON.parse(request.get(uri).body)['version'] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
awskeyring-1.10.1 | lib/awskeyring/version.rb |