ruby-mpd 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby-mpd/plugins/queue.rb +3 -3
- data/lib/ruby-mpd/version.rb +3 -0
- data/lib/ruby-mpd.rb +1 -0
- data/ruby-mpd.gemspec +3 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81250c9495f0879f017e77346e5701490cec542e
|
4
|
+
data.tar.gz: 6ccc64d7af2eda39221f4bd6850ac6632272ba9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d78618dd432adb46e35d84bb251fa40b7e07c8f00627151e92488175e02287856c0b69af4cc5892488505080467c094e5826c83f7c4b30d92bd702dce2fcadac
|
7
|
+
data.tar.gz: ea64e58ddc5aa05be097ba2cff590d4d80017e902b4c1b7d9152cbbe73daae40129a2a85241499bf0a4c019f8154129bd33e8d368d00d5d808255d79d19986e6
|
@@ -64,9 +64,9 @@ class MPD
|
|
64
64
|
# @param [Hash] from :id to specify the song ID to move instead of position.
|
65
65
|
# @macro returnraise
|
66
66
|
def move(from, to)
|
67
|
-
if
|
68
|
-
if
|
69
|
-
send_command :moveid,
|
67
|
+
if from.is_a?(Hash)
|
68
|
+
if from[:id]
|
69
|
+
send_command :moveid, from[:id], to
|
70
70
|
else
|
71
71
|
raise ArgumentError, 'Only :id key is allowed!'
|
72
72
|
end
|
data/lib/ruby-mpd.rb
CHANGED
data/ruby-mpd.gemspec
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.unshift File.expand_path("../lib", __FILE__)
|
3
|
+
require "ruby-mpd/version"
|
2
4
|
|
3
5
|
Gem::Specification.new do |s|
|
4
6
|
s.platform = Gem::Platform::RUBY
|
5
7
|
s.name = 'ruby-mpd'
|
6
|
-
s.version =
|
8
|
+
s.version = MPD::VERSION
|
7
9
|
s.homepage = 'https://github.com/archSeer/ruby-mpd'
|
8
10
|
s.authors = ["Blaž Hrastnik"]
|
9
11
|
s.email = ['speed.the.bboy@gmail.com']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-mpd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blaž Hrastnik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A powerful, modern and feature complete library for the Music Player
|
14
14
|
Daemon.
|
@@ -36,6 +36,7 @@ files:
|
|
36
36
|
- lib/ruby-mpd/plugins/reflection.rb
|
37
37
|
- lib/ruby-mpd/plugins/stickers.rb
|
38
38
|
- lib/ruby-mpd/song.rb
|
39
|
+
- lib/ruby-mpd/version.rb
|
39
40
|
- ruby-mpd.gemspec
|
40
41
|
- test/libtests.rb
|
41
42
|
homepage: https://github.com/archSeer/ruby-mpd
|
@@ -57,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
58
|
version: '0'
|
58
59
|
requirements: []
|
59
60
|
rubyforge_project:
|
60
|
-
rubygems_version: 2.0.
|
61
|
+
rubygems_version: 2.0.3
|
61
62
|
signing_key:
|
62
63
|
specification_version: 4
|
63
64
|
summary: Modern client library for MPD
|