Changeset 115

Show
Ignore:
Timestamp:
02/18/2007 10:21:56 (22 months ago)
Author:
olabini
Message:

JRuby has removed support for the IRuby interface, so hpricot must follow suit.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ext/hpricot_scan/hpricot_scan.java.rl

    r110 r115  
    22import java.io.IOException; 
    33 
    4 import org.jruby.IRuby; 
     4import org.jruby.Ruby; 
    55import org.jruby.RubyClass; 
    66import org.jruby.RubyHash; 
     
    209209int tokstart=-1, tokend; 
    210210char[] buf; 
    211 IRuby runtime; 
     211Ruby runtime; 
    212212IRubyObject attr, bufsize; 
    213213IRubyObject[] tag, akey, aval; 
     
    332332 
    333333public static IRubyObject __hpricot_scan(IRubyObject recv, IRubyObject port, Block block) { 
    334   IRuby runtime = recv.getRuntime(); 
     334  Ruby runtime = recv.getRuntime(); 
    335335  HpricotScanService service = new HpricotScanService(); 
    336336  service.runtime = runtime; 
     
    349349 
    350350 
    351 public boolean basicLoad(final IRuby runtime) throws IOException { 
     351public boolean basicLoad(final Ruby runtime) throws IOException { 
    352352       Init_hpricot_scan(runtime); 
    353353       return true; 
    354354} 
    355355 
    356 public static void Init_hpricot_scan(IRuby runtime) { 
     356public static void Init_hpricot_scan(Ruby runtime) { 
    357357  RubyModule mHpricot = runtime.defineModule("Hpricot"); 
    358358  mHpricot.getMetaClass().attr_accessor(new IRubyObject[]{runtime.newSymbol("buffer_size")});