summaryrefslogtreecommitdiff
path: root/libmpd.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2009-08-01 20:20:00 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2009-08-01 20:20:00 -0700
commit747d0173fdbee31e3e4d16f3137ed4662a199619 (patch)
tree16883ece788f2704d1fe0afe9f394caba294c2b9 /libmpd.rb
parentde8af9212c4bd91bff7356d20e8aa47139d30e46 (diff)
downloadruby-libmpd-747d0173fdbee31e3e4d16f3137ed4662a199619.tar.gz
ruby-libmpd-747d0173fdbee31e3e4d16f3137ed4662a199619.tar.xz
Use absolute paths with require.
Diffstat (limited to 'libmpd.rb')
-rw-r--r--libmpd.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/libmpd.rb b/libmpd.rb
index 00b5c16..9d75dd6 100644
--- a/libmpd.rb
+++ b/libmpd.rb
@@ -9,12 +9,15 @@
# *Author*:: David Vazgenovich Shakaryan
# *License*:: GNU General Public License v3
+
require 'socket'
-require 'libmpd/database'
-require 'libmpd/playbackcontrol'
-require 'libmpd/playbackoptions'
-require 'libmpd/playlist'
-require 'libmpd/status'
+
+MODULE_PATH = File.dirname(__FILE__) + '/libmpd/'
+require MODULE_PATH + 'database'
+require MODULE_PATH + 'playbackcontrol'
+require MODULE_PATH + 'playbackoptions'
+require MODULE_PATH + 'playlist'
+require MODULE_PATH + 'status'
class TrueClass # :nodoc:
def to_i