cql-rb 1.1.3 → 1.2.0.pre0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -11
- data/lib/cql.rb +1 -0
- data/lib/cql/client.rb +41 -9
- data/lib/cql/client/asynchronous_client.rb +9 -4
- data/lib/cql/client/asynchronous_prepared_statement.rb +2 -2
- data/lib/cql/client/connection_helper.rb +43 -20
- data/lib/cql/client/execute_options_decoder.rb +4 -1
- data/lib/cql/client/query_result.rb +7 -3
- data/lib/cql/client/query_trace.rb +46 -0
- data/lib/cql/client/request_runner.rb +7 -2
- data/lib/cql/client/void_result.rb +42 -0
- data/lib/cql/compression.rb +53 -0
- data/lib/cql/compression/snappy_compressor.rb +42 -0
- data/lib/cql/io/io_reactor.rb +9 -4
- data/lib/cql/protocol.rb +5 -3
- data/lib/cql/protocol/cql_protocol_handler.rb +14 -9
- data/lib/cql/protocol/frame_decoder.rb +106 -0
- data/lib/cql/protocol/frame_encoder.rb +31 -0
- data/lib/cql/protocol/request.rb +7 -11
- data/lib/cql/protocol/requests/execute_request.rb +2 -2
- data/lib/cql/protocol/requests/options_request.rb +4 -0
- data/lib/cql/protocol/requests/prepare_request.rb +2 -2
- data/lib/cql/protocol/requests/query_request.rb +2 -2
- data/lib/cql/protocol/requests/startup_request.rb +12 -5
- data/lib/cql/protocol/response.rb +13 -2
- data/lib/cql/protocol/responses/authenticate_response.rb +5 -1
- data/lib/cql/protocol/responses/detailed_error_response.rb +2 -2
- data/lib/cql/protocol/responses/error_response.rb +7 -2
- data/lib/cql/protocol/responses/event_response.rb +4 -2
- data/lib/cql/protocol/responses/prepared_result_response.rb +20 -4
- data/lib/cql/protocol/responses/ready_response.rb +5 -1
- data/lib/cql/protocol/responses/result_response.rb +10 -2
- data/lib/cql/protocol/responses/rows_result_response.rb +5 -4
- data/lib/cql/protocol/responses/schema_change_event_response.rb +1 -1
- data/lib/cql/protocol/responses/schema_change_result_response.rb +5 -4
- data/lib/cql/protocol/responses/set_keyspace_result_response.rb +4 -3
- data/lib/cql/protocol/responses/{status_change_event_result_response.rb → status_change_event_response.rb} +1 -1
- data/lib/cql/protocol/responses/supported_response.rb +5 -1
- data/lib/cql/protocol/responses/{topology_change_event_result_response.rb → topology_change_event_response.rb} +0 -0
- data/lib/cql/protocol/responses/void_result_response.rb +2 -2
- data/lib/cql/version.rb +1 -1
- data/spec/cql/client/asynchronous_client_spec.rb +52 -31
- data/spec/cql/client/asynchronous_prepared_statement_spec.rb +16 -2
- data/spec/cql/client/connection_helper_spec.rb +90 -12
- data/spec/cql/client/query_trace_spec.rb +138 -0
- data/spec/cql/client/request_runner_spec.rb +44 -7
- data/spec/cql/client/void_result_spec.rb +43 -0
- data/spec/cql/compression/compression_common.rb +59 -0
- data/spec/cql/compression/snappy_compressor_spec.rb +23 -0
- data/spec/cql/io/io_reactor_spec.rb +8 -1
- data/spec/cql/protocol/cql_protocol_handler_spec.rb +40 -0
- data/spec/cql/protocol/frame_decoder_spec.rb +132 -0
- data/spec/cql/protocol/frame_encoder_spec.rb +105 -0
- data/spec/cql/protocol/requests/credentials_request_spec.rb +2 -4
- data/spec/cql/protocol/requests/execute_request_spec.rb +5 -5
- data/spec/cql/protocol/requests/options_request_spec.rb +10 -4
- data/spec/cql/protocol/requests/prepare_request_spec.rb +3 -3
- data/spec/cql/protocol/requests/query_request_spec.rb +10 -5
- data/spec/cql/protocol/requests/register_request_spec.rb +3 -3
- data/spec/cql/protocol/requests/startup_request_spec.rb +11 -5
- data/spec/cql/protocol/responses/authenticate_response_spec.rb +27 -0
- data/spec/cql/protocol/responses/detailed_error_response_spec.rb +78 -0
- data/spec/cql/protocol/responses/error_response_spec.rb +36 -0
- data/spec/cql/protocol/responses/event_response_spec.rb +40 -0
- data/spec/cql/protocol/responses/prepared_result_response_spec.rb +108 -0
- data/spec/cql/protocol/responses/ready_response_spec.rb +39 -0
- data/spec/cql/protocol/responses/result_response_spec.rb +57 -0
- data/spec/cql/protocol/responses/rows_result_response_spec.rb +273 -0
- data/spec/cql/protocol/responses/schema_change_event_response_spec.rb +93 -0
- data/spec/cql/protocol/responses/schema_change_result_response_spec.rb +51 -19
- data/spec/cql/protocol/responses/set_keyspace_result_response_spec.rb +34 -0
- data/spec/cql/protocol/responses/status_change_event_response_spec.rb +35 -0
- data/spec/cql/protocol/responses/supported_response_spec.rb +27 -0
- data/spec/cql/protocol/responses/topology_change_event_response_spec.rb +35 -0
- data/spec/cql/protocol/responses/void_result_response_spec.rb +29 -0
- data/spec/integration/client_spec.rb +45 -0
- data/spec/integration/protocol_spec.rb +46 -0
- data/spec/spec_helper.rb +2 -1
- data/spec/support/fake_io_reactor.rb +1 -1
- metadata +51 -10
- data/lib/cql/protocol/response_frame.rb +0 -129
- data/spec/cql/protocol/request_spec.rb +0 -45
- data/spec/cql/protocol/response_frame_spec.rb +0 -811
@@ -0,0 +1,34 @@
|
|
1
|
+
# encoding: ascii-8bit
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
|
6
|
+
module Cql
|
7
|
+
module Protocol
|
8
|
+
describe SetKeyspaceResultResponse do
|
9
|
+
describe '.decode!' do
|
10
|
+
let :response do
|
11
|
+
described_class.decode!(ByteBuffer.new("\x00\x06system"))
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'decodes the keyspace' do
|
15
|
+
response.keyspace.should == 'system'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
describe '#void?' do
|
20
|
+
it 'is not void' do
|
21
|
+
response = described_class.new('system', nil)
|
22
|
+
response.should_not be_void
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
describe '#to_s' do
|
27
|
+
it 'returns a string with the keyspace' do
|
28
|
+
response = described_class.new('system', nil)
|
29
|
+
response.to_s.should == 'RESULT SET_KEYSPACE "system"'
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# encoding: ascii-8bit
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
|
6
|
+
module Cql
|
7
|
+
module Protocol
|
8
|
+
describe StatusChangeEventResponse do
|
9
|
+
describe '.decode!' do
|
10
|
+
let :response do
|
11
|
+
described_class.decode!(ByteBuffer.new("\x00\x04DOWN\x04\x00\x00\x00\x00\x00\x00#R"))
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'decodes the change' do
|
15
|
+
response.change.should == 'DOWN'
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'decodes the address' do
|
19
|
+
response.address.should == IPAddr.new('0.0.0.0')
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'decodes the port' do
|
23
|
+
response.port.should == 9042
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe '#to_s' do
|
28
|
+
it 'returns a string that includes the change, address and port' do
|
29
|
+
response = described_class.new('DOWN', IPAddr.new('0.0.0.0'), 9042)
|
30
|
+
response.to_s.should == 'EVENT STATUS_CHANGE DOWN 0.0.0.0:9042'
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# encoding: ascii-8bit
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
|
6
|
+
module Cql
|
7
|
+
module Protocol
|
8
|
+
describe SupportedResponse do
|
9
|
+
describe '.decode!' do
|
10
|
+
let :response do
|
11
|
+
described_class.decode!(ByteBuffer.new("\x00\x02\x00\x0bCQL_VERSION\x00\x01\x00\x053.0.0\x00\x0bCOMPRESSION\x00\x00"))
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'decodes the options' do
|
15
|
+
response.options.should == {'CQL_VERSION' => ['3.0.0'], 'COMPRESSION' => []}
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
describe '#to_s' do
|
20
|
+
it 'returns a string with the options' do
|
21
|
+
response = described_class.new('CQL_VERSION' => ['3.0.0'], 'COMPRESSION' => [])
|
22
|
+
response.to_s.should == 'SUPPORTED {"CQL_VERSION"=>["3.0.0"], "COMPRESSION"=>[]}'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# encoding: ascii-8bit
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
|
6
|
+
module Cql
|
7
|
+
module Protocol
|
8
|
+
describe TopologyChangeEventResponse do
|
9
|
+
describe '.decode!' do
|
10
|
+
let :response do
|
11
|
+
described_class.decode!(ByteBuffer.new("\x00\fREMOVED_NODE\x04\x00\x00\x00\x00\x00\x00#R"))
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'decodes the change' do
|
15
|
+
response.change.should == 'REMOVED_NODE'
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'decodes the address' do
|
19
|
+
response.address.should == IPAddr.new('0.0.0.0')
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'decodes the port' do
|
23
|
+
response.port.should == 9042
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe '#to_s' do
|
28
|
+
it 'returns a string that includes the change, address and port' do
|
29
|
+
response = described_class.new('REMOVED_NODE', IPAddr.new('0.0.0.0'), 9042)
|
30
|
+
response.to_s.should == 'EVENT TOPOLOGY_CHANGE REMOVED_NODE 0.0.0.0:9042'
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# encoding: ascii-8bit
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
|
6
|
+
module Cql
|
7
|
+
module Protocol
|
8
|
+
describe VoidResultResponse do
|
9
|
+
describe '.decode!' do
|
10
|
+
it 'returns a new instance' do
|
11
|
+
unused_byte_buffer = nil
|
12
|
+
described_class.decode!(unused_byte_buffer).should be_a(described_class)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
describe '#void?' do
|
17
|
+
it 'is void' do
|
18
|
+
described_class.new(nil).should be_void
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
describe '#to_s' do
|
23
|
+
it 'returns a string' do
|
24
|
+
described_class.new(nil).to_s.should == 'RESULT VOID'
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -142,6 +142,51 @@ describe 'A CQL client' do
|
|
142
142
|
end
|
143
143
|
end
|
144
144
|
|
145
|
+
context 'with tracing' do
|
146
|
+
before do
|
147
|
+
client.execute(%(DROP KEYSPACE cql_rb_client_spec)) rescue nil
|
148
|
+
client.execute(%(CREATE KEYSPACE cql_rb_client_spec WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': 1}))
|
149
|
+
client.use('cql_rb_client_spec')
|
150
|
+
client.execute(%(CREATE TABLE users (user_id VARCHAR PRIMARY KEY, first VARCHAR, last VARCHAR, age INT)))
|
151
|
+
end
|
152
|
+
|
153
|
+
it 'requests tracing and returns the trace ID, for row returning operations' do
|
154
|
+
result = client.execute(%(SELECT * FROM users), trace: true)
|
155
|
+
result.trace_id.should_not be_nil
|
156
|
+
end
|
157
|
+
|
158
|
+
it 'requests tracing and returns the trace ID, for void returning operations' do
|
159
|
+
result = client.execute(%(INSERT INTO users (user_id, first, last, age) VALUES ('1', 'Sue', 'Smith', 25)), trace: true)
|
160
|
+
result.trace_id.should_not be_nil
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
context 'with compression' do
|
165
|
+
begin
|
166
|
+
require 'cql/compression/snappy_compressor'
|
167
|
+
|
168
|
+
let :client do
|
169
|
+
Cql::Client.connect(connection_options.merge(compressor: compressor))
|
170
|
+
end
|
171
|
+
|
172
|
+
let :compressor do
|
173
|
+
Cql::Compression::SnappyCompressor.new(0)
|
174
|
+
end
|
175
|
+
|
176
|
+
it 'compresses requests and decompresses responses' do
|
177
|
+
compressor.stub(:compress).and_call_original
|
178
|
+
compressor.stub(:decompress).and_call_original
|
179
|
+
client.execute('SELECT * FROM system.schema_keyspaces')
|
180
|
+
compressor.should have_received(:compress).at_least(1).times
|
181
|
+
compressor.should have_received(:decompress).at_least(1).times
|
182
|
+
end
|
183
|
+
rescue LoadError
|
184
|
+
it 'compresses requests and decompresses responses' do
|
185
|
+
pending 'No compressor available for the current platform'
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
145
190
|
context 'with error conditions' do
|
146
191
|
it 'raises an error for CQL syntax errors' do
|
147
192
|
expect { client.execute('BAD cql') }.to raise_error(Cql::CqlError)
|
@@ -345,6 +345,52 @@ describe 'Protocol parsing and communication' do
|
|
345
345
|
end
|
346
346
|
end
|
347
347
|
|
348
|
+
context 'with tracing' do
|
349
|
+
it 'sends a QUERY request with the tracing flag and receives a RESULT with a trace ID' do
|
350
|
+
in_keyspace_with_table do
|
351
|
+
response = execute_request(Cql::Protocol::QueryRequest.new('SELECT * FROM users', :quorum, true))
|
352
|
+
response.trace_id.should_not be_nil
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
356
|
+
it 'sends an PREPARE request with the tracing flag and receives a RESULT with a trace ID' do
|
357
|
+
in_keyspace_with_table do
|
358
|
+
response = execute_request(Cql::Protocol::PrepareRequest.new('SELECT * FROM users', true))
|
359
|
+
response.trace_id.should_not be_nil
|
360
|
+
end
|
361
|
+
end
|
362
|
+
|
363
|
+
it 'sends an EXECUTE request with the tracing flag and receives a RESULT with a trace ID' do
|
364
|
+
in_keyspace_with_table do
|
365
|
+
prepare_response = execute_request(Cql::Protocol::PrepareRequest.new('SELECT * FROM users'))
|
366
|
+
execute_response = execute_request(Cql::Protocol::ExecuteRequest.new(prepare_response.id, prepare_response.metadata, [], :one, true))
|
367
|
+
execute_response.trace_id.should_not be_nil
|
368
|
+
end
|
369
|
+
end
|
370
|
+
end
|
371
|
+
|
372
|
+
context 'with compression' do
|
373
|
+
let :compressor do
|
374
|
+
Cql::Compression::SnappyCompressor.new(0)
|
375
|
+
end
|
376
|
+
|
377
|
+
it 'sends a compressed request and receives a compressed response' do
|
378
|
+
compressor.stub(:compress).and_call_original
|
379
|
+
compressor.stub(:decompress).and_call_original
|
380
|
+
io_reactor = Cql::Io::IoReactor.new(lambda { |*args| Cql::Protocol::CqlProtocolHandler.new(*args, compressor) })
|
381
|
+
io_reactor.start.value
|
382
|
+
begin
|
383
|
+
connection = io_reactor.connect(ENV['CASSANDRA_HOST'], 9042, 0.1).value
|
384
|
+
connection.send_request(Cql::Protocol::StartupRequest.new(nil, 'snappy')).value
|
385
|
+
connection.send_request(Cql::Protocol::PrepareRequest.new('SELECT * FROM system.peers')).value
|
386
|
+
compressor.should have_received(:compress).at_least(1).times
|
387
|
+
compressor.should have_received(:decompress).at_least(1).times
|
388
|
+
ensure
|
389
|
+
io_reactor.stop.value
|
390
|
+
end
|
391
|
+
end
|
392
|
+
end
|
393
|
+
|
348
394
|
context 'with pipelining' do
|
349
395
|
let :connection do
|
350
396
|
connections.first
|
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
ENV['CASSANDRA_HOST'] ||= '
|
3
|
+
ENV['CASSANDRA_HOST'] ||= 'localhost'
|
4
4
|
|
5
5
|
require 'bundler/setup'
|
6
6
|
|
@@ -26,3 +26,4 @@ unless ENV['COVERAGE'] == 'no' || RUBY_ENGINE == 'rbx'
|
|
26
26
|
end
|
27
27
|
|
28
28
|
require 'cql'
|
29
|
+
require 'cql/compression/snappy_compressor'
|
@@ -151,7 +151,7 @@ class FakeConnection
|
|
151
151
|
when Cql::Protocol::StartupRequest
|
152
152
|
Cql::Protocol::ReadyResponse.new
|
153
153
|
when Cql::Protocol::QueryRequest
|
154
|
-
Cql::Protocol::RowsResultResponse.new([], [])
|
154
|
+
Cql::Protocol::RowsResultResponse.new([], [], nil)
|
155
155
|
end
|
156
156
|
end
|
157
157
|
end
|
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.
|
4
|
+
version: 1.2.0.pre0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Theo Hultberg
|
@@ -27,11 +27,15 @@ files:
|
|
27
27
|
- lib/cql/client/keyspace_changer.rb
|
28
28
|
- lib/cql/client/null_logger.rb
|
29
29
|
- lib/cql/client/query_result.rb
|
30
|
+
- lib/cql/client/query_trace.rb
|
30
31
|
- lib/cql/client/request_runner.rb
|
31
32
|
- lib/cql/client/result_metadata.rb
|
32
33
|
- lib/cql/client/synchronous_client.rb
|
33
34
|
- lib/cql/client/synchronous_prepared_statement.rb
|
35
|
+
- lib/cql/client/void_result.rb
|
34
36
|
- lib/cql/client.rb
|
37
|
+
- lib/cql/compression/snappy_compressor.rb
|
38
|
+
- lib/cql/compression.rb
|
35
39
|
- lib/cql/future.rb
|
36
40
|
- lib/cql/io/connection.rb
|
37
41
|
- lib/cql/io/io_reactor.rb
|
@@ -39,6 +43,8 @@ files:
|
|
39
43
|
- lib/cql/protocol/cql_protocol_handler.rb
|
40
44
|
- lib/cql/protocol/decoding.rb
|
41
45
|
- lib/cql/protocol/encoding.rb
|
46
|
+
- lib/cql/protocol/frame_decoder.rb
|
47
|
+
- lib/cql/protocol/frame_encoder.rb
|
42
48
|
- lib/cql/protocol/request.rb
|
43
49
|
- lib/cql/protocol/requests/credentials_request.rb
|
44
50
|
- lib/cql/protocol/requests/execute_request.rb
|
@@ -48,7 +54,6 @@ files:
|
|
48
54
|
- lib/cql/protocol/requests/register_request.rb
|
49
55
|
- lib/cql/protocol/requests/startup_request.rb
|
50
56
|
- lib/cql/protocol/response.rb
|
51
|
-
- lib/cql/protocol/response_frame.rb
|
52
57
|
- lib/cql/protocol/responses/authenticate_response.rb
|
53
58
|
- lib/cql/protocol/responses/detailed_error_response.rb
|
54
59
|
- lib/cql/protocol/responses/error_response.rb
|
@@ -60,9 +65,9 @@ files:
|
|
60
65
|
- lib/cql/protocol/responses/schema_change_event_response.rb
|
61
66
|
- lib/cql/protocol/responses/schema_change_result_response.rb
|
62
67
|
- lib/cql/protocol/responses/set_keyspace_result_response.rb
|
63
|
-
- lib/cql/protocol/responses/
|
68
|
+
- lib/cql/protocol/responses/status_change_event_response.rb
|
64
69
|
- lib/cql/protocol/responses/supported_response.rb
|
65
|
-
- lib/cql/protocol/responses/
|
70
|
+
- lib/cql/protocol/responses/topology_change_event_response.rb
|
66
71
|
- lib/cql/protocol/responses/void_result_response.rb
|
67
72
|
- lib/cql/protocol/type_converter.rb
|
68
73
|
- lib/cql/protocol.rb
|
@@ -78,16 +83,21 @@ files:
|
|
78
83
|
- spec/cql/client/connection_helper_spec.rb
|
79
84
|
- spec/cql/client/connection_manager_spec.rb
|
80
85
|
- spec/cql/client/keyspace_changer_spec.rb
|
86
|
+
- spec/cql/client/query_trace_spec.rb
|
81
87
|
- spec/cql/client/request_runner_spec.rb
|
82
88
|
- spec/cql/client/synchronous_client_spec.rb
|
83
89
|
- spec/cql/client/synchronous_prepared_statement_spec.rb
|
90
|
+
- spec/cql/client/void_result_spec.rb
|
91
|
+
- spec/cql/compression/compression_common.rb
|
92
|
+
- spec/cql/compression/snappy_compressor_spec.rb
|
84
93
|
- spec/cql/future_spec.rb
|
85
94
|
- spec/cql/io/connection_spec.rb
|
86
95
|
- spec/cql/io/io_reactor_spec.rb
|
87
96
|
- spec/cql/protocol/cql_protocol_handler_spec.rb
|
88
97
|
- spec/cql/protocol/decoding_spec.rb
|
89
98
|
- spec/cql/protocol/encoding_spec.rb
|
90
|
-
- spec/cql/protocol/
|
99
|
+
- spec/cql/protocol/frame_decoder_spec.rb
|
100
|
+
- spec/cql/protocol/frame_encoder_spec.rb
|
91
101
|
- spec/cql/protocol/requests/credentials_request_spec.rb
|
92
102
|
- spec/cql/protocol/requests/execute_request_spec.rb
|
93
103
|
- spec/cql/protocol/requests/options_request_spec.rb
|
@@ -95,8 +105,21 @@ files:
|
|
95
105
|
- spec/cql/protocol/requests/query_request_spec.rb
|
96
106
|
- spec/cql/protocol/requests/register_request_spec.rb
|
97
107
|
- spec/cql/protocol/requests/startup_request_spec.rb
|
98
|
-
- spec/cql/protocol/
|
108
|
+
- spec/cql/protocol/responses/authenticate_response_spec.rb
|
109
|
+
- spec/cql/protocol/responses/detailed_error_response_spec.rb
|
110
|
+
- spec/cql/protocol/responses/error_response_spec.rb
|
111
|
+
- spec/cql/protocol/responses/event_response_spec.rb
|
112
|
+
- spec/cql/protocol/responses/prepared_result_response_spec.rb
|
113
|
+
- spec/cql/protocol/responses/ready_response_spec.rb
|
114
|
+
- spec/cql/protocol/responses/result_response_spec.rb
|
115
|
+
- spec/cql/protocol/responses/rows_result_response_spec.rb
|
116
|
+
- spec/cql/protocol/responses/schema_change_event_response_spec.rb
|
99
117
|
- spec/cql/protocol/responses/schema_change_result_response_spec.rb
|
118
|
+
- spec/cql/protocol/responses/set_keyspace_result_response_spec.rb
|
119
|
+
- spec/cql/protocol/responses/status_change_event_response_spec.rb
|
120
|
+
- spec/cql/protocol/responses/supported_response_spec.rb
|
121
|
+
- spec/cql/protocol/responses/topology_change_event_response_spec.rb
|
122
|
+
- spec/cql/protocol/responses/void_result_response_spec.rb
|
100
123
|
- spec/cql/protocol/type_converter_spec.rb
|
101
124
|
- spec/cql/time_uuid_spec.rb
|
102
125
|
- spec/cql/uuid_spec.rb
|
@@ -125,9 +148,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
125
148
|
version: 1.9.2
|
126
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
150
|
requirements:
|
128
|
-
- - '
|
151
|
+
- - '>'
|
129
152
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
153
|
+
version: 1.3.1
|
131
154
|
requirements: []
|
132
155
|
rubyforge_project:
|
133
156
|
rubygems_version: 2.1.11
|
@@ -142,16 +165,21 @@ test_files:
|
|
142
165
|
- spec/cql/client/connection_helper_spec.rb
|
143
166
|
- spec/cql/client/connection_manager_spec.rb
|
144
167
|
- spec/cql/client/keyspace_changer_spec.rb
|
168
|
+
- spec/cql/client/query_trace_spec.rb
|
145
169
|
- spec/cql/client/request_runner_spec.rb
|
146
170
|
- spec/cql/client/synchronous_client_spec.rb
|
147
171
|
- spec/cql/client/synchronous_prepared_statement_spec.rb
|
172
|
+
- spec/cql/client/void_result_spec.rb
|
173
|
+
- spec/cql/compression/compression_common.rb
|
174
|
+
- spec/cql/compression/snappy_compressor_spec.rb
|
148
175
|
- spec/cql/future_spec.rb
|
149
176
|
- spec/cql/io/connection_spec.rb
|
150
177
|
- spec/cql/io/io_reactor_spec.rb
|
151
178
|
- spec/cql/protocol/cql_protocol_handler_spec.rb
|
152
179
|
- spec/cql/protocol/decoding_spec.rb
|
153
180
|
- spec/cql/protocol/encoding_spec.rb
|
154
|
-
- spec/cql/protocol/
|
181
|
+
- spec/cql/protocol/frame_decoder_spec.rb
|
182
|
+
- spec/cql/protocol/frame_encoder_spec.rb
|
155
183
|
- spec/cql/protocol/requests/credentials_request_spec.rb
|
156
184
|
- spec/cql/protocol/requests/execute_request_spec.rb
|
157
185
|
- spec/cql/protocol/requests/options_request_spec.rb
|
@@ -159,8 +187,21 @@ test_files:
|
|
159
187
|
- spec/cql/protocol/requests/query_request_spec.rb
|
160
188
|
- spec/cql/protocol/requests/register_request_spec.rb
|
161
189
|
- spec/cql/protocol/requests/startup_request_spec.rb
|
162
|
-
- spec/cql/protocol/
|
190
|
+
- spec/cql/protocol/responses/authenticate_response_spec.rb
|
191
|
+
- spec/cql/protocol/responses/detailed_error_response_spec.rb
|
192
|
+
- spec/cql/protocol/responses/error_response_spec.rb
|
193
|
+
- spec/cql/protocol/responses/event_response_spec.rb
|
194
|
+
- spec/cql/protocol/responses/prepared_result_response_spec.rb
|
195
|
+
- spec/cql/protocol/responses/ready_response_spec.rb
|
196
|
+
- spec/cql/protocol/responses/result_response_spec.rb
|
197
|
+
- spec/cql/protocol/responses/rows_result_response_spec.rb
|
198
|
+
- spec/cql/protocol/responses/schema_change_event_response_spec.rb
|
163
199
|
- spec/cql/protocol/responses/schema_change_result_response_spec.rb
|
200
|
+
- spec/cql/protocol/responses/set_keyspace_result_response_spec.rb
|
201
|
+
- spec/cql/protocol/responses/status_change_event_response_spec.rb
|
202
|
+
- spec/cql/protocol/responses/supported_response_spec.rb
|
203
|
+
- spec/cql/protocol/responses/topology_change_event_response_spec.rb
|
204
|
+
- spec/cql/protocol/responses/void_result_response_spec.rb
|
164
205
|
- spec/cql/protocol/type_converter_spec.rb
|
165
206
|
- spec/cql/time_uuid_spec.rb
|
166
207
|
- spec/cql/uuid_spec.rb
|