[Rake-devel] New loading behavior

James M. Lawrence quixoticsycophant at gmail.com
Mon Jun 7 13:23:01 EDT 2010

On Mon, Jun 7, 2010 at 12:40 PM, Luis Lavena <luislavena at gmail.com> wrote:
> What about Rake.import?

The issue is whether breaking load was intended.  Rake.import is not
interchangeable with load.

task :default do

extra = "Rakefile.extra"
File.open(extra, "w") { |f| f.puts "SPEC = 99" }

# need load instead
import extra

p SPEC # => uninitialized constant

More information about the Rake-devel mailing list