whi-cassie 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.txt +6 -2
- data/VERSION +1 -1
- data/lib/cassie/config.rb +1 -0
- data/lib/cassie.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2075427502462684fe7e66c2bcad907c14c9d59
|
4
|
+
data.tar.gz: 4cde5df3910792c24792b59aa02df037b1275541
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ab1b02c223b3a59b021f18e59f098ddc58371d7ee5c09494f027f31865addf4b8b1525f0775fd946a590388d62cb92af66bb2fd047f32c1cff129ca45101f1c
|
7
|
+
data.tar.gz: 2faf7b37e2ed54b39f69b396eddc5a0614e7ec5b6f912d7307ad7ea4d9a67305005f04779fec3e7e884f4f800f35279aebaec3b28e1d12d12bc84151123cb831
|
data/HISTORY.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/lib/cassie/config.rb
CHANGED
@@ -56,6 +56,7 @@ class Cassie::Config
|
|
56
56
|
options[:passphrase] = "SUPPRESSED" if options.include?(:passphrase)
|
57
57
|
options[:credentials] = "SUPPRESSED" if options.include?(:credentials)
|
58
58
|
options[:auth_provider] = "SUPPRESSED" if options.include?(:auth_provider)
|
59
|
+
options[:logger] = options[:logger].class.name if options.include?(:logger)
|
59
60
|
options
|
60
61
|
end
|
61
62
|
|
data/lib/cassie.rb
CHANGED
@@ -79,8 +79,11 @@ class Cassie
|
|
79
79
|
|
80
80
|
# Open a connection to the Cassandra cluster.
|
81
81
|
def connect
|
82
|
-
|
83
|
-
|
82
|
+
start_time = Time.now
|
83
|
+
cluster_config = config.cluster
|
84
|
+
cluster_config = cluster_config.merge(:logger => logger) if logger
|
85
|
+
cluster = Cassandra.cluster(cluster_config)
|
86
|
+
logger.info("Cassie.connect with #{config.sanitized_cluster} in #{((Time.now - start_time) * 1000).round}ms") if logger
|
84
87
|
@monitor.synchronize do
|
85
88
|
@session = cluster.connect(config.default_keyspace)
|
86
89
|
@prepared_statements = {}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whi-cassie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- We Heart It
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cassandra-driver
|