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: 5f5727090f8a35b5c340da148571e4727466335b
4
- data.tar.gz: 53cba07bca9cdcb59ccadb4920dfff1392112f9a
3
+ metadata.gz: 2f9558927b477c4e62a37e3d0bc6631f092aadb0
4
+ data.tar.gz: 1257077fc8be1b0df2fe20a29b66bf69e4c614d7
5
5
  SHA512:
6
- metadata.gz: cf24181c6e76c56ef8e1763789f01c62555a2b5352a5018f9490b1d8cbd0d1afc90833ea4fe212d1dc79c5d2ffe438907319def62b9a92cdf84ec3c96eb0a292
7
- data.tar.gz: 64c31e100627ba4e4b05d4358e9fdd2013ccbd6083544f9c0c72f94b45e406c86c39ba90bd767474a366cc9eeba746be3d986fae679dfe3da5f8d35b3e2e8de4
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.1.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.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-automatic-pancake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps