upfluence-thrift 1.0.8 → 1.0.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8495ef9d7e24c6ab987916523fc8abd9304cb6a8
4
- data.tar.gz: 4d9384586735daf6034ca4e7bb349f0953e7903f
3
+ metadata.gz: cb809da1e96c898170195f412187cefc6ed4839c
4
+ data.tar.gz: 3da420b756cbc7ed4c746947f4334587babd442c
5
5
  SHA512:
6
- metadata.gz: 8abbcd634debcf4a7674eb559b153f8f1b81640e5f74bc512c3a549c68aef4a0b19a53a6dc3a68612093db697e4fe7721e181af64c7458b01bfdcf50655d8c9b
7
- data.tar.gz: aee85c435519261c4acfb18d890b46a8914487e85c1f84c8db2be12225d578840477527c94c5c072f82f6f8166cae5ebc39156a492f68ec01bd2de64574dcbb3
6
+ metadata.gz: 10e05d83d2047f12596a6f7ccce37bebf0b2a4e1b88f36e429f8edb7bd6b1620043a5da02d643343d8f62eab88020ddbf3b6eee9843802482276560b3636b046
7
+ data.tar.gz: 9fc8ce7980ee08ec603e5995c0d30ddc3398e6c40dc6f164750077f50af344f8ebc7a6c50aa1fe7d0716400049e592f67c9803998ab86b06d08bb915df870d7b
@@ -40,7 +40,15 @@ module Thrift
40
40
  end
41
41
 
42
42
  def open?; true end
43
- def read(sz); @inbuf.read sz end
43
+
44
+ def read(sz)
45
+ res = @inbuf.read(sz)
46
+
47
+ raise TransportException.new(TransportException::END_OF_FILE) if res.nil?
48
+
49
+ res
50
+ end
51
+
44
52
  def write(buf); @outbuf << Bytes.force_binary_encoding(buf) end
45
53
 
46
54
  def flush
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upfluence-thrift
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thrift Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-07 00:00:00.000000000 Z
11
+ date: 2017-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -116,66 +116,66 @@ extensions:
116
116
  - ext/extconf.rb
117
117
  extra_rdoc_files:
118
118
  - README.md
119
- - ext/binary_protocol_accelerated.c
119
+ - ext/strlcpy.c
120
120
  - ext/bytes.c
121
+ - ext/binary_protocol_accelerated.c
121
122
  - ext/compact_protocol.c
122
123
  - ext/memory_buffer.c
123
124
  - ext/protocol.c
124
- - ext/strlcpy.c
125
- - ext/struct.c
126
125
  - ext/thrift_native.c
127
- - ext/binary_protocol_accelerated.h
128
- - ext/bytes.h
129
- - ext/compact_protocol.h
126
+ - ext/struct.c
127
+ - ext/protocol.h
128
+ - ext/struct.h
130
129
  - ext/constants.h
131
130
  - ext/macros.h
132
- - ext/memory_buffer.h
133
- - ext/protocol.h
131
+ - ext/bytes.h
134
132
  - ext/strlcpy.h
135
- - ext/struct.h
133
+ - ext/compact_protocol.h
134
+ - ext/binary_protocol_accelerated.h
135
+ - ext/memory_buffer.h
136
136
  - ext/extconf.rb
137
- - lib/thrift/bytes.rb
138
- - lib/thrift/client.rb
139
- - lib/thrift/core_ext/fixnum.rb
137
+ - lib/thrift.rb
140
138
  - lib/thrift/core_ext.rb
141
- - lib/thrift/exceptions.rb
142
- - lib/thrift/metrics.rb
143
- - lib/thrift/multiplexed_processor.rb
144
- - lib/thrift/processor.rb
145
- - lib/thrift/protocol/base_protocol.rb
146
- - lib/thrift/protocol/binary_protocol.rb
147
- - lib/thrift/protocol/binary_protocol_accelerated.rb
148
- - lib/thrift/protocol/compact_protocol.rb
149
- - lib/thrift/protocol/json_protocol.rb
150
- - lib/thrift/protocol/multiplexed_protocol.rb
151
- - lib/thrift/protocol/protocol_decorator.rb
152
- - lib/thrift/serializer/deserializer.rb
153
- - lib/thrift/serializer/serializer.rb
154
- - lib/thrift/server/base_server.rb
155
- - lib/thrift/server/mongrel_http_server.rb
156
- - lib/thrift/server/nonblocking_server.rb
157
- - lib/thrift/server/rack_application.rb
158
- - lib/thrift/server/simple_server.rb
159
- - lib/thrift/server/thin_http_server.rb
160
- - lib/thrift/server/thread_pool_server.rb
161
- - lib/thrift/server/threaded_server.rb
162
- - lib/thrift/struct.rb
163
139
  - lib/thrift/struct_union.rb
