lita-onewheel-automatic-pancake 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dea9f75bf573439a7f82184c2c7d94c74c505c16
|
4
|
+
data.tar.gz: 8f16ea9cc5723fd01bf70074d4b0a4bbcfb62ba1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2c4a92ed5cfc186522d54c8b67f58bcdf71b8b3bbeedad357d2f892e1e710d1c15f8f99f3ed7b410b95c6ae1def30f1d5ea692a49b2e7a78001e287777c5ef6
|
7
|
+
data.tar.gz: 8f22883e61d257c4e675ae16a8a495c3ff47cfb4c45cb75e3ede9ed6eb381ae12107125171bce34dcef326d3e0badf2a2309272f403d50e0aff7cdd6647da1b1
|
@@ -25,6 +25,11 @@ module Lita
|
|
25
25
|
command: true,
|
26
26
|
help: {'vol down' => 'Turn it down!'}
|
27
27
|
|
28
|
+
route /^playtube (.*)$/i,
|
29
|
+
:youtube,
|
30
|
+
command: true,
|
31
|
+
help: {'playtube' => 'Play this youtube.'}
|
32
|
+
|
28
33
|
def play(response)
|
29
34
|
search_term = response.matches[0][0]
|
30
35
|
Lita.logger.debug "Search term found #{search_term}"
|
@@ -48,6 +53,10 @@ module Lita
|
|
48
53
|
RestClient.post "#{config.pancake_server}/vol/down", {}
|
49
54
|
end
|
50
55
|
|
56
|
+
def youtube(response)
|
57
|
+
RestClient.post "#{config.pancake_server}/youtube", {uri: response.matches[0][0]}
|
58
|
+
end
|
59
|
+
|
51
60
|
def kill_sound
|
52
61
|
uri = "#{config.pancake_server}/kill"
|
53
62
|
Lita.logger.debug "Killing! #{uri}"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'lita-onewheel-automatic-pancake'
|
3
|
-
spec.version = '0.
|
3
|
+
spec.version = '0.3.0'
|
4
4
|
spec.authors = ['Andrew Kreps']
|
5
5
|
spec.email = ['andrew.kreps@gmail.com']
|
6
6
|
spec.description = %q{Lita interface to Automatic Pancake.}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-onewheel-automatic-pancake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kreps
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|