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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03ff68291018701bf3bbd15e8dd2d018f4ef1b65
4
- data.tar.gz: 4924128158a74937bf8a307f4208417eec9e2ce0
3
+ metadata.gz: b2075427502462684fe7e66c2bcad907c14c9d59
4
+ data.tar.gz: 4cde5df3910792c24792b59aa02df037b1275541
5
5
  SHA512:
6
- metadata.gz: e76d10e1818452fbcea764a54cfdb67bdfa76ca95743264abb3e8e195fa180af7f8cbd7993042544522aa629ef4f7dff3318230f68a28e623d50b77a13ccc95f
7
- data.tar.gz: faec19ce6868879cf5c9e8d85ddacfdb8f394d466d314b666735a5b65c3d863ae9eea5be3e91deb96b92d9458a04dd3c608870e611c7e4a95e37d33b52aecbda
6
+ metadata.gz: 0ab1b02c223b3a59b021f18e59f098ddc58371d7ee5c09494f027f31865addf4b8b1525f0775fd946a590388d62cb92af66bb2fd047f32c1cff129ca45101f1c
7
+ data.tar.gz: 2faf7b37e2ed54b39f69b396eddc5a0614e7ec5b6f912d7307ad7ea4d9a67305005f04779fec3e7e884f4f800f35279aebaec3b28e1d12d12bc84151123cb831
data/HISTORY.txt CHANGED
@@ -1,7 +1,11 @@
1
- 1.0.0
1
+ 1.0.2
2
2
 
3
- Intial Release
3
+ Set cluster logger on the Cassandra cluster if not already set.
4
4
 
5
5
  1.0.1
6
6
 
7
7
  Allow finding the offset to the row from a range.
8
+
9
+ 1.0.0
10
+
11
+ Initial Release
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
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
- cluster = Cassandra.cluster(config.cluster)
83
- logger.info("Cassie.connect with #{config.sanitized_cluster}") if logger
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.1
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-01-20 00:00:00.000000000 Z
12
+ date: 2016-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cassandra-driver