upfluence-thrift 2.4.4 → 2.6.1

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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/lib/thrift/definition.rb +29 -8
  3. data/lib/thrift/processor.rb +96 -0
  4. data/lib/thrift/types/annotation/deprecation/deprecation_constants.rb +17 -0
  5. data/lib/thrift/types/annotation/deprecation/deprecation_types.rb +44 -0
  6. data/lib/thrift/types/annotation/naming/naming.rb +23 -0
  7. data/lib/thrift/types/annotation/naming/naming_constants.rb +17 -0
  8. data/lib/thrift/types/annotation/naming/naming_types.rb +59 -0
  9. data/lib/thrift/types/known/{any.rb → any/any.rb} +1 -1
  10. data/lib/thrift/types/known/{any_constants.rb → any/any_constants.rb} +2 -2
  11. data/lib/thrift/types/known/{any_types.rb → any/any_types.rb} +21 -3
  12. data/lib/thrift/types/known/{duration.rb → duration/duration.rb} +1 -1
  13. data/lib/thrift/types/known/{duration_constants.rb → duration/duration_constants.rb} +2 -2
  14. data/lib/thrift/types/known/{duration_types.rb → duration/duration_types.rb} +21 -3
  15. data/lib/thrift/types/known/{timestamp.rb → timestamp/timestamp.rb} +1 -1
  16. data/lib/thrift/types/known/{timestamp_constants.rb → timestamp/timestamp_constants.rb} +2 -2
  17. data/lib/thrift/types/known/{timestamp_types.rb → timestamp/timestamp_types.rb} +21 -3
  18. data/lib/thrift/types/{value.rb → value/value.rb} +1 -1
  19. data/lib/thrift/types/{value_constants.rb → value/value_constants.rb} +2 -2
  20. data/lib/thrift/types/{value_types.rb → value/value_types.rb} +135 -15
  21. data/lib/thrift.rb +5 -0
  22. data/spec/spec_helper.rb +17 -17
  23. metadata +45 -93
  24. data/benchmark/gen-rb/benchmark_constants.rb +0 -11
  25. data/benchmark/gen-rb/benchmark_service.rb +0 -106
  26. data/benchmark/gen-rb/benchmark_types.rb +0 -10
  27. data/spec/gen-rb/base/base_service.rb +0 -106
  28. data/spec/gen-rb/base/base_service_constants.rb +0 -11
  29. data/spec/gen-rb/base/base_service_types.rb +0 -33
  30. data/spec/gen-rb/extended/extended_service.rb +0 -103
  31. data/spec/gen-rb/extended/extended_service_constants.rb +0 -11
  32. data/spec/gen-rb/extended/extended_service_types.rb +0 -12
  33. data/spec/gen-rb/flat/namespaced_nonblocking_service.rb +0 -343
  34. data/spec/gen-rb/flat/referenced_constants.rb +0 -11
  35. data/spec/gen-rb/flat/referenced_types.rb +0 -17
  36. data/spec/gen-rb/flat/thrift_namespaced_spec_constants.rb +0 -11
  37. data/spec/gen-rb/flat/thrift_namespaced_spec_types.rb +0 -35
  38. data/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb +0 -343
  39. data/spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_constants.rb +0 -11
  40. data/spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_types.rb +0 -35
  41. data/spec/gen-rb/nonblocking_service.rb +0 -343
  42. data/spec/gen-rb/other_namespace/referenced_constants.rb +0 -11
  43. data/spec/gen-rb/other_namespace/referenced_types.rb +0 -17
  44. data/spec/gen-rb/thrift_spec_constants.rb +0 -11
  45. data/spec/gen-rb/thrift_spec_types.rb +0 -699
  46. data/test/debug_proto/gen-rb/debug_proto_test_constants.rb +0 -274
  47. data/test/debug_proto/gen-rb/debug_proto_test_types.rb +0 -936
  48. data/test/debug_proto/gen-rb/empty_service.rb +0 -39
  49. data/test/debug_proto/gen-rb/inherited.rb +0 -105
  50. data/test/debug_proto/gen-rb/reverse_order_service.rb +0 -107
  51. data/test/debug_proto/gen-rb/service_for_exception_with_a_map.rb +0 -106
  52. data/test/debug_proto/gen-rb/srv.rb +0 -410
@@ -1,5 +1,5 @@
1
1
  #
