lib/inch/evaluation/proxy.rb in inch-0.6.0 vs lib/inch/evaluation/proxy.rb in inch-0.6.1
- old
+ new
@@ -112,16 +112,16 @@
end
# @return [Float] the max score that is assignable to +object+
def __max_score
arr = @roles.map(&:max_score).compact
- [MAX_SCORE].concat(arr).min
+ [MAX_SCORE].concat(arr).min.to_i
end
# @return [Float] the max score that is assignable to +object+
def __min_score
arr = @roles.map(&:min_score).compact
- [MIN_SCORE].concat(arr).max
+ [MIN_SCORE].concat(arr).max.to_i
end
# @return [Float]
def __score
value = @roles.reduce(0) { |sum, r| sum + r.score.to_f }.to_i