sessionm-cassandra_object 2.4.5 → 2.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,24 +74,15 @@ module CassandraObject
|
|
74
74
|
multi_get_by_expression(expression, options).values
|
75
75
|
end
|
76
76
|
|
77
|
-
# Selecting a slice of a super column
|
78
|
-
# TODO: move this to Cassandra gem.
|
77
|
+
# Selecting a slice of a super column
|
79
78
|
def get_slice(key, start, finish, opts={})
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
ActiveSupport::Notifications.instrument("get_slice.cassandra_object", column_family: column_family, key: key, start: start, finish: finish) do
|
89
|
-
{}.tap do |result|
|
90
|
-
connection.send(:client).get_slice(key, parent, predicate, opts[:consistency] || thrift_read_consistency).each do |column|
|
91
|
-
result[column.counter_super_column.name] = _columns_to_hash(column.counter_super_column.columns)
|
92
|
-
end
|
93
|
-
end
|
94
|
-
end
|
79
|
+
connection.get_slice(column_family,
|
80
|
+
key,
|
81
|
+
start,
|
82
|
+
finish,
|
83
|
+
opts[:count] || 100,
|
84
|
+
opts[:reversed] || false,
|
85
|
+
opts[:consistency] || thrift_read_consistency)
|
95
86
|
end
|
96
87
|
|
97
88
|
private
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'sessionm-cassandra_object'
|
5
|
-
s.version = '2.4.
|
5
|
+
s.version = '2.4.6'
|
6
6
|
s.description = 'Cassandra ActiveModel'
|
7
7
|
s.summary = 'Cassandra ActiveModel'
|
8
8
|
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.require_paths = ['lib']
|
20
20
|
|
21
21
|
s.add_runtime_dependency('rails', "~> 3.0.9")
|
22
|
-
s.add_runtime_dependency('sessionm-cassandra', ">= 1.0.
|
22
|
+
s.add_runtime_dependency('sessionm-cassandra', ">= 1.0.1")
|
23
23
|
|
24
24
|
s.add_development_dependency('bundler', ">= 1.0.0")
|
25
25
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 2
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 2.4.
|
8
|
+
- 6
|
9
|
+
version: 2.4.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Michael Koziarski
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2013-05-
|
19
|
+
date: 2013-05-24 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -43,8 +43,8 @@ dependencies:
|
|
43
43
|
segments:
|
44
44
|
- 1
|
45
45
|
- 0
|
46
|
-
-
|
47
|
-
version: 1.0.
|
46
|
+
- 1
|
47
|
+
version: 1.0.1
|
48
48
|
type: :runtime
|
49
49
|
version_requirements: *id002
|
50
50
|
- !ruby/object:Gem::Dependency
|