mpc 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/mpc.rb +6 -2
  2. data/lib/mpc/version.rb +1 -1
  3. metadata +2 -2
data/lib/mpc.rb CHANGED
@@ -26,8 +26,8 @@ class Mpc
26
26
  @socket = nil
27
27
  end
28
28
 
29
- def play
30
- send_command "play"
29
+ def play(pos = "")
30
+ send_command "play #{pos}"
31
31
  end
32
32
 
33
33
  def playing?
@@ -98,6 +98,10 @@ class Mpc
98
98
  "State: #{status[:state]} Volume: #{volume}% Artists: #{stats[:artists]} Albums: #{stats[:albums]} Songs: #{stats[:songs]}"
99
99
  end
100
100
 
101
+ def add(song, pos = nil)
102
+ send_command "addid #{song} #{pos}"
103
+ end
104
+
101
105
  private
102
106
 
103
107
  def get_volume
@@ -1,3 +1,3 @@
1
1
  class Mpc
2
- VERSION = "0.9.3"
2
+ VERSION = "0.9.4"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mpc
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.3
5
+ version: 0.9.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Micha\xC5\x82 Krzy\xC5\xBCanowski"
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-05 00:00:00 +02:00
13
+ date: 2011-08-09 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency