thrift 0.2.0.4 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +1 -13
- data/Manifest +11 -23
- data/Rakefile +8 -6
- data/ext/binary_protocol_accelerated.c +4 -53
- data/ext/compact_protocol.c +3 -53
- data/ext/extconf.rb +4 -18
- data/ext/struct.c +181 -130
- data/ext/struct.h +2 -44
- data/ext/thrift_native.c +3 -3
- data/lib/thrift.rb +6 -1
- data/lib/thrift/protocol/binary_protocol_accelerated.rb +5 -1
- data/lib/thrift/protocol/compact_protocol.rb +1 -0
- data/lib/thrift/server/nonblocking_server.rb +1 -2
- data/lib/thrift/struct.rb +46 -112
- data/lib/thrift/struct_union.rb +159 -0
- data/lib/thrift/transport/http_client_transport.rb +12 -6
- data/lib/thrift/transport/memory_buffer_transport.rb +2 -2
- data/lib/thrift/types.rb +1 -1
- data/lib/thrift/union.rb +179 -0
- data/spec/ThriftSpec.thrift +48 -0
- data/spec/binary_protocol_accelerated_spec.rb +18 -13
- data/spec/binary_protocol_spec_shared.rb +2 -2
- data/spec/compact_protocol_spec.rb +19 -3
- data/spec/http_client_spec.rb +17 -2
- data/spec/struct_spec.rb +34 -0
- data/spec/union_spec.rb +193 -0
- data/thrift.gemspec +11 -13
- metadata +36 -67
- data.tar.gz.sig +0 -2
- data/Makefile.am +0 -47
- data/benchmark/gen-rb/BenchmarkService.rb +0 -81
- data/benchmark/gen-rb/Benchmark_constants.rb +0 -11
- data/benchmark/gen-rb/Benchmark_types.rb +0 -10
- data/lib/thrift/protocol/binaryprotocol.rb +0 -213
- data/lib/thrift/protocol/binaryprotocolaccelerated.rb +0 -19
- data/lib/thrift/protocol/tbinaryprotocol.rb +0 -2
- data/lib/thrift/protocol/tprotocol.rb +0 -2
- data/lib/thrift/server/httpserver.rb +0 -44
- data/lib/thrift/server/nonblockingserver.rb +0 -278
- data/lib/thrift/server/thttpserver.rb +0 -2
- data/lib/thrift/server/tserver.rb +0 -2
- data/spec/gen-rb/NonblockingService.rb +0 -268
- data/spec/gen-rb/ThriftSpec_constants.rb +0 -11
- data/spec/gen-rb/ThriftSpec_types.rb +0 -134
- metadata.gz.sig +0 -0
data/spec/struct_spec.rb
CHANGED
@@ -62,6 +62,33 @@ class ThriftStructSpec < Spec::ExampleGroup
|
|
62
62
|
Foo.new(:simple => 52).should_not == Foo.new
|
63
63
|
end
|
64
64
|
|
65
|
+
it "should print enum value names in inspect" do
|
66
|
+
StructWithSomeEnum.new(:some_enum => SomeEnum::ONE).inspect.should == "<SpecNamespace::StructWithSomeEnum some_enum:ONE (0)>"
|
67
|
+
|
68
|
+
StructWithEnumMap.new(:my_map => {SomeEnum::ONE => [SomeEnum::TWO]}).inspect.should == "<SpecNamespace::StructWithEnumMap my_map:{ONE (0): [TWO (1)]}>"
|
69
|
+
end
|
70
|
+
|
71
|
+
it "should pretty print binary fields" do
|
72
|
+
Foo2.new(:my_binary => "\001\002\003").inspect.should == "<SpecNamespace::Foo2 my_binary:010203>"
|
73
|
+
end
|
74
|
+
|
75
|
+
it "should offer field? methods" do
|
76
|
+
Foo.new.opt_string?.should be_false
|
77
|
+
Foo.new(:simple => 52).simple?.should be_true
|
78
|
+
Foo.new(:my_bool => false).my_bool?.should be_true
|
79
|
+
Foo.new(:my_bool => true).my_bool?.should be_true
|
80
|
+
end
|
81
|
+
|
82
|
+
it "should be comparable" do
|
83
|
+
s1 = StructWithSomeEnum.new(:some_enum => SomeEnum::ONE)
|
84
|
+
s2 = StructWithSomeEnum.new(:some_enum => SomeEnum::TWO)
|
85
|
+
|
86
|
+
(s1 <=> s2).should == -1
|
87
|
+
(s2 <=> s1).should == 1
|
88
|
+
(s1 <=> s1).should == 0
|
89
|
+
(s1 <=> StructWithSomeEnum.new()).should == -1
|
90
|
+
end
|
91
|
+
|
65
92
|
it "should read itself off the wire" do
|
66
93
|
struct = Foo.new
|
67
94
|
prot = BaseProtocol.new(mock("transport"))
|
@@ -108,6 +135,13 @@ class ThriftStructSpec < Spec::ExampleGroup
|
|
108
135
|
struct.shorts.should == Set.new([3, 2])
|
109
136
|
end
|
110
137
|
|
138
|
+
it "should serialize false boolean fields correctly" do
|
139
|
+
b = BoolStruct.new(:yesno => false)
|
140
|
+
prot = BinaryProtocol.new(MemoryBufferTransport.new)
|
141
|
+
prot.should_receive(:write_bool).with(false)
|
142
|
+
b.write(prot)
|
143
|
+
end
|
144
|
+
|
111
145
|
it "should skip unexpected fields in structs and use default values" do
|
112
146
|
struct = Foo.new
|
113
147
|
prot = BaseProtocol.new(mock("transport"))
|
data/spec/union_spec.rb
ADDED
@@ -0,0 +1,193 @@
|
|
1
|
+
#
|
2
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
3
|
+
# or more contributor license agreements. See the NOTICE file
|
4
|
+
# distributed with this work for additional information
|
5
|
+
# regarding copyright ownership. The ASF licenses this file
|
6
|
+
# to you under the Apache License, Version 2.0 (the
|
7
|
+
# "License"); you may not use this file except in compliance
|
8
|
+
# with the License. You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing,
|
13
|
+
# software distributed under the License is distributed on an
|
14
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
15
|
+
# KIND, either express or implied. See the License for the
|
16
|
+
# specific language governing permissions and limitations
|
17
|
+
# under the License.
|
18
|
+
#
|
19
|
+
|
20
|
+
require File.dirname(__FILE__) + '/spec_helper'
|
21
|
+
|
22
|
+
class ThriftUnionSpec < Spec::ExampleGroup
|
23
|
+
include Thrift
|
24
|
+
include SpecNamespace
|
25
|
+
|
26
|
+
describe Union do
|
27
|
+
it "should return nil value in unset union" do
|
28
|
+
union = My_union.new
|
29
|
+
union.get_set_field.should == nil
|
30
|
+
union.get_value.should == nil
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should set a field and be accessible through get_value and the named field accessor" do
|
34
|
+
union = My_union.new
|
35
|
+
union.integer32 = 25
|
36
|
+
union.get_set_field.should == :integer32
|
37
|
+
union.get_value.should == 25
|
38
|
+
union.integer32.should == 25
|
39
|
+
end
|
40
|
+
|
41
|
+
it "should work correctly when instantiated with static field constructors" do
|
42
|
+
union = My_union.integer32(5)
|
43
|
+
union.get_set_field.should == :integer32
|
44
|
+
union.integer32.should == 5
|
45
|
+
end
|
46
|
+
|
47
|
+
it "should raise for wrong set field" do
|
48
|
+
union = My_union.new
|
49
|
+
union.integer32 = 25
|
50
|
+
lambda { union.some_characters }.should raise_error(RuntimeError, "some_characters is not union's set field.")
|
51
|
+
end
|
52
|
+
|
53
|
+
it "should not be equal to nil" do
|
54
|
+
union = My_union.new
|
55
|
+
union.should_not == nil
|
56
|
+
end
|
57
|
+
|
58
|
+
it "should not equate two different unions, i32 vs. string" do
|
59
|
+
union = My_union.new(:integer32, 25)
|
60
|
+
other_union = My_union.new(:some_characters, "blah!")
|
61
|
+
union.should_not == other_union
|
62
|
+
end
|
63
|
+
|
64
|
+
it "should properly reset setfield and setvalue" do
|
65
|
+
union = My_union.new(:integer32, 25)
|
66
|
+
union.get_set_field.should == :integer32
|
67
|
+
union.some_characters = "blah!"
|
68
|
+
union.get_set_field.should == :some_characters
|
69
|
+
union.get_value.should == "blah!"
|
70
|
+
lambda { union.integer32 }.should raise_error(RuntimeError, "integer32 is not union's set field.")
|
71
|
+
end
|
72
|
+
|
73
|
+
it "should not equate two different unions with different values" do
|
74
|
+
union = My_union.new(:integer32, 25)
|
75
|
+
other_union = My_union.new(:integer32, 400)
|
76
|
+
union.should_not == other_union
|
77
|
+
end
|
78
|
+
|
79
|
+
it "should not equate two different unions with different fields" do
|
80
|
+
union = My_union.new(:integer32, 25)
|
81
|
+
other_union = My_union.new(:other_i32, 25)
|
82
|
+
union.should_not == other_union
|
83
|
+
end
|
84
|
+
|
85
|
+
it "should inspect properly" do
|
86
|
+
union = My_union.new(:integer32, 25)
|
87
|
+
union.inspect.should == "<SpecNamespace::My_union integer32: 25>"
|
88
|
+
end
|
89
|
+
|
90
|
+
it "should not allow setting with instance_variable_set" do
|
91
|
+
union = My_union.new(:integer32, 27)
|
92
|
+
union.instance_variable_set(:@some_characters, "hallo!")
|
93
|
+
union.get_set_field.should == :integer32
|
94
|
+
union.get_value.should == 27
|
95
|
+
lambda { union.some_characters }.should raise_error(RuntimeError, "some_characters is not union's set field.")
|
96
|
+
end
|
97
|
+
|
98
|
+
it "should serialize correctly" do
|
99
|
+
trans = Thrift::MemoryBufferTransport.new
|
100
|
+
proto = Thrift::BinaryProtocol.new(trans)
|
101
|
+
|
102
|
+
union = My_union.new(:integer32, 25)
|
103
|
+
union.write(proto)
|
104
|
+
|
105
|
+
other_union = My_union.new(:integer32, 25)
|
106
|
+
other_union.read(proto)
|
107
|
+
other_union.should == union
|
108
|
+
end
|
109
|
+
|
110
|
+
it "should raise when validating unset union" do
|
111
|
+
union = My_union.new
|
112
|
+
lambda { union.validate }.should raise_error(StandardError, "Union fields are not set.")
|
113
|
+
|
114
|
+
other_union = My_union.new(:integer32, 1)
|
115
|
+
lambda { other_union.validate }.should_not raise_error(StandardError, "Union fields are not set.")
|
116
|
+
end
|
117
|
+
|
118
|
+
it "should validate an enum field properly" do
|
119
|
+
union = TestUnion.new(:enum_field, 3)
|
120
|
+
union.get_set_field.should == :enum_field
|
121
|
+
lambda { union.validate }.should raise_error(ProtocolException, "Invalid value of field enum_field!")
|
122
|
+
|
123
|
+
other_union = TestUnion.new(:enum_field, 1)
|
124
|
+
lambda { other_union.validate }.should_not raise_error(ProtocolException, "Invalid value of field enum_field!")
|
125
|
+
end
|
126
|
+
|
127
|
+
it "should properly serialize and match structs with a union" do
|
128
|
+
union = My_union.new(:integer32, 26)
|
129
|
+
swu = Struct_with_union.new(:fun_union => union)
|
130
|
+
|
131
|
+
trans = Thrift::MemoryBufferTransport.new
|
132
|
+
proto = Thrift::CompactProtocol.new(trans)
|
133
|
+
|
134
|
+
swu.write(proto)
|
135
|
+
|
136
|
+
other_union = My_union.new(:some_characters, "hello there")
|
137
|
+
swu2 = Struct_with_union.new(:fun_union => other_union)
|
138
|
+
|
139
|
+
swu2.should_not == swu
|
140
|
+
|
141
|
+
swu2.read(proto)
|
142
|
+
swu2.should == swu
|
143
|
+
end
|
144
|
+
|
145
|
+
it "should support old style constructor" do
|
146
|
+
union = My_union.new(:integer32 => 26)
|
147
|
+
union.get_set_field.should == :integer32
|
148
|
+
union.get_value.should == 26
|
149
|
+
end
|
150
|
+
|
151
|
+
it "should not throw an error when inspected and unset" do
|
152
|
+
lambda{TestUnion.new().inspect}.should_not raise_error
|
153
|
+
end
|
154
|
+
|
155
|
+
it "should print enum value name when inspected" do
|
156
|
+
My_union.new(:some_enum => SomeEnum::ONE).inspect.should == "<SpecNamespace::My_union some_enum: ONE (0)>"
|
157
|
+
|
158
|
+
My_union.new(:my_map => {SomeEnum::ONE => [SomeEnum::TWO]}).inspect.should == "<SpecNamespace::My_union my_map: {ONE (0): [TWO (1)]}>"
|
159
|
+
end
|
160
|
+
|
161
|
+
it "should offer field? methods" do
|
162
|
+
My_union.new.some_enum?.should be_false
|
163
|
+
My_union.new(:some_enum => SomeEnum::ONE).some_enum?.should be_true
|
164
|
+
My_union.new(:im_true => false).im_true?.should be_true
|
165
|
+
My_union.new(:im_true => true).im_true?.should be_true
|
166
|
+
end
|
167
|
+
|
168
|
+
it "should pretty print binary fields" do
|
169
|
+
TestUnion.new(:binary_field => "\001\002\003").inspect.should == "<SpecNamespace::TestUnion binary_field: 010203>"
|
170
|
+
end
|
171
|
+
|
172
|
+
it "should be comparable" do
|
173
|
+
relationships = [
|
174
|
+
[0, -1, -1, -1],
|
175
|
+
[1, 0, -1, -1],
|
176
|
+
[1, 1, 0, -1],
|
177
|
+
[1, 1, 1, 0]]
|
178
|
+
|
179
|
+
objs = [
|
180
|
+
TestUnion.new(:string_field, "blah"),
|
181
|
+
TestUnion.new(:string_field, "blahblah"),
|
182
|
+
TestUnion.new(:i32_field, 1),
|
183
|
+
TestUnion.new()]
|
184
|
+
|
185
|
+
for y in 0..3
|
186
|
+
for x in 0..3
|
187
|
+
# puts "#{objs[y].inspect} <=> #{objs[x].inspect} should == #{relationships[y][x]}"
|
188
|
+
(objs[y] <=> objs[x]).should == relationships[y][x]
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
data/thrift.gemspec
CHANGED
@@ -2,30 +2,28 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{thrift}
|
5
|
-
s.version = "0.
|
5
|
+
s.version = "0.4.0"
|
6
6
|
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Kevin Ballard, Kevin Clark, Mark Slee
|
9
|
-
s.
|
10
|
-
s.date = %q{2010-05-24}
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.2.0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Kevin Ballard, Kevin Clark, Mark Slee"]
|
9
|
+
s.date = %q{2010-09-21}
|
11
10
|
s.description = %q{Ruby libraries for Thrift (a language-agnostic RPC system)}
|
12
|
-
s.email =
|
11
|
+
s.email = ["kevin@sb.org", "kevin.clark@gmail.com", "mcslee@facebook.com"]
|
13
12
|
s.extensions = ["ext/extconf.rb"]
|
14
|
-
s.extra_rdoc_files = ["CHANGELOG", "README", "ext/binary_protocol_accelerated.c", "ext/binary_protocol_accelerated.h", "ext/compact_protocol.c", "ext/compact_protocol.h", "ext/constants.h", "ext/extconf.rb", "ext/macros.h", "ext/memory_buffer.c", "ext/memory_buffer.h", "ext/protocol.c", "ext/protocol.h", "ext/struct.c", "ext/struct.h", "ext/thrift_native.c", "lib/thrift.rb", "lib/thrift/client.rb", "lib/thrift/core_ext.rb", "lib/thrift/
|
15
|
-
s.files = ["CHANGELOG", "
|
16
|
-
s.homepage = %q{http://
|
13
|
+
s.extra_rdoc_files = ["CHANGELOG", "README", "ext/binary_protocol_accelerated.c", "ext/binary_protocol_accelerated.h", "ext/compact_protocol.c", "ext/compact_protocol.h", "ext/constants.h", "ext/extconf.rb", "ext/macros.h", "ext/memory_buffer.c", "ext/memory_buffer.h", "ext/protocol.c", "ext/protocol.h", "ext/struct.c", "ext/struct.h", "ext/thrift_native.c", "lib/thrift.rb", "lib/thrift/client.rb", "lib/thrift/core_ext.rb", "lib/thrift/exceptions.rb", "lib/thrift/processor.rb", "lib/thrift/struct.rb", "lib/thrift/struct_union.rb", "lib/thrift/union.rb", "lib/thrift/thrift_native.rb", "lib/thrift/types.rb", "lib/thrift/core_ext/fixnum.rb", "lib/thrift/protocol/base_protocol.rb", "lib/thrift/protocol/binary_protocol.rb", "lib/thrift/protocol/binary_protocol_accelerated.rb", "lib/thrift/protocol/compact_protocol.rb", "lib/thrift/serializer/deserializer.rb", "lib/thrift/serializer/serializer.rb", "lib/thrift/server/base_server.rb", "lib/thrift/server/mongrel_http_server.rb", "lib/thrift/server/nonblocking_server.rb", "lib/thrift/server/simple_server.rb", "lib/thrift/server/thread_pool_server.rb", "lib/thrift/server/threaded_server.rb", "lib/thrift/transport/base_server_transport.rb", "lib/thrift/transport/base_transport.rb", "lib/thrift/transport/buffered_transport.rb", "lib/thrift/transport/framed_transport.rb", "lib/thrift/transport/http_client_transport.rb", "lib/thrift/transport/io_stream_transport.rb", "lib/thrift/transport/memory_buffer_transport.rb", "lib/thrift/transport/server_socket.rb", "lib/thrift/transport/socket.rb", "lib/thrift/transport/unix_server_socket.rb", "lib/thrift/transport/unix_socket.rb"]
|
14
|
+
s.files = ["CHANGELOG", "Manifest", "Rakefile", "README", "setup.rb", "benchmark/benchmark.rb", "benchmark/Benchmark.thrift", "benchmark/client.rb", "benchmark/server.rb", "benchmark/thin_server.rb", "ext/binary_protocol_accelerated.c", "ext/binary_protocol_accelerated.h", "ext/compact_protocol.c", "ext/compact_protocol.h", "ext/constants.h", "ext/extconf.rb", "ext/macros.h", "ext/memory_buffer.c", "ext/memory_buffer.h", "ext/protocol.c", "ext/protocol.h", "ext/struct.c", "ext/struct.h", "ext/thrift_native.c", "lib/thrift.rb", "lib/thrift/client.rb", "lib/thrift/core_ext.rb", "lib/thrift/exceptions.rb", "lib/thrift/processor.rb", "lib/thrift/struct.rb", "lib/thrift/struct_union.rb", "lib/thrift/union.rb", "lib/thrift/thrift_native.rb", "lib/thrift/types.rb", "lib/thrift/core_ext/fixnum.rb", "lib/thrift/protocol/base_protocol.rb", "lib/thrift/protocol/binary_protocol.rb", "lib/thrift/protocol/binary_protocol_accelerated.rb", "lib/thrift/protocol/compact_protocol.rb", "lib/thrift/serializer/deserializer.rb", "lib/thrift/serializer/serializer.rb", "lib/thrift/server/base_server.rb", "lib/thrift/server/mongrel_http_server.rb", "lib/thrift/server/nonblocking_server.rb", "lib/thrift/server/simple_server.rb", "lib/thrift/server/thread_pool_server.rb", "lib/thrift/server/threaded_server.rb", "lib/thrift/transport/base_server_transport.rb", "lib/thrift/transport/base_transport.rb", "lib/thrift/transport/buffered_transport.rb", "lib/thrift/transport/framed_transport.rb", "lib/thrift/transport/http_client_transport.rb", "lib/thrift/transport/io_stream_transport.rb", "lib/thrift/transport/memory_buffer_transport.rb", "lib/thrift/transport/server_socket.rb", "lib/thrift/transport/socket.rb", "lib/thrift/transport/unix_server_socket.rb", "lib/thrift/transport/unix_socket.rb", "script/proto_benchmark.rb", "script/read_struct.rb", "script/write_struct.rb", "spec/base_protocol_spec.rb", "spec/base_transport_spec.rb", "spec/binary_protocol_accelerated_spec.rb", "spec/binary_protocol_spec.rb", "spec/binary_protocol_spec_shared.rb", "spec/client_spec.rb", "spec/compact_protocol_spec.rb", "spec/exception_spec.rb", "spec/http_client_spec.rb", "spec/mongrel_http_server_spec.rb", "spec/nonblocking_server_spec.rb", "spec/processor_spec.rb", "spec/serializer_spec.rb", "spec/server_socket_spec.rb", "spec/server_spec.rb", "spec/socket_spec.rb", "spec/socket_spec_shared.rb", "spec/spec_helper.rb", "spec/struct_spec.rb", "spec/union_spec.rb", "spec/ThriftSpec.thrift", "spec/types_spec.rb", "spec/unix_socket_spec.rb", "thrift.gemspec"]
|
15
|
+
s.homepage = %q{http://incubator.apache.org/thrift/}
|
17
16
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Thrift", "--main", "README"]
|
18
17
|
s.require_paths = ["lib", "ext"]
|
19
|
-
s.rubyforge_project = %q{
|
20
|
-
s.rubygems_version = %q{1.3.
|
21
|
-
s.signing_key = %q{/Users/eweaver/p/configuration/gem_certificates/evan_weaver-original-private_key.pem}
|
18
|
+
s.rubyforge_project = %q{thrift}
|
19
|
+
s.rubygems_version = %q{1.3.7}
|
22
20
|
s.summary = %q{Ruby libraries for Thrift (a language-agnostic RPC system)}
|
23
21
|
|
24
22
|
if s.respond_to? :specification_version then
|
25
23
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
26
24
|
s.specification_version = 3
|
27
25
|
|
28
|
-
if Gem::Version.new(Gem::
|
26
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
29
27
|
else
|
30
28
|
end
|
31
29
|
else
|
metadata
CHANGED
@@ -1,47 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thrift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
|
-
- 2
|
8
|
-
- 0
|
9
8
|
- 4
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 0.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
|
-
- Kevin Ballard, Kevin Clark, Mark Slee
|
13
|
+
- Kevin Ballard, Kevin Clark, Mark Slee
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
|
-
cert_chain:
|
17
|
-
- |
|
18
|
-
-----BEGIN CERTIFICATE-----
|
19
|
-
MIIDLjCCAhagAwIBAgIBADANBgkqhkiG9w0BAQUFADA9MQ0wCwYDVQQDDARldmFu
|
20
|
-
MRgwFgYKCZImiZPyLGQBGRYIY2xvdWRidXIxEjAQBgoJkiaJk/IsZAEZFgJzdDAe
|
21
|
-
Fw0wNzA5MTYxMDMzMDBaFw0wODA5MTUxMDMzMDBaMD0xDTALBgNVBAMMBGV2YW4x
|
22
|
-
GDAWBgoJkiaJk/IsZAEZFghjbG91ZGJ1cjESMBAGCgmSJomT8ixkARkWAnN0MIIB
|
23
|
-
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5C0Io89nyApnr+PvbNFge9Vs
|
24
|
-
yRWAlGBUEMahpXp28VrrfXZT0rAW7JBo4PlCE3jl4nE4dzE6gAdItSycjTosrw7A
|
25
|
-
Ir5+xoyl4Vb35adv56TIQQXvNz+BzlqnkAY5JN0CSBRTQb6mxS3hFyD/h4qgDosj
|
26
|
-
R2RFVzHqSxCS8xq4Ny8uzOwOi+Xyu4w67fI5JvnPvMxqrlR1eaIQHmxnf76RzC46
|
27
|
-
QO5QhufjAYGGXd960XzbQsQyTDUYJzrvT7AdOfiyZzKQykKt8dEpDn+QPjFTnGnT
|
28
|
-
QmgJBX5WJN0lHF2l1sbv3gh4Kn1tZu+kTUqeXY6ShAoDTyvZRiFqQdwh8w2lTQID
|
29
|
-
AQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU+WqJz3xQ
|
30
|
-
XSea1hRvvHWcIMgeeC4wDQYJKoZIhvcNAQEFBQADggEBAGLZ75jfOEW8Nsl26CTt
|
31
|
-
JFrWxQTcQT/UljeefVE3xYr7lc9oQjbqO3FOyued3qW7TaNEtZfSHoYeUSMYbpw1
|
32
|
-
XAwocIPuSRFDGM4B+hgQGVDx8PMGiJKom4qLXjO40UZsR7QyN/u869Vj45LURm6h
|
33
|
-
MBcPeqCASI+WNprj9+uZa2kmHiitrFqqfMBNlm5IFbn9XeYSta9AHVvs5QQqV2m5
|
34
|
-
hIPfLqCyxsn/YgOGvo6iwyQTWyTswamaAC3HRWZxIS1sfn/Ssqa7E7oQMkv5FAXr
|
35
|
-
x5rKePfXINf8XTJczkl9OBEYdE9aNdJsJpXD0asLgGVwBICS5Bjohp6mizJcDC1+
|
36
|
-
yZ0=
|
37
|
-
-----END CERTIFICATE-----
|
16
|
+
cert_chain: []
|
38
17
|
|
39
|
-
date: 2010-
|
18
|
+
date: 2010-09-21 00:00:00 -07:00
|
40
19
|
default_executable:
|
41
20
|
dependencies: []
|
42
21
|
|
43
22
|
description: Ruby libraries for Thrift (a language-agnostic RPC system)
|
44
|
-
email:
|
23
|
+
email:
|
24
|
+
- kevin@sb.org
|
25
|
+
- kevin.clark@gmail.com
|
26
|
+
- mcslee@facebook.com
|
45
27
|
executables: []
|
46
28
|
|
47
29
|
extensions:
|
@@ -66,31 +48,26 @@ extra_rdoc_files:
|
|
66
48
|
- lib/thrift.rb
|
67
49
|
- lib/thrift/client.rb
|
68
50
|
- lib/thrift/core_ext.rb
|
69
|
-
- lib/thrift/core_ext/fixnum.rb
|
70
51
|
- lib/thrift/exceptions.rb
|
71
52
|
- lib/thrift/processor.rb
|
53
|
+
- lib/thrift/struct.rb
|
54
|
+
- lib/thrift/struct_union.rb
|
55
|
+
- lib/thrift/union.rb
|
56
|
+
- lib/thrift/thrift_native.rb
|
57
|
+
- lib/thrift/types.rb
|
58
|
+
- lib/thrift/core_ext/fixnum.rb
|
72
59
|
- lib/thrift/protocol/base_protocol.rb
|
73
60
|
- lib/thrift/protocol/binary_protocol.rb
|
74
61
|
- lib/thrift/protocol/binary_protocol_accelerated.rb
|
75
|
-
- lib/thrift/protocol/binaryprotocol.rb
|
76
|
-
- lib/thrift/protocol/binaryprotocolaccelerated.rb
|
77
62
|
- lib/thrift/protocol/compact_protocol.rb
|
78
|
-
- lib/thrift/protocol/tbinaryprotocol.rb
|
79
|
-
- lib/thrift/protocol/tprotocol.rb
|
80
63
|
- lib/thrift/serializer/deserializer.rb
|
81
64
|
- lib/thrift/serializer/serializer.rb
|
82
65
|
- lib/thrift/server/base_server.rb
|
83
|
-
- lib/thrift/server/httpserver.rb
|
84
66
|
- lib/thrift/server/mongrel_http_server.rb
|
85
67
|
- lib/thrift/server/nonblocking_server.rb
|
86
|
-
- lib/thrift/server/nonblockingserver.rb
|
87
68
|
- lib/thrift/server/simple_server.rb
|
88
69
|
- lib/thrift/server/thread_pool_server.rb
|
89
70
|
- lib/thrift/server/threaded_server.rb
|
90
|
-
- lib/thrift/server/thttpserver.rb
|
91
|
-
- lib/thrift/server/tserver.rb
|
92
|
-
- lib/thrift/struct.rb
|
93
|
-
- lib/thrift/thrift_native.rb
|
94
71
|
- lib/thrift/transport/base_server_transport.rb
|
95
72
|
- lib/thrift/transport/base_transport.rb
|
96
73
|
- lib/thrift/transport/buffered_transport.rb
|
@@ -102,19 +79,15 @@ extra_rdoc_files:
|
|
102
79
|
- lib/thrift/transport/socket.rb
|
103
80
|
- lib/thrift/transport/unix_server_socket.rb
|
104
81
|
- lib/thrift/transport/unix_socket.rb
|
105
|
-
- lib/thrift/types.rb
|
106
82
|
files:
|
107
83
|
- CHANGELOG
|
108
|
-
- Makefile.am
|
109
84
|
- Manifest
|
110
|
-
- README
|
111
85
|
- Rakefile
|
112
|
-
-
|
86
|
+
- README
|
87
|
+
- setup.rb
|
113
88
|
- benchmark/benchmark.rb
|
89
|
+
- benchmark/Benchmark.thrift
|
114
90
|
- benchmark/client.rb
|
115
|
-
- benchmark/gen-rb/BenchmarkService.rb
|
116
|
-
- benchmark/gen-rb/Benchmark_constants.rb
|
117
|
-
- benchmark/gen-rb/Benchmark_types.rb
|
118
91
|
- benchmark/server.rb
|
119
92
|
- benchmark/thin_server.rb
|
120
93
|
- ext/binary_protocol_accelerated.c
|
@@ -134,31 +107,26 @@ files:
|
|
134
107
|
- lib/thrift.rb
|
135
108
|
- lib/thrift/client.rb
|
136
109
|
- lib/thrift/core_ext.rb
|
137
|
-
- lib/thrift/core_ext/fixnum.rb
|
138
110
|
- lib/thrift/exceptions.rb
|
139
111
|
- lib/thrift/processor.rb
|
112
|
+
- lib/thrift/struct.rb
|
113
|
+
- lib/thrift/struct_union.rb
|
114
|
+
- lib/thrift/union.rb
|
115
|
+
- lib/thrift/thrift_native.rb
|
116
|
+
- lib/thrift/types.rb
|
117
|
+
- lib/thrift/core_ext/fixnum.rb
|
140
118
|
- lib/thrift/protocol/base_protocol.rb
|
141
119
|
- lib/thrift/protocol/binary_protocol.rb
|
142
120
|
- lib/thrift/protocol/binary_protocol_accelerated.rb
|
143
|
-
- lib/thrift/protocol/binaryprotocol.rb
|
144
|
-
- lib/thrift/protocol/binaryprotocolaccelerated.rb
|
145
121
|
- lib/thrift/protocol/compact_protocol.rb
|
146
|
-
- lib/thrift/protocol/tbinaryprotocol.rb
|
147
|
-
- lib/thrift/protocol/tprotocol.rb
|
148
122
|
- lib/thrift/serializer/deserializer.rb
|
149
123
|
- lib/thrift/serializer/serializer.rb
|
150
124
|
- lib/thrift/server/base_server.rb
|
151
|
-
- lib/thrift/server/httpserver.rb
|
152
125
|
- lib/thrift/server/mongrel_http_server.rb
|
153
126
|
- lib/thrift/server/nonblocking_server.rb
|
154
|
-
- lib/thrift/server/nonblockingserver.rb
|
155
127
|
- lib/thrift/server/simple_server.rb
|
156
128
|
- lib/thrift/server/thread_pool_server.rb
|
157
129
|
- lib/thrift/server/threaded_server.rb
|
158
|
-
- lib/thrift/server/thttpserver.rb
|
159
|
-
- lib/thrift/server/tserver.rb
|
160
|
-
- lib/thrift/struct.rb
|
161
|
-
- lib/thrift/thrift_native.rb
|
162
130
|
- lib/thrift/transport/base_server_transport.rb
|
163
131
|
- lib/thrift/transport/base_transport.rb
|
164
132
|
- lib/thrift/transport/buffered_transport.rb
|
@@ -170,12 +138,9 @@ files:
|
|
170
138
|
- lib/thrift/transport/socket.rb
|
171
139
|
- lib/thrift/transport/unix_server_socket.rb
|
172
140
|
- lib/thrift/transport/unix_socket.rb
|
173
|
-
- lib/thrift/types.rb
|
174
141
|
- script/proto_benchmark.rb
|
175
142
|
- script/read_struct.rb
|
176
143
|
- script/write_struct.rb
|
177
|
-
- setup.rb
|
178
|
-
- spec/ThriftSpec.thrift
|
179
144
|
- spec/base_protocol_spec.rb
|
180
145
|
- spec/base_transport_spec.rb
|
181
146
|
- spec/binary_protocol_accelerated_spec.rb
|
@@ -184,9 +149,6 @@ files:
|
|
184
149
|
- spec/client_spec.rb
|
185
150
|
- spec/compact_protocol_spec.rb
|
186
151
|
- spec/exception_spec.rb
|
187
|
-
- spec/gen-rb/NonblockingService.rb
|
188
|
-
- spec/gen-rb/ThriftSpec_constants.rb
|
189
|
-
- spec/gen-rb/ThriftSpec_types.rb
|
190
152
|
- spec/http_client_spec.rb
|
191
153
|
- spec/mongrel_http_server_spec.rb
|
192
154
|
- spec/nonblocking_server_spec.rb
|
@@ -198,11 +160,13 @@ files:
|
|
198
160
|
- spec/socket_spec_shared.rb
|
199
161
|
- spec/spec_helper.rb
|
200
162
|
- spec/struct_spec.rb
|
163
|
+
- spec/union_spec.rb
|
164
|
+
- spec/ThriftSpec.thrift
|
201
165
|
- spec/types_spec.rb
|
202
166
|
- spec/unix_socket_spec.rb
|
203
167
|
- thrift.gemspec
|
204
168
|
has_rdoc: true
|
205
|
-
homepage: http://
|
169
|
+
homepage: http://incubator.apache.org/thrift/
|
206
170
|
licenses: []
|
207
171
|
|
208
172
|
post_install_message:
|
@@ -217,24 +181,29 @@ require_paths:
|
|
217
181
|
- lib
|
218
182
|
- ext
|
219
183
|
required_ruby_version: !ruby/object:Gem::Requirement
|
184
|
+
none: false
|
220
185
|
requirements:
|
221
186
|
- - ">="
|
222
187
|
- !ruby/object:Gem::Version
|
188
|
+
hash: 3
|
223
189
|
segments:
|
224
190
|
- 0
|
225
191
|
version: "0"
|
226
192
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
227
194
|
requirements:
|
228
195
|
- - ">="
|
229
196
|
- !ruby/object:Gem::Version
|
197
|
+
hash: 31
|
230
198
|
segments:
|
231
199
|
- 1
|
232
200
|
- 2
|
233
|
-
|
201
|
+
- 0
|
202
|
+
version: 1.2.0
|
234
203
|
requirements: []
|
235
204
|
|
236
|
-
rubyforge_project:
|
237
|
-
rubygems_version: 1.3.
|
205
|
+
rubyforge_project: thrift
|
206
|
+
rubygems_version: 1.3.7
|
238
207
|
signing_key:
|
239
208
|
specification_version: 3
|
240
209
|
summary: Ruby libraries for Thrift (a language-agnostic RPC system)
|