upfluence-thrift 2.4.4 → 2.6.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/benchmark/gen-rb/benchmark_constants.rb +1 -1
  3. data/benchmark/gen-rb/benchmark_service.rb +90 -44
  4. data/benchmark/gen-rb/benchmark_types.rb +1 -1
  5. data/lib/thrift/definition.rb +33 -8
  6. data/lib/thrift/processor.rb +96 -0
  7. data/lib/thrift/types/annotation/deprecation/deprecation_constants.rb +17 -0
  8. data/lib/thrift/types/annotation/deprecation/deprecation_types.rb +44 -0
  9. data/lib/thrift/types/annotation/naming/naming.rb +23 -0
  10. data/lib/thrift/types/annotation/naming/naming_constants.rb +17 -0
  11. data/lib/thrift/types/annotation/naming/naming_types.rb +59 -0
  12. data/lib/thrift/types/known/{any.rb → any/any.rb} +1 -1
  13. data/lib/thrift/types/known/{any_constants.rb → any/any_constants.rb} +2 -2
  14. data/lib/thrift/types/known/{any_types.rb → any/any_types.rb} +21 -3
  15. data/lib/thrift/types/known/{duration.rb → duration/duration.rb} +1 -1
  16. data/lib/thrift/types/known/{duration_constants.rb → duration/duration_constants.rb} +2 -2
  17. data/lib/thrift/types/known/{duration_types.rb → duration/duration_types.rb} +21 -3
  18. data/lib/thrift/types/known/{timestamp.rb → timestamp/timestamp.rb} +1 -1
  19. data/lib/thrift/types/known/{timestamp_constants.rb → timestamp/timestamp_constants.rb} +2 -2
  20. data/lib/thrift/types/known/{timestamp_types.rb → timestamp/timestamp_types.rb} +21 -3
  21. data/lib/thrift/types/{value.rb → value/value.rb} +1 -1
  22. data/lib/thrift/types/{value_constants.rb → value/value_constants.rb} +2 -2
  23. data/lib/thrift/types/{value_types.rb → value/value_types.rb} +135 -15
  24. data/lib/thrift.rb +5 -0
  25. data/spec/gen-rb/base/base_service.rb +90 -44
  26. data/spec/gen-rb/base/base_service_constants.rb +1 -1
  27. data/spec/gen-rb/base/base_service_types.rb +14 -2
  28. data/spec/gen-rb/extended/extended_service.rb +74 -40
  29. data/spec/gen-rb/extended/extended_service_constants.rb +1 -1
  30. data/spec/gen-rb/extended/extended_service_types.rb +1 -1
  31. data/spec/gen-rb/flat/namespaced_nonblocking_service.rb +285 -121
  32. data/spec/gen-rb/flat/referenced_constants.rb +1 -1
  33. data/spec/gen-rb/flat/referenced_types.rb +1 -1
  34. data/spec/gen-rb/flat/thrift_namespaced_spec_constants.rb +1 -1
  35. data/spec/gen-rb/flat/thrift_namespaced_spec_types.rb +14 -2
  36. data/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb +285 -121
  37. data/spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_constants.rb +1 -1
  38. data/spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_types.rb +14 -2
  39. data/spec/gen-rb/nonblocking_service.rb +285 -121
  40. data/spec/gen-rb/other_namespace/referenced_constants.rb +1 -1
  41. data/spec/gen-rb/other_namespace/referenced_types.rb +1 -1
  42. data/spec/gen-rb/thrift_spec_constants.rb +1 -1
  43. data/spec/gen-rb/thrift_spec_types.rb +531 -57
  44. data/test/debug_proto/gen-rb/debug_proto_test_constants.rb +71 -71
  45. data/test/debug_proto/gen-rb/debug_proto_test_types.rb +1180 -148
  46. data/test/debug_proto/gen-rb/empty_service.rb +12 -3
  47. data/test/debug_proto/gen-rb/inherited.rb +90 -44
  48. data/test/debug_proto/gen-rb/reverse_order_service.rb +102 -44
  49. data/test/debug_proto/gen-rb/service_for_exception_with_a_map.rb +86 -46
  50. data/test/debug_proto/gen-rb/srv.rb +339 -150
  51. metadata +45 -35
@@ -1,5 +1,5 @@
1
1
  #
2
- # Autogenerated by Thrift Compiler (2.4.0-upfluence)
2
+ # Autogenerated by Thrift Compiler ()
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
@@ -8,6 +8,65 @@ require 'thrift'
8
8
  require 'debug_proto_test_types'
9
9
 
