tarantool 0.4.3.7 → 0.4.3.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -66,7 +66,7 @@ module Tarantool
66
66
  if Exception === (result = _parse_iproto(result))
67
67
  @feed.call result
68
68
  else
69
- @feed.call @response.parse_response(result)
69
+ @feed.call @response.parse_response_for_cb(result)
70
70
  end
71
71
  end
72
72
  end
@@ -94,7 +94,7 @@ module Tarantool
94
94
  when Exception
95
95
  @feed.call result
96
96
  else
97
- @feed.call @response.parse_response(result)
97
+ @feed.call @response.parse_response_for_cb(result)
98
98
  end
99
99
  end
100
100
  end
@@ -131,7 +131,7 @@ module Tarantool
131
131
  @feed.call result
132
132
  else
133
133
  @replicas_origin.replace @replicas
134
- @feed.call @response.parse_response(result)
134
+ @feed.call @response.parse_response_for_cb(result)
135
135
  end
136
136
  end
137
137
  end
@@ -380,6 +380,9 @@ module Tarantool
380
380
  def parse_response(data)
381
381
  data
382
382
  end
383
+ def parse_response_for_cb(data)
384
+ data
385
+ end
383
386
  end
384
387
  def _ping(cb)
385
388
  _send_request(all_shards, :write, REQUEST_PING, EMPTY, WrapPing.new(cb))
@@ -28,11 +28,7 @@ module Tarantool
28
28
  cb.call(data)
29
29
  else
30
30
  if (ret = return_code(data)) == 0
31
- call_callback begin
32
- parse_response(data)
33
- rescue StandardError => e
34
- e
35
- end
31
+ call_callback parse_response_for_cb(data)
36
32
  else
37
33
  data.gsub!("\x00", "")
38
34
  cb.call CODE_TO_EXCEPTION[ret].new(ret, data)
@@ -48,6 +44,12 @@ module Tarantool
48
44
  cb.call(Exception === result || get_tuples != :first ? result : result.first)
49
45
  end
50
46
 
47
+ def parse_response_for_cb(data)
48
+ parse_response data
49
+ rescue StandardError => e
50
+ e
51
+ end
52
+
51
53
  def parse_response(data)
52
54
  return data if Exception === data
53
55
  unless get_tuples
@@ -1,4 +1,4 @@
1
1
  module Tarantool
2
- VERSION = "0.4.3.7"
2
+ VERSION = "0.4.3.8"
3
3
  RECORD_VERSION = "0.4.2.1"
4
4
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: tarantool
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.3.7
5
+ version: 0.4.3.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Andrew Rudenko