muzak 0.0.3 → 0.0.4

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: fab733031bed6bcb2bcc63c925077d9d4180af32
4
- data.tar.gz: 8f68076bbc2b28e030c2a549b8cb38e47afa0685
3
+ metadata.gz: 3f7427db5881fd8253e6159081edcb049c221d83
4
+ data.tar.gz: 6e19639939bddfad3fdd995b741bacc7113c5531
5
5
  SHA512:
6
- metadata.gz: fb0fea1f58fc6606bb77b835badbe15737c0bfe79812cd1c1a76a466cba3db1b157aeec3ae0a800498d8003c27c71044cc99e2f829882b7d53a406c8325ce4a0
7
- data.tar.gz: ac06c4c539899e62aa6677dda19e9a414fec7fb2195a8c9940c82141ad7501fffb1eb3962a3b6ba2ad3a8d81efdbfec08cc1d0fb35d79346d29d81c2e7649110
6
+ metadata.gz: 5677c46efa1bfb8176e94d06d0c2793856e08978f46421cd6ba5b42c9b50370b42a57c5f833757b15c8f267682cdcceffeb7df82c653ebb1b5b0967b61cbacc5
7
+ data.tar.gz: 5d60702cd8a71f06ea06e2dc728187327f8913d67bc8a630a61cc659d729cb4a905264c558b8ed11c70e6c5575d4d68c7215e01743cd1e8a2fdbd87dee840244
@@ -24,6 +24,14 @@ module Muzak
24
24
  @player.pause
25
25
  end
26
26
 
27
+ def toggle
28
+ if @player.playing?
29
+ @player.pause
30
+ else
31
+ @player.play
32
+ end
33
+ end
34
+
27
35
  def next
28
36
  @player.next_song
29
37
  end
@@ -1,5 +1,5 @@
1
1
  module Muzak
2
- VERSION = "0.0.3".freeze
2
+ VERSION = "0.0.4".freeze
3
3
 
4
4
  CONFIG_DIR = File.expand_path("~/.config/muzak").freeze
5
5
  CONFIG_FILE = File.join(CONFIG_DIR, "muzak.yml").freeze
@@ -29,6 +29,10 @@ module Muzak
29
29
  debug "#pause"
30
30
  end
31
31
 
32
+ def playing?
33
+ debug "#playing?"
34
+ end
35
+
32
36
  def next_song
33
37
  debug "#next_song"
34
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muzak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Woodruff