pie 0.2.10 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/place.rb +4 -1
- metadata +2 -2
data/lib/place.rb
CHANGED
@@ -16,7 +16,10 @@ class Pie::Place
|
|
16
16
|
|
17
17
|
def path(nodes)
|
18
18
|
nodes.each do |place_name, direction|
|
19
|
-
|
19
|
+
place = @places[place_name]
|
20
|
+
raise "#{place_name} is not a place" if place.nil?
|
21
|
+
|
22
|
+
@paths[place_name] = direction
|
20
23
|
@places[place_name].paths[name] = direction.opposite unless !direction.respond_to?(:dead_end?) || direction.dead_end?
|
21
24
|
end
|
22
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-08-
|
12
|
+
date: 2011-08-14 00:00:00.000000000 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
description:
|