lib/ana/command.rb in ana-0.9.6 vs lib/ana/command.rb in ana-0.9.7
- old
+ new
@@ -66,11 +66,11 @@
puts "#{arr['name'].ljust(20)} #{arr['requirements']}"
end
end
# Return latest version of given gem.
- desc 'latest_version (v)', 'latest version of a gem.'
+ desc 'latest_version (lv)', 'latest version of a gem.'
def latest_version(gem)
return if gem_does_not_exist?(gem)
gem_hash = get_gem_json!(gem, type: 'gems')
say("Latest version is #{gem_hash['version']}.", :blue) if gem_hash
end
@@ -94,10 +94,10 @@
end
end
# FIXME should print info related to that version
# Find if a given version of Gem exists.
- desc 'version exist?', 'Find if a given version exists.'
+ desc 'find_version (fv)', 'Find if a given version exists.'
def find_version(gem, ver='no-input')
return if gem_does_not_exist?(gem)
if ver == 'no-input'
say 'Please specify a version'
return
\ No newline at end of file