pangrid 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be115d7cba3bf82d65d241afb1fedb1becfa8085d447590960447fc479b57d90
4
- data.tar.gz: 5520cd33d623bb0f55f11d0eb3fe4c9e2187dc437e3675bd2b97d40bb60cef08
3
+ metadata.gz: b922856376c54ffb6833389f2ac8d853931bfbd9201426f1349cac4c2c967a89
4
+ data.tar.gz: 0a003d8ba96839df14cf901d12f5ccbae16b298534358aafc094b8f9cc4c5271
5
5
  SHA512:
6
- metadata.gz: 607c19e615b28a3ad2117765ebba9d5003aaec081e04b0dac4793fdc3a32e88d99b9fbe6c40b3739c116b20a0bcb7e263f00c223dca6898b35f65729c358fed9
7
- data.tar.gz: 6df6cf0d9a78dbaef9213722a80538e0da262dcdb2026e862da07f0235154d2688f2bfc26397b67bd9a2e8a9975ff2a8a3c453fd6427a098d6dc912c011a1643
6
+ metadata.gz: ad9155c77fe8ef2d3b7cc75873fc606a92af5f4783f3f2a96ce402e5d52a634c6c0b3cf8e2228b2d2f2bacab5ac91948ce1755a3b0eee53b2b8825ecc64778ff
7
+ data.tar.gz: 4e09a65ed0ead53dac843bf6fa570bc319369c44cd22280199e2c018f7ca663bb3e386bc40faff0bd8ad77237729b09805d0033da13a7a2306e8454a4aa2449b
@@ -33,7 +33,7 @@ module ExolveWriter
33
33
  end
34
34
 
35
35
  def format_clues(numbers, clues)
36
- numbers.zip(clues).map {|n, c| "#{n.to_s.rjust(2)}. #{c}"}
36
+ numbers.zip(clues).map {|n, c| "#{n.to_s.rjust(2)} #{c}"}
37
37
  end
38
38
 
39
39
  def indent(lines)
@@ -92,6 +92,7 @@ class RedditBlank < Plugin
92
92
  #
93
93
  # we have to be careful about leading/trailing |s
94
94
  ix = lines.find_index {|row| row =~ /^[|\s-]+$/}
95
+ check("Could not find grid") { not ix.nil? }
95
96
  width = lines[ix].gsub(/\s/, '').split('|').reject(&:empty?).length
96
97
  lines = [lines[(ix - 1)]] + lines[(ix + 1) .. -1]
97
98
  grid = lines.take_while {|i| is_grid_row(i)}
@@ -1,3 +1,3 @@
1
1
  module Pangrid
2
- VERSION='0.4.0'
2
+ VERSION='0.4.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pangrid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin DeMello
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-13 00:00:00.000000000 Z
11
+ date: 2019-08-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: martindemello@gmail.com