pie 0.2.12 → 0.2.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/pie.rb +1 -1
  2. data/lib/place.rb +0 -2
  3. metadata +2 -3
  4. 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
 
@@ -1,5 +1,3 @@
1
- #require_relative 'pie.rb'
2
-
3
1
  class Pie::Place
4
2
 
5
3
  attr_reader :name, :description, :paths
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.12
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-08-15 00:00:00.000000000 -07:00
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
@@ -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