quandl_cassandra 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -26,21 +26,20 @@ module Quandl::Cassandra::Base::Connection
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def connection
|
29
|
-
|
29
|
+
@@connection ||= establish_connection
|
30
30
|
end
|
31
31
|
|
32
32
|
def consistency
|
33
33
|
Quandl::Cassandra.configuration.consistency
|
34
34
|
end
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
def connect
|
36
|
+
def establish_connection
|
39
37
|
c = Cql::Client.connect(
|
40
38
|
hosts: Quandl::Cassandra.configuration.hosts,
|
41
39
|
consistency: Quandl::Cassandra.configuration.consistency )
|
42
40
|
# switch keyspace
|
43
41
|
c.use( Quandl::Cassandra.configuration.keyspace )
|
42
|
+
@@connection = c
|
44
43
|
c
|
45
44
|
end
|
46
45
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quandl_cassandra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-11-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|