tarantool 0.4.3.1 → 0.4.3.2

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.
@@ -63,8 +63,7 @@ module Tarantool
63
63
  def _select(space_no, index_no, offset, limit, keys, cb, fields, index_fields, shard_nums, translators = [])
64
64
  get_tuples = limit == :first ? (limit = 1; :first) : :all
65
65
  keys = [*keys]
66
- body = ''.force_encoding(BINARY)
67
- ::BinUtils.append_int32_le!(body, space_no, index_no, offset, limit, keys.size)
66
+ body = ::BinUtils.append_int32_le!(nil, space_no, index_no, offset, limit, keys.size)
68
67
 
69
68
  for key in keys
70
69
  pack_tuple(body, key, index_fields, index_no)
@@ -193,8 +192,7 @@ module Tarantool
193
192
  fields = [*fields]
194
193
 
195
194
  tuple = [*tuple]
196
- body = ''.force_encoding(BINARY)
197
- ::BinUtils.append_int32_le!(body, space_no, flags)
195
+ body = ::BinUtils.append_int32_le!(nil, space_no, flags)
198
196
  pack_tuple(body, tuple, fields, :space)
199
197
 
200
198
  _modify_request(REQUEST_INSERT, body, fields, ret_tuple, cb, shard_nums,
@@ -208,8 +206,7 @@ module Tarantool
208
206
  operations = [operations]
209
207
  end
210
208
 
211
- body = ''.force_encoding(BINARY)
212
- ::BinUtils.append_int32_le!(body, space_no, flags)
209
+ body = ::BinUtils.append_int32_le!(nil, space_no, flags)
213
210
  pack_tuple(body, pk, pk_fields, 0)
214
211
  ::BinUtils.append_int32_le!(body, operations.size)
215
212
 
@@ -311,8 +308,7 @@ module Tarantool
311
308
  def _delete(space_no, pk, fields, pk_fields, cb, ret_tuple, shard_nums, translators = [])
312
309
  flags = ret_tuple ? BOX_RETURN_TUPLE : 0
313
310
 
314
- body = ''.force_encoding(BINARY)
315
- ::BinUtils.append_int32_le!(body, space_no, flags)
311
+ body = ::BinUtils.append_int32_le!(nil, space_no, flags)
316
312
  pack_tuple(body, pk, pk_fields, 0)
317
313
 
318
314
  _modify_request(REQUEST_DELETE, body, fields, ret_tuple, cb, shard_nums, :write, translators)
@@ -355,8 +351,7 @@ module Tarantool
355
351
  return_types = [*opts[:returns] || TYPES_AUTO]
356
352
 
357
353
  func_name = func_name.to_s
358
- body = ''.force_encoding(BINARY)
359
- ::BinUtils.append_int32_le!(body, flags)
354
+ body = ::BinUtils.append_int32_le!(nil, flags)
360
355
  ::BinUtils.append_bersize_string!(body, func_name)
361
356
  pack_tuple(body, values, value_types, :func_call)
362
357
 
@@ -1,4 +1,4 @@
1
1
  module Tarantool
2
- VERSION = "0.4.3.1"
2
+ VERSION = "0.4.3.2"
3
3
  RECORD_VERSION = "0.4.1.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tarantool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3.1
4
+ version: 0.4.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-07 00:00:00.000000000 Z
13
+ date: 2012-08-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: iproto
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.3.6
22
+ version: 0.3.8
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - ! '>='
29
29
  - !ruby/object:Gem::Version
30
- version: 0.3.6
30
+ version: 0.3.8
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: murmurhash3
33
33
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +67,7 @@ dependencies:
67
67
  requirements:
68
68
  - - ! '>='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.0.2
70
+ version: 0.0.3
71
71
  type: :runtime
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
@@ -75,7 +75,7 @@ dependencies:
75
75
  requirements:
76
76
  - - ! '>='
77
77
  - !ruby/object:Gem::Version
78
- version: 0.0.2
78
+ version: 0.0.3
79
79
  description: Tarantool KV-storage client.
80
80
  email:
81
81
  - ceo@prepor.ru