namero 0.0.5 → 1.0.0

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: e6b43e5791eeddd5fd52e44141a609fc97eb76da497ab686c6add7fb6e6f0f64
4
- data.tar.gz: 5f5bc91d16f0ad5556f0a69cbb0cb44c81a441f24c76394a184eb88e98aa0f0d
3
+ metadata.gz: 027c27f9e7b9a2f8e9662c961c907c4cd38c1c4f6d5461bbd4ad03673604b605
4
+ data.tar.gz: 31fe4354d07c60114a714bc33a36f3800984d76ec66f78566d2bebd3d8b80dc0
5
5
  SHA512:
6
- metadata.gz: 7b18163566d9b80b8855640eca1ef165d6a3cb29e24f453dbda0185da6582eaa65a00727c46616010cfca809c0dfb91df5deb3f602e8e81093dbce04f2673d02
7
- data.tar.gz: 7faaf576f63e75bb34ab0ce3670454320a5f5b3ba65522fe5bc17f549ffa713506aa284e158dbd4b0e52e7c80235c8a52983afbd1c11f978b595a0fd69c919ab
6
+ metadata.gz: 478c5e53b2d38163b353cf97ae127bdc70699dc00f3010c7be1dfcb07f70479fed3ef8d0bd468c7c1d2e1ebcc772e4cd0bed853bcfd01876c10958b4a9ff228a
7
+ data.tar.gz: 2846d3036c4be2449d30d39c0ecc2a206dea9a67ee3483a8457950b8bbdb1b65958d8fce579061bd38c776f6ef5dc7b0a05dacf8ea37249b9a3ad5347bb2a64e
@@ -24,10 +24,6 @@ module Namero
24
24
  end
25
25
  end
26
26
 
27
- private
28
-
29
- attr_reader :board, :updated_candidate_queue, :extensions
30
-
31
27
  def fill_one_candidate(idx)
32
28
  v = board[idx]
33
29
  return if v.candidates.size != 1
@@ -35,6 +31,10 @@ module Namero
35
31
  fill_candidate_for(v)
36
32
  end
37
33
 
34
+ private
35
+
36
+ attr_reader :board, :updated_candidate_queue, :extensions
37
+
38
38
  def fill_candidate_for(v)
39
39
  board[v.index, :row].each do |v2|
40
40
  unless v2.value
@@ -10,7 +10,7 @@ module Namero
10
10
  end
11
11
 
12
12
  def dup
13
- self.new(value: value, candidates: candidates.dup)
13
+ self.class.new(value: value, candidates: candidates.dup, index: index)
14
14
  end
15
15
  end
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module Namero
2
- VERSION = "0.0.5"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: namero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masataka Pocke Kuwabara