rmpd 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rmpd/commands/miscellaneous.rb +14 -2
- data/lib/rmpd/version.rb +1 -1
- metadata +4 -4
@@ -4,8 +4,8 @@ module Rmpd
|
|
4
4
|
simple_command :commands
|
5
5
|
simple_command :notcommands
|
6
6
|
simple_command :clearerror
|
7
|
-
simple_command :
|
8
|
-
simple_command :
|
7
|
+
simple_command :_idle
|
8
|
+
simple_command :_noidle
|
9
9
|
simple_command :password
|
10
10
|
simple_command :ping
|
11
11
|
simple_command :stats
|
@@ -20,6 +20,18 @@ module Rmpd
|
|
20
20
|
simple_command :command_list
|
21
21
|
simple_command :command_list_ok
|
22
22
|
|
23
|
+
def idle(*subsystems)
|
24
|
+
@in_idle = true
|
25
|
+
_idle(mpd, *subsystems)
|
26
|
+
ensure
|
27
|
+
@in_idle = false
|
28
|
+
end
|
29
|
+
|
30
|
+
def noidle
|
31
|
+
return unless @in_idle
|
32
|
+
_noidle
|
33
|
+
end
|
34
|
+
|
23
35
|
alias_method :clear_error, :clearerror
|
24
36
|
alias_method :not_commands, :notcommands
|
25
37
|
|
data/lib/rmpd/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rmpd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 1
|
10
|
+
version: 1.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Eric Wollesen
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-09-
|
18
|
+
date: 2012-09-11 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rspec
|