thrift 0.23.0 → 0.25.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.
- checksums.yaml +4 -4
- data/README.md +203 -40
- data/ext/binary_protocol_accelerated.c +130 -40
- data/ext/bytes.c +14 -0
- data/ext/compact_protocol.c +184 -91
- data/ext/constants.h +3 -0
- data/ext/extconf.rb +12 -4
- data/ext/macros.h +11 -0
- data/ext/memory_buffer.c +67 -12
- data/ext/struct.c +192 -71
- data/ext/thrift_native.c +7 -0
- data/lib/thrift/bytes.rb +6 -3
- data/lib/thrift/client.rb +31 -33
- data/lib/thrift/exceptions.rb +11 -8
- data/lib/thrift/multiplexed_processor.rb +17 -8
- data/lib/thrift/processor.rb +25 -3
- data/lib/thrift/protocol/base_protocol.rb +66 -31
- data/lib/thrift/protocol/binary_protocol.rb +80 -37
- data/lib/thrift/protocol/binary_protocol_accelerated.rb +7 -2
- data/lib/thrift/protocol/compact_protocol.rb +204 -88
- data/lib/thrift/protocol/header_protocol.rb +15 -3
- data/lib/thrift/protocol/json_protocol.rb +158 -109
- data/lib/thrift/protocol/multiplexed_protocol.rb +3 -3
- data/lib/thrift/protocol/protocol_decorator.rb +6 -2
- data/lib/thrift/serializer/deserializer.rb +1 -0
- data/lib/thrift/serializer/serializer.rb +7 -0
- data/lib/thrift/server/base_server.rb +11 -2
- data/lib/thrift/server/nonblocking_server.rb +69 -20
- data/lib/thrift/server/rack_application.rb +69 -0
- data/lib/thrift/server/simple_server.rb +27 -15
- data/lib/thrift/server/thin_http_server.rb +21 -44
- data/lib/thrift/server/thread_pool_server.rb +21 -17
- data/lib/thrift/server/threaded_server.rb +22 -18
- data/lib/thrift/struct.rb +34 -18
- data/lib/thrift/struct_union.rb +37 -36
- data/lib/thrift/thrift_native.rb +2 -1
- data/lib/thrift/transport/base_server_transport.rb +3 -0
- data/lib/thrift/transport/base_transport.rb +26 -4
- data/lib/thrift/transport/buffered_transport.rb +5 -4
- data/lib/thrift/transport/framed_transport.rb +33 -7
- data/lib/thrift/transport/header_transport.rb +159 -33
- data/lib/thrift/transport/http_client_transport.rb +28 -14
- data/lib/thrift/transport/io_stream_transport.rb +3 -1
- data/lib/thrift/transport/memory_buffer_transport.rb +14 -9
- data/lib/thrift/transport/server_socket.rb +10 -8
- data/lib/thrift/transport/socket.rb +85 -48
- data/lib/thrift/transport/ssl_server_socket.rb +67 -6
- data/lib/thrift/transport/ssl_socket.rb +73 -14
- data/lib/thrift/transport/unix_server_socket.rb +6 -2
- data/lib/thrift/transport/unix_socket.rb +5 -6
- data/lib/thrift/types.rb +23 -22
- data/lib/thrift/union.rb +21 -11
- data/lib/thrift/uuid.rb +9 -8
- data/lib/thrift.rb +40 -39
- metadata +7 -266
- data/benchmark/Benchmark.thrift +0 -24
- data/benchmark/benchmark.rb +0 -285
- data/benchmark/client.rb +0 -117
- data/benchmark/server.rb +0 -120
- data/benchmark/thin_server.rb +0 -45
- data/lib/thrift/server/mongrel_http_server.rb +0 -60
- data/spec/BaseService.thrift +0 -27
- data/spec/ExtendedService.thrift +0 -25
- data/spec/Referenced.thrift +0 -44
- data/spec/ThriftNamespacedSpec.thrift +0 -53
- data/spec/ThriftSpec.thrift +0 -187
- data/spec/base_protocol_spec.rb +0 -224
- data/spec/base_transport_spec.rb +0 -387
- data/spec/binary_protocol_accelerated_spec.rb +0 -46
- data/spec/binary_protocol_spec.rb +0 -72
- data/spec/binary_protocol_spec_shared.rb +0 -445
- data/spec/bytes_spec.rb +0 -99
- data/spec/client_spec.rb +0 -166
- data/spec/compact_protocol_spec.rb +0 -196
- data/spec/constants_demo_spec.rb +0 -101
- data/spec/exception_spec.rb +0 -140
- data/spec/flat_spec.rb +0 -62
- data/spec/header_protocol_spec.rb +0 -475
- data/spec/header_transport_spec.rb +0 -386
- data/spec/http_client_spec.rb +0 -159
- data/spec/json_protocol_spec.rb +0 -552
- data/spec/namespaced_spec.rb +0 -66
- data/spec/nonblocking_server_spec.rb +0 -361
- data/spec/processor_spec.rb +0 -79
- data/spec/serializer_spec.rb +0 -66
- data/spec/server_socket_spec.rb +0 -84
- data/spec/server_spec.rb +0 -186
- data/spec/socket_spec.rb +0 -67
- data/spec/socket_spec_shared.rb +0 -167
- data/spec/spec_helper.rb +0 -69
- data/spec/ssl_server_socket_spec.rb +0 -45
- data/spec/ssl_socket_spec.rb +0 -87
- data/spec/struct_nested_containers_spec.rb +0 -190
- data/spec/struct_spec.rb +0 -397
- data/spec/support/header_protocol_helper.rb +0 -54
- data/spec/thin_http_server_spec.rb +0 -126
- data/spec/types_spec.rb +0 -117
- data/spec/union_spec.rb +0 -272
- data/spec/unix_socket_spec.rb +0 -115
- data/spec/uuid_validation_spec.rb +0 -238
- data/test/fuzz/Makefile.am +0 -173
- data/test/fuzz/README.md +0 -149
- data/test/fuzz/fuzz_common.rb +0 -95
- data/test/fuzz/fuzz_parse_binary_protocol.rb +0 -22
- data/test/fuzz/fuzz_parse_binary_protocol_accelerated.rb +0 -22
- data/test/fuzz/fuzz_parse_binary_protocol_accelerated_harness.rb +0 -22
- data/test/fuzz/fuzz_parse_binary_protocol_harness.rb +0 -22
- data/test/fuzz/fuzz_parse_compact_protocol.rb +0 -22
- data/test/fuzz/fuzz_parse_compact_protocol_harness.rb +0 -22
- data/test/fuzz/fuzz_parse_json_protocol.rb +0 -22
- data/test/fuzz/fuzz_parse_json_protocol_harness.rb +0 -22
- data/test/fuzz/fuzz_roundtrip_binary_protocol.rb +0 -22
- data/test/fuzz/fuzz_roundtrip_binary_protocol_accelerated.rb +0 -22
- data/test/fuzz/fuzz_roundtrip_binary_protocol_accelerated_harness.rb +0 -22
- data/test/fuzz/fuzz_roundtrip_binary_protocol_harness.rb +0 -22
- data/test/fuzz/fuzz_roundtrip_compact_protocol.rb +0 -22
- data/test/fuzz/fuzz_roundtrip_compact_protocol_harness.rb +0 -22
- data/test/fuzz/fuzz_roundtrip_json_protocol.rb +0 -22
- data/test/fuzz/fuzz_roundtrip_json_protocol_harness.rb +0 -22
- data/test/fuzz/fuzz_tracer.rb +0 -28
data/lib/thrift.rb
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
#
|
|
2
3
|
# Licensed to the Apache Software Foundation (ASF) under one
|
|
3
4
|
# or more contributor license agreements. See the NOTICE file
|
|
@@ -22,51 +23,51 @@
|
|
|
22
23
|
|
|
23
24
|
$:.unshift File.dirname(__FILE__)
|
|
24
25
|
|
|
25
|
-
require
|
|
26
|
-
require
|
|
27
|
-
require
|
|
28
|
-
require
|
|
29
|
-
require
|
|
30
|
-
require
|
|
31
|
-
require
|
|
32
|
-
require
|
|
33
|
-
require
|
|
34
|
-
require
|
|
26
|
+
require "thrift/bytes"
|
|
27
|
+
require "thrift/exceptions"
|
|
28
|
+
require "thrift/types"
|
|
29
|
+
require "thrift/processor"
|
|
30
|
+
require "thrift/multiplexed_processor"
|
|
31
|
+
require "thrift/client"
|
|
32
|
+
require "thrift/struct"
|
|
33
|
+
require "thrift/union"
|
|
34
|
+
require "thrift/struct_union"
|
|
35
|
+
require "thrift/uuid"
|
|
35
36
|
|
|
36
37
|
# serializer
|
|
37
|
-
require
|
|
38
|
-
require
|
|
38
|
+
require "thrift/serializer/serializer"
|
|
39
|
+
require "thrift/serializer/deserializer"
|
|
39
40
|
|
|
40
41
|
# protocol
|
|
41
|
-
require
|
|
42
|
-
require
|
|
43
|
-
require
|
|
44
|
-
require
|
|
45
|
-
require
|
|
46
|
-
require
|
|
47
|
-
require
|
|
42
|
+
require "thrift/protocol/base_protocol"
|
|
43
|
+
require "thrift/protocol/binary_protocol"
|
|
44
|
+
require "thrift/protocol/binary_protocol_accelerated"
|
|
45
|
+
require "thrift/protocol/compact_protocol"
|
|
46
|
+
require "thrift/protocol/json_protocol"
|
|
47
|
+
require "thrift/protocol/multiplexed_protocol"
|
|
48
|
+
require "thrift/protocol/header_protocol"
|
|
48
49
|
|
|
49
50
|
# transport
|
|
50
|
-
require
|
|
51
|
-
require
|
|
52
|
-
require
|
|
53
|
-
require
|
|
54
|
-
require
|
|
55
|
-
require
|
|
56
|
-
require
|
|
57
|
-
require
|
|
58
|
-
require
|
|
59
|
-
require
|
|
60
|
-
require
|
|
61
|
-
require
|
|
62
|
-
require
|
|
63
|
-
require
|
|
51
|
+
require "thrift/transport/base_transport"
|
|
52
|
+
require "thrift/transport/base_server_transport"
|
|
53
|
+
require "thrift/transport/socket"
|
|
54
|
+
require "thrift/transport/ssl_socket"
|
|
55
|
+
require "thrift/transport/server_socket"
|
|
56
|
+
require "thrift/transport/ssl_server_socket"
|
|
57
|
+
require "thrift/transport/unix_socket"
|
|
58
|
+
require "thrift/transport/unix_server_socket"
|
|
59
|
+
require "thrift/transport/buffered_transport"
|
|
60
|
+
require "thrift/transport/framed_transport"
|
|
61
|
+
require "thrift/transport/header_transport"
|
|
62
|
+
require "thrift/transport/http_client_transport"
|
|
63
|
+
require "thrift/transport/io_stream_transport"
|
|
64
|
+
require "thrift/transport/memory_buffer_transport"
|
|
64
65
|
|
|
65
66
|
# server
|
|
66
|
-
require
|
|
67
|
-
require
|
|
68
|
-
require
|
|
69
|
-
require
|
|
70
|
-
require
|
|
67
|
+
require "thrift/server/base_server"
|
|
68
|
+
require "thrift/server/nonblocking_server"
|
|
69
|
+
require "thrift/server/simple_server"
|
|
70
|
+
require "thrift/server/threaded_server"
|
|
71
|
+
require "thrift/server/thread_pool_server"
|
|
71
72
|
|
|
72
|
-
require
|
|
73
|
+
require "thrift/thrift_native"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: thrift
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.25.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Apache Thrift Developers
|
|
@@ -27,58 +27,16 @@ dependencies:
|
|
|
27
27
|
name: bundler
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
|
-
- - "
|
|
30
|
+
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.2.34
|
|
33
33
|
type: :development
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
|
-
- - "
|
|
37
|
+
- - ">="
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
39
|
version: 2.2.34
|
|
40
|
-
- !ruby/object:Gem::Dependency
|
|
41
|
-
name: pry
|
|
42
|
-
requirement: !ruby/object:Gem::Requirement
|
|
43
|
-
requirements:
|
|
44
|
-
- - "~>"
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version: 0.11.3
|
|
47
|
-
type: :development
|
|
48
|
-
prerelease: false
|
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
-
requirements:
|
|
51
|
-
- - "~>"
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
53
|
-
version: 0.11.3
|
|
54
|
-
- !ruby/object:Gem::Dependency
|
|
55
|
-
name: pry-byebug
|
|
56
|
-
requirement: !ruby/object:Gem::Requirement
|
|
57
|
-
requirements:
|
|
58
|
-
- - "~>"
|
|
59
|
-
- !ruby/object:Gem::Version
|
|
60
|
-
version: '3.6'
|
|
61
|
-
type: :development
|
|
62
|
-
prerelease: false
|
|
63
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
-
requirements:
|
|
65
|
-
- - "~>"
|
|
66
|
-
- !ruby/object:Gem::Version
|
|
67
|
-
version: '3.6'
|
|
68
|
-
- !ruby/object:Gem::Dependency
|
|
69
|
-
name: pry-stack_explorer
|
|
70
|
-
requirement: !ruby/object:Gem::Requirement
|
|
71
|
-
requirements:
|
|
72
|
-
- - "~>"
|
|
73
|
-
- !ruby/object:Gem::Version
|
|
74
|
-
version: 0.4.9.2
|
|
75
|
-
type: :development
|
|
76
|
-
prerelease: false
|
|
77
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
78
|
-
requirements:
|
|
79
|
-
- - "~>"
|
|
80
|
-
- !ruby/object:Gem::Version
|
|
81
|
-
version: 0.4.9.2
|
|
82
40
|
- !ruby/object:Gem::Dependency
|
|
83
41
|
name: rack
|
|
84
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -135,34 +93,6 @@ dependencies:
|
|
|
135
93
|
- - "~>"
|
|
136
94
|
- !ruby/object:Gem::Version
|
|
137
95
|
version: '3.7'
|
|
138
|
-
- !ruby/object:Gem::Dependency
|
|
139
|
-
name: srv
|
|
140
|
-
requirement: !ruby/object:Gem::Requirement
|
|
141
|
-
requirements:
|
|
142
|
-
- - "~>"
|
|
143
|
-
- !ruby/object:Gem::Version
|
|
144
|
-
version: '1.0'
|
|
145
|
-
type: :development
|
|
146
|
-
prerelease: false
|
|
147
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
148
|
-
requirements:
|
|
149
|
-
- - "~>"
|
|
150
|
-
- !ruby/object:Gem::Version
|
|
151
|
-
version: '1.0'
|
|
152
|
-
- !ruby/object:Gem::Dependency
|
|
153
|
-
name: thin
|
|
154
|
-
requirement: !ruby/object:Gem::Requirement
|
|
155
|
-
requirements:
|
|
156
|
-
- - "~>"
|
|
157
|
-
- !ruby/object:Gem::Version
|
|
158
|
-
version: '1.7'
|
|
159
|
-
type: :development
|
|
160
|
-
prerelease: false
|
|
161
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
162
|
-
requirements:
|
|
163
|
-
- - "~>"
|
|
164
|
-
- !ruby/object:Gem::Version
|
|
165
|
-
version: '1.7'
|
|
166
96
|
description: Ruby bindings for the Apache Thrift RPC system
|
|
167
97
|
email:
|
|
168
98
|
- dev@thrift.apache.org
|
|
@@ -171,74 +101,8 @@ extensions:
|
|
|
171
101
|
- ext/extconf.rb
|
|
172
102
|
extra_rdoc_files:
|
|
173
103
|
- README.md
|
|
174
|
-
- ext/binary_protocol_accelerated.c
|
|
175
|
-
- ext/binary_protocol_accelerated.h
|
|
176
|
-
- ext/bytes.c
|
|
177
|
-
- ext/bytes.h
|
|
178
|
-
- ext/compact_protocol.c
|
|
179
|
-
- ext/compact_protocol.h
|
|
180
|
-
- ext/constants.h
|
|
181
|
-
- ext/extconf.rb
|
|
182
|
-
- ext/macros.h
|
|
183
|
-
- ext/memory_buffer.c
|
|
184
|
-
- ext/memory_buffer.h
|
|
185
|
-
- ext/protocol.c
|
|
186
|
-
- ext/protocol.h
|
|
187
|
-
- ext/strlcpy.c
|
|
188
|
-
- ext/strlcpy.h
|
|
189
|
-
- ext/struct.c
|
|
190
|
-
- ext/struct.h
|
|
191
|
-
- ext/thrift_native.c
|
|
192
|
-
- lib/thrift.rb
|
|
193
|
-
- lib/thrift/bytes.rb
|
|
194
|
-
- lib/thrift/client.rb
|
|
195
|
-
- lib/thrift/exceptions.rb
|
|
196
|
-
- lib/thrift/multiplexed_processor.rb
|
|
197
|
-
- lib/thrift/processor.rb
|
|
198
|
-
- lib/thrift/protocol/base_protocol.rb
|
|
199
|
-
- lib/thrift/protocol/binary_protocol.rb
|
|
200
|
-
- lib/thrift/protocol/binary_protocol_accelerated.rb
|
|
201
|
-
- lib/thrift/protocol/compact_protocol.rb
|
|
202
|
-
- lib/thrift/protocol/header_protocol.rb
|
|
203
|
-
- lib/thrift/protocol/json_protocol.rb
|
|
204
|
-
- lib/thrift/protocol/multiplexed_protocol.rb
|
|
205
|
-
- lib/thrift/protocol/protocol_decorator.rb
|
|
206
|
-
- lib/thrift/serializer/deserializer.rb
|
|
207
|
-
- lib/thrift/serializer/serializer.rb
|
|
208
|
-
- lib/thrift/server/base_server.rb
|
|
209
|
-
- lib/thrift/server/mongrel_http_server.rb
|
|
210
|
-
- lib/thrift/server/nonblocking_server.rb
|
|
211
|
-
- lib/thrift/server/simple_server.rb
|
|
212
|
-
- lib/thrift/server/thin_http_server.rb
|
|
213
|
-
- lib/thrift/server/thread_pool_server.rb
|
|
214
|
-
- lib/thrift/server/threaded_server.rb
|
|
215
|
-
- lib/thrift/struct.rb
|
|
216
|
-
- lib/thrift/struct_union.rb
|
|
217
|
-
- lib/thrift/thrift_native.rb
|
|
218
|
-
- lib/thrift/transport/base_server_transport.rb
|
|
219
|
-
- lib/thrift/transport/base_transport.rb
|
|
220
|
-
- lib/thrift/transport/buffered_transport.rb
|
|
221
|
-
- lib/thrift/transport/framed_transport.rb
|
|
222
|
-
- lib/thrift/transport/header_transport.rb
|
|
223
|
-
- lib/thrift/transport/http_client_transport.rb
|
|
224
|
-
- lib/thrift/transport/io_stream_transport.rb
|
|
225
|
-
- lib/thrift/transport/memory_buffer_transport.rb
|
|
226
|
-
- lib/thrift/transport/server_socket.rb
|
|
227
|
-
- lib/thrift/transport/socket.rb
|
|
228
|
-
- lib/thrift/transport/ssl_server_socket.rb
|
|
229
|
-
- lib/thrift/transport/ssl_socket.rb
|
|
230
|
-
- lib/thrift/transport/unix_server_socket.rb
|
|
231
|
-
- lib/thrift/transport/unix_socket.rb
|
|
232
|
-
- lib/thrift/types.rb
|
|
233
|
-
- lib/thrift/union.rb
|
|
234
|
-
- lib/thrift/uuid.rb
|
|
235
104
|
files:
|
|
236
105
|
- README.md
|
|
237
|
-
- benchmark/Benchmark.thrift
|
|
238
|
-
- benchmark/benchmark.rb
|
|
239
|
-
- benchmark/client.rb
|
|
240
|
-
- benchmark/server.rb
|
|
241
|
-
- benchmark/thin_server.rb
|
|
242
106
|
- ext/binary_protocol_accelerated.c
|
|
243
107
|
- ext/binary_protocol_accelerated.h
|
|
244
108
|
- ext/bytes.c
|
|
@@ -274,8 +138,8 @@ files:
|
|
|
274
138
|
- lib/thrift/serializer/deserializer.rb
|
|
275
139
|
- lib/thrift/serializer/serializer.rb
|
|
276
140
|
- lib/thrift/server/base_server.rb
|
|
277
|
-
- lib/thrift/server/mongrel_http_server.rb
|
|
278
141
|
- lib/thrift/server/nonblocking_server.rb
|
|
142
|
+
- lib/thrift/server/rack_application.rb
|
|
279
143
|
- lib/thrift/server/simple_server.rb
|
|
280
144
|
- lib/thrift/server/thin_http_server.rb
|
|
281
145
|
- lib/thrift/server/thread_pool_server.rb
|
|
@@ -300,65 +164,6 @@ files:
|
|
|
300
164
|
- lib/thrift/types.rb
|
|
301
165
|
- lib/thrift/union.rb
|
|
302
166
|
- lib/thrift/uuid.rb
|
|
303
|
-
- spec/BaseService.thrift
|
|
304
|
-
- spec/ExtendedService.thrift
|
|
305
|
-
- spec/Referenced.thrift
|
|
306
|
-
- spec/ThriftNamespacedSpec.thrift
|
|
307
|
-
- spec/ThriftSpec.thrift
|
|
308
|
-
- spec/base_protocol_spec.rb
|
|
309
|
-
- spec/base_transport_spec.rb
|
|
310
|
-
- spec/binary_protocol_accelerated_spec.rb
|
|
311
|
-
- spec/binary_protocol_spec.rb
|
|
312
|
-
- spec/binary_protocol_spec_shared.rb
|
|
313
|
-
- spec/bytes_spec.rb
|
|
314
|
-
- spec/client_spec.rb
|
|
315
|
-
- spec/compact_protocol_spec.rb
|
|
316
|
-
- spec/constants_demo_spec.rb
|
|
317
|
-
- spec/exception_spec.rb
|
|
318
|
-
- spec/flat_spec.rb
|
|
319
|
-
- spec/header_protocol_spec.rb
|
|
320
|
-
- spec/header_transport_spec.rb
|
|
321
|
-
- spec/http_client_spec.rb
|
|
322
|
-
- spec/json_protocol_spec.rb
|
|
323
|
-
- spec/namespaced_spec.rb
|
|
324
|
-
- spec/nonblocking_server_spec.rb
|
|
325
|
-
- spec/processor_spec.rb
|
|
326
|
-
- spec/serializer_spec.rb
|
|
327
|
-
- spec/server_socket_spec.rb
|
|
328
|
-
- spec/server_spec.rb
|
|
329
|
-
- spec/socket_spec.rb
|
|
330
|
-
- spec/socket_spec_shared.rb
|
|
331
|
-
- spec/spec_helper.rb
|
|
332
|
-
- spec/ssl_server_socket_spec.rb
|
|
333
|
-
- spec/ssl_socket_spec.rb
|
|
334
|
-
- spec/struct_nested_containers_spec.rb
|
|
335
|
-
- spec/struct_spec.rb
|
|
336
|
-
- spec/support/header_protocol_helper.rb
|
|
337
|
-
- spec/thin_http_server_spec.rb
|
|
338
|
-
- spec/types_spec.rb
|
|
339
|
-
- spec/union_spec.rb
|
|
340
|
-
- spec/unix_socket_spec.rb
|
|
341
|
-
- spec/uuid_validation_spec.rb
|
|
342
|
-
- test/fuzz/Makefile.am
|
|
343
|
-
- test/fuzz/README.md
|
|
344
|
-
- test/fuzz/fuzz_common.rb
|
|
345
|
-
- test/fuzz/fuzz_parse_binary_protocol.rb
|
|
346
|
-
- test/fuzz/fuzz_parse_binary_protocol_accelerated.rb
|
|
347
|
-
- test/fuzz/fuzz_parse_binary_protocol_accelerated_harness.rb
|
|
348
|
-
- test/fuzz/fuzz_parse_binary_protocol_harness.rb
|
|
349
|
-
- test/fuzz/fuzz_parse_compact_protocol.rb
|
|
350
|
-
- test/fuzz/fuzz_parse_compact_protocol_harness.rb
|
|
351
|
-
- test/fuzz/fuzz_parse_json_protocol.rb
|
|
352
|
-
- test/fuzz/fuzz_parse_json_protocol_harness.rb
|
|
353
|
-
- test/fuzz/fuzz_roundtrip_binary_protocol.rb
|
|
354
|
-
- test/fuzz/fuzz_roundtrip_binary_protocol_accelerated.rb
|
|
355
|
-
- test/fuzz/fuzz_roundtrip_binary_protocol_accelerated_harness.rb
|
|
356
|
-
- test/fuzz/fuzz_roundtrip_binary_protocol_harness.rb
|
|
357
|
-
- test/fuzz/fuzz_roundtrip_compact_protocol.rb
|
|
358
|
-
- test/fuzz/fuzz_roundtrip_compact_protocol_harness.rb
|
|
359
|
-
- test/fuzz/fuzz_roundtrip_json_protocol.rb
|
|
360
|
-
- test/fuzz/fuzz_roundtrip_json_protocol_harness.rb
|
|
361
|
-
- test/fuzz/fuzz_tracer.rb
|
|
362
167
|
homepage: https://thrift.apache.org
|
|
363
168
|
licenses:
|
|
364
169
|
- Apache-2.0
|
|
@@ -383,78 +188,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
383
188
|
requirements:
|
|
384
189
|
- - ">="
|
|
385
190
|
- !ruby/object:Gem::Version
|
|
386
|
-
version:
|
|
191
|
+
version: 3.0.0
|
|
387
192
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
388
193
|
requirements:
|
|
389
194
|
- - ">="
|
|
390
195
|
- !ruby/object:Gem::Version
|
|
391
196
|
version: '0'
|
|
392
197
|
requirements: []
|
|
393
|
-
rubygems_version:
|
|
198
|
+
rubygems_version: 4.0.20
|
|
394
199
|
specification_version: 4
|
|
395
200
|
summary: Ruby bindings for Apache Thrift
|
|
396
|
-
test_files:
|
|
397
|
-
- benchmark/Benchmark.thrift
|
|
398
|
-
- benchmark/benchmark.rb
|
|
399
|
-
- benchmark/client.rb
|
|
400
|
-
- benchmark/server.rb
|
|
401
|
-
- benchmark/thin_server.rb
|
|
402
|
-
- spec/BaseService.thrift
|
|
403
|
-
- spec/ExtendedService.thrift
|
|
404
|
-
- spec/Referenced.thrift
|
|
405
|
-
- spec/ThriftNamespacedSpec.thrift
|
|
406
|
-
- spec/ThriftSpec.thrift
|
|
407
|
-
- spec/base_protocol_spec.rb
|
|
408
|
-
- spec/base_transport_spec.rb
|
|
409
|
-
- spec/binary_protocol_accelerated_spec.rb
|
|
410
|
-
- spec/binary_protocol_spec.rb
|
|
411
|
-
- spec/binary_protocol_spec_shared.rb
|
|
412
|
-
- spec/bytes_spec.rb
|
|
413
|
-
- spec/client_spec.rb
|
|
414
|
-
- spec/compact_protocol_spec.rb
|
|
415
|
-
- spec/constants_demo_spec.rb
|
|
416
|
-
- spec/exception_spec.rb
|
|
417
|
-
- spec/flat_spec.rb
|
|
418
|
-
- spec/header_protocol_spec.rb
|
|
419
|
-
- spec/header_transport_spec.rb
|
|
420
|
-
- spec/http_client_spec.rb
|
|
421
|
-
- spec/json_protocol_spec.rb
|
|
422
|
-
- spec/namespaced_spec.rb
|
|
423
|
-
- spec/nonblocking_server_spec.rb
|
|
424
|
-
- spec/processor_spec.rb
|
|
425
|
-
- spec/serializer_spec.rb
|
|
426
|
-
- spec/server_socket_spec.rb
|
|
427
|
-
- spec/server_spec.rb
|
|
428
|
-
- spec/socket_spec.rb
|
|
429
|
-
- spec/socket_spec_shared.rb
|
|
430
|
-
- spec/spec_helper.rb
|
|
431
|
-
- spec/ssl_server_socket_spec.rb
|
|
432
|
-
- spec/ssl_socket_spec.rb
|
|
433
|
-
- spec/struct_nested_containers_spec.rb
|
|
434
|
-
- spec/struct_spec.rb
|
|
435
|
-
- spec/support/header_protocol_helper.rb
|
|
436
|
-
- spec/thin_http_server_spec.rb
|
|
437
|
-
- spec/types_spec.rb
|
|
438
|
-
- spec/union_spec.rb
|
|
439
|
-
- spec/unix_socket_spec.rb
|
|
440
|
-
- spec/uuid_validation_spec.rb
|
|
441
|
-
- test/fuzz/Makefile.am
|
|
442
|
-
- test/fuzz/README.md
|
|
443
|
-
- test/fuzz/fuzz_common.rb
|
|
444
|
-
- test/fuzz/fuzz_parse_binary_protocol.rb
|
|
445
|
-
- test/fuzz/fuzz_parse_binary_protocol_accelerated.rb
|
|
446
|
-
- test/fuzz/fuzz_parse_binary_protocol_accelerated_harness.rb
|
|
447
|
-
- test/fuzz/fuzz_parse_binary_protocol_harness.rb
|
|
448
|
-
- test/fuzz/fuzz_parse_compact_protocol.rb
|
|
449
|
-
- test/fuzz/fuzz_parse_compact_protocol_harness.rb
|
|
450
|
-
- test/fuzz/fuzz_parse_json_protocol.rb
|
|
451
|
-
- test/fuzz/fuzz_parse_json_protocol_harness.rb
|
|
452
|
-
- test/fuzz/fuzz_roundtrip_binary_protocol.rb
|
|
453
|
-
- test/fuzz/fuzz_roundtrip_binary_protocol_accelerated.rb
|
|
454
|
-
- test/fuzz/fuzz_roundtrip_binary_protocol_accelerated_harness.rb
|
|
455
|
-
- test/fuzz/fuzz_roundtrip_binary_protocol_harness.rb
|
|
456
|
-
- test/fuzz/fuzz_roundtrip_compact_protocol.rb
|
|
457
|
-
- test/fuzz/fuzz_roundtrip_compact_protocol_harness.rb
|
|
458
|
-
- test/fuzz/fuzz_roundtrip_json_protocol.rb
|
|
459
|
-
- test/fuzz/fuzz_roundtrip_json_protocol_harness.rb
|
|
460
|
-
- test/fuzz/fuzz_tracer.rb
|
|
201
|
+
test_files: []
|
data/benchmark/Benchmark.thrift
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
namespace rb ThriftBenchmark
|
|
21
|
-
|
|
22
|
-
service BenchmarkService {
|
|
23
|
-
i32 fibonacci(1:byte n)
|
|
24
|
-
}
|