pie 0.2.12 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pie.rb +1 -1
- data/lib/place.rb +0 -2
- metadata +2 -3
- data/lib/test.rb +0 -23
data/lib/pie.rb
CHANGED
@@ -60,7 +60,7 @@ module Pie
|
|
60
60
|
|
61
61
|
def method_missing name
|
62
62
|
place = places[name.to_sym]
|
63
|
-
raise NoMethodError if place.nil?
|
63
|
+
raise NoMethodError, "NoMethodError: Pie was expecting a place named '#{name}', but we've only got places named: #{places.keys.join(', ')}" if place.nil?
|
64
64
|
place
|
65
65
|
end
|
66
66
|
|
data/lib/place.rb
CHANGED
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.13
|
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-
|
12
|
+
date: 2011-09-10 00:00:00.000000000 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
description:
|
@@ -23,7 +23,6 @@ files:
|
|
23
23
|
- lib/pie.rb
|
24
24
|
- lib/pie_server.rb
|
25
25
|
- lib/place.rb
|
26
|
-
- lib/test.rb
|
27
26
|
- views/full_screen.erb
|
28
27
|
- views/game_screen.erb
|
29
28
|
- views/image_page.erb
|
data/lib/test.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
class Foo
|
2
|
-
attr_reader :bar
|
3
|
-
|
4
|
-
def initialize(value)
|
5
|
-
puts "initialize value= #{value}"
|
6
|
-
setup(value)
|
7
|
-
end
|
8
|
-
|
9
|
-
def bar=(value)
|
10
|
-
puts "bar= value= #{value}"
|
11
|
-
raise Exception, "5 not allowed" if value == 5
|
12
|
-
@bar = value
|
13
|
-
end
|
14
|
-
|
15
|
-
def setup(value)
|
16
|
-
puts "setup value= #{value}, #{self}"
|
17
|
-
self.bar=value
|
18
|
-
end
|
19
|
-
private
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
end
|