lib/codelation/version.rb in codelation-cli-0.0.1 vs lib/codelation/version.rb in codelation-cli-0.0.2
- old
+ new
@@ -1,11 +1,11 @@
require "json"
require "open-uri"
require "thor"
module Codelation
- VERSION = "0.0.1"
+ VERSION = "0.0.2"
class Cli < Thor
desc "update", "Update codelation-cli to latest version"
def update
command = "gem install codelation-cli"
@@ -17,10 +17,10 @@
def version
gem_version = "v#{Codelation::VERSION}"
# Grab the latest version of the RubyGem
rubygems_json = open("https://rubygems.org/api/v1/gems/codelation-cli.json").read
- rubygems_version = "v#{JSON.parse(rubygems_json)["version"].strip}"
+ rubygems_version = "v#{JSON.parse(rubygems_json)['version'].strip}"
upgrade_message = ""
if gem_version != rubygems_version
upgrade_message = " Run `codelation update` to install"
end