rg_stats 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/rg_stats +4 -2
- data/lib/rg_stats/version.rb +1 -1
- metadata +1 -1
data/bin/rg_stats
CHANGED
@@ -45,12 +45,14 @@ stat = Statistic.new
|
|
45
45
|
stat.load data_as_json
|
46
46
|
|
47
47
|
puts ""
|
48
|
-
puts "
|
48
|
+
puts "\e[32m#{user_name}\e[0m"
|
49
|
+
puts "-" *(stat.max_gem_name_size + 30)
|
49
50
|
stat.gem_infos.each do |gem_info|
|
50
51
|
broj_izmjena = gem_info[1] - (old_map[gem_info[0]].nil? ? 0 : old_map[gem_info[0]])
|
51
52
|
diff_from_last_time = broj_izmjena == 0 ? "" : " (+\e[32m#{broj_izmjena}\e[0m)"
|
52
53
|
puts "%-#{stat.max_gem_name_size + 1}s=> %6d %6s" % [ gem_info[0] , gem_info[1], diff_from_last_time ]
|
54
|
+
puts "-" *(stat.max_gem_name_size + 30)
|
53
55
|
end
|
54
|
-
puts "
|
56
|
+
puts ""
|
55
57
|
PersistDataBetweenSessions.save(stat.gem_infos)
|
56
58
|
|
data/lib/rg_stats/version.rb
CHANGED