tarantool16 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e821a9a55bda27633670c894849201c1f0203acd
4
- data.tar.gz: ea4593037a977d64d6a0be6046a3dc31257806fa
3
+ metadata.gz: 62a5d736d466e1c713051fc111c67e3e938bf745
4
+ data.tar.gz: 29bbca98c7773046dff52f466fad62ff02126137
5
5
  SHA512:
6
- metadata.gz: 484f7c408fa1654b81e87269079eee625240327f4d712bbc515da1cb8404811f7ec4a52191063500505ba3f62f9e12dbef72162a8d35dba97bd1c454f1626388
7
- data.tar.gz: 4dc730e75618a6940994d6d40d51cdee9a8ff4090add375dddaea8e9e2f26969d5dbd8b50491440f0092c88861eeed1821191c0d3ced57ac7f67a5cf13164255
6
+ metadata.gz: a56d98dd3030cf79931a9820f8109eb0eaa89b1fceca8b73915642429409e3a597bb80c819aaf7a2eb74f366d0ed8e1dc1098d1c4037f6cbbe4ed8bb463e2630
7
+ data.tar.gz: cc7c4d07c41ad772b38a4a3cd4fb8c0ed7b533116a444cdddc5c21e2b3f2d5f6e54178ea9fa50d866126c49e963ab0f304e13958790e32ad6f2b74c1a2399b9a
@@ -82,9 +82,12 @@ module Tarantool16
82
82
  pints = pass1.unpack('L*')
83
83
  sints = scramble.unpack('L*')
84
84
  pints.size.times{|i| sints[i] ^= pints[i] }
85
+ packed = sints.pack('L*')
86
+ # tarantool waits packed as a string, so that force msgpack to pack as string
87
+ packed.force_encoding('utf-8')
85
88
  format_request(REQUEST_TYPE_AUTHENTICATE, next_sync, {
86
89
  IPROTO_USER_NAME => user,
87
- IPROTO_TUPLE => [ 'chap-sha1', sints.pack('L*') ]
90
+ IPROTO_TUPLE => [ 'chap-sha1', packed ]
88
91
  })
89
92
  end
90
93
 
@@ -7,7 +7,7 @@ module Tarantool16
7
7
 
8
8
  def initialize(host, opts = {})
9
9
  _init_common(host, opts)
10
- @nbuf = "\x00".b * 5
10
+ @nbuf = "\x00\x00\x00\x00\x00".force_encoding('BINARY')
11
11
  @reconnect_time = now_f - 1
12
12
  @socket = nil
13
13
  _connect
@@ -1,3 +1,3 @@
1
1
  module Tarantool16
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/tarantool16.gemspec CHANGED
@@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.7"
22
22
  spec.add_development_dependency "rake", "~> 10.0"
23
23
 
24
- spec.add_dependency "msgpack"
24
+ spec.add_dependency "msgpack", ">= 0.5.9"
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tarantool16
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sokolov Yura aka funny_falcon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-06 00:00:00.000000000 Z
11
+ date: 2015-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 0.5.9
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 0.5.9
55
55
  description: adapter for Tarantool 1.6
56
56
  email:
57
57
  - funny.falcon@gmail.com
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  requirements: []
99
99
  rubyforge_project:
100
- rubygems_version: 2.4.4
100
+ rubygems_version: 2.4.5
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: adapter for Tarantool 1.6