From: Kevin Clark Date: Wed, 18 Jun 2008 01:00:50 +0000 (+0000) Subject: Ensure the ruby tutorial uses the current library instead of the installed one X-Git-Tag: 0.2.0~624 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=2b1e10b21fc6f4a855235bc6774834b0510e8593;p=common%2Fthrift.git Ensure the ruby tutorial uses the current library instead of the installed one git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668925 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/tutorial/rb/RubyClient.rb b/tutorial/rb/RubyClient.rb index 1b5d5db5..69189adc 100755 --- a/tutorial/rb/RubyClient.rb +++ b/tutorial/rb/RubyClient.rb @@ -1,6 +1,7 @@ #!/usr/bin/env ruby $:.push('../gen-rb') +$:.unshift '../../lib/rb/lib' require 'thrift/transport/tsocket' require 'thrift/protocol/tbinaryprotocol' diff --git a/tutorial/rb/RubyServer.rb b/tutorial/rb/RubyServer.rb index 6ecb5634..d78c3238 100755 --- a/tutorial/rb/RubyServer.rb +++ b/tutorial/rb/RubyServer.rb @@ -1,6 +1,7 @@ #!/usr/bin/env ruby $:.push('../gen-rb') +$:.unshift '../../lib/rb/lib' require 'thrift/transport/tsocket' require 'thrift/protocol/tbinaryprotocol'