ruby-mpd 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 333202eda4c6c22e46460282a43a3b371b715c1b
4
- data.tar.gz: f6ff86a19897bb351ed6fd9a89bcb01a9189e3d8
3
+ metadata.gz: 81250c9495f0879f017e77346e5701490cec542e
4
+ data.tar.gz: 6ccc64d7af2eda39221f4bd6850ac6632272ba9a
5
5
  SHA512:
6
- metadata.gz: ece754b4d084735f77375d249c2747fd5a8d628235635fa1b154c77026aa1a72ace0b4e3f1de078ac7d342bf86e60058dcd07566a0ff1f5356481cc9827c2e5b
7
- data.tar.gz: 7228fce8013d9d60481485fe9565ea0a8ba30c40ea0c232c50187dea8ff11f936fa1910de46bd645fbd91448cd7ad20257a727373aa5815bb74f4f80a74f8d15
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 pos.is_a?(Hash)
68
- if pos[:id]
69
- send_command :moveid, pos[:id], to
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
@@ -0,0 +1,3 @@
1
+ class MPD
2
+ VERSION = '0.2.2'
3
+ end
data/lib/ruby-mpd.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'socket'
2
2
  require 'thread'
3
3
 
4
+ require 'ruby-mpd/version'
4
5
  require 'ruby-mpd/exceptions'
5
6
  require 'ruby-mpd/song'
6
7
  require 'ruby-mpd/parser'
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 = '0.2.1'
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.1
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-03-09 00:00:00.000000000 Z
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.2
61
+ rubygems_version: 2.0.3
61
62
  signing_key:
62
63
  specification_version: 4
63
64
  summary: Modern client library for MPD