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.
@@ -1,6 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
+ - 2.0.0
4
5
  env:
5
6
  - CASSANDRA_VERSION=1.2 CQL_VERSION=3.0.0
6
7
  - CASSANDRA_VERSION=1.2 CQL_VERSION=2.0.0
@@ -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
 
@@ -15,5 +15,5 @@ limitations under the License.
15
15
  =end
16
16
 
17
17
  module CassandraCQL
18
- VERSION = "1.2.0"
18
+ VERSION = "1.2.1"
19
19
  end
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.0
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-01 00:00:00.000000000 Z
12
+ date: 2013-07-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler