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