rmpd 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rmpd/commands.rb +1 -1
- data/lib/rmpd/commands/playlist.rb +1 -1
- data/lib/rmpd/response.rb +3 -3
- data/lib/rmpd/version.rb +1 -1
- data/rmpd.gemspec +1 -0
- metadata +20 -6
data/lib/rmpd/commands.rb
CHANGED
@@ -36,7 +36,7 @@ module Rmpd
|
|
36
36
|
def addid(path, pos=nil)
|
37
37
|
# pos is only for r7153+, but what version is that?
|
38
38
|
server_version_at_least(0, 14, 0) if pos
|
39
|
-
send_command("addid #{quote(path)} #{pos ? pos.to_s : nil}")
|
39
|
+
send_command("addid #{quote([path])} #{pos ? pos.to_s : nil}")
|
40
40
|
@add_id_response_regex ||= /(^Id: )/i
|
41
41
|
if @in_command_list
|
42
42
|
append_command_list_regexp(@add_id_response_regex)
|
data/lib/rmpd/response.rb
CHANGED
@@ -38,9 +38,9 @@ module Rmpd
|
|
38
38
|
def parse(data)
|
39
39
|
data.split("\n").each do |line|
|
40
40
|
case line
|
41
|
-
when KEY_VALUE_RE
|
42
|
-
when OK_RE
|
43
|
-
when ACK_RE
|
41
|
+
when KEY_VALUE_RE; register_key_val_pair($~)
|
42
|
+
when OK_RE; @error = nil
|
43
|
+
when ACK_RE; @error = MpdAckError.new($~.values_at(0..-1))
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
data/lib/rmpd/version.rb
CHANGED
data/rmpd.gemspec
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 17
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 3
|
10
|
+
version: 1.0.3
|
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: 2011-07-
|
18
|
+
date: 2011-07-07 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -48,6 +48,20 @@ dependencies:
|
|
48
48
|
version: "0"
|
49
49
|
type: :development
|
50
50
|
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: rake
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
version: "0"
|
63
|
+
type: :development
|
64
|
+
version_requirements: *id003
|
51
65
|
description: Music Player Daemon client in Ruby
|
52
66
|
email:
|
53
67
|
- ericw@xmtp.net
|
@@ -122,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
136
|
requirements: []
|
123
137
|
|
124
138
|
rubyforge_project:
|
125
|
-
rubygems_version: 1.
|
139
|
+
rubygems_version: 1.3.7
|
126
140
|
signing_key:
|
127
141
|
specification_version: 3
|
128
142
|
summary: Music Player Daemon client in Ruby
|