2
- # Autogenerated by Thrift Compiler (2.3.0-upfluence)
2
+ # Autogenerated by Thrift Compiler (2.5.4-upfluence)
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
@@ -27,6 +27,12 @@ module Thrift
27
27
  NAME = 'NullValue'.freeze
28
28
  NAMESPACE = 'types.value'.freeze
29
29
 
30
+ LEGACY_ANNOTATIONS = {
31
+ }.freeze
32
+
33
+ STRUCTURED_ANNOTATIONS = [
34
+ ].freeze
35
+
30
36
 
31
37
  FIELDS = {
32
38
 
@@ -47,10 +53,22 @@ module Thrift
47
53
  NAME = 'ListValue'.freeze
48
54
  NAMESPACE = 'types.value'.freeze
49
55
 
56
+ LEGACY_ANNOTATIONS = {
57
+ }.freeze
58
+
59
+ STRUCTURED_ANNOTATIONS = [
60
+ ].freeze
61
+
50
62
  THRIFT_FIELD_INDEX_VALUES = 1
51
63
 
64
+ THRIFT_FIELD_VALUES_LEGACY_ANNOTATIONS = {
65
+ }.freeze
66
+
67
+ THRIFT_FIELD_VALUES_STRUCTURED_ANNOTATIONS = [
68
+ ].freeze
69
+
52
70
  FIELDS = {
53
- THRIFT_FIELD_INDEX_VALUES => {type: ::Thrift::Types::LIST, name: 'values', element: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Value::Value}}
71
+ THRIFT_FIELD_INDEX_VALUES => {type: ::Thrift::Types::LIST, name: 'values', element: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Value::Value}, legacy_annotations: THRIFT_FIELD_VALUES_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_VALUES_STRUCTURED_ANNOTATIONS}
54
72
  }
55
73
 
56
74
  def struct_fields; FIELDS; end
@@ -69,12 +87,30 @@ module Thrift
69
87
  NAME = 'MapEntry'.freeze
70
88
  NAMESPACE = 'types.value'.freeze
71
89
 
90
+ LEGACY_ANNOTATIONS = {
91
+ }.freeze
92
+
93
+ STRUCTURED_ANNOTATIONS = [
94
+ ].freeze
95
+
72
96
  THRIFT_FIELD_INDEX_KEY = 1
73
97
  THRIFT_FIELD_INDEX_VALUE = 2
74
98
 
99
+ THRIFT_FIELD_KEY_LEGACY_ANNOTATIONS = {
100
+ }.freeze
101
+
102
+ THRIFT_FIELD_KEY_STRUCTURED_ANNOTATIONS = [
103
+ ].freeze
104
+
105
+ THRIFT_FIELD_VALUE_LEGACY_ANNOTATIONS = {
106
+ }.freeze
107
+
108
+ THRIFT_FIELD_VALUE_STRUCTURED_ANNOTATIONS = [
109
+ ].freeze
110
+
75
111
  FIELDS = {
76
- THRIFT_FIELD_INDEX_KEY => {type: ::Thrift::Types::STRUCT, name: 'key', class: ::Thrift::Types::Value::Value},
77
- THRIFT_FIELD_INDEX_VALUE => {type: ::Thrift::Types::STRUCT, name: 'value', class: ::Thrift::Types::Value::Value}
112
+ THRIFT_FIELD_INDEX_KEY => {type: ::Thrift::Types::STRUCT, name: 'key', class: ::Thrift::Types::Value::Value, legacy_annotations: THRIFT_FIELD_KEY_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_KEY_STRUCTURED_ANNOTATIONS},
113
+ THRIFT_FIELD_INDEX_VALUE => {type: ::Thrift::Types::STRUCT, name: 'value', class: ::Thrift::Types::Value::Value, legacy_annotations: THRIFT_FIELD_VALUE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_VALUE_STRUCTURED_ANNOTATIONS}
78
114
  }
79
115
 
80
116
  def struct_fields; FIELDS; end
@@ -94,10 +130,22 @@ module Thrift
94
130
  NAME = 'MapValue'.freeze
95
131
  NAMESPACE = 'types.value'.freeze
96
132
 
133
+ LEGACY_ANNOTATIONS = {
134
+ }.freeze
135
+
136
+ STRUCTURED_ANNOTATIONS = [
137
+ ].freeze
138
+
97
139
  THRIFT_FIELD_INDEX_ENTRIES = 1
98
140
 
