twisty_puzzles 0.0.42 → 0.0.43

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: bec4bd5bfc9bfd1cfc57268c6780b7e82aa319d23a1fedc4100ac9e398a92dc9
4
- data.tar.gz: a2b25561e7f34661c5fffc5b0752fb8d014a7001f09e3d3a25b664e89ec41e63
3
+ metadata.gz: aa2e70bca608d547f2d099dc5b41c7c98e5e9b3e6f95578efb8766c094c257a7
4
+ data.tar.gz: d137263714a3a90997ff615afa5f3965e5cde937f8a12604efb1d64f602a9e43
5
5
  SHA512:
6
- metadata.gz: 24b4943047355babeac8d774518bea4ae800552cd6a2d23c737cfd16cb4b3628078614d55e893064a7bec6f87e9987248fccc42ca149d9cc7e9eaf62e8479b22
7
- data.tar.gz: aa40f287e594fc661c785d21895cc50bc21915a361cad72d9c66eb72e415280206f31374fa49f9499b12c4f973e74906545279039d321fcd160efee19feb8b86
6
+ metadata.gz: 6a02e534b3cf1c9183d63c4a85a6d000914621f7b0a23b992b5b39afa0e030ad4610ee9e3caf53a4916cd50afc5b24be2683fe86b063dd66f3173ff3adef0ce4
7
+ data.tar.gz: 482678b3a2483bb2e29195e7520070983a3b9f506cbc596d2f720a14dd4a345f50c3075b1e04f7872dab4ca5690f85fb57c04af0429422420eabf652ef6969b2
@@ -225,7 +225,8 @@ module TwistyPuzzles
225
225
  face_index = rotation_neighbors.index(self)
226
226
  raise unless face_index
227
227
 
228
- rotation_neighbors[(face_index + rotation.direction.value) % rotation_neighbors.length]
228
+ after_rotation_index = face_index + rotation_neighbors.length - rotation.direction.value
229
+ rotation_neighbors[after_rotation_index % rotation_neighbors.length]
229
230
  end
230
231
 
231
232
  def mirror(normal_face)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TwistyPuzzles
4
- VERSION = '0.0.42'
4
+ VERSION = '0.0.43'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twisty_puzzles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.42
4
+ version: 0.0.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernhard F. Brodowsky