gotime-cassandra_object 4.8.0 → 4.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 73a7bc097397acf47da59d5155684b477fc110ca
4
+ data.tar.gz: 5bcdfd86ce19b9b7505b0c0a218bd4e85eee0fd8
5
+ SHA512:
6
+ metadata.gz: 7c9c1866ae256eef8b34f383e406f954a8fad21c112cacafbbf47caaf5a2dfdc3219cb91bde2600bb1a9b6cf2b16a58a000393ff06588bf138c2947ca65dc1b0
7
+ data.tar.gz: e2cc196b1636fda11f5dba440cad9d96a07c1a5b8d2ea57a3be92c6cb4f868c1262a294743bc10f4ca599295281dc46d51ac4068cd4ab64987cd292531263923
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'gotime-cassandra_object'
5
- s.version = '4.8.0'
5
+ s.version = '4.8.1'
6
6
  s.description = 'Cassandra ActiveModel'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
  s.authors = ["Michael Koziarski", "gotime"]
@@ -25,7 +25,8 @@ module CassandraObject
25
25
  end
26
26
 
27
27
  def execute_cql(cql_string, *bind_vars)
28
- statement = CassandraCQL::Statement.sanitize(cql_string, bind_vars)
28
+ raw_statement = CassandraCQL::Statement.sanitize(cql_string, bind_vars)
29
+ statement = raw_statement.force_encoding(Encoding::UTF_8)
29
30
  ActiveSupport::Notifications.instrument("cql.cassandra_object", cql: statement) do
30
31
  cql.execute statement
31
32
  end
@@ -1,3 +1,6 @@
1
+ #!/bin/env ruby
2
+ # encoding: utf-8
3
+
1
4
  require 'test_helper'
2
5
 
3
6
  class CassandraObject::PersistenceTest < CassandraObject::TestCase
@@ -56,6 +59,15 @@ class CassandraObject::PersistenceTest < CassandraObject::TestCase
56
59
  assert_equal 'foo', Issue.find(issue.id).description
57
60
  end
58
61
 
62
+ test 'read and write UTF' do
63
+ utf = "\ucba1\ucba2\ucba3 ƒ´∑ƒ©√åµ≈√ˆअनुच्छेद´µøµø¬≤ 汉语漢語".force_encoding(Encoding::UTF_8)
64
+
65
+ issue = Issue.create { |i| i.description = utf }
66
+ assert_equal utf, issue.description
67
+ reloaded = Issue.find(issue.id).description
68
+ assert_equal utf, reloaded
69
+ end
70
+
59
71
  test 'save' do
60
72
  issue = Issue.new
61
73
  issue.save
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gotime-cassandra_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.0
5
- prerelease:
4
+ version: 4.8.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Michael Koziarski
@@ -10,72 +9,64 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-03-19 00:00:00.000000000 Z
12
+ date: 2013-04-01 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: activemodel
17
- prerelease: false
18
16
  requirement: !ruby/object:Gem::Requirement
19
17
  requirements:
20
- - - ! '>='
18
+ - - '>='
21
19
  - !ruby/object:Gem::Version
22
20
  version: '3.0'
23
- none: false
24
21
  type: :runtime
22
+ prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
24
  requirements:
27
- - - ! '>='
25
+ - - '>='
28
26
  - !ruby/object:Gem::Version
29
27
  version: '3.0'
30
- none: false
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: cassandra-cql
33
- prerelease: false
34
30
  requirement: !ruby/object:Gem::Requirement
35
31
  requirements:
36
- - - ! '>='
32
+ - - '>='
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
- none: false
40
35
  type: :runtime
36
+ prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
38
  requirements:
43
- - - ! '>='
39
+ - - '>='
44
40
  - !ruby/object:Gem::Version
45
41
  version: '0'
46
- none: false
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: thrift_client
49
- prerelease: false
50
44
  requirement: !ruby/object:Gem::Requirement
51
45
  requirements:
52
46
  - - ~>
53
47
  - !ruby/object:Gem::Version
54
48
  version: 0.9.0
55
- none: false
56
49
  type: :runtime
50
+ prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
52
  requirements:
59
53
  - - ~>
60
54
  - !ruby/object:Gem::Version
61
55
  version: 0.9.0
62
- none: false
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: bundler
65
- prerelease: false
66
58
  requirement: !ruby/object:Gem::Requirement
67
59
  requirements:
68
- - - ! '>='
60
+ - - '>='
69
61
  - !ruby/object:Gem::Version
70
62
  version: '0'
71
- none: false
72
63
  type: :development
64
+ prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
66
  requirements:
75
- - - ! '>='
67
+ - - '>='
76
68
  - !ruby/object:Gem::Version
77
69
  version: '0'
78
- none: false
79
70
  description: Cassandra ActiveModel
80
71
  email: gems@gotime.com
81
72
  executables: []
@@ -179,26 +170,25 @@ files:
179
170
  - test/unit/validations_test.rb
180
171
  homepage: http://github.com/data-axle/cassandra_object
181
172
  licenses: []
173
+ metadata: {}
182
174
  post_install_message:
183
175
  rdoc_options: []
184
176
  require_paths:
185
177
  - lib
186
178
  required_ruby_version: !ruby/object:Gem::Requirement
187
179
  requirements:
188
- - - ! '>='
180
+ - - '>='
189
181
  - !ruby/object:Gem::Version
190
182
  version: 1.9.2
191
- none: false
192
183
  required_rubygems_version: !ruby/object:Gem::Requirement
193
184
  requirements:
194
- - - ! '>='
185
+ - - '>='
195
186
  - !ruby/object:Gem::Version
196
187
  version: 1.3.5
197
- none: false
198
188
  requirements: []
199
189
  rubyforge_project:
200
- rubygems_version: 1.8.24
190
+ rubygems_version: 2.0.3
201
191
  signing_key:
202
- specification_version: 3
192
+ specification_version: 4
203
193
  summary: Cassandra ActiveModel
204
194
  test_files: []