141
+ THRIFT_FIELD_ENTRIES_LEGACY_ANNOTATIONS = {
142
+ }.freeze
143
+
144
+ THRIFT_FIELD_ENTRIES_STRUCTURED_ANNOTATIONS = [
145
+ ].freeze
146
+
99
147
  FIELDS = {
100
- THRIFT_FIELD_INDEX_ENTRIES => {type: ::Thrift::Types::LIST, name: 'entries', element: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Value::MapEntry}}
148
+ THRIFT_FIELD_INDEX_ENTRIES => {type: ::Thrift::Types::LIST, name: 'entries', element: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Value::MapEntry}, legacy_annotations: THRIFT_FIELD_ENTRIES_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_ENTRIES_STRUCTURED_ANNOTATIONS}
101
149
  }
102
150
 
103
151
  def struct_fields; FIELDS; end
@@ -116,10 +164,22 @@ module Thrift
116
164
  NAME = 'StructValue'.freeze
117
165
  NAMESPACE = 'types.value'.freeze
118
166
 
167
+ LEGACY_ANNOTATIONS = {
168
+ }.freeze
169
+
170
+ STRUCTURED_ANNOTATIONS = [
171
+ ].freeze
172
+
119
173
  THRIFT_FIELD_INDEX_FIELDS = 1
120
174
 
175
+ THRIFT_FIELD_FIELDS_LEGACY_ANNOTATIONS = {
176
+ }.freeze
177
+
178
+ THRIFT_FIELD_FIELDS_STRUCTURED_ANNOTATIONS = [
179
+ ].freeze
180
+
121
181
  FIELDS = {
122
- THRIFT_FIELD_INDEX_FIELDS => {type: ::Thrift::Types::MAP, name: 'fields', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Value::Value}}
182
+ THRIFT_FIELD_INDEX_FIELDS => {type: ::Thrift::Types::MAP, name: 'fields', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Value::Value}, legacy_annotations: THRIFT_FIELD_FIELDS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_FIELDS_STRUCTURED_ANNOTATIONS}
123
183
  }
124
184
 
125
185
  def struct_fields; FIELDS; end
@@ -138,6 +198,12 @@ module Thrift
138
198
  NAME = 'Value'.freeze
139
199
  NAMESPACE = 'types.value'.freeze
140
200
 
201
+ LEGACY_ANNOTATIONS = {
202
+ }.freeze
203
+
204
+ STRUCTURED_ANNOTATIONS = [
205
+ ].freeze
206
+
141
207
  class << self
142
208
  def null_value(val)
143
209
  Value.new(:null_value, val)
@@ -186,16 +252,70 @@ module Thrift
186
252
  THRIFT_FIELD_INDEX_MAP_VALUE = 8
187
253
  THRIFT_FIELD_INDEX_STRUCT_VALUE = 9
188
254
 
