Skip to content

Commit

Permalink
change module name to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
mjc-gh committed Sep 8, 2011
1 parent 5064f59 commit cffbaf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bin/spotify-dbus
Expand Up @@ -9,9 +9,10 @@ end
if ARGV.size > 0
begin
cmd = ARGV.pop
player = SpotifyDBus.player

if Spotify.player.methods[cmd]
Spotify.player.send(cmd)
if player.methods[cmd]
player.send(cmd)

else
die "Invalid command!"
Expand Down
2 changes: 1 addition & 1 deletion lib/spotify-dbus.rb
@@ -1,6 +1,6 @@
require 'dbus'

module Spotify
module SpotifyDBus
def self.player
@player ||= find_dbus_object
end
Expand Down

0 comments on commit cffbaf0

Please sign in to comment.