mpc 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/mpc.rb +1 -1
  2. data/test/mpc_test.rb +12 -2
  3. metadata +18 -5
data/lib/mpc.rb CHANGED
@@ -232,7 +232,7 @@ class Mpc
232
232
  status_hash = Hash.new
233
233
  string.each do |line|
234
234
  key, value = line.chomp.split(": ", 2)
235
- status_hash[key.parameterize.underscore.to_sym] = value
235
+ status_hash[key.to_sym] = value
236
236
  end
237
237
  status_hash
238
238
  end
data/test/mpc_test.rb CHANGED
@@ -1,5 +1,15 @@
1
- require File.join(File.dirname(__FILE__),"..","lib","mpc")
1
+ require "rubygems"
2
+ require "mocha"
3
+
4
+ gem "test-unit"
5
+
2
6
  require "test/unit"
7
+ require "lib/mpc"
8
+ require "tree"
9
+
10
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
11
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
12
+
3
13
  class MpcTest < Test::Unit::TestCase
4
14
 
5
15
  def setup
@@ -125,6 +135,6 @@ class MpcTest < Test::Unit::TestCase
125
135
 
126
136
  test "move_song should send move command" do
127
137
  @mpc.expects(:puts).with("move 1 3")
128
- @mpc.move(1,3)
138
+ @mpc.move_song(1,3)
129
139
  end
130
140
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mpc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 3
9
- version: "0.3"
8
+ - 4
9
+ version: "0.4"
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Micha\xC5\x82 Krzy\xC5\xBCanowski"
@@ -16,8 +16,21 @@ cert_chain: []
16
16
 
17
17
  date: 2010-08-10 00:00:00 +02:00
18
18
  default_executable:
19
- dependencies: []
20
-
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rubytree
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :runtime
33
+ version_requirements: *id001
21
34
  description: Ruby MPD client gem
22
35
  email: michal.krzyzanowski+mpc@gmail.com
23
36
  executables: []