sessionm-cassandra_object 2.2.39 → 2.2.40
Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,15 @@ module CassandraObject
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
+
# remove_counter is not exposed by Cassandra gem.
|
23
|
+
# TODO: move this to Cassandra gem.
|
24
|
+
def remove_counter(key)
|
25
|
+
ActiveSupport::Notifications.instrument("remove.cassandra_object", column_family: column_family, key: key) do
|
26
|
+
parent = CassandraThrift::ColumnParent.new(:column_family => column_family)
|
27
|
+
connection.send(:client).remove_counter(key, parent, thrift_write_consistency)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
22
31
|
def delete_all
|
23
32
|
ActiveSupport::Notifications.instrument("truncate.cassandra_object", column_family: column_family) do
|
24
33
|
connection.truncate!(column_family)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sessionm-cassandra_object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.40
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-03-
|
14
|
+
date: 2012-03-22 00:00:00.000000000Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
18
|
-
requirement: &
|
18
|
+
requirement: &70318489398740 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: '3.0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *70318489398740
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: cassandra
|
29
|
-
requirement: &
|
29
|
+
requirement: &70318489398240 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ! '>='
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: 0.11.3
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *70318489398240
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: bundler
|
40
|
-
requirement: &
|
40
|
+
requirement: &70318489397780 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
@@ -45,7 +45,7 @@ dependencies:
|
|
45
45
|
version: 1.0.0
|
46
46
|
type: :development
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *70318489397780
|
49
49
|
description: Cassandra ActiveModel
|
50
50
|
email: klange@sessionm.com
|
51
51
|
executables: []
|