255
+ THRIFT_FIELD_NULL_VALUE_LEGACY_ANNOTATIONS = {
256
+ }.freeze
257
+
258
+ THRIFT_FIELD_NULL_VALUE_STRUCTURED_ANNOTATIONS = [
259
+ ].freeze
260
+
261
+ THRIFT_FIELD_STRING_VALUE_LEGACY_ANNOTATIONS = {
262
+ }.freeze
263
+
264
+ THRIFT_FIELD_STRING_VALUE_STRUCTURED_ANNOTATIONS = [
265
+ ].freeze
266
+
267
+ THRIFT_FIELD_BINARY_VALUE_LEGACY_ANNOTATIONS = {
268
+ }.freeze
269
+
270
+ THRIFT_FIELD_BINARY_VALUE_STRUCTURED_ANNOTATIONS = [
271
+ ].freeze
272
+
273
+ THRIFT_FIELD_INTEGER_VALUE_LEGACY_ANNOTATIONS = {
274
+ }.freeze
275
+
276
+ THRIFT_FIELD_INTEGER_VALUE_STRUCTURED_ANNOTATIONS = [
277
+ ].freeze
278
+
279
+ THRIFT_FIELD_DOUBLE_VALUE_LEGACY_ANNOTATIONS = {
280
+ }.freeze
281
+
282
+ THRIFT_FIELD_DOUBLE_VALUE_STRUCTURED_ANNOTATIONS = [
283
+ ].freeze
284
+
285
+ THRIFT_FIELD_BOOL_VALUE_LEGACY_ANNOTATIONS = {
286
+ }.freeze
287
+
288
+ THRIFT_FIELD_BOOL_VALUE_STRUCTURED_ANNOTATIONS = [
289
+ ].freeze
290
+
291
+ THRIFT_FIELD_LIST_VALUE_LEGACY_ANNOTATIONS = {
292
+ }.freeze
293
+
294
+ THRIFT_FIELD_LIST_VALUE_STRUCTURED_ANNOTATIONS = [
295
+ ].freeze
296
+
297
+ THRIFT_FIELD_MAP_VALUE_LEGACY_ANNOTATIONS = {
298
+ }.freeze
299
+
300
+ THRIFT_FIELD_MAP_VALUE_STRUCTURED_ANNOTATIONS = [
301
+ ].freeze
302
+
303
+ THRIFT_FIELD_STRUCT_VALUE_LEGACY_ANNOTATIONS = {
304
+ }.freeze
305
+
306
+ THRIFT_FIELD_STRUCT_VALUE_STRUCTURED_ANNOTATIONS = [
307
+ ].freeze
308
+
189
309
  FIELDS = {
190
- THRIFT_FIELD_INDEX_NULL_VALUE => {type: ::Thrift::Types::STRUCT, name: 'null_value', class: ::Thrift::Types::Value::NullValue},
191
- THRIFT_FIELD_INDEX_STRING_VALUE => {type: ::Thrift::Types::STRING, name: 'string_value'},
192
- THRIFT_FIELD_INDEX_BINARY_VALUE => {type: ::Thrift::Types::STRING, name: 'binary_value', binary: true},
193
- THRIFT_FIELD_INDEX_INTEGER_VALUE => {type: ::Thrift::Types::I64, name: 'integer_value'},
194
- THRIFT_FIELD_INDEX_DOUBLE_VALUE => {type: ::Thrift::Types::DOUBLE, name: 'double_value'},
195
- THRIFT_FIELD_INDEX_BOOL_VALUE => {type: ::Thrift::Types::BOOL, name: 'bool_value'},
196
- THRIFT_FIELD_INDEX_LIST_VALUE => {type: ::Thrift::Types::STRUCT, name: 'list_value', class: ::Thrift::Types::Value::ListValue},
197
- THRIFT_FIELD_INDEX_MAP_VALUE => {type: ::Thrift::Types::STRUCT, name: 'map_value', class: ::Thrift::Types::Value::MapValue},
198
- THRIFT_FIELD_INDEX_STRUCT_VALUE => {type: ::Thrift::Types::STRUCT, name: 'struct_value', class: ::Thrift::Types::Value::StructValue}
310
+ THRIFT_FIELD_INDEX_NULL_VALUE => {type: ::Thrift::Types::STRUCT, name: 'null_value', class: ::Thrift::Types::Value::NullValue, legacy_annotations: THRIFT_FIELD_NULL_VALUE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_NULL_VALUE_STRUCTURED_ANNOTATIONS},
311
+ THRIFT_FIELD_INDEX_STRING_VALUE => {type: ::Thrift::Types::STRING, name: 'string_value', legacy_annotations: THRIFT_FIELD_STRING_VALUE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_STRING_VALUE_STRUCTURED_ANNOTATIONS},
312
+ THRIFT_FIELD_INDEX_BINARY_VALUE => {type: ::Thrift::Types::STRING, name: 'binary_value', binary: true, legacy_annotations: THRIFT_FIELD_BINARY_VALUE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_BINARY_VALUE_STRUCTURED_ANNOTATIONS},
313
+ THRIFT_FIELD_INDEX_INTEGER_VALUE => {type: ::Thrift::Types::I64, name: 'integer_value', legacy_annotations: THRIFT_FIELD_INTEGER_VALUE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_INTEGER_VALUE_STRUCTURED_ANNOTATIONS},
314
+ THRIFT_FIELD_INDEX_DOUBLE_VALUE => {type: ::Thrift::Types::DOUBLE, name: 'double_value', legacy_annotations: THRIFT_FIELD_DOUBLE_VALUE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_DOUBLE_VALUE_STRUCTURED_ANNOTATIONS},
315
+ THRIFT_FIELD_INDEX_BOOL_VALUE => {type: ::Thrift::Types::BOOL, name: 'bool_value', legacy_annotations: THRIFT_FIELD_BOOL_VALUE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_BOOL_VALUE_STRUCTURED_ANNOTATIONS},
316
+ THRIFT_FIELD_INDEX_LIST_VALUE => {type: ::Thrift::Types::STRUCT, name: 'list_value', class: ::Thrift::Types::Value::ListValue, legacy_annotations: THRIFT_FIELD_LIST_VALUE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_LIST_VALUE_STRUCTURED_ANNOTATIONS},
317
+ THRIFT_FIELD_INDEX_MAP_VALUE => {type: ::Thrift::Types::STRUCT, name: 'map_value', class: ::Thrift::Types::Value::MapValue, legacy_annotations: THRIFT_FIELD_MAP_VALUE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_MAP_VALUE_STRUCTURED_ANNOTATIONS},
318
+ THRIFT_FIELD_INDEX_STRUCT_VALUE => {type: ::Thrift::Types::STRUCT, name: 'struct_value', class: ::Thrift::Types::Value::StructValue, legacy_annotations: THRIFT_FIELD_STRUCT_VALUE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_STRUCT_VALUE_STRUCTURED_ANNOTATIONS}
199
319
  }
