[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

rake problem

Its Me

11/22/2004 11:55:00 PM

Rake (0.4.11) seems to add a whole bunch of new methods to Object. Why is
this?

irb(main):004:0> diff = m2 - m1
=> ["cmp", "getwd", "cd", "ruby", "nowrite", "rm", "touch", "split_all",
"rmtree", "remove_file", "c
opy_stream", "safe_unlink", "compare_stream", "pwd", "link", "remove",
"mkpath", "when_writing", "ln
_s", "uptodate?", "chmod", "rm_f", "safe_ln", "copy_file", "rm_r",
"symlink", "sh", "mv", "mkdir_p",
"compare_file", "ln_sf", "identical?", "verbose", "makedirs", "mkdir",
"cp_r", "copy", "cp", "remov
e_dir", "chdir", "rmdir", "move", "ln", "rm_rf", "install"]

In my case, this causes application failure as soon as I require one of my
files into the rakefile.

Help? Thanks!


1 Answer

Jim Weirich

11/23/2004 1:07:00 PM

0

On Monday 22 November 2004 06:58 pm, itsme213 wrote:
> Rake (0.4.11) seems to add a whole bunch of new methods to Object. Why is
> this?

Because 90% (a statistic I just made up) of Rake usage deals with the creation
and management of files, Rake will include the FileUtils module at top level.

> In my case, this causes application failure as soon as I require one of my
> files into the rakefile.

I'm not clear why this is causing you problems. Can you send me an example?

Thanks.

--
-- Jim Weirich jim@weirichhouse.org http://onest...
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)