james 0.6.0 → 0.7.0
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.
- data/lib/james/builtin/core_dialog.rb +6 -4
- metadata +2 -2
|
@@ -9,9 +9,9 @@ class CoreDialog
|
|
|
9
9
|
|
|
10
10
|
include James::Dialog
|
|
11
11
|
|
|
12
|
-
# This core dialog starts at
|
|
12
|
+
# This core dialog starts at away.
|
|
13
13
|
#
|
|
14
|
-
initially :
|
|
14
|
+
initially :away
|
|
15
15
|
|
|
16
16
|
# The alert state.
|
|
17
17
|
# When James is in this state, he should be
|
|
@@ -24,6 +24,7 @@ class CoreDialog
|
|
|
24
24
|
chainable
|
|
25
25
|
|
|
26
26
|
hear "Thank you, James." => :awake,
|
|
27
|
+
"Go back." => :awake,
|
|
27
28
|
'I need some time alone, James.' => :away,
|
|
28
29
|
"Good night, James." => :exit
|
|
29
30
|
into { "Sir?" }
|
|
@@ -34,8 +35,9 @@ class CoreDialog
|
|
|
34
35
|
# or the good night, i.e. exit phrase.
|
|
35
36
|
#
|
|
36
37
|
state :away do
|
|
37
|
-
hear 'James?'
|
|
38
|
-
|
|
38
|
+
hear 'James?' => :awake,
|
|
39
|
+
'Are you there, James?' => :awake,
|
|
40
|
+
"Good night, James." => :exit
|
|
39
41
|
into { "Of course, Sir!" }
|
|
40
42
|
end
|
|
41
43
|
|
metadata
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
name: james
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.
|
|
5
|
+
version: 0.7.0
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Florian Hanke
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2011-
|
|
12
|
+
date: 2011-07-01 00:00:00 +10:00
|
|
13
13
|
default_executable: james
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|