THRIFT-553. rb: thrift structs should be comparable (<=>)
authorBryan Duxbury <bryanduxbury@apache.org>
Thu, 18 Feb 2010 23:19:42 +0000 (23:19 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Thu, 18 Feb 2010 23:19:42 +0000 (23:19 +0000)
commit205e4500f9212ee3689fd973ca4e7b4886d2ed1d
tree3d608cbc308f10325ea64a52857ed3b8169f2285
parent39dadd6656d0cf009e8fdef42db9eea108cb6bb9
THRIFT-553. rb: thrift structs should be comparable (<=>)
This patch adds the spaceship operator to the struct and union base classes, enabling object comparisons between objects without regenerating code.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@911644 13f79535-47bb-0310-9956-ffa450edef68
lib/rb/Rakefile
lib/rb/lib/thrift/struct.rb
lib/rb/lib/thrift/struct_union.rb
lib/rb/lib/thrift/union.rb
lib/rb/spec/struct_spec.rb
lib/rb/spec/union_spec.rb