lita-onewheel-automatic-pancake 0.1.0 → 0.2.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: 2f9558927b477c4e62a37e3d0bc6631f092aadb0
|
4
|
+
data.tar.gz: 1257077fc8be1b0df2fe20a29b66bf69e4c614d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66e1b2f348544ff813ddd1a8ea2f8416a202e840b92bbd14f5b0aaaea7e32bcbdab0872f311fbe6bd22cc44fe41d7f1b71f1d6e7b97aa399a55c40c54b59cdd2
|
7
|
+
data.tar.gz: 5d1df3d0d8cbc0e416abcf9061921edfda45fb478a4c5eddbfec0fc168cbcd02b4a5fa90f210c67e708f02d0cd6a4d15f291ff608875f117f87af7e7e0fb4343
|
@@ -15,6 +15,16 @@ module Lita
|
|
15
15
|
command: true,
|
16
16
|
help: {'kill' => 'MAKE IT STOP'}
|
17
17
|
|
18
|
+
route /^vol up/i,
|
19
|
+
:vol_up,
|
20
|
+
command: true,
|
21
|
+
help: {'vol up' => 'Turn it up!'}
|
22
|
+
|
23
|
+
route /^vol down/i,
|
24
|
+
:vol_down,
|
25
|
+
command: true,
|
26
|
+
help: {'vol down' => 'Turn it down!'}
|
27
|
+
|
18
28
|
def play(response)
|
19
29
|
search_term = response.matches[0][0]
|
20
30
|
Lita.logger.debug "Search term found #{search_term}"
|
@@ -30,6 +40,14 @@ module Lita
|
|
30
40
|
kill_sound
|
31
41
|
end
|
32
42
|
|
43
|
+
def vol_up(response)
|
44
|
+
RestClient.post "#{config.pancake_server}/vol/up", {}
|
45
|
+
end
|
46
|
+
|
47
|
+
def vol_down(response)
|
48
|
+
RestClient.post "#{config.pancake_server}/vol/down", {}
|
49
|
+
end
|
50
|
+
|
33
51
|
def kill_sound
|
34
52
|
uri = "#{config.pancake_server}/kill"
|
35
53
|
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.2.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.}
|