lib/ana/command.rb in ana-0.9.2 vs lib/ana/command.rb in ana-0.9.3

- old
+ new

@@ -78,10 +78,10 @@ gem_hash = check_if_gem_exist_and_get_json!(gem, type: 'versions') if count == 'all' || count.to_i > gem_hash.count count = gem_hash.count end say("Last #{count} versions of #{gem} are...") - [*0..count-1].each do |n| + [*0..count.to_i-1].each do |n| say("#{gem_hash[n]['built_at'][0..9]} : #{gem_hash[n]['number']}") end end # Find if a given version of Gem exists. \ No newline at end of file