200
320
 
201
321
  def struct_fields; FIELDS; end
data/lib/thrift.rb CHANGED
@@ -68,3 +68,8 @@ require 'thrift/server/threaded_server'
68
68
  require 'thrift/server/thread_pool_server'
69
69
 
70
70
  require 'thrift/thrift_native'
71
+
72
+ require 'thrift/types/known/any/any'
73
+ require 'thrift/types/known/timestamp/timestamp'
74
+ require 'thrift/types/known/duration/duration'
75
+ require 'thrift/types/annotation/naming/naming'
data/spec/spec_helper.rb CHANGED
@@ -44,21 +44,21 @@ RSpec.configure do |configuration|
44
44
  Thrift.type_checking = true
45
45
  end
46
46
  end
47
-
48
- $:.unshift File.join(File.dirname(__FILE__), *%w[.. test debug_proto gen-rb])
49
- require 'srv'
50
- require 'debug_proto_test_constants'
51
-
52
- $:.unshift File.join(File.dirname(__FILE__), *%w[gen-rb])
53
- require 'thrift_spec_types'
54
- require 'nonblocking_service'
55
-
56
- module Fixtures
57
- COMPACT_PROTOCOL_TEST_STRUCT = COMPACT_TEST.dup
58
- COMPACT_PROTOCOL_TEST_STRUCT.a_binary = [0,1,2,3,4,5,6,7,8].pack('c*')
59
- COMPACT_PROTOCOL_TEST_STRUCT.set_byte_map = nil
60
- COMPACT_PROTOCOL_TEST_STRUCT.map_byte_map = nil
61
- end
62
-
63
- $:.unshift File.join(File.dirname(__FILE__), *%w[gen-rb/flat])
47
+ #
48
+ # $:.unshift File.join(File.dirname(__FILE__), *%w[.. test debug_proto gen-rb])
49
+ # require 'srv'
50
+ # require 'debug_proto_test_constants'
51
+ #
52
+ # $:.unshift File.join(File.dirname(__FILE__), *%w[gen-rb])
53
+ # require 'thrift_spec_types'
54
+ # require 'nonblocking_service'
55
+ #
56
+ # module Fixtures
57
+ # COMPACT_PROTOCOL_TEST_STRUCT = COMPACT_TEST.dup
58
+ # COMPACT_PROTOCOL_TEST_STRUCT.a_binary = [0,1,2,3,4,5,6,7,8].pack('c*')
59
+ # COMPACT_PROTOCOL_TEST_STRUCT.set_byte_map = nil
60
+ # COMPACT_PROTOCOL_TEST_STRUCT.map_byte_map = nil
61
+ # end
62
+ #
63
+ # $:.unshift File.join(File.dirname(__FILE__), *%w[gen-rb/flat])
64
64
 
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upfluence-thrift
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.4
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thrift Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-15 00:00:00.000000000 Z
11
+ date: 2024-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.10.0
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 2.10.0
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: thin
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 1.5.0
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 1.5.0
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -161,18 +161,23 @@ extra_rdoc_files:
161
161
  - lib/thrift/transport/socket.rb
162
162
  - lib/thrift/transport/unix_server_socket.rb
163
163
  - lib/thrift/transport/unix_socket.rb
