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: 2f9558927b477c4e62a37e3d0bc6631f092aadb0
4
- data.tar.gz: 1257077fc8be1b0df2fe20a29b66bf69e4c614d7
3
+ metadata.gz: dea9f75bf573439a7f82184c2c7d94c74c505c16
4
+ data.tar.gz: 8f16ea9cc5723fd01bf70074d4b0a4bbcfb62ba1
5
5
  SHA512:
6
- metadata.gz: 66e1b2f348544ff813ddd1a8ea2f8416a202e840b92bbd14f5b0aaaea7e32bcbdab0872f311fbe6bd22cc44fe41d7f1b71f1d6e7b97aa399a55c40c54b59cdd2
7
- data.tar.gz: 5d1df3d0d8cbc0e416abcf9061921edfda45fb478a4c5eddbfec0fc168cbcd02b4a5fa90f210c67e708f02d0cd6a4d15f291ff608875f117f87af7e7e0fb4343
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.2.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.2.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-14 00:00:00.000000000 Z
11
+ date: 2016-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita