Fixed Guard::Version in ruby 1.8.7
This commit is contained in:
parent
71e51706b7
commit
a2b3927a2e
6
Rakefile
6
Rakefile
@ -14,7 +14,7 @@ namespace(:spec) do
|
||||
system "cmd /c echo -----------#{version}------------ & " +
|
||||
"pik use #{version} & " +
|
||||
"bundle install & " +
|
||||
"rake spec"
|
||||
"bundle exec rake spec"
|
||||
end
|
||||
end
|
||||
else
|
||||
@ -26,9 +26,9 @@ namespace(:spec) do
|
||||
rvm #{version};
|
||||
echo "--------- version #{version} ----------\n";
|
||||
bundle install;
|
||||
rake spec'
|
||||
bundle exec rake spec'
|
||||
BASH
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
@ -84,7 +84,7 @@ module Guard
|
||||
try_require = false
|
||||
const_name = name.to_s.downcase.gsub('-', '')
|
||||
begin
|
||||
require "guard/#{name.downcase}" if try_require
|
||||
require "guard/#{name.to_s.downcase}" if try_require
|
||||
self.const_get(self.constants.find {|c| c.to_s.downcase == const_name })
|
||||
rescue TypeError
|
||||
unless try_require
|
||||
|
@ -1,3 +1,3 @@
|
||||
module Guard
|
||||
VERSION = "0.4.1" unless defined? VERSION
|
||||
VERSION = "0.4.1" unless defined? Guard::VERSION
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user