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: 32924130490af3ac836dfc59d0c17814e0879928
4
- data.tar.gz: 58f04eefe80bd07d77082945521c48acf43944c5
3
+ metadata.gz: 7e6411a0d7497fefb496558862cb496f5b93b195
4
+ data.tar.gz: 8d912bcda3fd2d3ce6d7c221b93fd45658911001
5
5
  SHA512:
6
- metadata.gz: c382c6fd5f4c0f4f31c7954c76f1c015c19c4630e56346478d2a41a2667ea6e578164292e3da233166e15657ec610d09400175727d43a595997c60d545388732
7
- data.tar.gz: 63d6cb50a2bf1951a02ffb3e80213c0faf35ed289998e473dcc7f6316aa216220f5181c0bc4dc53ada42b5c1a785f4b19c85339b347bed7d216c059d30758acc
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,
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'sessionm-cassandra_object'
5
- s.version = '4.0.20'
5
+ s.version = '4.0.21'
6
6
  s.description = 'Cassandra ActiveModel'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
 
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.20
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-10 00:00:00.000000000 Z
12
+ date: 2017-03-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Cassandra ActiveModel
15
15
  email: doug@sessionm.com