thrift 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/InstalledFiles +1 -0
- data/Makefile +512 -0
- data/Makefile.am +3 -1
- data/Makefile.in +117 -45
- data/Manifest +17 -0
- data/Rakefile +6 -8
- data/benchmark/gen-rb/benchmark_constants.rb +10 -0
- data/benchmark/gen-rb/benchmark_service.rb +80 -0
- data/benchmark/gen-rb/benchmark_types.rb +9 -0
- data/debug_proto_test/gen-rb/debug_proto_test_constants.rb +273 -0
- data/debug_proto_test/gen-rb/debug_proto_test_types.rb +705 -0
- data/debug_proto_test/gen-rb/empty_service.rb +24 -0
- data/debug_proto_test/gen-rb/inherited.rb +79 -0
- data/debug_proto_test/gen-rb/reverse_order_service.rb +82 -0
- data/debug_proto_test/gen-rb/service_for_exception_with_a_map.rb +81 -0
- data/debug_proto_test/gen-rb/srv.rb +330 -0
- data/ext/binary_protocol_accelerated.c +24 -11
- data/ext/compact_protocol.c +14 -11
- data/ext/constants.h +1 -0
- data/ext/memory_buffer.c +56 -1
- data/ext/struct.c +76 -19
- data/ext/thrift_native.c +2 -0
- data/lib/thrift/exceptions.rb +3 -1
- data/lib/thrift/protocol/binary_protocol.rb +14 -10
- data/lib/thrift/protocol/compact_protocol.rb +7 -4
- data/lib/thrift/server/nonblocking_server.rb +15 -5
- data/lib/thrift/struct.rb +9 -6
- data/lib/thrift/struct_union.rb +47 -14
- data/lib/thrift/transport/base_transport.rb +39 -2
- data/lib/thrift/transport/buffered_transport.rb +31 -0
- data/lib/thrift/transport/framed_transport.rb +26 -0
- data/lib/thrift/transport/memory_buffer_transport.rb +29 -0
- data/spec/binary_protocol_spec.rb +2 -4
- data/spec/gen-rb/nonblocking_service.rb +272 -0
- data/spec/gen-rb/thrift_spec_constants.rb +10 -0
- data/spec/gen-rb/thrift_spec_types.rb +345 -0
- data/spec/spec_helper.rb +1 -3
- data/thrift.gemspec +10 -11
- data/tmp/thrift-0.7.0.gem +0 -0
- metadata +22 -8
data/spec/spec_helper.rb
CHANGED
@@ -18,8 +18,6 @@
|
|
18
18
|
#
|
19
19
|
|
20
20
|
require 'rubygems'
|
21
|
-
# require at least 1.1.4 to fix a bug with describing Modules
|
22
|
-
gem 'rspec', '>= 1.1.4'
|
23
21
|
require 'spec'
|
24
22
|
|
25
23
|
$:.unshift File.join(File.dirname(__FILE__), *%w[.. ext])
|
@@ -57,4 +55,4 @@ module Fixtures
|
|
57
55
|
COMPACT_PROTOCOL_TEST_STRUCT.a_binary = [0,1,2,3,4,5,6,7,8].pack('c*')
|
58
56
|
COMPACT_PROTOCOL_TEST_STRUCT.set_byte_map = nil
|
59
57
|
COMPACT_PROTOCOL_TEST_STRUCT.map_byte_map = nil
|
60
|
-
end
|
58
|
+
end
|
data/thrift.gemspec
CHANGED
@@ -2,25 +2,24 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{thrift}
|
5
|
-
s.version = "0.
|
5
|
+
s.version = "0.7.0"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2.0") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = [
|
9
|
-
s.date = %q{2011-
|
8
|
+
s.authors = [%q{Thrift Developers}]
|
9
|
+
s.date = %q{2011-08-16}
|
10
10
|
s.description = %q{Ruby bindings for the Apache Thrift RPC system}
|
11
|
-
s.email = [
|
12
|
-
s.extensions = [
|
13
|
-
s.extra_rdoc_files = [
|
14
|
-
s.files = [
|
11
|
+
s.email = [%q{dev@thrift.apache.org}]
|
12
|
+
s.extensions = [%q{ext/extconf.rb}]
|
13
|
+
s.extra_rdoc_files = [%q{CHANGELOG}, %q{README}, %q{ext/binary_protocol_accelerated.c}, %q{ext/binary_protocol_accelerated.h}, %q{ext/compact_protocol.c}, %q{ext/compact_protocol.h}, %q{ext/constants.h}, %q{ext/extconf.rb}, %q{ext/macros.h}, %q{ext/memory_buffer.c}, %q{ext/memory_buffer.h}, %q{ext/protocol.c}, %q{ext/protocol.h}, %q{ext/struct.c}, %q{ext/struct.h}, %q{ext/thrift_native.c}, %q{lib/thrift.rb}, %q{lib/thrift/client.rb}, %q{lib/thrift/core_ext.rb}, %q{lib/thrift/core_ext/fixnum.rb}, %q{lib/thrift/exceptions.rb}, %q{lib/thrift/processor.rb}, %q{lib/thrift/protocol/base_protocol.rb}, %q{lib/thrift/protocol/binary_protocol.rb}, %q{lib/thrift/protocol/binary_protocol_accelerated.rb}, %q{lib/thrift/protocol/compact_protocol.rb}, %q{lib/thrift/serializer/deserializer.rb}, %q{lib/thrift/serializer/serializer.rb}, %q{lib/thrift/server/base_server.rb}, %q{lib/thrift/server/mongrel_http_server.rb}, %q{lib/thrift/server/nonblocking_server.rb}, %q{lib/thrift/server/simple_server.rb}, %q{lib/thrift/server/thread_pool_server.rb}, %q{lib/thrift/server/threaded_server.rb}, %q{lib/thrift/struct.rb}, %q{lib/thrift/struct_union.rb}, %q{lib/thrift/thrift_native.rb}, %q{lib/thrift/transport/base_server_transport.rb}, %q{lib/thrift/transport/base_transport.rb}, %q{lib/thrift/transport/buffered_transport.rb}, %q{lib/thrift/transport/framed_transport.rb}, %q{lib/thrift/transport/http_client_transport.rb}, %q{lib/thrift/transport/io_stream_transport.rb}, %q{lib/thrift/transport/memory_buffer_transport.rb}, %q{lib/thrift/transport/server_socket.rb}, %q{lib/thrift/transport/socket.rb}, %q{lib/thrift/transport/unix_server_socket.rb}, %q{lib/thrift/transport/unix_socket.rb}, %q{lib/thrift/types.rb}, %q{lib/thrift/union.rb}]
|
14
|
+
s.files = [%q{CHANGELOG}, %q{InstalledFiles}, %q{Makefile}, %q{Makefile.am}, %q{Makefile.in}, %q{Manifest}, %q{README}, %q{Rakefile}, %q{benchmark/Benchmark.thrift}, %q{benchmark/benchmark.rb}, %q{benchmark/client.rb}, %q{benchmark/gen-rb/benchmark_constants.rb}, %q{benchmark/gen-rb/benchmark_service.rb}, %q{benchmark/gen-rb/benchmark_types.rb}, %q{benchmark/server.rb}, %q{benchmark/thin_server.rb}, %q{debug_proto_test/gen-rb/debug_proto_test_constants.rb}, %q{debug_proto_test/gen-rb/debug_proto_test_types.rb}, %q{debug_proto_test/gen-rb/empty_service.rb}, %q{debug_proto_test/gen-rb/inherited.rb}, %q{debug_proto_test/gen-rb/reverse_order_service.rb}, %q{debug_proto_test/gen-rb/service_for_exception_with_a_map.rb}, %q{debug_proto_test/gen-rb/srv.rb}, %q{ext/binary_protocol_accelerated.c}, %q{ext/binary_protocol_accelerated.h}, %q{ext/compact_protocol.c}, %q{ext/compact_protocol.h}, %q{ext/constants.h}, %q{ext/extconf.rb}, %q{ext/macros.h}, %q{ext/memory_buffer.c}, %q{ext/memory_buffer.h}, %q{ext/protocol.c}, %q{ext/protocol.h}, %q{ext/struct.c}, %q{ext/struct.h}, %q{ext/thrift_native.c}, %q{lib/thrift.rb}, %q{lib/thrift/client.rb}, %q{lib/thrift/core_ext.rb}, %q{lib/thrift/core_ext/fixnum.rb}, %q{lib/thrift/exceptions.rb}, %q{lib/thrift/processor.rb}, %q{lib/thrift/protocol/base_protocol.rb}, %q{lib/thrift/protocol/binary_protocol.rb}, %q{lib/thrift/protocol/binary_protocol_accelerated.rb}, %q{lib/thrift/protocol/compact_protocol.rb}, %q{lib/thrift/serializer/deserializer.rb}, %q{lib/thrift/serializer/serializer.rb}, %q{lib/thrift/server/base_server.rb}, %q{lib/thrift/server/mongrel_http_server.rb}, %q{lib/thrift/server/nonblocking_server.rb}, %q{lib/thrift/server/simple_server.rb}, %q{lib/thrift/server/thread_pool_server.rb}, %q{lib/thrift/server/threaded_server.rb}, %q{lib/thrift/struct.rb}, %q{lib/thrift/struct_union.rb}, %q{lib/thrift/thrift_native.rb}, %q{lib/thrift/transport/base_server_transport.rb}, %q{lib/thrift/transport/base_transport.rb}, %q{lib/thrift/transport/buffered_transport.rb}, %q{lib/thrift/transport/framed_transport.rb}, %q{lib/thrift/transport/http_client_transport.rb}, %q{lib/thrift/transport/io_stream_transport.rb}, %q{lib/thrift/transport/memory_buffer_transport.rb}, %q{lib/thrift/transport/server_socket.rb}, %q{lib/thrift/transport/socket.rb}, %q{lib/thrift/transport/unix_server_socket.rb}, %q{lib/thrift/transport/unix_socket.rb}, %q{lib/thrift/types.rb}, %q{lib/thrift/union.rb}, %q{script/proto_benchmark.rb}, %q{script/read_struct.rb}, %q{script/write_struct.rb}, %q{setup.rb}, %q{spec/ThriftSpec.thrift}, %q{spec/base_protocol_spec.rb}, %q{spec/base_transport_spec.rb}, %q{spec/binary_protocol_accelerated_spec.rb}, %q{spec/binary_protocol_spec.rb}, %q{spec/binary_protocol_spec_shared.rb}, %q{spec/client_spec.rb}, %q{spec/compact_protocol_spec.rb}, %q{spec/exception_spec.rb}, %q{spec/gen-rb/nonblocking_service.rb}, %q{spec/gen-rb/thrift_spec_constants.rb}, %q{spec/gen-rb/thrift_spec_types.rb}, %q{spec/http_client_spec.rb}, %q{spec/mongrel_http_server_spec.rb}, %q{spec/nonblocking_server_spec.rb}, %q{spec/processor_spec.rb}, %q{spec/serializer_spec.rb}, %q{spec/server_socket_spec.rb}, %q{spec/server_spec.rb}, %q{spec/socket_spec.rb}, %q{spec/socket_spec_shared.rb}, %q{spec/spec_helper.rb}, %q{spec/struct_spec.rb}, %q{spec/types_spec.rb}, %q{spec/union_spec.rb}, %q{spec/unix_socket_spec.rb}, %q{thrift.gemspec}, %q{tmp/thrift-0.7.0.gem}]
|
15
15
|
s.homepage = %q{http://thrift.apache.org}
|
16
|
-
s.rdoc_options = [
|
17
|
-
s.require_paths = [
|
16
|
+
s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Thrift}, %q{--main}, %q{README}]
|
17
|
+
s.require_paths = [%q{lib}, %q{ext}]
|
18
18
|
s.rubyforge_project = %q{thrift}
|
19
|
-
s.rubygems_version = %q{1.
|
19
|
+
s.rubygems_version = %q{1.8.6}
|
20
20
|
s.summary = %q{Ruby bindings for the Apache Thrift RPC system}
|
21
21
|
|
22
22
|
if s.respond_to? :specification_version then
|
23
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
24
23
|
s.specification_version = 3
|
25
24
|
|
26
25
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thrift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 3
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 7
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.7.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Thrift Developers
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-08-16 00:00:00 Z
|
20
19
|
dependencies: []
|
21
20
|
|
22
21
|
description: Ruby bindings for the Apache Thrift RPC system
|
@@ -79,6 +78,8 @@ extra_rdoc_files:
|
|
79
78
|
- lib/thrift/union.rb
|
80
79
|
files:
|
81
80
|
- CHANGELOG
|
81
|
+
- InstalledFiles
|
82
|
+
- Makefile
|
82
83
|
- Makefile.am
|
83
84
|
- Makefile.in
|
84
85
|
- Manifest
|
@@ -87,8 +88,18 @@ files:
|
|
87
88
|
- benchmark/Benchmark.thrift
|
88
89
|
- benchmark/benchmark.rb
|
89
90
|
- benchmark/client.rb
|
91
|
+
- benchmark/gen-rb/benchmark_constants.rb
|
92
|
+
- benchmark/gen-rb/benchmark_service.rb
|
93
|
+
- benchmark/gen-rb/benchmark_types.rb
|
90
94
|
- benchmark/server.rb
|
91
95
|
- benchmark/thin_server.rb
|
96
|
+
- debug_proto_test/gen-rb/debug_proto_test_constants.rb
|
97
|
+
- debug_proto_test/gen-rb/debug_proto_test_types.rb
|
98
|
+
- debug_proto_test/gen-rb/empty_service.rb
|
99
|
+
- debug_proto_test/gen-rb/inherited.rb
|
100
|
+
- debug_proto_test/gen-rb/reverse_order_service.rb
|
101
|
+
- debug_proto_test/gen-rb/service_for_exception_with_a_map.rb
|
102
|
+
- debug_proto_test/gen-rb/srv.rb
|
92
103
|
- ext/binary_protocol_accelerated.c
|
93
104
|
- ext/binary_protocol_accelerated.h
|
94
105
|
- ext/compact_protocol.c
|
@@ -150,6 +161,9 @@ files:
|
|
150
161
|
- spec/client_spec.rb
|
151
162
|
- spec/compact_protocol_spec.rb
|
152
163
|
- spec/exception_spec.rb
|
164
|
+
- spec/gen-rb/nonblocking_service.rb
|
165
|
+
- spec/gen-rb/thrift_spec_constants.rb
|
166
|
+
- spec/gen-rb/thrift_spec_types.rb
|
153
167
|
- spec/http_client_spec.rb
|
154
168
|
- spec/mongrel_http_server_spec.rb
|
155
169
|
- spec/nonblocking_server_spec.rb
|
@@ -165,7 +179,7 @@ files:
|
|
165
179
|
- spec/union_spec.rb
|
166
180
|
- spec/unix_socket_spec.rb
|
167
181
|
- thrift.gemspec
|
168
|
-
|
182
|
+
- tmp/thrift-0.7.0.gem
|
169
183
|
homepage: http://thrift.apache.org
|
170
184
|
licenses: []
|
171
185
|
|
@@ -203,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
217
|
requirements: []
|
204
218
|
|
205
219
|
rubyforge_project: thrift
|
206
|
-
rubygems_version: 1.
|
220
|
+
rubygems_version: 1.8.6
|
207
221
|
signing_key:
|
208
222
|
specification_version: 3
|
209
223
|
summary: Ruby bindings for the Apache Thrift RPC system
|