eurydice 1.1.0.b3-java → 1.1.0.b4-java
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/01_connect.rb +1 -1
- data/lib/eurydice/pelops.rb +2 -1
- data/lib/eurydice/version.rb +1 -1
- metadata +2 -2
data/examples/01_connect.rb
CHANGED
@@ -5,7 +5,7 @@ require_relative 'common'
|
|
5
5
|
|
6
6
|
# Connect to the default host (localhost) and port (9160), these can be
|
7
7
|
# overridden by passing then :host and :port options.
|
8
|
-
cluster = Eurydice.connect
|
8
|
+
cluster = Eurydice.connect(:timeout => 3000)
|
9
9
|
|
10
10
|
# Get a reference to a keyspace, it will be created if it does not exist
|
11
11
|
# (pass the option :create => false to not automatically create the keyspace).
|
data/lib/eurydice/pelops.rb
CHANGED
@@ -29,8 +29,9 @@ module Eurydice
|
|
29
29
|
host = options.fetch(:host, 'localhost')
|
30
30
|
port = options.fetch(:port, 9160)
|
31
31
|
pool_name = options.fetch(:pool_name, 'eurydice')
|
32
|
+
timeout = options.fetch(:timeout, ::Pelops::Cluster::DEFAULT_TIMEOUT)
|
32
33
|
dynamic_node_discovery = options.fetch(:dynamic_node_discovery, false)
|
33
|
-
Cluster.new(::Pelops::Cluster.new(host, port, dynamic_node_discovery))
|
34
|
+
Cluster.new(::Pelops::Cluster.new(host, port, timeout, dynamic_node_discovery))
|
34
35
|
end
|
35
36
|
|
36
37
|
def self.keyspace(keyspace_name, host='localhost', port=9160, pool_name='eurydice')
|
data/lib/eurydice/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: eurydice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 6
|
5
|
-
version: 1.1.0.
|
5
|
+
version: 1.1.0.b4
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Theo Hultberg
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2012-01-12 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: pelops-jars
|