common/thrift.git
16 years agorb: The deprecation stuff should skip thrift library code when showing caller [THRIFT-56]
Kevin Clark [Thu, 26 Jun 2008 18:45:19 +0000 (18:45 +0000)] 
rb: The deprecation stuff should skip thrift library code when showing caller [THRIFT-56]

Author: Kevin Ballard <kevin@rapleaf.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@671984 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Add some additional error handling to Thrift::Socket [THRIFT-53]
Kevin Clark [Thu, 26 Jun 2008 18:35:15 +0000 (18:35 +0000)] 
rb: Add some additional error handling to Thrift::Socket [THRIFT-53]

Author: Kevin Ballard <kevin@rapleaf.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@671979 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Add stubs for rake install/package when Echoe not present [THRIFT-52]
Kevin Clark [Thu, 26 Jun 2008 18:14:25 +0000 (18:14 +0000)] 
rb: Add stubs for rake install/package when Echoe not present [THRIFT-52]

Author: Kevin Ballard <kevin@rapleaf.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@671971 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: BufferedTransport should flush on close [THRIFT-49]
Kevin Clark [Thu, 26 Jun 2008 18:10:56 +0000 (18:10 +0000)] 
rb: BufferedTransport should flush on close [THRIFT-49]

This also adds code and spec so nothing will be written to the transport
if there's nothing in the write buffer.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@671967 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Use File.dirname(__FILE__) in generated requires [THRIFT-57]
Kevin Clark [Thu, 26 Jun 2008 17:49:49 +0000 (17:49 +0000)] 
rb: Use File.dirname(__FILE__) in generated requires [THRIFT-57]

This means you no longer have to put the gen-rb folder in $:

Author: Kevin Ballard <kevin@rapleaf.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@671963 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Make TServer.py Python 2.4 compatible [THRIFT-44]
Kevin Clark [Tue, 24 Jun 2008 20:46:32 +0000 (20:46 +0000)] 
rb: Make TServer.py Python 2.4 compatible [THRIFT-44]

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@671337 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: When passing unknown keys to Thrift::Struct.new, report those keys in the excepti...
Kevin Clark [Tue, 24 Jun 2008 01:32:03 +0000 (01:32 +0000)] 
rb: When passing unknown keys to Thrift::Struct.new, report those keys in the exception [THRIFT-51]

Author: kevin@rapleaf.com

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@670989 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Delete setup.rb [THRIFT-38]
Kevin Clark [Tue, 24 Jun 2008 01:06:10 +0000 (01:06 +0000)] 
rb: Delete setup.rb [THRIFT-38]

From kevin@rapleaf.com

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@670985 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: rewrite the README [THRIFT-38]
Kevin Clark [Tue, 24 Jun 2008 01:06:08 +0000 (01:06 +0000)] 
rb: rewrite the README [THRIFT-38]

