Changeset 1043


Ignore:
Timestamp:
Jun 11, 2008 12:44:25 PM (13 years ago)
Author:
bhaley
Message:

Fixed bug in Ruby putfile() method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/ruby/Ruby_Rappture.cc

    r896 r1043  
    249249   if (T_STRING == TYPE(filename))
    250250   {
    251       ID id_filetest = rb_intern("FileTest.file?");
    252 
    253       if (Qtrue == rb_funcall(filename, id_filetest, 0))  /* valid filename */
     251      VALUE ft = rb_const_get(rb_cObject, rb_intern("FileTest"));
     252      ID id_filetest = rb_intern("file?");
     253
     254      if (Qtrue == rb_funcall(ft, id_filetest, 1, filename))  /* valid filename */
    254255      {
    255256         lib->putFile(STR2CSTR(path), STR2CSTR(filename), NUM2INT(compress),
Note: See TracChangeset for help on using the changeset viewer.