sessionm-cassandra_object 4.0.20 → 4.0.21
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e6411a0d7497fefb496558862cb496f5b93b195
|
4
|
+
data.tar.gz: 8d912bcda3fd2d3ce6d7c221b93fd45658911001
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fabe4712b9f7bb4b7e0d20b2391712d1dc853d25a3ad8de2780aca83ebc787cd36caadb0012b50e56a28f48f8917fe46861e30def68d53fcc8681557472d1fc2
|
7
|
+
data.tar.gz: d2524d3ba3915594147c974ae6bd1352dcc90389a5ec96940b0d2dbd5bbf2a6ed18d35deb22dd42f16146ad35420946fdbcdd9ad3468d17252fe4e4b81154685
|
@@ -36,6 +36,17 @@ module CassandraObject
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def cluster_config
|
39
|
+
{
|
40
|
+
:hosts => config[:servers].map { |server| server.sub /:\d+/, '' },
|
41
|
+
:port => config[:port] || 9042,
|
42
|
+
:connect_timeout => config[:thrift][:connect_timeout] || 10,
|
43
|
+
:timeout => config[:thrift][:timeout] || 10,
|
44
|
+
:logger => config[:logger] || (defined?(Rails) && Rails.logger) || Logger.new(STDOUT),
|
45
|
+
:consistency => (config[:consistency] || {})[:write_default].try(:to_sym) || :one,
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
def cluster_config_new
|
39
50
|
config.slice(*CLUSTER_CONFIG_OPTIONS).reverse_merge(
|
40
51
|
:hosts => config[:servers].map { |server| server.sub /:\d+/, '' },
|
41
52
|
:port => 9042,
|
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: 4.0.
|
4
|
+
version: 4.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Doug Youch
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-03-
|
12
|
+
date: 2017-03-13 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Cassandra ActiveModel
|
15
15
|
email: doug@sessionm.com
|