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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Kevin Clark [Wed, 18 Jun 2008 01:08:47 +0000 (01:08 +0000)]
Fix blanket exception rescue in ThreadPoolServer
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668957
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:08:35 +0000 (01:08 +0000)]
Remove more empty () parens
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668956
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:08:19 +0000 (01:08 +0000)]
Stop range-checking in BinaryProtocol#write_iNN, it turns out to break some code
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668955
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:08:05 +0000 (01:08 +0000)]
Rename spec wrapper classes to prevent cross-pollination of specs. Require rspec 1.1.4 or later to fix the "describe Module do" bug
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668954
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:07:50 +0000 (01:07 +0000)]
Add spec for BinaryProtocolFactory
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668953
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:07:37 +0000 (01:07 +0000)]
Spec out the BinaryProtocol read methods
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668952
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:07:23 +0000 (01:07 +0000)]
Raise a RangeError if Protocol.write_<numeric> is called with a value that doesn't fit in <numeric>
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668951
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:07:10 +0000 (01:07 +0000)]
Spec out the BinaryProtocol write methods.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668950
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:06:56 +0000 (01:06 +0000)]
Remove dummy initialize method and empty () parens
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668949
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:06:42 +0000 (01:06 +0000)]
Finish speccing out Protocol and ProtocolFactory
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668948
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:06:29 +0000 (01:06 +0000)]
Stop using for _ in _ in Thrift::Protocol
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668947
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:06:15 +0000 (01:06 +0000)]
Start speccing Protocol.
The Protocol specs exposed a bug in the implementation of skip(Types::STRUCT).
Previously it would call read_struct_end once per field instead of per struct.
This only worked because read_struct_end is a noop.
Also remove all empty parens () from method calls.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668946
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:06:01 +0000 (01:06 +0000)]
Spec out ProtocolException
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668945
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:05:47 +0000 (01:05 +0000)]
Spec out Thrift::Processor
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668944
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:05:32 +0000 (01:05 +0000)]
Add pending spec for sequence-ids on Thrift::Client
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668943
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:05:17 +0000 (01:05 +0000)]
Add backwards-compatibility spec
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668942
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:05:03 +0000 (01:05 +0000)]
Spec out Thrift::Client
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668941
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:04:48 +0000 (01:04 +0000)]
Fully spec out Thrift::Exception and Thrift::ApplicationException
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668940
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:04:34 +0000 (01:04 +0000)]
Start speccing exceptions and restore the (message) arg to super in Thrift::ApplicationException
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668939
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:04:18 +0000 (01:04 +0000)]
Fix the last of the deprecated names in tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668938
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:04:03 +0000 (01:04 +0000)]
Fix name usage in tests. Remove test for TTransport as it really wasn't testing anything useful.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668937
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:03:48 +0000 (01:03 +0000)]
Remove test_remappings because it isn't comprehensive and it's triggering undesired warnings. This should be re-created as a spec.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668936
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:03:33 +0000 (01:03 +0000)]
Update the tutorial files to stop using deprecated names
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668935
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:03:17 +0000 (01:03 +0000)]
Fix the requires generated by the compiler
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668934
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:03:03 +0000 (01:03 +0000)]
Fix more deprecated name usages
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668933
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:02:46 +0000 (01:02 +0000)]
Fix the shebangs for the tutorial thrift files
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668932
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:02:31 +0000 (01:02 +0000)]
Use deprecate_module! where appropriate
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668931
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:02:14 +0000 (01:02 +0000)]
Solve the information leak problem between deprecations. Unfortunately this was caused by a nasty ruby bug.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668930
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:01:57 +0000 (01:01 +0000)]
Add (currently failing) spec for information leak between deprecations
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668929
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:01:40 +0000 (01:01 +0000)]
Use the correct name in deprecation warnings
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668928
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:01:25 +0000 (01:01 +0000)]
Implement deprecate_module! and fully spec it
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668927
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:01:07 +0000 (01:01 +0000)]
deprecate_class! now sets up a proxy class that logs a warning when used
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668926
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:00:50 +0000 (01:00 +0000)]
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
Kevin Clark [Wed, 18 Jun 2008 01:00:33 +0000 (01:00 +0000)]
Finish renaming/deprecating classes. Change a few more filenames, like thrift/transport/ttransport -> thrift/transport
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668924
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:00:12 +0000 (01:00 +0000)]
Add new spec for deprecate_class!
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668923
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:59:56 +0000 (00:59 +0000)]
Clean up the last few deprecation warnings in the tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668922
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:59:37 +0000 (00:59 +0000)]
Finish up the CamelCase -> ruby_style changes
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668921
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:59:17 +0000 (00:59 +0000)]
Convert more CamelCase names to ruby_style
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668920
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:58:58 +0000 (00:58 +0000)]
Add comment and convert super(args)->super
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668919
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:58:40 +0000 (00:58 +0000)]
Stop re-defining deprecated methods in subclasses
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668918
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:58:23 +0000 (00:58 +0000)]
Start renaming camelCase methods to ruby_style
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668917
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:58:04 +0000 (00:58 +0000)]
Add another spec for deprecate!
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668916
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:57:46 +0000 (00:57 +0000)]
Add caller info to the deprecation warning
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668915
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:57:26 +0000 (00:57 +0000)]
Move thrift/protocol/tprotocol to thrift/protocol and thrift/protocol/tbinaryprotocol to thrift/protocol/binaryprotocol. Leave shim files behind for backwards compatibility
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668914
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:57:06 +0000 (00:57 +0000)]
Make `rake` run the ruby tests in test/rb as well as the new specs
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668913
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:56:48 +0000 (00:56 +0000)]
Fix up thrift/thrift to only require the the files that define the classes it used to hold. This fixes the existing tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668912
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:56:30 +0000 (00:56 +0000)]
Set up the class deprecations
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668911
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:56:08 +0000 (00:56 +0000)]
Actually turn off deprecation when Thrift::DEPRECATION is false
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668910
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:55:50 +0000 (00:55 +0000)]
Remove requires of 'thrift/thrift' from library files
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668909
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:55:29 +0000 (00:55 +0000)]
Add in hook to only provide the deprecated API when the client doesn't require 'thrift' directly
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668908
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:55:11 +0000 (00:55 +0000)]
Add simple Rakefile for running specs
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668907
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:54:53 +0000 (00:54 +0000)]
Re-define the semantics of deprecate! and add deprecate_class! Include full specs for deprecate!/deprecate_class!
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668906
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:54:33 +0000 (00:54 +0000)]
rb: TBinaryProtocol => Thrift::BinaryProtocol
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668905
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:54:13 +0000 (00:54 +0000)]
rb: Add more classes/modules to the Thrift namespace. Provide backwards compatable mappings.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668904
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:53:48 +0000 (00:53 +0000)]
rb: Move client, processor, struct files for consistant naming.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668903
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:53:28 +0000 (00:53 +0000)]
rb: Move exceptions, types, processor, client, struct under Thrift module. Add constants for backwards compatability
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668902
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:53:07 +0000 (00:53 +0000)]
Split out thrift/thrift.rb, add top level thrift.rb in prep for gemmification
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668901
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:52:46 +0000 (00:52 +0000)]
rb: Remove extra return statement
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668900
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:52:26 +0000 (00:52 +0000)]
rb: Add deprecate! method Rename TTransport#readAll/isOpen, and deprecate
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668899
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:52:05 +0000 (00:52 +0000)]
rb: Switch to dyn generator syntax for testing namespaces
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668898
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:51:45 +0000 (00:51 +0000)]
Exercise namespacing in Ruby tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668897
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:51:25 +0000 (00:51 +0000)]
Swap out 'tests' target for 'check' in Ruby Makefile
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668896
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:51:06 +0000 (00:51 +0000)]
Style tweaks
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668895
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:50:44 +0000 (00:50 +0000)]
add simple Ruby HTTP server and client classes
Using Mongrel for the server.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668894
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:50:24 +0000 (00:50 +0000)]
Clean up Ruby TTransport defs
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668893
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:50:00 +0000 (00:50 +0000)]
Add tests for Ruby TTransport. Only require .rb files in ruby tests.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668892
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:49:38 +0000 (00:49 +0000)]
add additional entrypoint to TThreadPoolServer with easy exception handling
An additional method #serve_rescuable is added, which relays any exceptions
that happen in worker threads to the caller, where they can be handled
directly. 'retry' works too, allowing code like:
begin
server.rescuable_serve
rescue StandardError => e
puts "got exception: #{e.inspect}"
## do something
retry
end
The semantics of TThreadPoolServer#serve remain the same.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668891
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:49:17 +0000 (00:49 +0000)]
Reorganize tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668890
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:48:56 +0000 (00:48 +0000)]
Tweak Ruby Makefile to use --gen syntax
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668889
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 05:31:09 +0000 (05:31 +0000)]
Rename ax_thrift_gen.m4, which now contains two macros.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666533
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:20:54 +0000 (01:20 +0000)]
Java/TThreadPoolServer: Shut down more gracefully. (THRIFT-11)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666502
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:19:12 +0000 (01:19 +0000)]
Add a working RPM .spec file to contrib.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666501
13f79535-47bb-0310-9956-
ffa450edef68