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 CHANGED
@@ -19,7 +19,7 @@ module Rmpd
19
19
  while lines << @socket.readline do
20
20
  puts "recv: #{lines.last.strip} (#{OK_RE === lines.last})" if $DEBUG
21
21
  case lines.last
22
- when ACK_RE, OK_RE: break
22
+ when ACK_RE, OK_RE; break
23
23
  end
24
24
  end
25
25
  return lines.join
@@ -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: register_key_val_pair($~)
42
- when OK_RE: @error = nil
43
- when ACK_RE: @error = MpdAckError.new($~.values_at(0..-1))
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
@@ -1,3 +1,3 @@
1
1
  module Rmpd
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
data/rmpd.gemspec CHANGED
@@ -21,4 +21,5 @@ Gem::Specification.new do |s|
21
21
 
22
22
  s.add_development_dependency("rspec", "~> 2.6.0")
23
23
  s.add_development_dependency("ruby-debug")
24
+ s.add_development_dependency("rake")
24
25
  end
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: 19
5
- prerelease:
4
+ hash: 17
5
+ prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
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-01 00:00:00 -06:00
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.6.2
139
+ rubygems_version: 1.3.7
126
140
  signing_key:
127
141
  specification_version: 3
128
142
  summary: Music Player Daemon client in Ruby