164
- - lib/thrift/thrift_native.rb
140
+ - lib/thrift/struct.rb
141
+ - lib/thrift/union.rb
142
+ - lib/thrift/serializer/serializer.rb
143
+ - lib/thrift/serializer/deserializer.rb
165
144
  - lib/thrift/transport/base_server_transport.rb
166
- - lib/thrift/transport/base_transport.rb
167
- - lib/thrift/transport/buffered_transport.rb
168
145
  - lib/thrift/transport/framed_transport.rb
169
- - lib/thrift/transport/http_client_transport.rb
170
- - lib/thrift/transport/io_stream_transport.rb
171
- - lib/thrift/transport/memory_buffer_transport.rb
172
- - lib/thrift/transport/server_socket.rb
173
146
  - lib/thrift/transport/socket.rb
174
- - lib/thrift/transport/unix_server_socket.rb
147
+ - lib/thrift/transport/base_transport.rb
148
+ - lib/thrift/transport/server_socket.rb
175
149
  - lib/thrift/transport/unix_socket.rb
150
+ - lib/thrift/transport/memory_buffer_transport.rb
151
+ - lib/thrift/transport/io_stream_transport.rb
152
+ - lib/thrift/transport/buffered_transport.rb
153
+ - lib/thrift/transport/unix_server_socket.rb
154
+ - lib/thrift/transport/http_client_transport.rb
155
+ - lib/thrift/bytes.rb
156
+ - lib/thrift/core_ext/fixnum.rb
157
+ - lib/thrift/multiplexed_processor.rb
158
+ - lib/thrift/thrift_native.rb
159
+ - lib/thrift/exceptions.rb
160
+ - lib/thrift/server/threaded_server.rb
161
+ - lib/thrift/server/rack_application.rb
162
+ - lib/thrift/server/mongrel_http_server.rb
163
+ - lib/thrift/server/thread_pool_server.rb
164
+ - lib/thrift/server/simple_server.rb
165
+ - lib/thrift/server/nonblocking_server.rb
166
+ - lib/thrift/server/thin_http_server.rb
167
+ - lib/thrift/server/base_server.rb
168
+ - lib/thrift/protocol/binary_protocol_accelerated.rb
169
+ - lib/thrift/protocol/base_protocol.rb
170
+ - lib/thrift/protocol/protocol_decorator.rb
171
+ - lib/thrift/protocol/json_protocol.rb
172
+ - lib/thrift/protocol/multiplexed_protocol.rb
173
+ - lib/thrift/protocol/binary_protocol.rb
174
+ - lib/thrift/protocol/compact_protocol.rb
175
+ - lib/thrift/processor.rb
176
176
  - lib/thrift/types.rb
177
- - lib/thrift/union.rb
178
- - lib/thrift.rb
177
+ - lib/thrift/client.rb
178
+ - lib/thrift/metrics.rb
179
179
  files:
180
180
  - README.md
181
181
  - benchmark/Benchmark.thrift
@@ -339,68 +339,68 @@ summary: Ruby bindings for Apache Thrift
339
339
  test_files:
340
340
  - test/debug_proto/gen-rb/debug_proto_test_constants.rb
341
341
  - test/debug_proto/gen-rb/debug_proto_test_types.rb
342
- - test/debug_proto/gen-rb/empty_service.rb
342
+ - test/debug_proto/gen-rb/service_for_exception_with_a_map.rb
343
343
  - test/debug_proto/gen-rb/inherited.rb
344
344
  - test/debug_proto/gen-rb/reverse_order_service.rb
345
- - test/debug_proto/gen-rb/service_for_exception_with_a_map.rb
345
+ - test/debug_proto/gen-rb/empty_service.rb
346
346
  - test/debug_proto/gen-rb/srv.rb
347
+ - spec/ThriftSpec.thrift
348
+ - spec/struct_nested_containers_spec.rb
349
+ - spec/http_client_spec.rb
350
+ - spec/thin_http_server_spec.rb
351
+ - spec/spec_helper.rb
352
+ - spec/rack_application_spec.rb
353
+ - spec/compact_protocol_spec.rb
347
354
  - spec/base_protocol_spec.rb
348
- - spec/base_transport_spec.rb
355
+ - spec/client_spec.rb
356
+ - spec/server_spec.rb
357
+ - spec/server_socket_spec.rb
358
+ - spec/bytes_spec.rb
349
359
  - spec/BaseService.thrift
