chess_validator 0.2.19 → 0.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/board_logic.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3de54f3263072bf9eedb64289175b426d0f58913e2fedfbd4e1d733f85799c7d
|
4
|
+
data.tar.gz: d50b2bb51511e6e56c2e202c439a1f4dced1663b3296d12091345491b247b376
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3bc01a8d88e626995ad7af4b5bd2bb6b35b2a66554b03c5772c217448042e240cd3ae4240632ea0cb43f469d395dfd4196666587c8a835a568f3995ab5bb89c
|
7
|
+
data.tar.gz: e602c545ef411549769616a7d0a602b86b2a5a03202f8a368ac6f6ba8a2c86b06501dd6381096fae20060652be9a8b360c27203fb411392b72e1ba11f0abc6c9
|
data/lib/board_logic.rb
CHANGED
@@ -23,7 +23,7 @@ module ChessValidator
|
|
23
23
|
notation += handle_castle(previous_fen.castling, piece, board)
|
24
24
|
notation += handle_en_passant(piece, move)
|
25
25
|
notation += handle_half_move_clock(previous_fen, piece.piece_type, captured)
|
26
|
-
notation += piece.color == 'b' ? previous_fen.fullmove.
|
26
|
+
notation += piece.color == 'b' ? previous_fen.fullmove&.next.to_s : previous_fen.fullmove.to_s
|
27
27
|
notation
|
28
28
|
end
|
29
29
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chess_validator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Ellison
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'Documentation: https://github.com/chadellison/chess_validator'
|
14
14
|
email: chad.ellison0123@gmail.com
|
@@ -27,7 +27,7 @@ homepage: https://rubygems.org/search?utf8=%E2%9C%93&query=chess_validator
|
|
27
27
|
licenses:
|
28
28
|
- MIT
|
29
29
|
metadata: {}
|
30
|
-
post_install_message:
|
30
|
+
post_install_message:
|
31
31
|
rdoc_options: []
|
32
32
|
require_paths:
|
33
33
|
- lib
|
@@ -42,8 +42,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '0'
|
44
44
|
requirements: []
|
45
|
-
rubygems_version: 3.
|
46
|
-
signing_key:
|
45
|
+
rubygems_version: 3.2.3
|
46
|
+
signing_key:
|
47
47
|
specification_version: 4
|
48
48
|
summary: A chess move validator
|
49
49
|
test_files: []
|