bin/cobench in cobench-0.0.11 vs bin/cobench in cobench-0.0.12

- old
+ new

@@ -108,16 +108,20 @@ require_relative f m = type.split('::').reduce(Module, :const_get).new(api, u, opts) if opts.dry? measures = [ { title: 'Issues', total: Random.new.rand(100), href: 'https://github.com/' }, - { title: 'Pulls', total: Random.new.rand(100), href: 'https://github.com/' } + { title: 'Pulls', total: Random.new.rand(100), href: '' }, + { title: 'HoC', total: Random.new.rand(100), href: '' }, + { title: 'HoC', total: Random.new.rand(100), href: '' } ] else measures = m.take(loog) end measures.each do |d| - data[u][d[:title]] = { total: d[:total], href: d[:href] } + before = 0 + before += data[u][d[:title]][:total] if data[u][d[:title]] != nil + data[u][d[:title]] = { total: d[:total] + before, href: d[:href] } titles[d[:title]] = d[:title] loog.info("The value of #{u}/#{d[:title]} is #{d[:total]}") end end end