gorp 0.19.1 → 0.19.2
Sign up to get free protection for your applications and to get access to all the features.
- data/gorp.gemspec +1 -1
- data/lib/gorp/rails.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +1 -1
data/gorp.gemspec
CHANGED
data/lib/gorp/rails.rb
CHANGED
@@ -13,7 +13,7 @@ end
|
|
13
13
|
# select a version of Rails
|
14
14
|
if ARGV.first =~ /^_\d[.\d]*_$/
|
15
15
|
$rails = "rails #{ARGV.first}"
|
16
|
-
elsif File.directory?(ARGV.first.split(File::PATH_SEPARATOR).to_s
|
16
|
+
elsif File.directory?(ARGV.first.to_s.split(File::PATH_SEPARATOR).first.to_s)
|
17
17
|
if ARGV.first.include?(File::PATH_SEPARATOR)
|
18
18
|
# first path is Rails, additional paths are added to the RUBYLIBS
|
19
19
|
libs = ENV['RUBYLIBS'].to_s.split(File::PATH_SEPARATOR)
|
data/lib/version.rb
CHANGED