lib/bones.rb in TwP-bones-2.5.0 vs lib/bones.rb in TwP-bones-2.5.1
- old
+ new
@@ -2,11 +2,11 @@
require 'rbconfig'
module Bones
# :stopdoc:
- VERSION = '2.5.0'
+ VERSION = '2.5.1'
PATH = File.expand_path(File.join(File.dirname(__FILE__), '..'))
HOME = File.expand_path(ENV['HOME'] || ENV['USERPROFILE'])
DEV_NULL = File.exist?('/dev/null') ? '/dev/null' : 'NUL:'
# Ruby Interpreter location - taken from Rake source code
@@ -52,10 +52,10 @@
bones_setup = ::Bones.path %w[lib bones tasks setup.rb]
load bones_setup
rakefiles = Dir.glob(File.join(Dir.pwd, %w[tasks *.rake])).sort
- import(*rakefiles) unless rakefiles.empty?
+ rakefiles.each {|fn| Rake.application.add_import(fn)}
end
# TODO: fix file lists for Test::Unit and RSpec
# these guys are just grabbing whatever is there and not pulling
# the filenames from the manifest