Class: Zold::Gem

Inherits:
Object
  • Object
show all
Defined in:
lib/zold/gem.rb

Overview

Gem

Instance Method Summary collapse

Instance Method Details

#last_versionObject



35
36
37
38
39
40
41
# File 'lib/zold/gem.rb', line 35

def last_version
  JsonPage.new(
    Http.new(uri: 'https://rubygems.org/api/v1/versions/zold/latest.json').get.body
  ).to_hash['version']
rescue StandardError => _e
  '0.0.0'
end