Skip to content
Browse files

record v0.4.1.1 fix types in define_field_accessor

  • Loading branch information...
1 parent 038c7e1 commit 31698d38db445e99fa937467fa2e741eea5d2b75 @funny-falcon funny-falcon committed
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/tarantool/record.rb
  2. +1 −1 lib/tarantool/version.rb
View
4 lib/tarantool/record.rb
@@ -39,12 +39,12 @@ def #{name}
if Symbol === type
convert_code = case type
- when :int, :int64, :varint
+ when :int, :int64, :varint, :int16, :int8, :sint, :sint64, :sint16, :sint8
"v = v.to_i if String === v"
when :string, :bytes
""
else
- if serializer = Serializers::MAP[type]
+ if Serializers::MAP[type]
"v = Serializers::MAP[#{type.inspect}].decode(v) if String === v"
else
raise ArgumentError, "unknown field type #{type.inspect}"
View
2 lib/tarantool/version.rb
@@ -1,4 +1,4 @@
module Tarantool
VERSION = "0.4.1.3"
- RECORD_VERSION = "0.4.1"
+ RECORD_VERSION = "0.4.1.1"
end

0 comments on commit 31698d3

Please sign in to comment.
Something went wrong with that request. Please try again.