eurydice 1.2.5-java → 1.2.6-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +6 -12
- data/Gemfile.lock +1 -1
- data/lib/eurydice/pelops/cluster.rb +3 -1
- data/lib/eurydice/version.rb +1 -1
- data/spec/eurydice/column_enumerator_spec.rb +1 -1
- metadata +2 -2
data/.travis.yml
CHANGED
@@ -1,18 +1,12 @@
|
|
1
1
|
language: ruby
|
2
2
|
script: 'rspec spec'
|
3
|
+
before_install:
|
4
|
+
- sudo sh -c "echo 'JVM_OPTS=\"\${JVM_OPTS} -Djava.net.preferIPv4Stack=false\"' >> /usr/local/cassandra/conf/cassandra-env.sh"
|
5
|
+
- sudo service cassandra start
|
6
|
+
env:
|
7
|
+
- CASSANDRA_HOST=127.0.0.1
|
3
8
|
rvm:
|
4
|
-
|
9
|
+
- jruby-19mode
|
5
10
|
- jruby-head
|
6
11
|
jdk:
|
7
12
|
- openjdk7
|
8
|
-
# - oraclejdk7
|
9
|
-
# - openjdk6
|
10
|
-
services:
|
11
|
-
- cassandra
|
12
|
-
before_script:
|
13
|
-
- 'cat /etc/cassandra/cassandra.yaml'
|
14
|
-
- 'cat /etc/init.d/cassandra'
|
15
|
-
- 'cat /usr/local/cassandra/conf/log4j-server.properties'
|
16
|
-
- 'cat /var/log/cassandra/system.log'
|
17
|
-
- '/etc/init.d/cassandra status'
|
18
|
-
- 'CASSANDRA_CONF=/etc/cassandra /usr/local/cassandra/bin/nodetool status'
|
data/Gemfile.lock
CHANGED
@@ -18,7 +18,9 @@ module Eurydice
|
|
18
18
|
def keyspace(keyspace_name, options={})
|
19
19
|
pool_name = options.fetch(:pool_name, "eurydice_#{keyspace_name}_pool")
|
20
20
|
create = options.fetch(:create, true)
|
21
|
-
@driver.
|
21
|
+
unless @driver.get_db_conn_pool(pool_name)
|
22
|
+
@driver.add_pool(pool_name, @cluster, keyspace_name)
|
23
|
+
end
|
22
24
|
keyspace = Keyspace.new(keyspace_name, @cluster, pool_name, @driver)
|
23
25
|
keyspace.create! if create && !keyspace.exists?
|
24
26
|
keyspace
|
data/lib/eurydice/version.rb
CHANGED
@@ -61,7 +61,7 @@ module Eurydice
|
|
61
61
|
7.times do
|
62
62
|
columns << enumerator.next
|
63
63
|
end
|
64
|
-
columns
|
64
|
+
columns.should == [['a', 1], ['b', 2], ['c', 3], ['d', 4], ['e', 5], ['f', 6], ['g', 7]]
|
65
65
|
end
|
66
66
|
|
67
67
|
it 'raises StopIteration when all columns have been returned' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eurydice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.6
|
5
5
|
prerelease:
|
6
6
|
platform: java
|
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-07-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pelops-jars
|