upfluence-thrift 2.3.1 → 2.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/benchmark/gen-rb/benchmark_constants.rb +11 -0
  3. data/benchmark/gen-rb/benchmark_service.rb +106 -0
  4. data/benchmark/gen-rb/benchmark_types.rb +10 -0
  5. data/lib/thrift/protocol/json_protocol.rb +65 -1
  6. data/spec/gen-rb/base/base_service.rb +106 -0
  7. data/spec/gen-rb/base/base_service_constants.rb +11 -0
  8. data/spec/gen-rb/base/base_service_types.rb +33 -0
  9. data/spec/gen-rb/extended/extended_service.rb +103 -0
  10. data/spec/gen-rb/extended/extended_service_constants.rb +11 -0
  11. data/spec/gen-rb/extended/extended_service_types.rb +12 -0
  12. data/spec/gen-rb/flat/namespaced_nonblocking_service.rb +343 -0
  13. data/spec/gen-rb/flat/referenced_constants.rb +11 -0
  14. data/spec/gen-rb/flat/referenced_types.rb +17 -0
  15. data/spec/gen-rb/flat/thrift_namespaced_spec_constants.rb +11 -0
  16. data/spec/gen-rb/flat/thrift_namespaced_spec_types.rb +35 -0
  17. data/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb +343 -0
  18. data/spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_constants.rb +11 -0
  19. data/spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_types.rb +35 -0
  20. data/spec/gen-rb/nonblocking_service.rb +343 -0
  21. data/spec/gen-rb/other_namespace/referenced_constants.rb +11 -0
  22. data/spec/gen-rb/other_namespace/referenced_types.rb +17 -0
  23. data/spec/gen-rb/thrift_spec_constants.rb +11 -0
  24. data/spec/gen-rb/thrift_spec_types.rb +699 -0
  25. data/spec/json_protocol_spec.rb +17 -0
  26. data/test/debug_proto/gen-rb/debug_proto_test_constants.rb +274 -0
  27. data/test/debug_proto/gen-rb/debug_proto_test_types.rb +936 -0
  28. data/test/debug_proto/gen-rb/empty_service.rb +39 -0
  29. data/test/debug_proto/gen-rb/inherited.rb +105 -0
  30. data/test/debug_proto/gen-rb/reverse_order_service.rb +107 -0
  31. data/test/debug_proto/gen-rb/service_for_exception_with_a_map.rb +106 -0
  32. data/test/debug_proto/gen-rb/srv.rb +410 -0
  33. metadata +60 -2
