yzz 2.0.3 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/yzz.rb +12 -0
  3. data/lib/yzz/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0be26e65f0a42519f72be8b9996f765943a148dd
4
- data.tar.gz: 10ecd4561947b254d29ac9654c06fd28241eff2d
3
+ metadata.gz: 9860ebc7b96fb69826c2141521128ab87f094de7
4
+ data.tar.gz: 463614b5ee9ed02ae0af1c57d217cd0b28c7f714
5
5
  SHA512:
6
- metadata.gz: a2528f7d5b5ca44cd5a0da38ef7830fa0a5dcce1c196c18e18abf31d63b1626459eab40cff6a7c2cc68371ff5e942e63542dba16cc3d9ee3e0091f4ab79703ce
7
- data.tar.gz: 08d6dcd8c6f826e845293da61ae5d9bed9a1c780108a0be1753b0fbce2c3f4cd57b0f77effa90d0ac2c8ac993a13d0ea982d9c450b5a8cf234c7968972fa757f
6
+ metadata.gz: 10c94eaecf746f70f7714e782fac97beb752386a029c8da1cf7a7e69e16c92a8866319d01e562adaea8b0de1ab50d13d3dfda4ca89d72836cb1972d63ea53a2f
7
+ data.tar.gz: 73f83d60ed2e57397bef44d8de8819e8de03d179222dfa4b3ad95541d0c1a77f8acfb011b0eabdb2a26e62774e3aec89013bf135f7a899a86b2f2e6f272118e6
data/lib/yzz.rb CHANGED
@@ -66,6 +66,18 @@ module Yzz
66
66
  def towards other
67
67
  connectivity.select { |side| side.neighbor == other }
68
68
  end
69
+
70
+ # Short string describing the object.
71
+ #
72
+ def to_s
73
+ "#<Yzz, #{connections.size} conn.>"
74
+ end
75
+
76
+ # Inspect string of the object.
77
+ #
78
+ def inspect
79
+ to_s
80
+ end
69
81
  end
70
82
 
71
83
  class Object
data/lib/yzz/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Yzz
2
- VERSION = "2.0.3"
2
+ VERSION = "2.0.5"
3
3
  end
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.3
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - boris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-18 00:00:00.000000000 Z
11
+ date: 2013-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler