gotime-cassandra_object 2.7.10 → 2.7.11
Sign up to get free protection for your applications and to get access to all the features.
@@ -49,7 +49,7 @@ module CassandraObject
|
|
49
49
|
|
50
50
|
unless missing_keys.empty?
|
51
51
|
@target_class.multi_get(missing_keys, :quorum=>true).each do |(key, result)|
|
52
|
-
index_key = index_results.
|
52
|
+
index_key = index_results.key(key)
|
53
53
|
if result.nil?
|
54
54
|
remove(index_key)
|
55
55
|
results.delete(key)
|
@@ -80,7 +80,7 @@ module CassandraObject
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def remove(index_key)
|
83
|
-
connection.remove(@column_family, @key, @super_column, index_key, consistency: target_class.thrift_write_consistency)
|
83
|
+
connection.remove(@column_family, @key, @super_column, index_key, consistency: @target_class.thrift_write_consistency)
|
84
84
|
end
|
85
85
|
|
86
86
|
def validator(&validator)
|
@@ -1,4 +1,7 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
|
-
class CassandraObject::
|
3
|
+
class CassandraObject::Types::TimeTypeTest < CassandraObject::Types::TestCase
|
4
|
+
test 'encode' do
|
5
|
+
assert_equal '2004-12-24T01:02:03.000000Z', coder.encode(Time.utc(2004, 12, 24, 1, 2, 3))
|
6
|
+
end
|
4
7
|
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.7.
|
4
|
+
version: 2.7.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-10-14 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activemodel
|
17
|
-
requirement: &
|
17
|
+
requirement: &70296960824960 !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: *
|
25
|
+
version_requirements: *70296960824960
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: cassandra
|
28
|
-
requirement: &
|
28
|
+
requirement: &70296960823900 !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: *
|
36
|
+
version_requirements: *70296960823900
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: bundler
|
39
|
-
requirement: &
|
39
|
+
requirement: &70296960822020 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: 1.0.0
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70296960822020
|
48
48
|
description: Cassandra ActiveModel
|
49
49
|
email: gems@gotime.com
|
50
50
|
executables: []
|
@@ -136,6 +136,7 @@ files:
|
|
136
136
|
- test/types/integer_type_test.rb
|
137
137
|
- test/types/string_type_test.rb
|
138
138
|
- test/types/time_type_test.rb
|
139
|
+
- test/types/time_with_zone_type_test.rb
|
139
140
|
- test/validations_test.rb
|
140
141
|
homepage: http://github.com/gotime/cassandra_object
|
141
142
|
licenses: []
|