just_chess 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc6e83199ec2a0e3fec25dbf43cfe35a226211e1
4
- data.tar.gz: fc925097a8a0e287d370d496553ab659513df0ef
3
+ metadata.gz: f0e2c58c7ac26f5cf759ed10df12757b617eabb9
4
+ data.tar.gz: c944150e11832eb65365cd194120c3422baae1c6
5
5
  SHA512:
6
- metadata.gz: b128f5e5531be440e25bf2954d6ae822f337df7ecc72fda82080a26e24905541ba71ddecc028fff401171cc5832a20df8241ac04208fd65ab1d0402aae91f262
7
- data.tar.gz: 6b29991fca0965a59bdce7059986f163e01cc0f63e0bf75635d6882c7c2db928811d2e5179271d407ea11ecf4118d5210a88879f9f3ddf82e75c52b91aa54586
6
+ metadata.gz: e9ac9d0a2cce8147d63eeb2a7da96de3fb6fbc4ed2fea070908c24ef2065a49c408c3f183184517bb762bdac43d49bfec8e1c2cca90f0eaec36998201c0164a3
7
+ data.tar.gz: e384a392f12a2230b0f0a3b0585109f3a13c9ff5bcd9dafa5f2d87e233f12089f3e8e12030331a95b6b5c2d65a24a99b9ef86468c52a2c3dd334bda95a54d245
@@ -282,7 +282,7 @@ module JustChess
282
282
  rook_from_y = from.y
283
283
  rook_from = squares.find_by_x_and_y(rook_from_x, rook_from_y)
284
284
 
285
- rook_to_x = vector.direction.x > 0 ? (from.x + 1) : (from.x -1)
285
+ rook_to_x = vector.direction.x > 0 ? (from.x + 1) : (from.x - 1)
286
286
  rook_to_y = from.y
287
287
  rook_to = squares.find_by_x_and_y(rook_to_x, rook_to_y)
288
288
 
@@ -1,4 +1,4 @@
1
1
  module JustChess
2
2
  # :nodoc:
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: just_chess
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Humphreys
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-21 00:00:00.000000000 Z
11
+ date: 2019-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler