mpc 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/mpc.rb +1 -0
  2. data/lib/mpc/song.rb +11 -9
  3. data/lib/mpc/version.rb +1 -1
  4. metadata +1 -1
data/lib/mpc.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require "socket"
2
2
  require "mpc/song"
3
+
3
4
  class Mpc
4
5
 
5
6
  @@regexps = {
data/lib/mpc/song.rb CHANGED
@@ -1,14 +1,16 @@
1
- class Mpc::Song
1
+ class Mpc
2
+ class Song
2
3
 
3
- def initialize(options)
4
- @options = options
5
- end
4
+ def initialize(options)
5
+ @options = options
6
+ end
6
7
 
7
- def to_s
8
- if @options[:Artist].empty? || @options[:Title].empty?
9
- @options[:file]
10
- else
11
- "#{@options[:Artist]} - #{@options[:Title]}"
8
+ def to_s
9
+ if @options[:Artist].empty? || @options[:Title].empty?
10
+ @options[:file]
11
+ else
12
+ "#{@options[:Artist]} - #{@options[:Title]}"
13
+ end
12
14
  end
13
15
  end
14
16
  end
data/lib/mpc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Mpc
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mpc
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.1
5
+ version: 0.9.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Micha\xC5\x82 Krzy\xC5\xBCanowski"