cassandra-cql 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -0
- data/lib/cassandra-cql/database.rb +6 -1
- data/lib/cassandra-cql/version.rb +1 -1
- metadata +2 -2
data/.travis.yml
CHANGED
@@ -46,11 +46,16 @@ module CassandraCQL
|
|
46
46
|
|
47
47
|
def connect!
|
48
48
|
@connection = ThriftClient.new(CassandraCQL::Thrift::Client, @servers, @thrift_client_options)
|
49
|
+
|
50
|
+
if @options[:username] and @options[:password]
|
51
|
+
login!(@options[:username], @options[:password])
|
52
|
+
end
|
53
|
+
|
49
54
|
obj = self
|
50
55
|
@connection.add_callback(:post_connect) do
|
51
56
|
@connection.set_cql_version(@cql_version) if @cql_version
|
52
|
-
execute("USE #{@keyspace}")
|
53
57
|
@connection.login(@auth_request) if @auth_request
|
58
|
+
execute("USE #{@keyspace}")
|
54
59
|
end
|
55
60
|
end
|
56
61
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cassandra-cql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
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-07-
|
12
|
+
date: 2013-07-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|