164
- - lib/thrift/types/known/any.rb
165
- - lib/thrift/types/known/any_constants.rb
166
- - lib/thrift/types/known/any_types.rb
167
- - lib/thrift/types/known/duration.rb
168
- - lib/thrift/types/known/duration_constants.rb
169
- - lib/thrift/types/known/duration_types.rb
170
- - lib/thrift/types/known/timestamp.rb
171
- - lib/thrift/types/known/timestamp_constants.rb
172
- - lib/thrift/types/known/timestamp_types.rb
173
- - lib/thrift/types/value.rb
174
- - lib/thrift/types/value_constants.rb
175
- - lib/thrift/types/value_types.rb
164
+ - lib/thrift/types/annotation/deprecation/deprecation_constants.rb
165
+ - lib/thrift/types/annotation/deprecation/deprecation_types.rb
166
+ - lib/thrift/types/annotation/naming/naming.rb
167
+ - lib/thrift/types/annotation/naming/naming_constants.rb
168
+ - lib/thrift/types/annotation/naming/naming_types.rb
169
+ - lib/thrift/types/known/any/any.rb
170
+ - lib/thrift/types/known/any/any_constants.rb
171
+ - lib/thrift/types/known/any/any_types.rb
172
+ - lib/thrift/types/known/duration/duration.rb
173
+ - lib/thrift/types/known/duration/duration_constants.rb
174
+ - lib/thrift/types/known/duration/duration_types.rb
175
+ - lib/thrift/types/known/timestamp/timestamp.rb
176
+ - lib/thrift/types/known/timestamp/timestamp_constants.rb
177
+ - lib/thrift/types/known/timestamp/timestamp_types.rb
178
+ - lib/thrift/types/value/value.rb
179
+ - lib/thrift/types/value/value_constants.rb
180
+ - lib/thrift/types/value/value_types.rb
176
181
  - lib/thrift/types.rb
177
182
  - lib/thrift/union.rb
178
183
  - lib/thrift.rb
@@ -181,9 +186,6 @@ files:
181
186
  - benchmark/Benchmark.thrift
182
187
  - benchmark/benchmark.rb
183
188
  - benchmark/client.rb
184
- - benchmark/gen-rb/benchmark_constants.rb
185
- - benchmark/gen-rb/benchmark_service.rb
186
- - benchmark/gen-rb/benchmark_types.rb
187
189
  - benchmark/server.rb
188
190
  - benchmark/thin_server.rb
189
191
  - ext/binary_protocol_accelerated.c
@@ -247,18 +249,23 @@ files:
247
249
  - lib/thrift/transport/unix_server_socket.rb
248
250
  - lib/thrift/transport/unix_socket.rb
249
251
  - lib/thrift/types.rb
250
- - lib/thrift/types/known/any.rb
251
- - lib/thrift/types/known/any_constants.rb
252
- - lib/thrift/types/known/any_types.rb
253
- - lib/thrift/types/known/duration.rb
254
- - lib/thrift/types/known/duration_constants.rb
255
- - lib/thrift/types/known/duration_types.rb
256
- - lib/thrift/types/known/timestamp.rb
257
- - lib/thrift/types/known/timestamp_constants.rb
258
- - lib/thrift/types/known/timestamp_types.rb
259
- - lib/thrift/types/value.rb
260
- - lib/thrift/types/value_constants.rb
261
- - lib/thrift/types/value_types.rb
252
+ - lib/thrift/types/annotation/deprecation/deprecation_constants.rb
253
+ - lib/thrift/types/annotation/deprecation/deprecation_types.rb
254
+ - lib/thrift/types/annotation/naming/naming.rb
255
+ - lib/thrift/types/annotation/naming/naming_constants.rb
256
+ - lib/thrift/types/annotation/naming/naming_types.rb
257
+ - lib/thrift/types/known/any/any.rb
258
+ - lib/thrift/types/known/any/any_constants.rb
259
+ - lib/thrift/types/known/any/any_types.rb
260
+ - lib/thrift/types/known/duration/duration.rb
261
+ - lib/thrift/types/known/duration/duration_constants.rb
262
+ - lib/thrift/types/known/duration/duration_types.rb
263
+ - lib/thrift/types/known/timestamp/timestamp.rb
264
+ - lib/thrift/types/known/timestamp/timestamp_constants.rb
265
+ - lib/thrift/types/known/timestamp/timestamp_types.rb
266
+ - lib/thrift/types/value/value.rb
267
+ - lib/thrift/types/value/value_constants.rb
268
+ - lib/thrift/types/value/value_types.rb
262
269
  - lib/thrift/union.rb
