tarantool-record 0.4.0 → 0.4.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/tarantool/record.rb +2 -2
  2. metadata +4 -4
@@ -39,12 +39,12 @@ module Tarantool
39
39
 
40
40
  if Symbol === type
41
41
  convert_code = case type
42
- when :int, :int64, :varint
42
+ when :int, :int64, :varint, :int16, :int8, :sint, :sint64, :sint16, :sint8
43
43
  "v = v.to_i if String === v"
44
44
  when :string, :bytes
45
45
  ""
46
46
  else
47
- if serializer = Serializers::MAP[type]
47
+ if Serializers::MAP[type]
48
48
  "v = Serializers::MAP[#{type.inspect}].decode(v) if String === v"
49
49
  else
50
50
  raise ArgumentError, "unknown field type #{type.inspect}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tarantool-record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1.1
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-07-18 00:00:00.000000000 Z
13
+ date: 2012-07-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: tarantool
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 0.4.0
22
+ version: 0.4.1.3
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.4.0
30
+ version: 0.4.1.3
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: active_model
33
33
  requirement: !ruby/object:Gem::Requirement