cassandra-cql 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cassandra-cql/database.rb +2 -1
- data/lib/cassandra-cql/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +3 -3
@@ -28,7 +28,8 @@ module CassandraCQL
|
|
28
28
|
}.merge(options)
|
29
29
|
|
30
30
|
@thrift_client_options = {
|
31
|
-
:exception_class_overrides => CassandraCQL::Thrift::InvalidRequestException
|
31
|
+
:exception_class_overrides => CassandraCQL::Thrift::InvalidRequestException,
|
32
|
+
:connect_timeout => 5
|
32
33
|
}.merge(thrift_client_options)
|
33
34
|
|
34
35
|
@keyspace = @options[:keyspace]
|
data/spec/spec_helper.rb
CHANGED
@@ -22,7 +22,7 @@ def yaml_fixture(file)
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def setup_cassandra_connection
|
25
|
-
connection = CassandraCQL::Database.new(["127.0.0.1:9160"], {}, :retries => 5, :timeout => 1
|
25
|
+
connection = CassandraCQL::Database.new(["127.0.0.1:9160"], {}, :retries => 5, :timeout => 1)
|
26
26
|
if !connection.keyspaces.map(&:name).include?("CassandraCQLTestKeyspace")
|
27
27
|
connection.execute("CREATE KEYSPACE CassandraCQLTestKeyspace WITH strategy_class='org.apache.cassandra.locator.SimpleStrategy' AND strategy_options:replication_factor=1")
|
28
28
|
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.1.
|
4
|
+
version: 1.1.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: 2012-09-
|
12
|
+
date: 2012-09-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -211,7 +211,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
211
211
|
version: '0'
|
212
212
|
segments:
|
213
213
|
- 0
|
214
|
-
hash:
|
214
|
+
hash: 161187349336626850
|
215
215
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
216
|
none: false
|
217
217
|
requirements:
|