Permalink
Browse files

Cleanup load path loading.

  • Loading branch information...
1 parent 557baf3 commit ee7940f47c1b602597a923b2e858f718d6196017 @wayneeseguin committed Apr 27, 2012
Showing with 3 additions and 5 deletions.
  1. +1 −2 Rakefile
  2. +2 −3 psql-cm.gemspec
View
@@ -1,5 +1,4 @@
-lib = File.join(File.dirname(__FILE__),'lib', __FILE__)
-
+lib = File.join(File.dirname(__FILE__),'lib')
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
require 'psql-cm/version'
View
@@ -1,6 +1,5 @@
-lib = File.expand_path('../lib/', __FILE__)
-
-$:.unshift lib unless $:.include?(lib)
+lib = File.join(File.dirname(__FILE__),'lib')
+$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
require 'psql-cm/version'

0 comments on commit ee7940f

Please sign in to comment.