Sha256: a04c21d36e0ae7e8178364cfd8fb9be65ac2db84ca268bb28633d61dd67c8637
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.11.0' # 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.11.0 | lib/awskeyring/version.rb |