350
- - spec/binary_protocol_accelerated_spec.rb
360
+ - spec/socket_spec.rb
361
+ - spec/json_protocol_spec.rb
362
+ - spec/Referenced.thrift
351
363
  - spec/binary_protocol_spec.rb
352
- - spec/binary_protocol_spec_shared.rb
353
- - spec/bytes_spec.rb
354
- - spec/client_spec.rb
355
- - spec/compact_protocol_spec.rb
356
- - spec/exception_spec.rb
364
+ - spec/binary_protocol_accelerated_spec.rb
365
+ - spec/unix_socket_spec.rb
357
366
  - spec/ExtendedService.thrift
358
- - spec/flat_spec.rb
359
- - spec/gen-rb/base/base_service.rb
360
- - spec/gen-rb/base/base_service_constants.rb
361
- - spec/gen-rb/base/base_service_types.rb
362
- - spec/gen-rb/extended/extended_service.rb
363
- - spec/gen-rb/extended/extended_service_constants.rb
364
- - spec/gen-rb/extended/extended_service_types.rb
367
+ - spec/types_spec.rb
368
+ - spec/gen-rb/flat/thrift_namespaced_spec_constants.rb
365
369
  - spec/gen-rb/flat/namespaced_nonblocking_service.rb
366
370
  - spec/gen-rb/flat/referenced_constants.rb
367
371
  - spec/gen-rb/flat/referenced_types.rb
368
- - spec/gen-rb/flat/thrift_namespaced_spec_constants.rb
369
372
  - spec/gen-rb/flat/thrift_namespaced_spec_types.rb
370
- - spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb
371
- - spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_constants.rb
372
- - spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_types.rb
373
- - spec/gen-rb/nonblocking_service.rb
374
373
  - spec/gen-rb/other_namespace/referenced_constants.rb
375
374
  - spec/gen-rb/other_namespace/referenced_types.rb
375
+ - spec/gen-rb/extended/extended_service.rb
376
+ - spec/gen-rb/extended/extended_service_types.rb
377
+ - spec/gen-rb/extended/extended_service_constants.rb
376
378
  - spec/gen-rb/thrift_spec_constants.rb
379
+ - spec/gen-rb/nonblocking_service.rb
377
380
  - spec/gen-rb/thrift_spec_types.rb
378
- - spec/http_client_spec.rb
379
- - spec/json_protocol_spec.rb
381
+ - spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_constants.rb
382
+ - spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb
383
+ - spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_types.rb
384
+ - spec/gen-rb/base/base_service.rb
385
+ - spec/gen-rb/base/base_service_constants.rb
386
+ - spec/gen-rb/base/base_service_types.rb
387
+ - spec/exception_spec.rb
388
+ - spec/ThriftNamespacedSpec.thrift
389
+ - spec/struct_spec.rb
390
+ - spec/union_spec.rb
380
391
  - spec/namespaced_spec.rb
381
- - spec/nonblocking_server_spec.rb
382
- - spec/processor_spec.rb
383
- - spec/rack_application_spec.rb
384
- - spec/Referenced.thrift
385
392
  - spec/serializer_spec.rb
386
- - spec/server_socket_spec.rb
387
- - spec/server_spec.rb
388
- - spec/socket_spec.rb
389
393
  - spec/socket_spec_shared.rb
390
- - spec/spec_helper.rb
391
- - spec/struct_nested_containers_spec.rb
392
- - spec/struct_spec.rb
393
- - spec/thin_http_server_spec.rb
394
- - spec/ThriftNamespacedSpec.thrift
395
- - spec/ThriftSpec.thrift
396
- - spec/types_spec.rb
397
- - spec/union_spec.rb
398
- - spec/unix_socket_spec.rb
399
- - benchmark/benchmark.rb
394
+ - spec/binary_protocol_spec_shared.rb
395
+ - spec/processor_spec.rb
396
+ - spec/flat_spec.rb
397
+ - spec/base_transport_spec.rb
398
+ - spec/nonblocking_server_spec.rb
400
399
  - benchmark/Benchmark.thrift
401
- - benchmark/client.rb
402
- - benchmark/gen-rb/benchmark_constants.rb
403
400
  - benchmark/gen-rb/benchmark_service.rb
401
+ - benchmark/gen-rb/benchmark_constants.rb
404
402
  - benchmark/gen-rb/benchmark_types.rb
405
- - benchmark/server.rb
403
+ - benchmark/client.rb
404
+ - benchmark/benchmark.rb
406
405
  - benchmark/thin_server.rb
406
+ - benchmark/server.rb