Sha256: d0e3303f07b504baed30010e4edc4728a60125cf0f77a91980c214552ed22f2d
Contents?: true
Size: 606 Bytes
Versions: 1
Compression:
Stored size: 606 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.6.0' # The Gem's homepage HOMEPAGE = 'https://github.com/servian/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.6.0 | lib/awskeyring/version.rb |