yzz 2.0.1 → 2.0.2
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 +4 -4
- data/lib/yzz.rb +6 -3
- data/lib/yzz/side.rb +1 -1
- data/lib/yzz/version.rb +1 -1
- data/test/yzz_test.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6adb6f8f419a65c24aded092dc3ad69f4dc33b6a
|
4
|
+
data.tar.gz: 1476108b9f1816250066ff9919cbc934325e29bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f30bb424c89265a017e82a0116340c0a5a60df802a2c7ce594d654b34399a2b792414102174c9fcfe1c7f846418ab7f422e0538b616d757819293f0b14615a8f
|
7
|
+
data.tar.gz: c893a0a4c4826cceecb18e518c79e83d50ce274efe034e7059d0a29db4d7c03093438930fdd8cb900d84ceff73127d65d117a8785228629be6497f6f0038dbab
|
data/lib/yzz.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
#
|
1
|
+
# encoding: utf-8
|
2
|
+
|
2
3
|
require_relative 'yzz/version'
|
3
4
|
require_relative 'yzz/side'
|
4
5
|
require_relative 'yzz/side_pair'
|
@@ -19,7 +20,7 @@ require_relative 'yzz/side_pair'
|
|
19
20
|
# A rank is a series of zz objects connected along one dimension. A rank viewed
|
20
21
|
# horizontally is referred to as row. A rank viewed vertically is referred to
|
21
22
|
# as column.
|
22
|
-
|
23
|
+
#
|
23
24
|
# Mixin defining Zz structure (aka. hyperorthogonal structure). As represented
|
24
25
|
# by YTed::Zz, a Zz structure is a collection of objects, whose connectivity is
|
25
26
|
# defined in a multidimensional space in such way, that each object, along each
|
@@ -54,7 +55,9 @@ module Yzz
|
|
54
55
|
|
55
56
|
# Returns all neighbors of a zz object.
|
56
57
|
#
|
57
|
-
def neighbors
|
58
|
+
def neighbors
|
59
|
+
connections.map &:neighbor
|
60
|
+
end
|
58
61
|
|
59
62
|
# Returns all sides facing another zz object supplied as argument. (Note that
|
60
63
|
# this can be <em>more than 1</em> side: object A can be connected to B along
|
data/lib/yzz/side.rb
CHANGED
data/lib/yzz/version.rb
CHANGED
data/test/yzz_test.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yzz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- boris
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|