263
270
  - spec/BaseService.thrift
264
271
  - spec/ExtendedService.thrift
@@ -275,25 +282,6 @@ files:
275
282
  - spec/compact_protocol_spec.rb
276
283
  - spec/exception_spec.rb
277
284
  - spec/flat_spec.rb
278
- - spec/gen-rb/base/base_service.rb
279
- - spec/gen-rb/base/base_service_constants.rb
280
- - spec/gen-rb/base/base_service_types.rb
281
- - spec/gen-rb/extended/extended_service.rb
282
- - spec/gen-rb/extended/extended_service_constants.rb
283
- - spec/gen-rb/extended/extended_service_types.rb
284
- - spec/gen-rb/flat/namespaced_nonblocking_service.rb
285
- - spec/gen-rb/flat/referenced_constants.rb
286
- - spec/gen-rb/flat/referenced_types.rb
287
- - spec/gen-rb/flat/thrift_namespaced_spec_constants.rb
288
- - spec/gen-rb/flat/thrift_namespaced_spec_types.rb
289
- - spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb
290
- - spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_constants.rb
291
- - spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_types.rb
292
- - spec/gen-rb/nonblocking_service.rb
293
- - spec/gen-rb/other_namespace/referenced_constants.rb
294
- - spec/gen-rb/other_namespace/referenced_types.rb
295
- - spec/gen-rb/thrift_spec_constants.rb
296
- - spec/gen-rb/thrift_spec_types.rb
297
285
  - spec/http_client_spec.rb
298
286
  - spec/json_protocol_spec.rb
299
287
  - spec/namespaced_spec.rb
@@ -316,13 +304,6 @@ files:
316
304
  - spec/types_spec.rb
317
305
  - spec/union_spec.rb
318
306
  - spec/unix_socket_spec.rb
319
- - test/debug_proto/gen-rb/debug_proto_test_constants.rb
320
- - test/debug_proto/gen-rb/debug_proto_test_types.rb
321
- - test/debug_proto/gen-rb/empty_service.rb
322
- - test/debug_proto/gen-rb/inherited.rb
323
- - test/debug_proto/gen-rb/reverse_order_service.rb
324
- - test/debug_proto/gen-rb/service_for_exception_with_a_map.rb
325
- - test/debug_proto/gen-rb/srv.rb
326
307
  homepage: http://thrift.apache.org
327
308
  licenses:
328
309
  - Apache 2.0
@@ -349,18 +330,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
349
330
  - !ruby/object:Gem::Version
350
331
  version: '0'
351
332
  requirements: []
352
- rubygems_version: 3.2.32
333
+ rubygems_version: 3.5.3
353
334
  signing_key:
354
335
  specification_version: 4
355
336
  summary: Ruby bindings for Apache Thrift
356
337
  test_files:
357
- - test/debug_proto/gen-rb/debug_proto_test_constants.rb
358
- - test/debug_proto/gen-rb/debug_proto_test_types.rb
359
- - test/debug_proto/gen-rb/empty_service.rb
360
- - test/debug_proto/gen-rb/inherited.rb
361
- - test/debug_proto/gen-rb/reverse_order_service.rb
362
- - test/debug_proto/gen-rb/service_for_exception_with_a_map.rb
363
- - test/debug_proto/gen-rb/srv.rb
364
338
  - spec/BaseService.thrift
365
339
  - spec/ExtendedService.thrift
366
340
  - spec/Referenced.thrift
@@ -376,25 +350,6 @@ test_files:
376
350
  - spec/compact_protocol_spec.rb
377
351
  - spec/exception_spec.rb
378
352
  - spec/flat_spec.rb
379
- - spec/gen-rb/base/base_service.rb
380
- - spec/gen-rb/base/base_service_constants.rb
381
- - spec/gen-rb/base/base_service_types.rb
382
- - spec/gen-rb/extended/extended_service.rb
383
- - spec/gen-rb/extended/extended_service_constants.rb
384
- - spec/gen-rb/extended/extended_service_types.rb
385
- - spec/gen-rb/flat/namespaced_nonblocking_service.rb
386
- - spec/gen-rb/flat/referenced_constants.rb
387
- - spec/gen-rb/flat/referenced_types.rb
388
- - spec/gen-rb/flat/thrift_namespaced_spec_constants.rb
389
- - spec/gen-rb/flat/thrift_namespaced_spec_types.rb
390
- - spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb
391
- - spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_constants.rb
392
- - spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_types.rb
393
- - spec/gen-rb/nonblocking_service.rb
394
- - spec/gen-rb/other_namespace/referenced_constants.rb
395
- - spec/gen-rb/other_namespace/referenced_types.rb
396
- - spec/gen-rb/thrift_spec_constants.rb
397
- - spec/gen-rb/thrift_spec_types.rb
398
353
  - spec/http_client_spec.rb
