siriproxy-appcontroller 0.0.2 → 0.0.3
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/config-info.yml +9 -0
- data/lib/siriproxy-appcontroller.rb +5 -5
- data/siriproxy-appcontroller.gemspec +1 -1
- metadata +4 -3
data/config-info.yml
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
#Example configuration options that can be placed in your main SiriProxy config.yml
|
2
|
+
|
3
|
+
##########################
|
4
|
+
#NOTICE: Modifying these options in this file has no effect. You must put them in SiriProxy's config.yml! Then run ./bin/siriproxy bundle from the top level directory of SiriProxy
|
5
|
+
##########################
|
6
|
+
|
7
|
+
- name: 'AppController'
|
8
|
+
git: 'git://github.com/rckcrlr/SiriProxy-AppController.git'
|
9
|
+
|
@@ -12,7 +12,7 @@ class SiriProxy::Plugin::AppController < SiriProxy::Plugin
|
|
12
12
|
case
|
13
13
|
when (spoken =~ /i[Tt]unes/)
|
14
14
|
realapp = "iTunes"
|
15
|
-
when (spoken =~ /[
|
15
|
+
when (spoken =~ /[Mm]edia/)
|
16
16
|
realapp = "Plex"
|
17
17
|
when (spoken =~ /[Ww]eb[Cc]am/)
|
18
18
|
realapp = "iCamSource"
|
@@ -24,7 +24,7 @@ class SiriProxy::Plugin::AppController < SiriProxy::Plugin
|
|
24
24
|
|
25
25
|
## App Controller high level
|
26
26
|
listen_for /applications .* control/i do
|
27
|
-
say "I can start,
|
27
|
+
say "I can start, shutdown and give you status on itunes, plex and your webcam"
|
28
28
|
request_completed
|
29
29
|
end
|
30
30
|
|
@@ -65,10 +65,10 @@ class SiriProxy::Plugin::AppController < SiriProxy::Plugin
|
|
65
65
|
request_completed
|
66
66
|
end
|
67
67
|
|
68
|
-
listen_for /
|
68
|
+
listen_for /shutdown (.*)/i do |spokenapp|
|
69
69
|
app = spoketoreal(spokenapp)
|
70
70
|
if (app == "unknown")
|
71
|
-
say "I'm sorry, I don't know how to
|
71
|
+
say "I'm sorry, I don't know how to shutdown #{spokenapp}."
|
72
72
|
else
|
73
73
|
if (@app_ctl.appstatus?(app))
|
74
74
|
@app_ctl.stopapp?(app)
|
@@ -77,7 +77,7 @@ class SiriProxy::Plugin::AppController < SiriProxy::Plugin
|
|
77
77
|
say "#{spokenapp} has been stopped"
|
78
78
|
request_completed
|
79
79
|
else
|
80
|
-
say "I'm sorry, I was not able to
|
80
|
+
say "I'm sorry, I was not able to shutdown #{spokenapp}"
|
81
81
|
end
|
82
82
|
else
|
83
83
|
say "#{spokenapp} is not running"
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- rckcrlr
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-12-
|
17
|
+
date: 2011-12-05 00:00:00 -08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|
@@ -30,6 +30,7 @@ extra_rdoc_files: []
|
|
30
30
|
files:
|
31
31
|
- Gemfile
|
32
32
|
- Rakefile
|
33
|
+
- config-info.yml
|
33
34
|
- lib/app_brain.rb
|
34
35
|
- lib/siriproxy-appcontroller.rb
|
35
36
|
- siriproxy-appcontroller.gemspec
|