yzz 2.0.10 → 2.0.11

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/yzz/side.rb +6 -2
  3. data/lib/yzz/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f812bf6eb3e0b5836cb16854cb8754786793064
4
- data.tar.gz: 7bea90aec3e9f289ba65ccf05fc8a037da2fe8c4
3
+ metadata.gz: bda3a0b18dda005b0b0d54a41dc9908c573dde80
4
+ data.tar.gz: 26f8361a80470e97fa4b834e143554f482629b10
5
5
  SHA512:
6
- metadata.gz: dac5aa186af4a9f9ecc71217edcb92b48d685e973d15c9ed2b8acb6b75e6c40fd289db8f3a50dead2d088bb79f7e6a30f9036ba1a51c2f03ac96263baeed95c3
7
- data.tar.gz: 5c883dc741ab8976175a9f81e1b18626bde6b6df3efacd68cc2f7be5c429bd8b33f6b9cb3832a8d247a973eced9fe545e711333d90657c711533338e250c525c
6
+ metadata.gz: ed056ee307f1f2117d32ddb2db2f3b0b3a36afdee85b05eb22b37d04af1fbfd9da8a14568a228c530ca5b8709db346a25f24c7d3c6a629e5b88103b3ad1cecd1
7
+ data.tar.gz: 95608ce640a6c937454e0db378fe80fb1c8f8932b2896be4729ad382181caabeee451953af5b408a735ac18b5d887f24f1df35fd0df5b7d24e1f922c29f215ac
data/lib/yzz/side.rb CHANGED
@@ -57,11 +57,15 @@ class Yzz::Side
57
57
  end
58
58
  alias * crossover
59
59
 
60
- # Given a Yzz object, returns its side along the dimension same as the
60
+ # Given a +Yzz+ object, returns its side along the dimension same as the
61
61
  # receiver's dimension, in the direction opposite to self.
62
62
  #
63
63
  def opposite_side( of: zz )
64
- of.along( dimension ).send ::Yzz::Side::OPPOSITE[ direction ]
64
+ opposite = case direction
65
+ when :posward then :negward
66
+ when :negward then :posward
67
+ else fail "Unknown direction!" end
68
+ of.along( dimension ).send( opposite )
65
69
  end
66
70
 
67
71
  # Unlinks the neighbor, returning it.
data/lib/yzz/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Yzz
2
- VERSION = "2.0.10"
2
+ VERSION = "2.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yzz
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.10
4
+ version: 2.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - boris