gotime-cassandra_object 2.10.6 → 2.10.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'gotime-cassandra_object'
5
- s.version = '2.10.6'
5
+ s.version = '2.10.7'
6
6
  s.description = 'Cassandra ActiveModel'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
 
@@ -7,6 +7,7 @@ module CassandraObject
7
7
  end
8
8
 
9
9
  def wrap(record, name, value)
10
+ value = value.to_s
10
11
  (value.frozen? ? value.dup : value).force_encoding('UTF-8')
11
12
  end
12
13
  end
@@ -22,4 +22,11 @@ class CassandraObject::Types::StringTypeTest < CassandraObject::Types::TestCase
22
22
  coder.wrap(nil, nil, '123'.force_encoding('ASCII-8BIT').freeze).encoding
23
23
  )
24
24
  end
25
+
26
+ test 'wrap when not a string' do
27
+ assert_equal(
28
+ "123",
29
+ coder.wrap(nil, nil, 123)
30
+ )
31
+ end
25
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gotime-cassandra_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.6
4
+ version: 2.10.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2012-01-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
17
- requirement: &70336960174780 !ruby/object:Gem::Requirement
17
+ requirement: &70127224446020 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '3.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70336960174780
25
+ version_requirements: *70127224446020
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: cassandra
28
- requirement: &70336960174220 !ruby/object:Gem::Requirement
28
+ requirement: &70127224445540 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 0.12.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70336960174220
36
+ version_requirements: *70127224445540
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: bundler
39
- requirement: &70336960173740 !ruby/object:Gem::Requirement
39
+ requirement: &70127224444920 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *70336960173740
47
+ version_requirements: *70127224444920
48
48
  description: Cassandra ActiveModel
49
49
  email: gems@gotime.com
50
50
  executables: []