lib/mpd_client.rb in mpd_client-0.2.0 vs lib/mpd_client.rb in mpd_client-0.3.0
- old
+ new
@@ -255,13 +255,13 @@
def ensure_connected
raise 'Please connect to MPD server' unless connected?
end
- def execute(command, *args, retval)
+ def execute(command, *, retval)
@mutex.synchronize do
- write_command(command, *args)
+ write_command(command, *)
if @command_list.nil?
eval retval
else
@command_list << retval
@@ -292,11 +292,10 @@
end
parts << line
end
- # log.debug("Calling MPD: #{command}#{args}") if log
log&.debug("Calling MPD: #{parts.join(' ')}")
write_line(parts.join(' '))
end
def read_line
@@ -400,15 +399,15 @@
objs = fetch_objects
objs ? objs[0] : {}
end
- def fetch_binary(io = StringIO.new, offset = 0, *args)
+ def fetch_binary(io = StringIO.new, offset = 0, *)
data = {}
@mutex.synchronize do
- write_command(*args, offset)
+ write_command(*, offset)
binary = false
read_pairs.each do |item|
if binary
@@ -432,10 +431,10 @@
return [data, io] if next_offset >= size
io.seek(-1, IO::SEEK_CUR)
- fetch_binary(io, next_offset, *args)
+ fetch_binary(io, next_offset, *)
end
def fetch_changes
fetch_objects(['cpos'])
end