thrift 0.8.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/{README → README.md} +0 -0
- data/ext/binary_protocol_accelerated.c +33 -14
- data/ext/bytes.c +36 -0
- data/ext/bytes.h +31 -0
- data/ext/compact_protocol.c +27 -8
- data/ext/constants.h +8 -5
- data/ext/extconf.rb +5 -1
- data/ext/memory_buffer.c +12 -9
- data/ext/protocol.c +0 -185
- data/ext/protocol.h +0 -20
- data/ext/strlcpy.h +7 -3
- data/ext/struct.c +27 -7
- data/ext/thrift_native.c +16 -11
- data/lib/thrift.rb +10 -4
- data/lib/thrift/bytes.rb +131 -0
- data/lib/thrift/client.rb +13 -4
- data/lib/thrift/exceptions.rb +3 -0
- data/lib/thrift/multiplexed_processor.rb +76 -0
- data/lib/thrift/processor.rb +24 -6
- data/lib/thrift/protocol/base_protocol.rb +109 -12
- data/lib/thrift/protocol/binary_protocol.rb +22 -7
- data/lib/thrift/protocol/binary_protocol_accelerated.rb +8 -0
- data/lib/thrift/protocol/compact_protocol.rb +23 -6
- data/lib/thrift/protocol/json_protocol.rb +786 -0
- data/lib/thrift/protocol/multiplexed_protocol.rb +44 -0
- data/lib/thrift/protocol/protocol_decorator.rb +194 -0
- data/lib/thrift/server/base_server.rb +8 -2
- data/lib/thrift/server/mongrel_http_server.rb +2 -0
- data/lib/thrift/server/simple_server.rb +5 -1
- data/lib/thrift/server/thin_http_server.rb +91 -0
- data/lib/thrift/server/thread_pool_server.rb +5 -1
- data/lib/thrift/server/threaded_server.rb +5 -1
- data/lib/thrift/struct.rb +1 -1
- data/lib/thrift/struct_union.rb +2 -2
- data/lib/thrift/transport/base_server_transport.rb +1 -1
- data/lib/thrift/transport/base_transport.rb +30 -20
- data/lib/thrift/transport/buffered_transport.rb +25 -11
- data/lib/thrift/transport/framed_transport.rb +20 -11
- data/lib/thrift/transport/http_client_transport.rb +16 -6
- data/lib/thrift/transport/io_stream_transport.rb +5 -2
- data/lib/thrift/transport/memory_buffer_transport.rb +10 -6
- data/lib/thrift/transport/server_socket.rb +6 -1
- data/lib/thrift/transport/socket.rb +23 -17
- data/lib/thrift/transport/ssl_server_socket.rb +41 -0
- data/lib/thrift/transport/ssl_socket.rb +51 -0
- data/lib/thrift/transport/unix_server_socket.rb +5 -1
- data/lib/thrift/transport/unix_socket.rb +5 -1
- data/lib/thrift/union.rb +3 -6
- data/spec/BaseService.thrift +27 -0
- data/spec/ExtendedService.thrift +25 -0
- data/spec/Referenced.thrift +44 -0
- data/spec/ThriftNamespacedSpec.thrift +53 -0
- data/spec/ThriftSpec.thrift +52 -1
- data/spec/base_protocol_spec.rb +158 -93
- data/spec/base_transport_spec.rb +194 -157
- data/spec/binary_protocol_accelerated_spec.rb +14 -14
- data/spec/binary_protocol_spec.rb +29 -16
- data/spec/binary_protocol_spec_shared.rb +148 -65
- data/spec/bytes_spec.rb +160 -0
- data/spec/client_spec.rb +45 -47
- data/spec/compact_protocol_spec.rb +36 -22
- data/spec/exception_spec.rb +79 -80
- data/spec/flat_spec.rb +62 -0
- data/spec/http_client_spec.rb +91 -16
- data/spec/json_protocol_spec.rb +552 -0
- data/spec/namespaced_spec.rb +67 -0
- data/spec/nonblocking_server_spec.rb +26 -28
- data/spec/processor_spec.rb +29 -32
- data/spec/serializer_spec.rb +31 -33
- data/spec/server_socket_spec.rb +32 -28
- data/spec/server_spec.rb +112 -84
- data/spec/socket_spec.rb +27 -20
- data/spec/socket_spec_shared.rb +32 -32
- data/spec/spec_helper.rb +17 -11
- data/spec/ssl_server_socket_spec.rb +34 -0
- data/spec/ssl_socket_spec.rb +78 -0
- data/spec/struct_nested_containers_spec.rb +191 -0
- data/spec/struct_spec.rb +159 -161
- data/spec/thin_http_server_spec.rb +141 -0
- data/spec/types_spec.rb +71 -69
- data/spec/union_spec.rb +97 -76
- data/spec/unix_socket_spec.rb +49 -41
- metadata +268 -188
- data/CHANGELOG +0 -1
- data/benchmark/gen-rb/benchmark_constants.rb +0 -10
- data/benchmark/gen-rb/benchmark_service.rb +0 -80
- data/benchmark/gen-rb/benchmark_types.rb +0 -9
- data/spec/gen-rb/nonblocking_service.rb +0 -272
- data/spec/gen-rb/thrift_spec_constants.rb +0 -10
- data/spec/gen-rb/thrift_spec_types.rb +0 -345
- data/spec/mongrel_http_server_spec.rb +0 -117
- data/test/debug_proto/gen-rb/debug_proto_test_constants.rb +0 -273
- data/test/debug_proto/gen-rb/debug_proto_test_types.rb +0 -760
- data/test/debug_proto/gen-rb/empty_service.rb +0 -24
- data/test/debug_proto/gen-rb/inherited.rb +0 -79
- data/test/debug_proto/gen-rb/reverse_order_service.rb +0 -82
- data/test/debug_proto/gen-rb/service_for_exception_with_a_map.rb +0 -81
- data/test/debug_proto/gen-rb/srv.rb +0 -330
data/spec/unix_socket_spec.rb
CHANGED
@@ -17,92 +17,100 @@
|
|
17
17
|
# under the License.
|
18
18
|
#
|
19
19
|
|
20
|
-
require
|
20
|
+
require 'spec_helper'
|
21
21
|
require File.expand_path("#{File.dirname(__FILE__)}/socket_spec_shared")
|
22
22
|
|
23
|
-
|
24
|
-
include Thrift
|
23
|
+
describe 'UNIXSocket' do
|
25
24
|
|
26
|
-
describe UNIXSocket do
|
25
|
+
describe Thrift::UNIXSocket do
|
27
26
|
before(:each) do
|
28
27
|
@path = '/tmp/thrift_spec_socket'
|
29
|
-
@socket = UNIXSocket.new(@path)
|
30
|
-
@handle =
|
31
|
-
@handle.
|
32
|
-
::UNIXSocket.
|
28
|
+
@socket = Thrift::UNIXSocket.new(@path)
|
29
|
+
@handle = double("Handle", :closed? => false)
|
30
|
+
allow(@handle).to receive(:close)
|
31
|
+
allow(::UNIXSocket).to receive(:new).and_return(@handle)
|
33
32
|
end
|
34
33
|
|
35
34
|
it_should_behave_like "a socket"
|
36
35
|
|
37
36
|
it "should raise a TransportException when it cannot open a socket" do
|
38
|
-
::UNIXSocket.
|
39
|
-
|
37
|
+
expect(::UNIXSocket).to receive(:new).and_raise(StandardError)
|
38
|
+
expect { @socket.open }.to raise_error(Thrift::TransportException) { |e| expect(e.type).to eq(Thrift::TransportException::NOT_OPEN) }
|
40
39
|
end
|
41
40
|
|
42
41
|
it "should accept an optional timeout" do
|
43
|
-
::UNIXSocket.
|
44
|
-
UNIXSocket.new(@path, 5).timeout.
|
42
|
+
allow(::UNIXSocket).to receive(:new)
|
43
|
+
expect(Thrift::UNIXSocket.new(@path, 5).timeout).to eq(5)
|
44
|
+
end
|
45
|
+
|
46
|
+
it "should provide a reasonable to_s" do
|
47
|
+
allow(::UNIXSocket).to receive(:new)
|
48
|
+
expect(Thrift::UNIXSocket.new(@path).to_s).to eq("domain(#{@path})")
|
45
49
|
end
|
46
50
|
end
|
47
51
|
|
48
|
-
describe UNIXServerSocket do
|
52
|
+
describe Thrift::UNIXServerSocket do
|
49
53
|
before(:each) do
|
50
54
|
@path = '/tmp/thrift_spec_socket'
|
51
|
-
@socket = UNIXServerSocket.new(@path)
|
55
|
+
@socket = Thrift::UNIXServerSocket.new(@path)
|
52
56
|
end
|
53
57
|
|
54
58
|
it "should create a handle when calling listen" do
|
55
|
-
UNIXServer.
|
59
|
+
expect(UNIXServer).to receive(:new).with(@path)
|
56
60
|
@socket.listen
|
57
61
|
end
|
58
62
|
|
59
63
|
it "should create a Thrift::UNIXSocket to wrap accepted sockets" do
|
60
|
-
handle =
|
61
|
-
UNIXServer.
|
64
|
+
handle = double("UNIXServer")
|
65
|
+
expect(UNIXServer).to receive(:new).with(@path).and_return(handle)
|
62
66
|
@socket.listen
|
63
|
-
sock =
|
64
|
-
handle.
|
65
|
-
trans =
|
66
|
-
UNIXSocket.
|
67
|
-
trans.
|
68
|
-
@socket.accept.
|
67
|
+
sock = double("sock")
|
68
|
+
expect(handle).to receive(:accept).and_return(sock)
|
69
|
+
trans = double("UNIXSocket")
|
70
|
+
expect(Thrift::UNIXSocket).to receive(:new).and_return(trans)
|
71
|
+
expect(trans).to receive(:handle=).with(sock)
|
72
|
+
expect(@socket.accept).to eq(trans)
|
69
73
|
end
|
70
74
|
|
71
75
|
it "should close the handle when closed" do
|
72
|
-
handle =
|
73
|
-
UNIXServer.
|
76
|
+
handle = double("UNIXServer", :closed? => false)
|
77
|
+
expect(UNIXServer).to receive(:new).with(@path).and_return(handle)
|
74
78
|
@socket.listen
|
75
|
-
handle.
|
76
|
-
File.
|
79
|
+
expect(handle).to receive(:close)
|
80
|
+
allow(File).to receive(:delete)
|
77
81
|
@socket.close
|
78
82
|
end
|
79
83
|
|
80
84
|
it "should delete the socket when closed" do
|
81
|
-
handle =
|
82
|
-
UNIXServer.
|
85
|
+
handle = double("UNIXServer", :closed? => false)
|
86
|
+
expect(UNIXServer).to receive(:new).with(@path).and_return(handle)
|
83
87
|
@socket.listen
|
84
|
-
handle.
|
85
|
-
File.
|
88
|
+
allow(handle).to receive(:close)
|
89
|
+
expect(File).to receive(:delete).with(@path)
|
86
90
|
@socket.close
|
87
91
|
end
|
88
92
|
|
89
93
|
it "should return nil when accepting if there is no handle" do
|
90
|
-
@socket.accept.
|
94
|
+
expect(@socket.accept).to be_nil
|
91
95
|
end
|
92
96
|
|
93
97
|
it "should return true for closed? when appropriate" do
|
94
|
-
handle =
|
95
|
-
UNIXServer.
|
96
|
-
File.
|
98
|
+
handle = double("UNIXServer", :closed? => false)
|
99
|
+
allow(UNIXServer).to receive(:new).and_return(handle)
|
100
|
+
allow(File).to receive(:delete)
|
97
101
|
@socket.listen
|
98
|
-
@socket.
|
99
|
-
handle.
|
102
|
+
expect(@socket).not_to be_closed
|
103
|
+
allow(handle).to receive(:close)
|
100
104
|
@socket.close
|
101
|
-
@socket.
|
105
|
+
expect(@socket).to be_closed
|
102
106
|
@socket.listen
|
103
|
-
@socket.
|
104
|
-
handle.
|
105
|
-
@socket.
|
107
|
+
expect(@socket).not_to be_closed
|
108
|
+
allow(handle).to receive(:closed?).and_return(true)
|
109
|
+
expect(@socket).to be_closed
|
110
|
+
end
|
111
|
+
|
112
|
+
it "should provide a reasonable to_s" do
|
113
|
+
expect(@socket.to_s).to eq("domain(#{@path})")
|
106
114
|
end
|
107
115
|
end
|
108
116
|
end
|
metadata
CHANGED
@@ -1,142 +1,256 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: thrift
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 8
|
9
|
-
- 0
|
10
|
-
version: 0.8.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.13.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
- Thrift Developers
|
6
|
+
authors:
|
7
|
+
- Apache Thrift Developers
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
date: 2020-09-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.11'
|
20
|
+
type: :development
|
22
21
|
prerelease: false
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pry
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.11.3
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.11.3
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry-byebug
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.6'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.6'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry-stack_explorer
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.4.9.2
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.4.9.2
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rack
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rack-test
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.8.3
|
32
90
|
type: :development
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: rspec
|
36
91
|
prerelease: false
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.8.3
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '12.3'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '12.3'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '3.7'
|
48
118
|
type: :development
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: mongrel
|
52
119
|
prerelease: false
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '3.7'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: thin
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '1.7'
|
62
132
|
type: :development
|
63
|
-
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '1.7'
|
64
139
|
description: Ruby bindings for the Apache Thrift RPC system
|
65
|
-
email:
|
140
|
+
email:
|
66
141
|
- dev@thrift.apache.org
|
67
142
|
executables: []
|
68
|
-
|
69
|
-
extensions:
|
143
|
+
extensions:
|
70
144
|
- ext/extconf.rb
|
71
|
-
extra_rdoc_files:
|
72
|
-
-
|
73
|
-
-
|
74
|
-
- ext/
|
75
|
-
- ext/compact_protocol.c
|
76
|
-
- ext/memory_buffer.c
|
145
|
+
extra_rdoc_files:
|
146
|
+
- README.md
|
147
|
+
- ext/thrift_native.c
|
148
|
+
- ext/bytes.c
|
77
149
|
- ext/protocol.c
|
78
150
|
- ext/strlcpy.c
|
151
|
+
- ext/memory_buffer.c
|
152
|
+
- ext/binary_protocol_accelerated.c
|
79
153
|
- ext/struct.c
|
80
|
-
- ext/
|
81
|
-
- ext/binary_protocol_accelerated.h
|
82
|
-
- ext/compact_protocol.h
|
154
|
+
- ext/compact_protocol.c
|
83
155
|
- ext/constants.h
|
84
156
|
- ext/macros.h
|
157
|
+
- ext/strlcpy.h
|
158
|
+
- ext/bytes.h
|
85
159
|
- ext/memory_buffer.h
|
86
160
|
- ext/protocol.h
|
87
|
-
- ext/
|
161
|
+
- ext/binary_protocol_accelerated.h
|
88
162
|
- ext/struct.h
|
163
|
+
- ext/compact_protocol.h
|
89
164
|
- ext/extconf.rb
|
90
|
-
- lib/thrift/
|
91
|
-
- lib/thrift/
|
92
|
-
- lib/thrift/core_ext.rb
|
93
|
-
- lib/thrift/exceptions.rb
|
165
|
+
- lib/thrift/struct_union.rb
|
166
|
+
- lib/thrift/struct.rb
|
94
167
|
- lib/thrift/processor.rb
|
95
|
-
- lib/thrift/protocol/
|
96
|
-
- lib/thrift/protocol/
|
97
|
-
- lib/thrift/protocol/
|
168
|
+
- lib/thrift/protocol/json_protocol.rb
|
169
|
+
- lib/thrift/protocol/multiplexed_protocol.rb
|
170
|
+
- lib/thrift/protocol/protocol_decorator.rb
|
98
171
|
- lib/thrift/protocol/compact_protocol.rb
|
99
|
-
- lib/thrift/
|
100
|
-
- lib/thrift/
|
101
|
-
- lib/thrift/
|
102
|
-
- lib/thrift/
|
103
|
-
- lib/thrift/
|
172
|
+
- lib/thrift/protocol/binary_protocol_accelerated.rb
|
173
|
+
- lib/thrift/protocol/binary_protocol.rb
|
174
|
+
- lib/thrift/protocol/base_protocol.rb
|
175
|
+
- lib/thrift/types.rb
|
176
|
+
- lib/thrift/thrift_native.rb
|
177
|
+
- lib/thrift/union.rb
|
178
|
+
- lib/thrift/bytes.rb
|
179
|
+
- lib/thrift/client.rb
|
180
|
+
- lib/thrift/multiplexed_processor.rb
|
181
|
+
- lib/thrift/server/thin_http_server.rb
|
104
182
|
- lib/thrift/server/simple_server.rb
|
105
183
|
- lib/thrift/server/thread_pool_server.rb
|
106
184
|
- lib/thrift/server/threaded_server.rb
|
107
|
-
- lib/thrift/
|
108
|
-
- lib/thrift/
|
109
|
-
- lib/thrift/
|
110
|
-
- lib/thrift/transport/
|
111
|
-
- lib/thrift/transport/
|
185
|
+
- lib/thrift/server/mongrel_http_server.rb
|
186
|
+
- lib/thrift/server/base_server.rb
|
187
|
+
- lib/thrift/server/nonblocking_server.rb
|
188
|
+
- lib/thrift/transport/ssl_socket.rb
|
189
|
+
- lib/thrift/transport/memory_buffer_transport.rb
|
112
190
|
- lib/thrift/transport/buffered_transport.rb
|
191
|
+
- lib/thrift/transport/socket.rb
|
113
192
|
- lib/thrift/transport/framed_transport.rb
|
114
193
|
- lib/thrift/transport/http_client_transport.rb
|
194
|
+
- lib/thrift/transport/base_server_transport.rb
|
195
|
+
- lib/thrift/transport/ssl_server_socket.rb
|
196
|
+
- lib/thrift/transport/unix_server_socket.rb
|
197
|
+
- lib/thrift/transport/base_transport.rb
|
115
198
|
- lib/thrift/transport/io_stream_transport.rb
|
116
|
-
- lib/thrift/transport/memory_buffer_transport.rb
|
117
199
|
- lib/thrift/transport/server_socket.rb
|
118
|
-
- lib/thrift/transport/socket.rb
|
119
|
-
- lib/thrift/transport/unix_server_socket.rb
|
120
200
|
- lib/thrift/transport/unix_socket.rb
|
121
|
-
- lib/thrift/
|
122
|
-
- lib/thrift/
|
201
|
+
- lib/thrift/exceptions.rb
|
202
|
+
- lib/thrift/core_ext.rb
|
203
|
+
- lib/thrift/core_ext/fixnum.rb
|
204
|
+
- lib/thrift/serializer/deserializer.rb
|
205
|
+
- lib/thrift/serializer/serializer.rb
|
206
|
+
- lib/thrift.rb
|
207
|
+
files:
|
208
|
+
- README.md
|
209
|
+
- benchmark/Benchmark.thrift
|
210
|
+
- benchmark/benchmark.rb
|
211
|
+
- benchmark/client.rb
|
212
|
+
- benchmark/server.rb
|
213
|
+
- benchmark/thin_server.rb
|
214
|
+
- ext/binary_protocol_accelerated.c
|
215
|
+
- ext/binary_protocol_accelerated.h
|
216
|
+
- ext/bytes.c
|
217
|
+
- ext/bytes.h
|
218
|
+
- ext/compact_protocol.c
|
219
|
+
- ext/compact_protocol.h
|
220
|
+
- ext/constants.h
|
221
|
+
- ext/extconf.rb
|
222
|
+
- ext/macros.h
|
223
|
+
- ext/memory_buffer.c
|
224
|
+
- ext/memory_buffer.h
|
225
|
+
- ext/protocol.c
|
226
|
+
- ext/protocol.h
|
227
|
+
- ext/strlcpy.c
|
228
|
+
- ext/strlcpy.h
|
229
|
+
- ext/struct.c
|
230
|
+
- ext/struct.h
|
231
|
+
- ext/thrift_native.c
|
123
232
|
- lib/thrift.rb
|
124
|
-
|
233
|
+
- lib/thrift/bytes.rb
|
125
234
|
- lib/thrift/client.rb
|
126
|
-
- lib/thrift/core_ext/fixnum.rb
|
127
235
|
- lib/thrift/core_ext.rb
|
236
|
+
- lib/thrift/core_ext/fixnum.rb
|
128
237
|
- lib/thrift/exceptions.rb
|
238
|
+
- lib/thrift/multiplexed_processor.rb
|
129
239
|
- lib/thrift/processor.rb
|
130
240
|
- lib/thrift/protocol/base_protocol.rb
|
131
241
|
- lib/thrift/protocol/binary_protocol.rb
|
132
242
|
- lib/thrift/protocol/binary_protocol_accelerated.rb
|
133
243
|
- lib/thrift/protocol/compact_protocol.rb
|
244
|
+
- lib/thrift/protocol/json_protocol.rb
|
245
|
+
- lib/thrift/protocol/multiplexed_protocol.rb
|
246
|
+
- lib/thrift/protocol/protocol_decorator.rb
|
134
247
|
- lib/thrift/serializer/deserializer.rb
|
135
248
|
- lib/thrift/serializer/serializer.rb
|
136
249
|
- lib/thrift/server/base_server.rb
|
137
250
|
- lib/thrift/server/mongrel_http_server.rb
|
138
251
|
- lib/thrift/server/nonblocking_server.rb
|
139
252
|
- lib/thrift/server/simple_server.rb
|
253
|
+
- lib/thrift/server/thin_http_server.rb
|
140
254
|
- lib/thrift/server/thread_pool_server.rb
|
141
255
|
- lib/thrift/server/threaded_server.rb
|
142
256
|
- lib/thrift/struct.rb
|
@@ -151,24 +265,30 @@ files:
|
|
151
265
|
- lib/thrift/transport/memory_buffer_transport.rb
|
152
266
|
- lib/thrift/transport/server_socket.rb
|
153
267
|
- lib/thrift/transport/socket.rb
|
268
|
+
- lib/thrift/transport/ssl_server_socket.rb
|
269
|
+
- lib/thrift/transport/ssl_socket.rb
|
154
270
|
- lib/thrift/transport/unix_server_socket.rb
|
155
271
|
- lib/thrift/transport/unix_socket.rb
|
156
272
|
- lib/thrift/types.rb
|
157
273
|
- lib/thrift/union.rb
|
158
|
-
-
|
274
|
+
- spec/BaseService.thrift
|
275
|
+
- spec/ExtendedService.thrift
|
276
|
+
- spec/Referenced.thrift
|
277
|
+
- spec/ThriftNamespacedSpec.thrift
|
278
|
+
- spec/ThriftSpec.thrift
|
159
279
|
- spec/base_protocol_spec.rb
|
160
280
|
- spec/base_transport_spec.rb
|
161
281
|
- spec/binary_protocol_accelerated_spec.rb
|
162
282
|
- spec/binary_protocol_spec.rb
|
163
283
|
- spec/binary_protocol_spec_shared.rb
|
284
|
+
- spec/bytes_spec.rb
|
164
285
|
- spec/client_spec.rb
|
165
286
|
- spec/compact_protocol_spec.rb
|
166
287
|
- spec/exception_spec.rb
|
167
|
-
- spec/
|
168
|
-
- spec/gen-rb/thrift_spec_constants.rb
|
169
|
-
- spec/gen-rb/thrift_spec_types.rb
|
288
|
+
- spec/flat_spec.rb
|
170
289
|
- spec/http_client_spec.rb
|
171
|
-
- spec/
|
290
|
+
- spec/json_protocol_spec.rb
|
291
|
+
- spec/namespaced_spec.rb
|
172
292
|
- spec/nonblocking_server_spec.rb
|
173
293
|
- spec/processor_spec.rb
|
174
294
|
- spec/serializer_spec.rb
|
@@ -177,122 +297,82 @@ files:
|
|
177
297
|
- spec/socket_spec.rb
|
178
298
|
- spec/socket_spec_shared.rb
|
179
299
|
- spec/spec_helper.rb
|
300
|
+
- spec/ssl_server_socket_spec.rb
|
301
|
+
- spec/ssl_socket_spec.rb
|
302
|
+
- spec/struct_nested_containers_spec.rb
|
180
303
|
- spec/struct_spec.rb
|
181
|
-
- spec/
|
304
|
+
- spec/thin_http_server_spec.rb
|
182
305
|
- spec/types_spec.rb
|
183
306
|
- spec/union_spec.rb
|
184
307
|
- spec/unix_socket_spec.rb
|
185
|
-
- CHANGELOG
|
186
|
-
- README
|
187
|
-
- ext/binary_protocol_accelerated.c
|
188
|
-
- ext/compact_protocol.c
|
189
|
-
- ext/memory_buffer.c
|
190
|
-
- ext/protocol.c
|
191
|
-
- ext/strlcpy.c
|
192
|
-
- ext/struct.c
|
193
|
-
- ext/thrift_native.c
|
194
|
-
- ext/binary_protocol_accelerated.h
|
195
|
-
- ext/compact_protocol.h
|
196
|
-
- ext/constants.h
|
197
|
-
- ext/macros.h
|
198
|
-
- ext/memory_buffer.h
|
199
|
-
- ext/protocol.h
|
200
|
-
- ext/strlcpy.h
|
201
|
-
- ext/struct.h
|
202
|
-
- ext/extconf.rb
|
203
|
-
- test/debug_proto/gen-rb/debug_proto_test_constants.rb
|
204
|
-
- test/debug_proto/gen-rb/debug_proto_test_types.rb
|
205
|
-
- test/debug_proto/gen-rb/empty_service.rb
|
206
|
-
- test/debug_proto/gen-rb/inherited.rb
|
207
|
-
- test/debug_proto/gen-rb/reverse_order_service.rb
|
208
|
-
- test/debug_proto/gen-rb/service_for_exception_with_a_map.rb
|
209
|
-
- test/debug_proto/gen-rb/srv.rb
|
210
|
-
- benchmark/benchmark.rb
|
211
|
-
- benchmark/Benchmark.thrift
|
212
|
-
- benchmark/client.rb
|
213
|
-
- benchmark/gen-rb/benchmark_constants.rb
|
214
|
-
- benchmark/gen-rb/benchmark_service.rb
|
215
|
-
- benchmark/gen-rb/benchmark_types.rb
|
216
|
-
- benchmark/server.rb
|
217
|
-
- benchmark/thin_server.rb
|
218
308
|
homepage: http://thrift.apache.org
|
219
|
-
licenses:
|
220
|
-
- Apache
|
309
|
+
licenses:
|
310
|
+
- Apache-2.0
|
311
|
+
metadata: {}
|
221
312
|
post_install_message:
|
222
|
-
rdoc_options:
|
223
|
-
- --line-numbers
|
224
|
-
- --inline-source
|
225
|
-
- --title
|
313
|
+
rdoc_options:
|
314
|
+
- "--line-numbers"
|
315
|
+
- "--inline-source"
|
316
|
+
- "--title"
|
226
317
|
- Thrift
|
227
|
-
- --main
|
318
|
+
- "--main"
|
228
319
|
- README
|
229
|
-
require_paths:
|
320
|
+
require_paths:
|
230
321
|
- lib
|
231
322
|
- ext
|
232
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
233
|
-
|
234
|
-
requirements:
|
323
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
324
|
+
requirements:
|
235
325
|
- - ">="
|
236
|
-
- !ruby/object:Gem::Version
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
version: "0"
|
241
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
242
|
-
none: false
|
243
|
-
requirements:
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: '0'
|
328
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
329
|
+
requirements:
|
244
330
|
- - ">="
|
245
|
-
- !ruby/object:Gem::Version
|
246
|
-
|
247
|
-
segments:
|
248
|
-
- 0
|
249
|
-
version: "0"
|
331
|
+
- !ruby/object:Gem::Version
|
332
|
+
version: '0'
|
250
333
|
requirements: []
|
251
|
-
|
252
334
|
rubyforge_project: thrift
|
253
|
-
rubygems_version:
|
335
|
+
rubygems_version: 2.7.6.2
|
254
336
|
signing_key:
|
255
|
-
specification_version:
|
337
|
+
specification_version: 4
|
256
338
|
summary: Ruby bindings for Apache Thrift
|
257
|
-
test_files:
|
258
|
-
-
|
259
|
-
-
|
260
|
-
-
|
261
|
-
-
|
262
|
-
- test/debug_proto/gen-rb/reverse_order_service.rb
|
263
|
-
- test/debug_proto/gen-rb/service_for_exception_with_a_map.rb
|
264
|
-
- test/debug_proto/gen-rb/srv.rb
|
265
|
-
- spec/base_protocol_spec.rb
|
266
|
-
- spec/base_transport_spec.rb
|
339
|
+
test_files:
|
340
|
+
- spec/types_spec.rb
|
341
|
+
- spec/union_spec.rb
|
342
|
+
- spec/ThriftSpec.thrift
|
343
|
+
- spec/spec_helper.rb
|
267
344
|
- spec/binary_protocol_accelerated_spec.rb
|
268
|
-
- spec/
|
269
|
-
- spec/binary_protocol_spec_shared.rb
|
270
|
-
- spec/client_spec.rb
|
271
|
-
- spec/compact_protocol_spec.rb
|
272
|
-
- spec/exception_spec.rb
|
273
|
-
- spec/gen-rb/nonblocking_service.rb
|
274
|
-
- spec/gen-rb/thrift_spec_constants.rb
|
275
|
-
- spec/gen-rb/thrift_spec_types.rb
|
345
|
+
- spec/ssl_socket_spec.rb
|
276
346
|
- spec/http_client_spec.rb
|
277
|
-
- spec/
|
278
|
-
- spec/nonblocking_server_spec.rb
|
279
|
-
- spec/processor_spec.rb
|
280
|
-
- spec/serializer_spec.rb
|
347
|
+
- spec/flat_spec.rb
|
281
348
|
- spec/server_socket_spec.rb
|
282
|
-
- spec/
|
349
|
+
- spec/bytes_spec.rb
|
350
|
+
- spec/binary_protocol_spec.rb
|
283
351
|
- spec/socket_spec.rb
|
284
|
-
- spec/socket_spec_shared.rb
|
285
|
-
- spec/spec_helper.rb
|
286
352
|
- spec/struct_spec.rb
|
287
|
-
- spec/
|
288
|
-
- spec/
|
289
|
-
- spec/
|
353
|
+
- spec/exception_spec.rb
|
354
|
+
- spec/thin_http_server_spec.rb
|
355
|
+
- spec/BaseService.thrift
|
356
|
+
- spec/compact_protocol_spec.rb
|
357
|
+
- spec/namespaced_spec.rb
|
358
|
+
- spec/processor_spec.rb
|
359
|
+
- spec/ssl_server_socket_spec.rb
|
360
|
+
- spec/ExtendedService.thrift
|
361
|
+
- spec/binary_protocol_spec_shared.rb
|
362
|
+
- spec/struct_nested_containers_spec.rb
|
363
|
+
- spec/base_protocol_spec.rb
|
364
|
+
- spec/serializer_spec.rb
|
365
|
+
- spec/json_protocol_spec.rb
|
366
|
+
- spec/base_transport_spec.rb
|
367
|
+
- spec/nonblocking_server_spec.rb
|
368
|
+
- spec/Referenced.thrift
|
290
369
|
- spec/unix_socket_spec.rb
|
370
|
+
- spec/socket_spec_shared.rb
|
371
|
+
- spec/ThriftNamespacedSpec.thrift
|
372
|
+
- spec/server_spec.rb
|
373
|
+
- spec/client_spec.rb
|
291
374
|
- benchmark/benchmark.rb
|
292
|
-
- benchmark/Benchmark.thrift
|
293
|
-
- benchmark/client.rb
|
294
|
-
- benchmark/gen-rb/benchmark_constants.rb
|
295
|
-
- benchmark/gen-rb/benchmark_service.rb
|
296
|
-
- benchmark/gen-rb/benchmark_types.rb
|
297
375
|
- benchmark/server.rb
|
298
376
|
- benchmark/thin_server.rb
|
377
|
+
- benchmark/client.rb
|
378
|
+
- benchmark/Benchmark.thrift
|