Changeset 352

Show
Ignore:
Timestamp:
04/21/08 01:03:47 (7 months ago)
Author:
jake
Message:

workaround for ruby bindings

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tutorial/rb/BookmarkExample.rb

    r336 r352  
    3535          transport = TFramedTransport.new(TSocket.new('localhost', THRUDOC_PORT)) 
    3636          protocol  = TBinaryProtocol.new(transport) 
    37           @thrudoc  = Thrudoc::Client.new(protocol) 
     37          @thrudoc  = Thrudoc::Thrudoc::Client.new(protocol) 
    3838 
    3939          transport.open() 
     40 
     41          @thrudoc.admin("create_bucket", THRUDOC_BUCKET); 
    4042      end 
    4143 
     
    4345          transport = TFramedTransport.new(TSocket.new('localhost', THRUDEX_PORT)) 
    4446          protocol  = TBinaryProtocol.new(transport) 
    45           @thrudex = Thrudex::Client.new(protocol) 
     47          @thrudex = Thrudex::Thrudex::Client.new(protocol) 
    4648 
    4749          transport.open() 
     
    208210 
    209211        if ids.elements.length > 0 
    210             
     212 
    211213           doc_list = @thrudoc.getList( create_doc_list(ids.elements) ) 
    212214           bms      = [] 
     
    230232 
    231233        ids.each{ |id| 
    232               doc        = Element.new() 
     234              doc        = Thrudoc::Element.new() 
    233235              doc.bucket = THRUDOC_BUCKET 
    234236              doc.key    = id.key