@@ -0,0 +1,274 @@
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 'debug_proto_test_types'
9
+
10
+ COMPACT_TEST = ::CompactProtoTestStruct.new({
11
+ %q"map_byte_map" => {
12
+ {
13
+ 1 => 1,
14
+ } => 1,
15
+ {
16
+ 2 => 2,
17
+ } => 2,
18
+ {
19
+ } => 0,
20
+ },
21
+ %q"byte_map_map" => {
22
+ 0 => {
23
+ },
24
+ 1 => {
25
+ 1 => 1,
26
+ },
27
+ 2 => {
28
+ 1 => 1,
29
+ 2 => 2,
30
+ },
31
+ },
32
+ %q"byte_set_map" => {
33
+ 0 => Set.new([
34
+ ]),
35
+ 1 => Set.new([
36
+ 1,
37
+ ]),
38
+ 2 => Set.new([
39
+ 1,
40
+ 2,
41
+ ]),
42
+ },
43
+ %q"byte_list_map" => {
44
+ 0 => [
45
+ ],
46
+ 1 => [
47
+ 1,
48
+ ],
49
+ 2 => [
50
+ 1,
51
+ 2,
52
+ ],
53
+ },
54
+ %q"a_byte" => 127,
55
+ %q"a_i16" => 32000,
56
+ %q"a_i32" => 1000000000,
57
+ %q"a_i64" => 1099511627775,
58
+ %q"a_double" => 5.6789,
59
+ %q"a_string" => %q"my string",
60
+ %q"true_field" => true,
61
+ %q"false_field" => false,
62
+ %q"empty_struct_field" => ::Empty.new({
63
+ }),
64
+ %q"byte_list" => [
65
+ -127,
66
+ -1,
67
+ 0,
68
+ 1,
69
+ 127,
70
+ ],
71
+ %q"i16_list" => [
72
+ -1,
73
+ 0,
74
+ 1,
75
+ 32767,
76
+ ],
77
+ %q"i32_list" => [
78
+ -1,
79
+ 0,
80
+ 255,
81
+ 65535,
82
+ 16777215,
83
+ 2147483647,
84
+ ],
85
+ %q"i64_list" => [
86
+ -1,
87
+ 0,
88
+ 255,
89
+ 65535,
90
+ 16777215,
91
+ 4294967295,
92
+ 1099511627775,
93
+ 281474976710655,
94
+ 72057594037927935,
95
+ 9223372036854775807,
96
+ ],
97
+ %q"i16_byte_map" => {
98
+ 1 => 1,
99
+ -1 => 1,
100
+ 32767 => 1,
101
+ },
102
+ %q"double_list" => [
103
+ 0.1,
104
+ 0.2,
105
+ 0.3,
106
+ ],
107
+ %q"string_list" => [
108
+ %q"first",
109
+ %q"second",
110
+ %q"third",
111
+ ],
112
+ %q"boolean_list" => [
113
+ true,
114
+ true,
115
+ true,
116
+ false,
117
+ false,
118
+ false,
119
+ ],
120
+ %q"struct_list" => [
121
+ ::Empty.new({
122
+ }),
123
+ ::Empty.new({
124
+ }),
125
+ ],
126
+ %q"byte_set" => Set.new([
127
+ -127,
128
+ -1,
129
+ 0,
130
+ 1,
131
+ 127,
132
+ ]),
133
+ %q"i16_set" => Set.new([
134
+ -1,
135
+ 0,
136
+ 1,
137
+ 32767,
138
+ ]),
139
+ %q"i32_set" => Set.new([
140
+ 1,
141
+ 2,
142
+ 3,
143
+ ]),
144
+ %q"i64_set" => Set.new([
145
+ -1,
146
+ 0,
147
+ 255,
148
+ 65535,
149
+ 16777215,
150
+ 4294967295,
151
+ 1099511627775,
152
+ 281474976710655,
153
+ 72057594037927935,
154
+ 9223372036854775807,
155
+ ]),
156
+ %q"i32_byte_map" => {
157
+ 1 => 1,
158
+ -1 => 1,
159
+ 2147483647 => 1,
160
+ },
161
+ %q"double_set" => Set.new([
162
+ 0.1,
163
+ 0.2,
164
+ 0.3,
165
+ ]),
166
+ %q"string_set" => Set.new([
167
+ %q"first",
168
+ %q"second",
169
+ %q"third",
170
+ ]),
171
+ %q"boolean_set" => Set.new([
172
+ true,
173
+ false,
174
+ ]),
175
+ %q"struct_set" => Set.new([
176
+ ::Empty.new({
177
+ }),
178
+ ]),
179
+ %q"byte_byte_map" => {
180
+ 1 => 2,
181
+ },
182
+ %q"i64_byte_map" => {
183
+ 0 => 1,
184
+ 1 => 1,
185
+ -1 => 1,
186
+ 9223372036854775807 => 1,
187
+ },
188
+ %q"double_byte_map" => {
189
+ -1.1 => 1,
190
+ 1.1 => 1,
191
+ },
192
+ %q"string_byte_map" => {
193
+ %q"first" => 1,
194
+ %q"second" => 2,
195
+ %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
+ },
257
+ })
258
+
259
+ MYCONST = 2
260
+
261
+ MY_SOME_ENUM = 1
262
+
263
+ MY_SOME_ENUM_1 = 1
264
+
265
+ MY_ENUM_MAP = {
266
+ 1 => 2,
267
+ }
268
+
269
+ EXTRA_CRAZY_MAP = {
270
+ 1 => ::StructWithSomeEnum.new({
271
+ %q"blah" => 2,
272
+ }),
273
+ }
274
+