399
354
  - spec/json_protocol_spec.rb
400
355
  - spec/namespaced_spec.rb
@@ -420,8 +375,5 @@ test_files:
420
375
  - benchmark/Benchmark.thrift
421
376
  - benchmark/benchmark.rb
422
377
  - benchmark/client.rb
423
- - benchmark/gen-rb/benchmark_constants.rb
424
- - benchmark/gen-rb/benchmark_service.rb
425
- - benchmark/gen-rb/benchmark_types.rb
426
378
  - benchmark/server.rb
427
379
  - benchmark/thin_server.rb
@@ -1,11 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (2.4.0-upfluence)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'thrift'
8
- require 'benchmark_types'
9
-
10
- module ThriftBenchmark
11
- end
@@ -1,106 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (2.4.0-upfluence)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'thrift'
8
- require 'benchmark_types'
9
-
10
- module ThriftBenchmark
11
- module BenchmarkService
12
- SERVICE = 'BenchmarkService'.freeze
13
- NAMESPACE = ''.freeze
14
-
15
- class Client
16
- def initialize(client)
17
- @client = ::Thrift.build_client(client)
18
- end
19
-
20
- def self.from_provider(provider)
21
- Client.new(provider.build(NAMESPACE, SERVICE))
22
- end
23
-
24
- def fibonacci(n)
25
- result = @client.call_binary(
26
- 'fibonacci',
27
- Fibonacci_args.new(n: n),
28
- Fibonacci_result
29
- )
30
-
31
- return result.success unless result.success.nil?
32
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'fibonacci failed: unknown result')
33
- result
34
- end
35
-
36
- end
37
-
38
- class Processor
39
- include ::Thrift::Processor
40
-
41
- def self.from_provider(handler, provider)
42
- provider.build(NAMESPACE, SERVICE, Processor, handler)
43
- end
44
-
45
- def process_fibonacci(seqid, iprot, oprot)
46
- args = read_args(iprot, Fibonacci_args)
47
- result = @middleware.handle_binary('fibonacci', args) do |args|
48
- result = Fibonacci_result.new()
49
- result.success = @handler.fibonacci(args.n)
50
- result
51
- end
52
-
53
- write_result(result, oprot, 'fibonacci', seqid)
54
- end
55
-
56
- end
57
-
58
- # HELPER FUNCTIONS AND STRUCTURES
59
-
60
- class Fibonacci_args
61
- include ::Thrift::Struct, ::Thrift::Struct_Union
62
-
63
- NAME = 'fibonacci_args'.freeze
64
- NAMESPACE = ''.freeze
65
-
66
- THRIFT_FIELD_INDEX_N = 1
67
-
68
- FIELDS = {
69
- THRIFT_FIELD_INDEX_N => {type: ::Thrift::Types::BYTE, name: 'n'}
70
- }
71
-
72
- def struct_fields; FIELDS; end
73
-
74
- def validate
75
- end
76
-
77
- ::Thrift::Struct.generate_accessors self
78
- ::Thrift.register_struct_type self
79
- end
80
-
81
- class Fibonacci_result
82
- include ::Thrift::Struct, ::Thrift::Struct_Union
83
-
84
- NAME = 'fibonacci_result'.freeze
85
- NAMESPACE = ''.freeze
86
-
87
- THRIFT_FIELD_INDEX_SUCCESS = 0
88
-
89
- FIELDS = {
90
- THRIFT_FIELD_INDEX_SUCCESS => {type: ::Thrift::Types::I32, name: 'success'}
91
- }
92
-
93
- def struct_fields; FIELDS; end
94
-
95
- def validate
96
- end
97
-
98
- ::Thrift::Struct.generate_accessors self
99
- ::Thrift.register_struct_type self
100
- end
101
-
102
- ::Thrift.register_service_type(self)
103
-
104
- end
105
-
106
- end
@@ -1,10 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (2.4.0-upfluence)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'thrift'
8
-
9
- module ThriftBenchmark
10
- end