james 0.0.10-universal-darwin-10 → 0.0.11-universal-darwin-10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/james/visitor.rb +2 -2
  2. metadata +2 -2
data/lib/james/visitor.rb CHANGED
@@ -22,7 +22,7 @@ module James
22
22
  # @timer = timer || Timer.new
23
23
  end
24
24
 
25
- # Escapes the current state back to the initial.
25
+ # Resets the current state back to the initial.
26
26
  #
27
27
  def reset
28
28
  # timer.stop
@@ -52,7 +52,7 @@ module James
52
52
  end
53
53
  end
54
54
  def check
55
- escape && yield("That led nowhere.") unless self.current
55
+ reset && yield("Whoops. That led nowhere. Perhaps you didn't define the target state?") unless self.current
56
56
  end
57
57
  def hear phrase, &block
58
58
  return unless hears? phrase
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: james
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.10
5
+ version: 0.0.11
6
6
  platform: universal-darwin-10
7
7
  authors:
8
8
  - Florian Hanke
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-05-13 00:00:00 +10:00
12
+ date: 2011-05-15 00:00:00 +10:00
13
13
  default_executable: james
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency