lib/zold/remotes.rb in zold-0.11.16 vs lib/zold/remotes.rb in zold-0.11.17
- old
+ new
@@ -85,10 +85,14 @@
raise "Masqueraded host #{@host} as #{score.host}: #{score}" if @host != score.host
raise "Masqueraded port #{@port} as #{score.port}: #{score}" if @port != score.port
end
def assert_score_strength(score)
- raise "Score is too weak #{score.strength}" if score.strength < Score::STRENGTH
+ raise "Score is too weak #{score.strength}: #{score}" if score.strength < Score::STRENGTH
+ end
+
+ def assert_score_value(score, min)
+ raise "Score is too small (<#{min}): #{score}" if score.value < min
end
end
def initialize(file)
@file = file