lib/rubygems/resolver/stats.rb in rubygems-update-3.0.9 vs lib/rubygems/resolver/stats.rb in rubygems-update-3.1.0.pre1
- old
+ new
@@ -1,7 +1,8 @@
# frozen_string_literal: true
class Gem::Resolver::Stats
+
def initialize
@max_depth = 0
@max_requirements = 0
@requirements = 0
@backtracking = 0
@@ -40,6 +41,7 @@
$stdout.printf PATTERN, "Total Requirements", @requirements
$stdout.printf PATTERN, "Max Requirements", @max_requirements
$stdout.printf PATTERN, "Backtracking #", @backtracking
$stdout.printf PATTERN, "Iteration #", @iterations
end
+
end