data/tasks/setup.rb in bones-1.1.0 vs data/tasks/setup.rb in bones-1.1.1
- old
+ new
@@ -87,15 +87,15 @@
end
RCOV = WIN32 ? 'rcov.cmd' : 'rcov'
GEM = WIN32 ? 'gem.cmd' : 'gem'
-%w(rcov spec rubyforge bones).each do |lib|
+%w(rcov spec/rake/spectask rubyforge bones).each do |lib|
begin
require lib
- Object.instance_eval {const_set "HAVE_#{lib.upcase}", true}
+ Object.instance_eval {const_set "HAVE_#{lib.tr('/','_').upcase}", true}
rescue LoadError
- Object.instance_eval {const_set "HAVE_#{lib.upcase}", false}
+ Object.instance_eval {const_set "HAVE_#{lib.tr('/','_').upcase}", false}
end
end
# Reads a file at +path+ and spits out an array of the +paragraphs+
# specified.