Permalink
Browse files

v0.4.3.2 - dependency on bin_utils 0.0.3

  • Loading branch information...
funny-falcon committed Aug 8, 2012
1 parent 0c72a6d commit 679b37ae1c0ef4f66bf51a5cd2cf7a0480289f7d
Showing with 8 additions and 13 deletions.
  1. +5 −10 lib/tarantool/request.rb
  2. +1 −1 lib/tarantool/version.rb
  3. +2 −2 tarantool.gemspec
View
@@ -63,8 +63,7 @@ def _send_request(shard_numbers, read_write, cb)
def _select(space_no, index_no, offset, limit, keys, cb, fields, index_fields, shard_nums, translators = [])
get_tuples = limit == :first ? (limit = 1; :first) : :all
keys = [*keys]
- body = ''.force_encoding(BINARY)
- ::BinUtils.append_int32_le!(body, space_no, index_no, offset, limit, keys.size)
+ body = ::BinUtils.append_int32_le!(nil, space_no, index_no, offset, limit, keys.size)
for key in keys
pack_tuple(body, key, index_fields, index_no)
@@ -193,8 +192,7 @@ def _insert(space_no, flags, tuple, fields, cb, ret_tuple, shard_nums, in_any_sh
fields = [*fields]
tuple = [*tuple]
- body = ''.force_encoding(BINARY)
- ::BinUtils.append_int32_le!(body, space_no, flags)
+ body = ::BinUtils.append_int32_le!(nil, space_no, flags)
pack_tuple(body, tuple, fields, :space)
_modify_request(REQUEST_INSERT, body, fields, ret_tuple, cb, shard_nums,
@@ -208,8 +206,7 @@ def _update(space_no, pk, operations, fields, pk_fields, cb, ret_tuple, shard_nu
operations = [operations]
end
- body = ''.force_encoding(BINARY)
- ::BinUtils.append_int32_le!(body, space_no, flags)
+ body = ::BinUtils.append_int32_le!(nil, space_no, flags)
pack_tuple(body, pk, pk_fields, 0)
::BinUtils.append_int32_le!(body, operations.size)
@@ -311,8 +308,7 @@ def _pack_operations(body, operations, fields)
def _delete(space_no, pk, fields, pk_fields, cb, ret_tuple, shard_nums, translators = [])
flags = ret_tuple ? BOX_RETURN_TUPLE : 0
- body = ''.force_encoding(BINARY)
- ::BinUtils.append_int32_le!(body, space_no, flags)
+ body = ::BinUtils.append_int32_le!(nil, space_no, flags)
pack_tuple(body, pk, pk_fields, 0)
_modify_request(REQUEST_DELETE, body, fields, ret_tuple, cb, shard_nums, :write, translators)
@@ -355,8 +351,7 @@ def _call(func_name, values, cb, opts={})
return_types = [*opts[:returns] || TYPES_AUTO]
func_name = func_name.to_s
- body = ''.force_encoding(BINARY)
- ::BinUtils.append_int32_le!(body, flags)
+ body = ::BinUtils.append_int32_le!(nil, flags)
::BinUtils.append_bersize_string!(body, func_name)
pack_tuple(body, values, value_types, :func_call)
View
@@ -1,4 +1,4 @@
module Tarantool
- VERSION = "0.4.3.1"
+ VERSION = "0.4.3.2"
RECORD_VERSION = "0.4.1.2"
end
View
@@ -22,8 +22,8 @@ Gem::Specification.new do |gem|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
- gem.add_dependency "iproto", [">= 0.3.6"]
+ gem.add_dependency "iproto", [">= 0.3.8"]
gem.add_dependency "murmurhash3", [">= 0.1.1"]
gem.add_dependency "sumbur", [">= 0.0.2"]
- gem.add_dependency "bin_utils", [">= 0.0.2"]
+ gem.add_dependency "bin_utils", [">= 0.0.3"]
end

0 comments on commit 679b37a

Please sign in to comment.