10
10
  COMPACT_TEST = ::CompactProtoTestStruct.new({
11
+ %q"boolean_byte_map" => {
12
+ true => 1,
13
+ false => 0,
14
+ },
15
+ %q"byte_i16_map" => {
16
+ 1 => 1,
17
+ 2 => -1,
18
+ 3 => 32767,
19
+ },
20
+ %q"byte_i32_map" => {
21
+ 1 => 1,
22
+ 2 => -1,
23
+ 3 => 2147483647,
24
+ },
25
+ %q"byte_i64_map" => {
26
+ 1 => 1,
27
+ 2 => -1,
28
+ 3 => 9223372036854775807,
29
+ },
30
+ %q"byte_double_map" => {
31
+ 1 => 0.1,
32
+ 2 => -0.1,
33
+ 3 => 1e+06,
34
+ },
35
+ %q"byte_string_map" => {
36
+ 1 => %q"",
37
+ 2 => %q"blah",
38
+ 3 => %q"loooooooooooooong string",
39
+ },
40
+ %q"byte_boolean_map" => {
41
+ 1 => true,
42
+ 2 => false,
43
+ },
44
+ %q"list_byte_map" => {
45
+ [
46
+ 1,
47
+ 2,
48
+ 3,
49
+ ] => 1,
50
+ [
51
+ 0,
52
+ 1,
53
+ ] => 2,
54
+ [
55
+ ] => 0,
56
+ },
57
+ %q"set_byte_map" => {
58
+ Set.new([
59
+ 1,
60
+ 2,
61
+ 3,
62
+ ]) => 1,
63
+ Set.new([
64
+ 0,
65
+ 1,
66
+ ]) => 2,
67
+ Set.new([
68
+ ]) => 0,
69
+ },
11
70
  %q"map_byte_map" => {
12
71
  {
13
72
  1 => 1,
@@ -94,11 +153,6 @@ COMPACT_TEST = ::CompactProtoTestStruct.new({
94
153
  72057594037927935,
95
154
  9223372036854775807,
96
155
  ],
97
- %q"i16_byte_map" => {
98
- 1 => 1,
99
- -1 => 1,
100
- 32767 => 1,
101
- },
102
156
  %q"double_list" => [
103
157
  0.1,
104
158
  0.2,
@@ -153,11 +207,6 @@ COMPACT_TEST = ::CompactProtoTestStruct.new({
153
207
  72057594037927935,
154
208
  9223372036854775807,
155
209
  ]),
156
- %q"i32_byte_map" => {
157
- 1 => 1,
158
- -1 => 1,
159
- 2147483647 => 1,
160
- },
161
210
  %q"double_set" => Set.new([
162
211
  0.1,
163
212
  0.2,
@@ -179,6 +228,16 @@ COMPACT_TEST = ::CompactProtoTestStruct.new({
179
228
  %q"byte_byte_map" => {
180
229
  1 => 2,
181
230
  },
231
+ %q"i16_byte_map" => {
232
+ 1 => 1,
233
+ -1 => 1,
234
+ 32767 => 1,
235
+ },
236
+ %q"i32_byte_map" => {
237
+ 1 => 1,
238
+ -1 => 1,
239
+ 2147483647 => 1,
240
+ },
182
241
  %q"i64_byte_map" => {
183
242
  0 => 1,
184
243
  1 => 1,
@@ -190,69 +249,10 @@ COMPACT_TEST = ::CompactProtoTestStruct.new({
190
249
  1.1 => 1,
191
250
  },
192
251
  %q"string_byte_map" => {
252
+ %q"" => 0,
193
253
  %q"first" => 1,
194
254
  %q"second" => 2,
195
255
  %q"third" => 3,
196
- %q"" => 0,
197
- },
198
- %q"boolean_byte_map" => {
199
- true => 1,
200
- false => 0,
201
- },
202
- %q"byte_i16_map" => {
203
- 1 => 1,
204
- 2 => -1,
205
- 3 => 32767,
206
- },
207
- %q"byte_i32_map" => {
208
- 1 => 1,
209
- 2 => -1,
210
- 3 => 2147483647,
211
- },
212
- %q"byte_i64_map" => {
213
- 1 => 1,
214
- 2 => -1,
215
- 3 => 9223372036854775807,
216
- },
217
- %q"byte_double_map" => {
218
- 1 => 0.1,
219
- 2 => -0.1,
220
- 3 => 1e+06,
221
- },
222
- %q"byte_string_map" => {
223
- 1 => %q"",
224
- 2 => %q"blah",
225
- 3 => %q"loooooooooooooong string",
226
- },
227
- %q"byte_boolean_map" => {
228
- 1 => true,
229
- 2 => false,
230
- },
231
- %q"list_byte_map" => {
232
- [
233
- 1,
234
- 2,
235
- 3,
236
- ] => 1,
237
- [
238
- 0,
239
- 1,
240
- ] => 2,
241
- [
242
- ] => 0,
243
- },
244
- %q"set_byte_map" => {
245
- Set.new([
246
- 0,
247
- 1,
248
- ]) => 2,
249
- Set.new([
250
- ]) => 0,
251
- Set.new([
252
- 1,
253
- 2,
254
- 3,
255
- ]) => 1,
256
256
  },
257
257
  })
258
258