yzz 2.0.1 → 2.0.2

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
  SHA1:
3
- metadata.gz: c0cd7fcf8d5b863af42b388ecfa1b90884ed5a41
4
- data.tar.gz: 723716cf8caac3866a56f5bfecc18a46761f55e1
3
+ metadata.gz: 6adb6f8f419a65c24aded092dc3ad69f4dc33b6a
4
+ data.tar.gz: 1476108b9f1816250066ff9919cbc934325e29bb
5
5
  SHA512:
6
- metadata.gz: 7a338c672f210c4b322fe3af41e09875b811b9f5b070f5688acde2b4280dfc9614f2580503ae4a2b83ceb85f8de6488de53a8449391e791b984aa0c701127ae9
7
- data.tar.gz: 0838232bdefdab970408f2992478a3f036a3f5c7fc8b4d45a8ca05a0fc69398961f77b82df4de1a1d5b3f9159c064d934843b28b4885f794bbe3a3d6d98984b7
6
+ metadata.gz: f30bb424c89265a017e82a0116340c0a5a60df802a2c7ce594d654b34399a2b792414102174c9fcfe1c7f846418ab7f422e0538b616d757819293f0b14615a8f
7
+ data.tar.gz: c893a0a4c4826cceecb18e518c79e83d50ce274efe034e7059d0a29db4d7c03093438930fdd8cb900d84ceff73127d65d117a8785228629be6497f6f0038dbab
data/lib/yzz.rb CHANGED
@@ -1,4 +1,5 @@
1
- # -*- coding: utf-8 -*-
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; connections.map &:neighbor end
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
@@ -1,4 +1,4 @@
1
- #encoding: utf-8
1
+ # encoding: utf-8
2
2
 
3
3
  # Ted Nelson calls zz objects 'cells', and defines posward and negward cell
4
4
  # side in each dimension. This is represented by Side class here, which is
@@ -1,3 +1,3 @@
1
1
  module Yzz
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  #! /usr/bin/ruby
2
- # -*- coding: utf-8 -*-
2
+ # encoding: utf-8
3
3
 
4
- require 'minitest/spec'
4
+ gem 'minitest', '=4.7.4'
5
5
  require 'minitest/autorun'
6
6
 
7
7
  # Until they alias it in the core.
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.1
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-05-14 00:00:00.000000000 Z
11
+ date: 2013-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler