Sha256: a8059b4e1be65f96e3981010788130f13054731591f5607e14a1c616260441cf

Contents?: true

Size: 403 Bytes

Versions: 35

Compression:

Stored size: 403 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/"

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

      response["version"]
    end
    # :nocov:
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
groundskeeper-bitcore-0.34.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.33.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.32.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.31.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.29.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.28.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.27.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.26.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.24.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.23.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.22.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.21.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.20.1 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.19.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.18.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.17.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.16.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.15.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.14.0 lib/groundskeeper/rubygems.rb
groundskeeper-bitcore-0.13.0 lib/groundskeeper/rubygems.rb