pdd 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/pdd/source.rb +5 -1
  2. data/lib/pdd/version.rb +1 -1
  3. 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
- tail = tail(lines, match[1])
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
@@ -26,5 +26,5 @@
26
26
  # Copyright:: Copyright (c) 2014 Yegor Bugayenko
27
27
  # License:: MIT
28
28
  module PDD
29
- VERSION = '0.7.1'
29
+ VERSION = '0.7.2'
30
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: