Sha256: 24b2ff4f1dffe74c91099cddea1b5be20aae67d284054811979bcc243972efd9

Contents?: true

Size: 375 Bytes

Versions: 9

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true

require "json"

module Groundskeeper
  # Proxy for the Rubygems API.
  class Rubygems
    VERSION_API = "https://rubygems.org/api/v1/versions/"

    def self.latest_groundskeeper_version
      out = `curl #{VERSION_API}groundskeeper-bitcore/latest.json 2>/dev/null`
      response = JSON.parse(out)

      response["version"]
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
groundskeeper-bitcore-0.3.1 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.3.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.2.7 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.2.6 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.2.5 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.2.4 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.2.3 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.2.2 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.2.1 lib/groundskeeper/rubygems.rb