cql-rb 1.0.0.pre4 → 1.0.0.pre5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -3
- data/lib/cql/client.rb +65 -15
- data/lib/cql/io.rb +2 -0
- data/lib/cql/io/io_reactor.rb +90 -304
- data/lib/cql/io/node_connection.rb +206 -0
- data/lib/cql/protocol/encoding.rb +1 -0
- data/lib/cql/protocol/request_frame.rb +26 -0
- data/lib/cql/protocol/response_frame.rb +17 -0
- data/lib/cql/version.rb +1 -1
- data/spec/cql/client_spec.rb +95 -56
- data/spec/cql/io/io_reactor_spec.rb +47 -37
- data/spec/cql/protocol/encoding_spec.rb +5 -0
- data/spec/cql/protocol/request_frame_spec.rb +74 -0
- data/spec/cql/protocol/response_frame_spec.rb +18 -0
- data/spec/integration/client_spec.rb +46 -9
- data/spec/integration/protocol_spec.rb +83 -14
- data/spec/integration/regression_spec.rb +2 -2
- data/spec/spec_helper.rb +6 -0
- metadata +3 -2
@@ -14,14 +14,14 @@ describe 'Regressions' do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
before do
|
17
|
-
client.
|
17
|
+
client.connect
|
18
18
|
client.execute(%(CREATE KEYSPACE cql_rb_client_spec WITH REPLICATION = {'CLASS': 'SimpleStrategy', 'replication_factor': 1}))
|
19
19
|
client.use('cql_rb_client_spec')
|
20
20
|
end
|
21
21
|
|
22
22
|
after do
|
23
23
|
client.execute('DROP KEYSPACE cql_rb_client_spec')
|
24
|
-
client.
|
24
|
+
client.close
|
25
25
|
end
|
26
26
|
|
27
27
|
it 'handles multibyte characters in prepared statements' do
|
data/spec/spec_helper.rb
CHANGED
@@ -6,6 +6,12 @@ require 'cql'
|
|
6
6
|
|
7
7
|
ENV['CASSANDRA_HOST'] ||= 'localhost'
|
8
8
|
|
9
|
+
SimpleCov.start do
|
10
|
+
add_group 'Source', 'lib'
|
11
|
+
add_group 'Unit tests', 'spec/cql'
|
12
|
+
add_group 'Integration tests', 'spec/integration'
|
13
|
+
add_group 'Test support', 'spec/support'
|
14
|
+
end
|
9
15
|
|
10
16
|
require 'support/bytes_helper'
|
11
17
|
require 'support/await_helper'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cql-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.pre5
|
5
5
|
prerelease: 6
|
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-
|
12
|
+
date: 2013-04-23 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A pure Ruby CQL3 driver for Cassandra
|
15
15
|
email:
|
@@ -21,6 +21,7 @@ files:
|
|
21
21
|
- lib/cql/client.rb
|
22
22
|
- lib/cql/future.rb
|
23
23
|
- lib/cql/io/io_reactor.rb
|
24
|
+
- lib/cql/io/node_connection.rb
|
24
25
|
- lib/cql/io.rb
|
25
26
|
- lib/cql/protocol/decoding.rb
|
26
27
|
- lib/cql/protocol/encoding.rb
|