lib/osa/version.rb
# Get remote version from rubygem.org
# @return [String] of the report version
Get remote version from rubygem.org
Get remote version from rubygem . org
def remote_version
      rubygem_api = JSON.parse open("https://rubygems.org/api/v1/versions/osa.json").read
      rubygem_api.first["number"]
    rescue Exception => e
      puts "[!] ".yellow  + " Couldn't check the latest version, please check internet connectivity."
      exit!
    end
def remote_version rubygem_api = JSON . parse open ( "https://rubygems.org/api/v1/versions/osa.json" ) . read rubygem_api . first [ "number" ] rescue Exception => e puts "[!] " . yellow + " Couldn't check the latest version, please check internet connectivity." exit! end
Get remote version from rubygem.org
Get remote version from rubygem . org
of the report version
of the report version
String