thrift 0.8.0 → 0.9.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.
- data/benchmark/gen-rb/benchmark_constants.rb +3 -2
- data/benchmark/gen-rb/benchmark_service.rb +52 -52
- data/benchmark/gen-rb/benchmark_types.rb +3 -2
- data/ext/binary_protocol_accelerated.c +5 -2
- data/ext/bytes.c +36 -0
- data/ext/bytes.h +31 -0
- data/ext/compact_protocol.c +7 -4
- data/ext/constants.h +4 -0
- data/ext/extconf.rb +3 -1
- data/ext/memory_buffer.c +11 -8
- data/ext/thrift_native.c +9 -0
- data/lib/thrift.rb +2 -0
- data/lib/thrift/bytes.rb +131 -0
- data/lib/thrift/protocol/base_protocol.rb +10 -0
- data/lib/thrift/protocol/binary_protocol.rb +5 -5
- data/lib/thrift/protocol/compact_protocol.rb +4 -3
- data/lib/thrift/protocol/json_protocol.rb +765 -0
- data/lib/thrift/transport/base_transport.rb +22 -20
- data/lib/thrift/transport/buffered_transport.rb +16 -10
- data/lib/thrift/transport/framed_transport.rb +11 -10
- data/lib/thrift/transport/http_client_transport.rb +7 -5
- data/lib/thrift/transport/io_stream_transport.rb +1 -1
- data/lib/thrift/transport/memory_buffer_transport.rb +6 -6
- data/lib/thrift/transport/socket.rb +4 -2
- data/spec/ThriftSpec.thrift +52 -1
- data/spec/base_protocol_spec.rb +44 -45
- data/spec/base_transport_spec.rb +49 -50
- data/spec/binary_protocol_accelerated_spec.rb +9 -13
- data/spec/binary_protocol_spec.rb +15 -10
- data/spec/binary_protocol_spec_shared.rb +62 -12
- data/spec/bytes_spec.rb +160 -0
- data/spec/client_spec.rb +13 -14
- data/spec/compact_protocol_spec.rb +3 -2
- data/spec/exception_spec.rb +39 -40
- data/spec/gen-rb/nonblocking_service.rb +193 -193
- data/spec/gen-rb/thrift_spec_constants.rb +3 -2
- data/spec/gen-rb/thrift_spec_types.rb +455 -262
- data/spec/http_client_spec.rb +16 -9
- data/spec/json_protocol_spec.rb +513 -0
- data/spec/mongrel_http_server_spec.rb +19 -22
- data/spec/nonblocking_server_spec.rb +18 -20
- data/spec/processor_spec.rb +13 -16
- data/spec/serializer_spec.rb +17 -19
- data/spec/server_socket_spec.rb +6 -7
- data/spec/server_spec.rb +46 -58
- data/spec/socket_spec.rb +11 -11
- data/spec/socket_spec_shared.rb +1 -1
- data/spec/spec_helper.rb +13 -10
- data/spec/struct_nested_containers_spec.rb +191 -0
- data/spec/struct_spec.rb +84 -86
- data/spec/types_spec.rb +65 -66
- data/spec/union_spec.rb +44 -46
- data/spec/unix_socket_spec.rb +8 -9
- data/test/debug_proto/gen-rb/debug_proto_test_constants.rb +8 -7
- data/test/debug_proto/gen-rb/debug_proto_test_types.rb +24 -23
- data/test/debug_proto/gen-rb/empty_service.rb +1 -1
- data/test/debug_proto/gen-rb/inherited.rb +3 -3
- data/test/debug_proto/gen-rb/reverse_order_service.rb +1 -1
- data/test/debug_proto/gen-rb/service_for_exception_with_a_map.rb +3 -3
- data/test/debug_proto/gen-rb/srv.rb +2 -2
- metadata +43 -49
@@ -1,9 +1,10 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.0)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
6
6
|
|
7
|
+
require 'thrift'
|
7
8
|
|
8
9
|
module SomeEnum
|
9
10
|
ONE = 1
|
@@ -120,8 +121,8 @@ class Nesting
|
|
120
121
|
MY_OOE = 2
|
121
122
|
|
122
123
|
FIELDS = {
|
123
|
-
MY_BONK => {:type => ::Thrift::Types::STRUCT, :name => 'my_bonk', :class => Bonk},
|
124
|
-
MY_OOE => {:type => ::Thrift::Types::STRUCT, :name => 'my_ooe', :class => OneOfEach}
|
124
|
+
MY_BONK => {:type => ::Thrift::Types::STRUCT, :name => 'my_bonk', :class => ::Bonk},
|
125
|
+
MY_OOE => {:type => ::Thrift::Types::STRUCT, :name => 'my_ooe', :class => ::OneOfEach}
|
125
126
|
}
|
126
127
|
|
127
128
|
def struct_fields; FIELDS; end
|
@@ -139,9 +140,9 @@ class HolyMoley
|
|
139
140
|
BONKS = 3
|
140
141
|
|
141
142
|
FIELDS = {
|
142
|
-
BIG => {:type => ::Thrift::Types::LIST, :name => 'big', :element => {:type => ::Thrift::Types::STRUCT, :class => OneOfEach}},
|
143
|
+
BIG => {:type => ::Thrift::Types::LIST, :name => 'big', :element => {:type => ::Thrift::Types::STRUCT, :class => ::OneOfEach}},
|
143
144
|
CONTAIN => {:type => ::Thrift::Types::SET, :name => 'contain', :element => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRING}}},
|
144
|
-
BONKS => {:type => ::Thrift::Types::MAP, :name => 'bonks', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => Bonk}}}
|
145
|
+
BONKS => {:type => ::Thrift::Types::MAP, :name => 'bonks', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::Bonk}}}
|
145
146
|
}
|
146
147
|
|
147
148
|
def struct_fields; FIELDS; end
|
@@ -190,7 +191,7 @@ class Wrapper
|
|
190
191
|
FOO = 1
|
191
192
|
|
192
193
|
FIELDS = {
|
193
|
-
FOO => {:type => ::Thrift::Types::STRUCT, :name => 'foo', :class => Empty}
|
194
|
+
FOO => {:type => ::Thrift::Types::STRUCT, :name => 'foo', :class => ::Empty}
|
194
195
|
}
|
195
196
|
|
196
197
|
def struct_fields; FIELDS; end
|
@@ -218,7 +219,7 @@ class RandomStuff
|
|
218
219
|
C => {:type => ::Thrift::Types::I32, :name => 'c'},
|
219
220
|
D => {:type => ::Thrift::Types::I32, :name => 'd'},
|
220
221
|
MYINTLIST => {:type => ::Thrift::Types::LIST, :name => 'myintlist', :element => {:type => ::Thrift::Types::I32}},
|
221
|
-
MAPS => {:type => ::Thrift::Types::MAP, :name => 'maps', :key => {:type => ::Thrift::Types::I32}, :value => {:type => ::Thrift::Types::STRUCT, :class => Wrapper}},
|
222
|
+
MAPS => {:type => ::Thrift::Types::MAP, :name => 'maps', :key => {:type => ::Thrift::Types::I32}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Wrapper}},
|
222
223
|
BIGINT => {:type => ::Thrift::Types::I64, :name => 'bigint'},
|
223
224
|
TRIPLE => {:type => ::Thrift::Types::DOUBLE, :name => 'triple'}
|
224
225
|
}
|
@@ -321,7 +322,7 @@ class CompactProtoTestStruct
|
|
321
322
|
A_BINARY => {:type => ::Thrift::Types::STRING, :name => 'a_binary', :binary => true},
|
322
323
|
TRUE_FIELD => {:type => ::Thrift::Types::BOOL, :name => 'true_field'},
|
323
324
|
FALSE_FIELD => {:type => ::Thrift::Types::BOOL, :name => 'false_field'},
|
324
|
-
EMPTY_STRUCT_FIELD => {:type => ::Thrift::Types::STRUCT, :name => 'empty_struct_field', :class => Empty},
|
325
|
+
EMPTY_STRUCT_FIELD => {:type => ::Thrift::Types::STRUCT, :name => 'empty_struct_field', :class => ::Empty},
|
325
326
|
BYTE_LIST => {:type => ::Thrift::Types::LIST, :name => 'byte_list', :element => {:type => ::Thrift::Types::BYTE}},
|
326
327
|
I16_LIST => {:type => ::Thrift::Types::LIST, :name => 'i16_list', :element => {:type => ::Thrift::Types::I16}},
|
327
328
|
I32_LIST => {:type => ::Thrift::Types::LIST, :name => 'i32_list', :element => {:type => ::Thrift::Types::I32}},
|
@@ -330,7 +331,7 @@ class CompactProtoTestStruct
|
|
330
331
|
STRING_LIST => {:type => ::Thrift::Types::LIST, :name => 'string_list', :element => {:type => ::Thrift::Types::STRING}},
|
331
332
|
BINARY_LIST => {:type => ::Thrift::Types::LIST, :name => 'binary_list', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
332
333
|
BOOLEAN_LIST => {:type => ::Thrift::Types::LIST, :name => 'boolean_list', :element => {:type => ::Thrift::Types::BOOL}},
|
333
|
-
STRUCT_LIST => {:type => ::Thrift::Types::LIST, :name => 'struct_list', :element => {:type => ::Thrift::Types::STRUCT, :class => Empty}},
|
334
|
+
STRUCT_LIST => {:type => ::Thrift::Types::LIST, :name => 'struct_list', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Empty}},
|
334
335
|
BYTE_SET => {:type => ::Thrift::Types::SET, :name => 'byte_set', :element => {:type => ::Thrift::Types::BYTE}},
|
335
336
|
I16_SET => {:type => ::Thrift::Types::SET, :name => 'i16_set', :element => {:type => ::Thrift::Types::I16}},
|
336
337
|
I32_SET => {:type => ::Thrift::Types::SET, :name => 'i32_set', :element => {:type => ::Thrift::Types::I32}},
|
@@ -339,7 +340,7 @@ class CompactProtoTestStruct
|
|
339
340
|
STRING_SET => {:type => ::Thrift::Types::SET, :name => 'string_set', :element => {:type => ::Thrift::Types::STRING}},
|
340
341
|
BINARY_SET => {:type => ::Thrift::Types::SET, :name => 'binary_set', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
341
342
|
BOOLEAN_SET => {:type => ::Thrift::Types::SET, :name => 'boolean_set', :element => {:type => ::Thrift::Types::BOOL}},
|
342
|
-
STRUCT_SET => {:type => ::Thrift::Types::SET, :name => 'struct_set', :element => {:type => ::Thrift::Types::STRUCT, :class => Empty}},
|
343
|
+
STRUCT_SET => {:type => ::Thrift::Types::SET, :name => 'struct_set', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Empty}},
|
343
344
|
BYTE_BYTE_MAP => {:type => ::Thrift::Types::MAP, :name => 'byte_byte_map', :key => {:type => ::Thrift::Types::BYTE}, :value => {:type => ::Thrift::Types::BYTE}},
|
344
345
|
I16_BYTE_MAP => {:type => ::Thrift::Types::MAP, :name => 'i16_byte_map', :key => {:type => ::Thrift::Types::I16}, :value => {:type => ::Thrift::Types::BYTE}},
|
345
346
|
I32_BYTE_MAP => {:type => ::Thrift::Types::MAP, :name => 'i32_byte_map', :key => {:type => ::Thrift::Types::I32}, :value => {:type => ::Thrift::Types::BYTE}},
|
@@ -455,13 +456,13 @@ class StructWithSomeEnum
|
|
455
456
|
BLAH = 1
|
456
457
|
|
457
458
|
FIELDS = {
|
458
|
-
BLAH => {:type => ::Thrift::Types::I32, :name => 'blah', :enum_class => SomeEnum}
|
459
|
+
BLAH => {:type => ::Thrift::Types::I32, :name => 'blah', :enum_class => ::SomeEnum}
|
459
460
|
}
|
460
461
|
|
461
462
|
def struct_fields; FIELDS; end
|
462
463
|
|
463
464
|
def validate
|
464
|
-
unless @blah.nil? || SomeEnum::VALID_VALUES.include?(@blah)
|
465
|
+
unless @blah.nil? || ::SomeEnum::VALID_VALUES.include?(@blah)
|
465
466
|
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field blah!')
|
466
467
|
end
|
467
468
|
end
|
@@ -518,10 +519,10 @@ class TestUnion < ::Thrift::Union
|
|
518
519
|
# A doc string
|
519
520
|
STRING_FIELD => {:type => ::Thrift::Types::STRING, :name => 'string_field'},
|
520
521
|
I32_FIELD => {:type => ::Thrift::Types::I32, :name => 'i32_field'},
|
521
|
-
STRUCT_FIELD => {:type => ::Thrift::Types::STRUCT, :name => 'struct_field', :class => OneOfEach},
|
522
|
-
STRUCT_LIST => {:type => ::Thrift::Types::LIST, :name => 'struct_list', :element => {:type => ::Thrift::Types::STRUCT, :class => RandomStuff}},
|
522
|
+
STRUCT_FIELD => {:type => ::Thrift::Types::STRUCT, :name => 'struct_field', :class => ::OneOfEach},
|
523
|
+
STRUCT_LIST => {:type => ::Thrift::Types::LIST, :name => 'struct_list', :element => {:type => ::Thrift::Types::STRUCT, :class => ::RandomStuff}},
|
523
524
|
OTHER_I32_FIELD => {:type => ::Thrift::Types::I32, :name => 'other_i32_field'},
|
524
|
-
ENUM_FIELD => {:type => ::Thrift::Types::I32, :name => 'enum_field', :enum_class => SomeEnum},
|
525
|
+
ENUM_FIELD => {:type => ::Thrift::Types::I32, :name => 'enum_field', :enum_class => ::SomeEnum},
|
525
526
|
I32_SET => {:type => ::Thrift::Types::SET, :name => 'i32_set', :element => {:type => ::Thrift::Types::I32}},
|
526
527
|
I32_MAP => {:type => ::Thrift::Types::MAP, :name => 'i32_map', :key => {:type => ::Thrift::Types::I32}, :value => {:type => ::Thrift::Types::I32}}
|
527
528
|
}
|
@@ -531,7 +532,7 @@ class TestUnion < ::Thrift::Union
|
|
531
532
|
def validate
|
532
533
|
raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
|
533
534
|
if get_set_field == :enum_field
|
534
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field enum_field!') unless SomeEnum::VALID_VALUES.include?(get_value)
|
535
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field enum_field!') unless ::SomeEnum::VALID_VALUES.include?(get_value)
|
535
536
|
end
|
536
537
|
end
|
537
538
|
|
@@ -580,10 +581,10 @@ class TestUnionMinusStringField < ::Thrift::Union
|
|
580
581
|
|
581
582
|
FIELDS = {
|
582
583
|
I32_FIELD => {:type => ::Thrift::Types::I32, :name => 'i32_field'},
|
583
|
-
STRUCT_FIELD => {:type => ::Thrift::Types::STRUCT, :name => 'struct_field', :class => OneOfEach},
|
584
|
-
STRUCT_LIST => {:type => ::Thrift::Types::LIST, :name => 'struct_list', :element => {:type => ::Thrift::Types::STRUCT, :class => RandomStuff}},
|
584
|
+
STRUCT_FIELD => {:type => ::Thrift::Types::STRUCT, :name => 'struct_field', :class => ::OneOfEach},
|
585
|
+
STRUCT_LIST => {:type => ::Thrift::Types::LIST, :name => 'struct_list', :element => {:type => ::Thrift::Types::STRUCT, :class => ::RandomStuff}},
|
585
586
|
OTHER_I32_FIELD => {:type => ::Thrift::Types::I32, :name => 'other_i32_field'},
|
586
|
-
ENUM_FIELD => {:type => ::Thrift::Types::I32, :name => 'enum_field', :enum_class => SomeEnum},
|
587
|
+
ENUM_FIELD => {:type => ::Thrift::Types::I32, :name => 'enum_field', :enum_class => ::SomeEnum},
|
587
588
|
I32_SET => {:type => ::Thrift::Types::SET, :name => 'i32_set', :element => {:type => ::Thrift::Types::I32}},
|
588
589
|
I32_MAP => {:type => ::Thrift::Types::MAP, :name => 'i32_map', :key => {:type => ::Thrift::Types::I32}, :value => {:type => ::Thrift::Types::I32}}
|
589
590
|
}
|
@@ -593,7 +594,7 @@ class TestUnionMinusStringField < ::Thrift::Union
|
|
593
594
|
def validate
|
594
595
|
raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
|
595
596
|
if get_set_field == :enum_field
|
596
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field enum_field!') unless SomeEnum::VALID_VALUES.include?(get_value)
|
597
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field enum_field!') unless ::SomeEnum::VALID_VALUES.include?(get_value)
|
597
598
|
end
|
598
599
|
end
|
599
600
|
|
@@ -634,7 +635,7 @@ class StructWithAUnion
|
|
634
635
|
TEST_UNION = 1
|
635
636
|
|
636
637
|
FIELDS = {
|
637
|
-
TEST_UNION => {:type => ::Thrift::Types::STRUCT, :name => 'test_union', :class => TestUnion}
|
638
|
+
TEST_UNION => {:type => ::Thrift::Types::STRUCT, :name => 'test_union', :class => ::TestUnion}
|
638
639
|
}
|
639
640
|
|
640
641
|
def struct_fields; FIELDS; end
|
@@ -654,7 +655,7 @@ class PrimitiveThenStruct
|
|
654
655
|
FIELDS = {
|
655
656
|
BLAH => {:type => ::Thrift::Types::I32, :name => 'blah'},
|
656
657
|
BLAH2 => {:type => ::Thrift::Types::I32, :name => 'blah2'},
|
657
|
-
BW => {:type => ::Thrift::Types::STRUCT, :name => 'bw', :class => Backwards}
|
658
|
+
BW => {:type => ::Thrift::Types::STRUCT, :name => 'bw', :class => ::Backwards}
|
658
659
|
}
|
659
660
|
|
660
661
|
def struct_fields; FIELDS; end
|
@@ -708,7 +709,7 @@ class BreaksRubyCompactProtocol
|
|
708
709
|
|
709
710
|
FIELDS = {
|
710
711
|
FIELD1 => {:type => ::Thrift::Types::STRING, :name => 'field1'},
|
711
|
-
FIELD2 => {:type => ::Thrift::Types::STRUCT, :name => 'field2', :class => BigFieldIdStruct},
|
712
|
+
FIELD2 => {:type => ::Thrift::Types::STRUCT, :name => 'field2', :class => ::BigFieldIdStruct},
|
712
713
|
FIELD3 => {:type => ::Thrift::Types::I32, :name => 'field3'}
|
713
714
|
}
|
714
715
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.0)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -9,7 +9,7 @@ require 'srv'
|
|
9
9
|
require 'debug_proto_test_types'
|
10
10
|
|
11
11
|
module Inherited
|
12
|
-
class Client < Srv::Client
|
12
|
+
class Client < ::Srv::Client
|
13
13
|
include ::Thrift::Client
|
14
14
|
|
15
15
|
def identity(arg)
|
@@ -29,7 +29,7 @@ module Inherited
|
|
29
29
|
|
30
30
|
end
|
31
31
|
|
32
|
-
class Processor < Srv::Processor
|
32
|
+
class Processor < ::Srv::Processor
|
33
33
|
include ::Thrift::Processor
|
34
34
|
|
35
35
|
def process_identity(seqid, iprot, oprot)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.0)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -36,7 +36,7 @@ module ServiceForExceptionWithAMap
|
|
36
36
|
result = MethodThatThrowsAnException_result.new()
|
37
37
|
begin
|
38
38
|
@handler.methodThatThrowsAnException()
|
39
|
-
rescue ExceptionWithAMap => xwamap
|
39
|
+
rescue ::ExceptionWithAMap => xwamap
|
40
40
|
result.xwamap = xwamap
|
41
41
|
end
|
42
42
|
write_result(result, oprot, 'methodThatThrowsAnException', seqid)
|
@@ -66,7 +66,7 @@ module ServiceForExceptionWithAMap
|
|
66
66
|
XWAMAP = 1
|
67
67
|
|
68
68
|
FIELDS = {
|
69
|
-
XWAMAP => {:type => ::Thrift::Types::STRUCT, :name => 'xwamap', :class => ExceptionWithAMap}
|
69
|
+
XWAMAP => {:type => ::Thrift::Types::STRUCT, :name => 'xwamap', :class => ::ExceptionWithAMap}
|
70
70
|
}
|
71
71
|
|
72
72
|
def struct_fields; FIELDS; end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.0)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -254,7 +254,7 @@ module Srv
|
|
254
254
|
SUCCESS = 0
|
255
255
|
|
256
256
|
FIELDS = {
|
257
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CompactProtoTestStruct}
|
257
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CompactProtoTestStruct}
|
258
258
|
}
|
259
259
|
|
260
260
|
def struct_fields; FIELDS; end
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thrift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
4
|
+
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
|
-
-
|
7
|
+
- 9
|
9
8
|
- 0
|
10
|
-
version: 0.
|
9
|
+
version: 0.9.0
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Thrift Developers
|
@@ -15,52 +14,51 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date:
|
17
|
+
date: 2012-10-15 00:00:00 -05:00
|
18
|
+
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
25
22
|
requirements:
|
26
23
|
- - ">="
|
27
24
|
- !ruby/object:Gem::Version
|
28
|
-
hash: 3
|
29
25
|
segments:
|
30
26
|
- 0
|
31
27
|
version: "0"
|
28
|
+
requirement: *id001
|
29
|
+
name: rake
|
30
|
+
prerelease: false
|
32
31
|
type: :development
|
33
|
-
version_requirements: *id001
|
34
32
|
- !ruby/object:Gem::Dependency
|
35
|
-
|
36
|
-
prerelease: false
|
37
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
-
none: false
|
33
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
39
34
|
requirements:
|
40
|
-
- -
|
35
|
+
- - ~>
|
41
36
|
- !ruby/object:Gem::Version
|
42
|
-
hash: 31
|
43
37
|
segments:
|
44
|
-
- 1
|
45
|
-
- 3
|
46
38
|
- 2
|
47
|
-
|
39
|
+
- 10
|
40
|
+
- 0
|
41
|
+
version: 2.10.0
|
42
|
+
requirement: *id002
|
43
|
+
name: rspec
|
44
|
+
prerelease: false
|
48
45
|
type: :development
|
49
|
-
version_requirements: *id002
|
50
46
|
- !ruby/object:Gem::Dependency
|
51
|
-
|
52
|
-
prerelease: false
|
53
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
-
none: false
|
47
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
55
48
|
requirements:
|
56
|
-
- - "
|
49
|
+
- - "="
|
57
50
|
- !ruby/object:Gem::Version
|
58
|
-
hash: 3
|
59
51
|
segments:
|
52
|
+
- 1
|
53
|
+
- 2
|
60
54
|
- 0
|
61
|
-
|
55
|
+
- pre
|
56
|
+
- 2
|
57
|
+
version: 1.2.0.pre2
|
58
|
+
requirement: *id003
|
59
|
+
name: mongrel
|
60
|
+
prerelease: false
|
62
61
|
type: :development
|
63
|
-
version_requirements: *id003
|
64
62
|
description: Ruby bindings for the Apache Thrift RPC system
|
65
63
|
email:
|
66
64
|
- dev@thrift.apache.org
|
@@ -72,6 +70,7 @@ extra_rdoc_files:
|
|
72
70
|
- CHANGELOG
|
73
71
|
- README
|
74
72
|
- ext/binary_protocol_accelerated.c
|
73
|
+
- ext/bytes.c
|
75
74
|
- ext/compact_protocol.c
|
76
75
|
- ext/memory_buffer.c
|
77
76
|
- ext/protocol.c
|
@@ -79,6 +78,7 @@ extra_rdoc_files:
|
|
79
78
|
- ext/struct.c
|
80
79
|
- ext/thrift_native.c
|
81
80
|
- ext/binary_protocol_accelerated.h
|
81
|
+
- ext/bytes.h
|
82
82
|
- ext/compact_protocol.h
|
83
83
|
- ext/constants.h
|
84
84
|
- ext/macros.h
|
@@ -87,6 +87,7 @@ extra_rdoc_files:
|
|
87
87
|
- ext/strlcpy.h
|
88
88
|
- ext/struct.h
|
89
89
|
- ext/extconf.rb
|
90
|
+
- lib/thrift/bytes.rb
|
90
91
|
- lib/thrift/client.rb
|
91
92
|
- lib/thrift/core_ext/fixnum.rb
|
92
93
|
- lib/thrift/core_ext.rb
|
@@ -96,6 +97,7 @@ extra_rdoc_files:
|
|
96
97
|
- lib/thrift/protocol/binary_protocol.rb
|
97
98
|
- lib/thrift/protocol/binary_protocol_accelerated.rb
|
98
99
|
- lib/thrift/protocol/compact_protocol.rb
|
100
|
+
- lib/thrift/protocol/json_protocol.rb
|
99
101
|
- lib/thrift/serializer/deserializer.rb
|
100
102
|
- lib/thrift/serializer/serializer.rb
|
101
103
|
- lib/thrift/server/base_server.rb
|
@@ -122,6 +124,7 @@ extra_rdoc_files:
|
|
122
124
|
- lib/thrift/union.rb
|
123
125
|
- lib/thrift.rb
|
124
126
|
files:
|
127
|
+
- lib/thrift/bytes.rb
|
125
128
|
- lib/thrift/client.rb
|
126
129
|
- lib/thrift/core_ext/fixnum.rb
|
127
130
|
- lib/thrift/core_ext.rb
|
@@ -131,6 +134,7 @@ files:
|
|
131
134
|
- lib/thrift/protocol/binary_protocol.rb
|
132
135
|
- lib/thrift/protocol/binary_protocol_accelerated.rb
|
133
136
|
- lib/thrift/protocol/compact_protocol.rb
|
137
|
+
- lib/thrift/protocol/json_protocol.rb
|
134
138
|
- lib/thrift/serializer/deserializer.rb
|
135
139
|
- lib/thrift/serializer/serializer.rb
|
136
140
|
- lib/thrift/server/base_server.rb
|
@@ -161,6 +165,7 @@ files:
|
|
161
165
|
- spec/binary_protocol_accelerated_spec.rb
|
162
166
|
- spec/binary_protocol_spec.rb
|
163
167
|
- spec/binary_protocol_spec_shared.rb
|
168
|
+
- spec/bytes_spec.rb
|
164
169
|
- spec/client_spec.rb
|
165
170
|
- spec/compact_protocol_spec.rb
|
166
171
|
- spec/exception_spec.rb
|
@@ -168,6 +173,7 @@ files:
|
|
168
173
|
- spec/gen-rb/thrift_spec_constants.rb
|
169
174
|
- spec/gen-rb/thrift_spec_types.rb
|
170
175
|
- spec/http_client_spec.rb
|
176
|
+
- spec/json_protocol_spec.rb
|
171
177
|
- spec/mongrel_http_server_spec.rb
|
172
178
|
- spec/nonblocking_server_spec.rb
|
173
179
|
- spec/processor_spec.rb
|
@@ -177,6 +183,7 @@ files:
|
|
177
183
|
- spec/socket_spec.rb
|
178
184
|
- spec/socket_spec_shared.rb
|
179
185
|
- spec/spec_helper.rb
|
186
|
+
- spec/struct_nested_containers_spec.rb
|
180
187
|
- spec/struct_spec.rb
|
181
188
|
- spec/ThriftSpec.thrift
|
182
189
|
- spec/types_spec.rb
|
@@ -185,6 +192,7 @@ files:
|
|
185
192
|
- CHANGELOG
|
186
193
|
- README
|
187
194
|
- ext/binary_protocol_accelerated.c
|
195
|
+
- ext/bytes.c
|
188
196
|
- ext/compact_protocol.c
|
189
197
|
- ext/memory_buffer.c
|
190
198
|
- ext/protocol.c
|
@@ -192,6 +200,7 @@ files:
|
|
192
200
|
- ext/struct.c
|
193
201
|
- ext/thrift_native.c
|
194
202
|
- ext/binary_protocol_accelerated.h
|
203
|
+
- ext/bytes.h
|
195
204
|
- ext/compact_protocol.h
|
196
205
|
- ext/constants.h
|
197
206
|
- ext/macros.h
|
@@ -200,21 +209,7 @@ files:
|
|
200
209
|
- ext/strlcpy.h
|
201
210
|
- ext/struct.h
|
202
211
|
- ext/extconf.rb
|
203
|
-
|
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
|
212
|
+
has_rdoc: true
|
218
213
|
homepage: http://thrift.apache.org
|
219
214
|
licenses:
|
220
215
|
- Apache 2.0
|
@@ -230,27 +225,23 @@ require_paths:
|
|
230
225
|
- lib
|
231
226
|
- ext
|
232
227
|
required_ruby_version: !ruby/object:Gem::Requirement
|
233
|
-
none: false
|
234
228
|
requirements:
|
235
229
|
- - ">="
|
236
230
|
- !ruby/object:Gem::Version
|
237
|
-
hash: 3
|
238
231
|
segments:
|
239
232
|
- 0
|
240
233
|
version: "0"
|
241
234
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
242
|
-
none: false
|
243
235
|
requirements:
|
244
236
|
- - ">="
|
245
237
|
- !ruby/object:Gem::Version
|
246
|
-
hash: 3
|
247
238
|
segments:
|
248
239
|
- 0
|
249
240
|
version: "0"
|
250
241
|
requirements: []
|
251
242
|
|
252
243
|
rubyforge_project: thrift
|
253
|
-
rubygems_version: 1.
|
244
|
+
rubygems_version: 1.3.6
|
254
245
|
signing_key:
|
255
246
|
specification_version: 3
|
256
247
|
summary: Ruby bindings for Apache Thrift
|
@@ -267,6 +258,7 @@ test_files:
|
|
267
258
|
- spec/binary_protocol_accelerated_spec.rb
|
268
259
|
- spec/binary_protocol_spec.rb
|
269
260
|
- spec/binary_protocol_spec_shared.rb
|
261
|
+
- spec/bytes_spec.rb
|
270
262
|
- spec/client_spec.rb
|
271
263
|
- spec/compact_protocol_spec.rb
|
272
264
|
- spec/exception_spec.rb
|
@@ -274,6 +266,7 @@ test_files:
|
|
274
266
|
- spec/gen-rb/thrift_spec_constants.rb
|
275
267
|
- spec/gen-rb/thrift_spec_types.rb
|
276
268
|
- spec/http_client_spec.rb
|
269
|
+
- spec/json_protocol_spec.rb
|
277
270
|
- spec/mongrel_http_server_spec.rb
|
278
271
|
- spec/nonblocking_server_spec.rb
|
279
272
|
- spec/processor_spec.rb
|
@@ -283,6 +276,7 @@ test_files:
|
|
283
276
|
- spec/socket_spec.rb
|
284
277
|
- spec/socket_spec_shared.rb
|
285
278
|
- spec/spec_helper.rb
|
279
|
+
- spec/struct_nested_containers_spec.rb
|
286
280
|
- spec/struct_spec.rb
|
287
281
|
- spec/ThriftSpec.thrift
|
288
282
|
- spec/types_spec.rb
|