pdd 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pdd/source.rb +5 -1
- data/lib/pdd/version.rb +1 -1
- metadata +1 -1
data/lib/pdd/source.rb
CHANGED
@@ -70,7 +70,11 @@ module PDD
|
|
70
70
|
|
71
71
|
# Fetch puzzle
|
72
72
|
def puzzle(lines, match, idx)
|
73
|
-
|
73
|
+
begin
|
74
|
+
tail = tail(lines, match[1])
|
75
|
+
rescue Error => ex
|
76
|
+
raise Error, "#{ex.message} line ##{idx}"
|
77
|
+
end
|
74
78
|
body = (match[3] + ' ' + tail.join(' ')).gsub(/\s+/, ' ').strip
|
75
79
|
Puzzle.new(
|
76
80
|
marker(match[2]).merge(
|
data/lib/pdd/version.rb
CHANGED