From kevin@rapleaf.com

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@670984 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Change the license from Thrift Software License to Apache Software License [THRIF...
Kevin Clark [Tue, 24 Jun 2008 01:06:06 +0000 (01:06 +0000)] 
rb: Change the license from Thrift Software License to Apache Software License [THRIFT-38]

From kevin@rapleaf.com

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@670983 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Use Echoe to manage the gem [THRIFT-38]
Kevin Clark [Tue, 24 Jun 2008 01:06:00 +0000 (01:06 +0000)] 
rb: Use Echoe to manage the gem [THRIFT-38]

From kevin@rapleaf.com

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@670982 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Reorganize the Rakefile a bit [THRIFT-38]
Kevin Clark [Tue, 24 Jun 2008 01:05:57 +0000 (01:05 +0000)] 
rb: Reorganize the Rakefile a bit [THRIFT-38]

From kevin@rapleaf.com

Also add a guard to ensure `rake test` is only run if we're in a full thrift checkout

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@670981 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Use defined? JRUBY_VERSION to detect JRuby [THRIFT-38]
Kevin Clark [Tue, 24 Jun 2008 01:05:55 +0000 (01:05 +0000)] 
rb: Use defined? JRUBY_VERSION to detect JRuby [THRIFT-38]

From kevin@rapleaf.com

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@670980 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: require 'thrift' first in generated service definitions [THRIFT-38]
Kevin Clark [Tue, 24 Jun 2008 01:05:51 +0000 (01:05 +0000)] 
rb: require 'thrift' first in generated service definitions [THRIFT-38]

From kevin@rapleaf.com

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@670979 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Bugfix for deprecation code [kevin@rapleaf.com][THRIFT-50]
Kevin Clark [Tue, 24 Jun 2008 00:33:00 +0000 (00:33 +0000)] 
rb: Bugfix for deprecation code [kevin@rapleaf.com][THRIFT-50]

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@670976 13f79535-47bb-0310-9956-ffa450edef68

16 years agoTHRIFT-43. Ignore build-generated files.
Doug Cutting [Fri, 20 Jun 2008 22:21:19 +0000 (22:21 +0000)] 
THRIFT-43.  Ignore build-generated files.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@670083 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Switch NonblockingServer spec from Queue to sleep
Kevin Clark [Wed, 18 Jun 2008 01:20:25 +0000 (01:20 +0000)] 
rb: Switch NonblockingServer spec from Queue to sleep

Using sleep instead of Queue#pop means the thread is killable under JRuby

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669043 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: NonblockingServer: Use a select() loop in the acceptor thread
Kevin Clark [Wed, 18 Jun 2008 01:20:22 +0000 (01:20 +0000)] 
rb: NonblockingServer: Use a select() loop in the acceptor thread

Using a select() loop with a timeout allows the acceptor thread to be shut down
cleanly under JRuby.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669042 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Set default host for benchmark to 127.0.0.1
Kevin Clark [Wed, 18 Jun 2008 01:20:16 +0000 (01:20 +0000)] 
rb: Set default host for benchmark to 127.0.0.1

MRI resolves localhost to ::1 (on OS X) whereas JRuby resolves it to 127.0.0.1. This means using
MRI for server and JRuby for client doesn't work.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669041 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Fix the timeout used for joining threads when calling shutdown(timeout) on Nonblo...
Kevin Clark [Wed, 18 Jun 2008 01:20:13 +0000 (01:20 +0000)] 
rb: Fix the timeout used for joining threads when calling shutdown(timeout) on NonblockingServer

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669040 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Add hooks for THRIFT_HOST and THRIFT_PORT in the benchmark
Kevin Clark [Wed, 18 Jun 2008 01:20:10 +0000 (01:20 +0000)] 
rb: Add hooks for THRIFT_HOST and THRIFT_PORT in the benchmark

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669039 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Add control for the number of client processes in the benchmark
Kevin Clark [Wed, 18 Jun 2008 01:20:06 +0000 (01:20 +0000)] 
rb: Add control for the number of client processes in the benchmark

You control this with THRIFT_NUM_PROCESSES, the default is 40

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669038 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Add debug logger message for processing frames
Kevin Clark [Wed, 18 Jun 2008 01:20:02 +0000 (01:20 +0000)] 
rb: Add debug logger message for processing frames

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669037 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Make a few of the NonblockingServer specs pass under jruby
Kevin Clark [Wed, 18 Jun 2008 01:19:59 +0000 (01:19 +0000)] 
rb: Make a few of the NonblockingServer specs pass under jruby

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669036 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Fix up the deprecation spec for JRuby
Kevin Clark [Wed, 18 Jun 2008 01:19:54 +0000 (01:19 +0000)] 
rb: Fix up the deprecation spec for JRuby

JRuby has different behavior regarding #method_added and #included, so the deprecation spec has to handle this

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669035 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Fix the binaryprotocol spec to run under jruby
Kevin Clark [Wed, 18 Jun 2008 01:19:51 +0000 (01:19 +0000)] 
rb: Fix the binaryprotocol spec to run under jruby

Stop testing for RangeErrors with bignums in i64, that was just an artifact of the MRI interpreter that has different behavior under jruby.
JRuby uses a different Float::MIN/MAX so stop hard-coding the binary representation

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669034 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Increase the benchmark startup time and add more hooks
Kevin Clark [Wed, 18 Jun 2008 01:19:46 +0000 (01:19 +0000)] 
rb: Increase the benchmark startup time and add more hooks

You can now control the number of clients per proc and calls per client with THRIFT_NUM_CALLS and THRIFT_NUM_CLIENTS.
You can also instruct the clients to log exceptions with THRIFT_LOG_EXCEPTIONS=yes

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669033 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Drop the benchmark worker spawn delay to 0.01
Kevin Clark [Wed, 18 Jun 2008 01:19:41 +0000 (01:19 +0000)] 
rb: Drop the benchmark worker spawn delay to 0.01

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669032 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Catch TransportException errors during the benchmark and report them
Kevin Clark [Wed, 18 Jun 2008 01:19:37 +0000 (01:19 +0000)] 
rb: Catch TransportException errors during the benchmark and report them

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669031 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: flush STDOUT after starting the benchmark server to properly kickstart the benchmark
Kevin Clark [Wed, 18 Jun 2008 01:19:33 +0000 (01:19 +0000)] 
rb: flush STDOUT after starting the benchmark server to properly kickstart the benchmark

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669030 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Give the benchmark server more time to start up
Kevin Clark [Wed, 18 Jun 2008 01:19:28 +0000 (01:19 +0000)] 
rb: Give the benchmark server more time to start up

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669029 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Turn off debug logging in benchmark/thin_server.rb
Kevin Clark [Wed, 18 Jun 2008 01:19:23 +0000 (01:19 +0000)] 
rb: Turn off debug logging in benchmark/thin_server.rb

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669028 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Fix some incorrect reporting by the benchmark.
Kevin Clark [Wed, 18 Jun 2008 01:19:18 +0000 (01:19 +0000)] 
rb: Fix some incorrect reporting by the benchmark.

Also make it use -J-server when jruby is the server interpreter

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669027 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Enhance the output of the benchmark
Kevin Clark [Wed, 18 Jun 2008 01:19:14 +0000 (01:19 +0000)] 
rb: Enhance the output of the benchmark

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669026 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: split up benchmark into separate server/client files and distinct interpreters
Kevin Clark [Wed, 18 Jun 2008 01:19:09 +0000 (01:19 +0000)] 
rb: split up benchmark into separate server/client files and distinct interpreters

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669025 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Switch from read_nonblock to readpartial to make jruby happy
Kevin Clark [Wed, 18 Jun 2008 01:19:04 +0000 (01:19 +0000)] 
rb: Switch from read_nonblock to readpartial to make jruby happy

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669024 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Add spec to ensure UNIXServerSocket deletes the socket when closing
Kevin Clark [Wed, 18 Jun 2008 01:18:57 +0000 (01:18 +0000)] 
rb: Add spec to ensure UNIXServerSocket deletes the socket when closing

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669023 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Enable logging debug info in benchmark/thin_server.rb
Kevin Clark [Wed, 18 Jun 2008 01:18:52 +0000 (01:18 +0000)] 
rb: Enable logging debug info in benchmark/thin_server.rb

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669022 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Tweak the benchmark to allow running the server in a separate process
Kevin Clark [Wed, 18 Jun 2008 01:18:47 +0000 (01:18 +0000)] 
rb: Tweak the benchmark to allow running the server in a separate process

Add a thin server library that can be run by hand

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669021 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Wrap a semaphore around @serverTransport.close in NonblockingServer.shutdown
Kevin Clark [Wed, 18 Jun 2008 01:18:41 +0000 (01:18 +0000)] 
rb: Wrap a semaphore around @serverTransport.close in NonblockingServer.shutdown

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669020 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Implement Thrift::UNIXSocket and Thrift::UNIXServerSocket
Kevin Clark [Wed, 18 Jun 2008 01:18:35 +0000 (01:18 +0000)] 
rb: Implement Thrift::UNIXSocket and Thrift::UNIXServerSocket

In benchmarking it turns out these don't give any noticeable performance boost,
but as I've already written them, somebody may want them for something.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669019 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Implement Thrift::Serializer and Thrift::Deserializer
Kevin Clark [Wed, 18 Jun 2008 01:18:28 +0000 (01:18 +0000)] 
rb: Implement Thrift::Serializer and Thrift::Deserializer

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669018 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Add the path to gen-rb to $: in spec_helper instead of in multiple different...
Kevin Clark [Wed, 18 Jun 2008 01:18:21 +0000 (01:18 +0000)] 
rb: Add the path to gen-rb to $: in spec_helper instead of in multiple different specs

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669017 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Don't type-check when given a nil value.
Kevin Clark [Wed, 18 Jun 2008 01:18:14 +0000 (01:18 +0000)] 
rb: Don't type-check when given a nil value.

Turn on type-checking for all specs

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669016 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Implement type-checking in Thrift::Struct.new and field accessors
Kevin Clark [Wed, 18 Jun 2008 01:18:07 +0000 (01:18 +0000)] 
rb: Implement type-checking in Thrift::Struct.new and field accessors

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669015 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Fix struct_spec to use a proper description
Kevin Clark [Wed, 18 Jun 2008 01:17:57 +0000 (01:17 +0000)] 
rb: Fix struct_spec to use a proper description

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669014 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Add helpers for optional type-checking
Kevin Clark [Wed, 18 Jun 2008 01:17:51 +0000 (01:17 +0000)] 
rb: Add helpers for optional type-checking

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669013 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Completely rewrite Thrift::NonblockingServer
Kevin Clark [Wed, 18 Jun 2008 01:17:44 +0000 (01:17 +0000)] 
rb: Completely rewrite Thrift::NonblockingServer

It now has a much better and cleaner architecture, a proper persistent thread pool,
a dedicated acceptor thread, and no concurrency issues

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669012 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Add a hack to prevent fastthread from being loaded when executing specs
Kevin Clark [Wed, 18 Jun 2008 01:17:37 +0000 (01:17 +0000)] 
rb: Add a hack to prevent fastthread from being loaded when executing specs

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669011 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Enhance non-blocking read in Socket
Kevin Clark [Wed, 18 Jun 2008 01:17:30 +0000 (01:17 +0000)] 
rb: Enhance non-blocking read in Socket

Also prevent errors when trying to close a @handle twice

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669010 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Remove an unnecessary return statement
Kevin Clark [Wed, 18 Jun 2008 01:17:22 +0000 (01:17 +0000)] 
rb: Remove an unnecessary return statement

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669009 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Stop using fastthread, it seems to give no benefit and in fact has a bug
Kevin Clark [Wed, 18 Jun 2008 01:17:14 +0000 (01:17 +0000)] 
rb: Stop using fastthread, it seems to give no benefit and in fact has a bug

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669008 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Add benchmarking code for Thrift::NonblockingServer
Kevin Clark [Wed, 18 Jun 2008 01:17:06 +0000 (01:17 +0000)] 
rb: Add benchmarking code for Thrift::NonblockingServer

You can override the server to test with the THRIFT_SERVER env var

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669007 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd synchronization around shared resources in NonblockingServer
Kevin Clark [Wed, 18 Jun 2008 01:16:58 +0000 (01:16 +0000)] 
Add synchronization around shared resources in NonblockingServer

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669006 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Enhance the backwards compatibility spec to ensure that the deprecated method...
Kevin Clark [Wed, 18 Jun 2008 01:16:50 +0000 (01:16 +0000)] 
rb: Enhance the backwards compatibility spec to ensure that the deprecated method names really do correspond to the new method names

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669005 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Stop calling rspec_clear in specs (which really should have been rspec_reset...
Kevin Clark [Wed, 18 Jun 2008 01:16:42 +0000 (01:16 +0000)] 
rb: Stop calling rspec_clear in specs (which really should have been rspec_reset), as rspec_verify already resets

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669004 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Add thrift/protocol/binaryprotocol to the root lib/thrift file to cut down on...
Kevin Clark [Wed, 18 Jun 2008 01:16:35 +0000 (01:16 +0000)] 
rb: Add thrift/protocol/binaryprotocol to the root lib/thrift file to cut down on client-side requires

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669003 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Add spec for shutting down NonblockingServer in response to a client message
Kevin Clark [Wed, 18 Jun 2008 01:16:27 +0000 (01:16 +0000)] 
rb: Add spec for shutting down NonblockingServer in response to a client message

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669002 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Struct#new should properly initialize boolean values
Kevin Clark [Wed, 18 Jun 2008 01:16:20 +0000 (01:16 +0000)] 
rb: Struct#new should properly initialize boolean values

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669001 13f79535-47bb-0310-9956-ffa450edef68

16 years agorb: Thrift::Socket should return false from #open? if an error occurred during a...
Kevin Clark [Wed, 18 Jun 2008 01:16:11 +0000 (01:16 +0000)] 
rb: Thrift::Socket should return false from #open? if an error occurred during a read/write (THRIFT-7)

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669000 13f79535-47bb-0310-9956-ffa450edef68

16 years agoImplement NonblockingServer and add specs
Kevin Clark [Wed, 18 Jun 2008 01:16:02 +0000 (01:16 +0000)] 
Implement NonblockingServer and add specs

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668999 13f79535-47bb-0310-9956-ffa450edef68

16 years agoSquelch warning about parens and standardize require for generated code
Kevin Clark [Wed, 18 Jun 2008 01:15:53 +0000 (01:15 +0000)] 
Squelch warning about parens and standardize require for generated code

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668998 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd optional host argument to ServerSocket
Kevin Clark [Wed, 18 Jun 2008 01:15:45 +0000 (01:15 +0000)] 
Add optional host argument to ServerSocket

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668997 13f79535-47bb-0310-9956-ffa450edef68

16 years agoTeach Socket how to read_nonblock
Kevin Clark [Wed, 18 Jun 2008 01:15:36 +0000 (01:15 +0000)] 
Teach Socket how to read_nonblock

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668996 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd a few accessors and specs to prepare for the upcoming NonblockingServer
Kevin Clark [Wed, 18 Jun 2008 01:15:25 +0000 (01:15 +0000)] 
Add a few accessors and specs to prepare for the upcoming NonblockingServer

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668995 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRemove dummy initialize method
Kevin Clark [Wed, 18 Jun 2008 01:15:15 +0000 (01:15 +0000)] 
Remove dummy initialize method

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668994 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRubify Socket and ServerSocket
Kevin Clark [Wed, 18 Jun 2008 01:15:06 +0000 (01:15 +0000)] 
Rubify Socket and ServerSocket

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668993 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFinish rubifying MemoryBuffer and FramedTransport
Kevin Clark [Wed, 18 Jun 2008 01:14:57 +0000 (01:14 +0000)] 
Finish rubifying MemoryBuffer and FramedTransport

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668992 13f79535-47bb-0310-9956-ffa450edef68

16 years agoMake a lot of miscellaneous ruby-styling changes
Kevin Clark [Wed, 18 Jun 2008 01:14:48 +0000 (01:14 +0000)] 
Make a lot of miscellaneous ruby-styling changes

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668991 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix default values of non-primitive types being shared between struct instances ...
Kevin Clark [Wed, 18 Jun 2008 01:14:36 +0000 (01:14 +0000)] 
Fix default values of non-primitive types being shared between struct instances (THRIFT-4)

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668989 13f79535-47bb-0310-9956-ffa450edef68

16 years agoMark failing tests as pending
Kevin Clark [Wed, 18 Jun 2008 01:14:26 +0000 (01:14 +0000)] 
Mark failing tests as pending

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668988 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix odd bug in integration tests where it passed the wrong args to an Exception struc...
Kevin Clark [Wed, 18 Jun 2008 01:14:17 +0000 (01:14 +0000)] 
Fix odd bug in integration tests where it passed the wrong args to an Exception struct initializer

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668987 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd failing spec for Socket closing when it has an error (THRIFT-7)
Kevin Clark [Wed, 18 Jun 2008 01:14:08 +0000 (01:14 +0000)] 
Add failing spec for Socket closing when it has an error (THRIFT-7)

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668986 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd new spec for properly initializing boolean values
Kevin Clark [Wed, 18 Jun 2008 01:13:58 +0000 (01:13 +0000)] 
Add new spec for properly initializing boolean values

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668985 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd new gen-rb task to rebuild the bundled thrift generated code for specs
Kevin Clark [Wed, 18 Jun 2008 01:13:48 +0000 (01:13 +0000)] 
Add new gen-rb task to rebuild the bundled thrift generated code for specs

Also rewrite the test task to properly abort Rake if it fails

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668984 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd failing spec for sharing of default values between struct instances (THRIFT-4)
Kevin Clark [Wed, 18 Jun 2008 01:13:37 +0000 (01:13 +0000)] 
Add failing spec for sharing of default values between struct instances (THRIFT-4)

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668983 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd missing test for ServerSocket
Kevin Clark [Wed, 18 Jun 2008 01:13:27 +0000 (01:13 +0000)] 
Add missing test for ServerSocket

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668982 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd two missing tests for FramedTransport
Kevin Clark [Wed, 18 Jun 2008 01:13:18 +0000 (01:13 +0000)] 
Add two missing tests for FramedTransport

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668981 13f79535-47bb-0310-9956-ffa450edef68

16 years agoStop using Array#pack and test using the raw bytes instead
Kevin Clark [Wed, 18 Jun 2008 01:13:09 +0000 (01:13 +0000)] 
Stop using Array#pack and test using the raw bytes instead

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668980 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd useless struct test for code coverage
Kevin Clark [Wed, 18 Jun 2008 01:12:58 +0000 (01:12 +0000)] 
Add useless struct test for code coverage

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668979 13f79535-47bb-0310-9956-ffa450edef68

16 years agoTest BinaryProtocol#read_message_header with bad data
Kevin Clark [Wed, 18 Jun 2008 01:12:48 +0000 (01:12 +0000)] 
Test BinaryProtocol#read_message_header with bad data

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668978 13f79535-47bb-0310-9956-ffa450edef68

16 years agoTweak the code to turn on Deprecation to make rcov happy
Kevin Clark [Wed, 18 Jun 2008 01:12:37 +0000 (01:12 +0000)] 
Tweak the code to turn on Deprecation to make rcov happy

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668977 13f79535-47bb-0310-9956-ffa450edef68

16 years agoOops, call #skip instead of #read_type when testing skip
Kevin Clark [Wed, 18 Jun 2008 01:12:26 +0000 (01:12 +0000)] 
Oops, call #skip instead of #read_type when testing skip

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668976 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd rcov_spec task
Kevin Clark [Wed, 18 Jun 2008 01:12:15 +0000 (01:12 +0000)] 
Add rcov_spec task

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668975 13f79535-47bb-0310-9956-ffa450edef68

16 years agoSpec out Socket and ServerSocket
Kevin Clark [Wed, 18 Jun 2008 01:12:05 +0000 (01:12 +0000)] 
Spec out Socket and ServerSocket

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668974 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix exception handling inside Socket#read
Kevin Clark [Wed, 18 Jun 2008 01:11:52 +0000 (01:11 +0000)] 
Fix exception handling inside Socket#read

Also remove the useless shebang

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668973 13f79535-47bb-0310-9956-ffa450edef68

16 years agoStrip the rest of the empty () parens
Kevin Clark [Wed, 18 Jun 2008 01:11:41 +0000 (01:11 +0000)] 
Strip the rest of the empty () parens

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668972 13f79535-47bb-0310-9956-ffa450edef68

16 years agoStop using deprecated name TSocket and fix TCPserver->TCPServer
Kevin Clark [Wed, 18 Jun 2008 01:11:29 +0000 (01:11 +0000)] 
Stop using deprecated name TSocket and fix TCPserver->TCPServer

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668971 13f79535-47bb-0310-9956-ffa450edef68

16 years agoSpec out HTTPClient
Kevin Clark [Wed, 18 Jun 2008 01:11:18 +0000 (01:11 +0000)] 
Spec out HTTPClient

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668970 13f79535-47bb-0310-9956-ffa450edef68

16 years agoSpec out MemoryBuffer and IOStreamTransport
Kevin Clark [Wed, 18 Jun 2008 01:11:07 +0000 (01:11 +0000)] 
Spec out MemoryBuffer and IOStreamTransport

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668969 13f79535-47bb-0310-9956-ffa450edef68

16 years agoStrip more empty parens
Kevin Clark [Wed, 18 Jun 2008 01:10:55 +0000 (01:10 +0000)] 
Strip more empty parens

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668967 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRip out MemoryBuffer#get_buffer
Kevin Clark [Wed, 18 Jun 2008 01:10:43 +0000 (01:10 +0000)] 
Rip out MemoryBuffer#get_buffer

Nobody should be using that method and it's preventing MemoryBuffer from being optimized wrt. memory usage

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668966 13f79535-47bb-0310-9956-ffa450edef68

16 years agoopen? should return true, not 1
Kevin Clark [Wed, 18 Jun 2008 01:10:30 +0000 (01:10 +0000)] 
open? should return true, not 1

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668965 13f79535-47bb-0310-9956-ffa450edef68

16 years agoSpec out TransportException, Transport, ServerTransport, BufferedTransport, and Frame...
Kevin Clark [Wed, 18 Jun 2008 01:10:17 +0000 (01:10 +0000)] 
Spec out TransportException, Transport, ServerTransport, BufferedTransport, and FramedTransport

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668964 13f79535-47bb-0310-9956-ffa450edef68

16 years agoSpec out SimpleMongrelHTTPServer
Kevin Clark [Wed, 18 Jun 2008 01:10:05 +0000 (01:10 +0000)] 
Spec out SimpleMongrelHTTPServer

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668963 13f79535-47bb-0310-9956-ffa450edef68

16 years agoStop using deprecated classes in SimpleMongrelHTTPServer
Kevin Clark [Wed, 18 Jun 2008 01:09:53 +0000 (01:09 +0000)] 
Stop using deprecated classes in SimpleMongrelHTTPServer

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668962 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd specs for Struct.
Kevin Clark [Wed, 18 Jun 2008 01:09:41 +0000 (01:09 +0000)] 
Add specs for Struct.

Include the generated code so the thrift compiler is not required to run the specs.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668961 13f79535-47bb-0310-9956-ffa450edef68

16 years agoImprove compatibility with the old Hash-style set.
Kevin Clark [Wed, 18 Jun 2008 01:09:28 +0000 (01:09 +0000)] 
Improve compatibility with the old Hash-style set.

Fix the integration test for the Set change

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668960 13f79535-47bb-0310-9956-ffa450edef68

16 years agoConvert fields of type Thrift::Types::SET to use the Set library.
Kevin Clark [Wed, 18 Jun 2008 01:09:15 +0000 (01:09 +0000)] 
Convert fields of type Thrift::Types::SET to use the Set library.

Also teach Thrift::Struct how to compare itself with ==

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668959 13f79535-47bb-0310-9956-ffa450edef68

16 years agoSpec out Server
Kevin Clark [Wed, 18 Jun 2008 01:09:00 +0000 (01:09 +0000)] 
Spec out Server

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668958 13f79535-47bb-0310-9956-ffa450edef68