lib/pdd/rule/estimates.rb in pdd-0.21.2 vs lib/pdd/rule/estimates.rb in pdd-0.21.3
- old
+ new
@@ -30,13 +30,13 @@
@min = min.to_i
end
def errors
@xml.xpath("//puzzle[number(estimate) < #{@min}]").map do |p|
- "Puzzle #{p.xpath('file/text()')}:#{p.xpath('lines/text()')}"\
- " has an estimate of #{p.xpath('estimate/text()')} minutes,"\
- " which is lower than #{@min} minutes"
+ "Puzzle #{p.xpath('file/text()')}:#{p.xpath('lines/text()')} " \
+ "has an estimate of #{p.xpath('estimate/text()')} minutes, " \
+ "which is lower than #{@min} minutes"
end
end
end
# Rule for max estimate.
@@ -48,12 +48,12 @@
@min = min.to_i
end
def errors
@xml.xpath("//puzzle[number(estimate) > #{@min}]").map do |p|
- "Puzzle #{p.xpath('file/text()')}:#{p.xpath('lines/text()')}"\
- " has an estimate of #{p.xpath('estimate/text()')} minutes,"\
- " which is bigger than #{@min} minutes"
+ "Puzzle #{p.xpath('file/text()')}:#{p.xpath('lines/text()')} " \
+ "has an estimate of #{p.xpath('estimate/text()')} minutes, " \
+ "which is bigger than #{@min} minutes"
end
end
end
end
end