cassandra-driver 1.0.0.beta.3 → 1.0.0.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/README.md +8 -6
- data/lib/cassandra.rb +99 -13
- data/lib/cassandra/address_resolution.rb +36 -0
- data/lib/cassandra/address_resolution/policies.rb +2 -0
- data/lib/cassandra/address_resolution/policies/ec2_multi_region.rb +56 -0
- data/lib/cassandra/address_resolution/policies/none.rb +35 -0
- data/lib/cassandra/auth.rb +1 -1
- data/lib/cassandra/auth/providers/password.rb +1 -1
- data/lib/cassandra/client.rb +2 -2
- data/lib/cassandra/client/batch.rb +3 -3
- data/lib/cassandra/client/client.rb +12 -12
- data/lib/cassandra/client/connection_manager.rb +2 -2
- data/lib/cassandra/client/connector.rb +6 -10
- data/lib/cassandra/client/prepared_statement.rb +4 -4
- data/lib/cassandra/client/request_runner.rb +1 -2
- data/lib/cassandra/cluster.rb +15 -5
- data/lib/cassandra/cluster/client.rb +158 -96
- data/lib/cassandra/cluster/connector.rb +42 -27
- data/lib/cassandra/cluster/control_connection.rb +384 -132
- data/lib/cassandra/cluster/options.rb +5 -2
- data/lib/cassandra/cluster/registry.rb +19 -9
- data/lib/cassandra/compression.rb +1 -1
- data/lib/cassandra/compression/compressors/lz4.rb +1 -1
- data/lib/cassandra/compression/compressors/snappy.rb +1 -1
- data/lib/cassandra/driver.rb +28 -20
- data/lib/cassandra/errors.rb +325 -35
- data/lib/cassandra/future.rb +3 -3
- data/lib/cassandra/load_balancing/policies/dc_aware_round_robin.rb +7 -3
- data/lib/cassandra/load_balancing/policies/token_aware.rb +1 -1
- data/lib/cassandra/protocol.rb +0 -16
- data/lib/cassandra/protocol/cql_byte_buffer.rb +18 -18
- data/lib/cassandra/protocol/cql_protocol_handler.rb +74 -8
- data/lib/cassandra/protocol/frame_decoder.rb +2 -2
- data/lib/cassandra/protocol/frame_encoder.rb +1 -1
- data/lib/cassandra/protocol/response.rb +1 -1
- data/lib/cassandra/protocol/responses/detailed_error_response.rb +16 -1
- data/lib/cassandra/protocol/responses/error_response.rb +17 -0
- data/lib/cassandra/protocol/responses/event_response.rb +1 -1
- data/lib/cassandra/protocol/responses/raw_rows_result_response.rb +1 -1
- data/lib/cassandra/protocol/responses/result_response.rb +1 -1
- data/lib/cassandra/protocol/responses/rows_result_response.rb +1 -1
- data/lib/cassandra/protocol/type_converter.rb +4 -3
- data/lib/cassandra/reconnection.rb +1 -1
- data/lib/cassandra/retry.rb +3 -5
- data/lib/cassandra/session.rb +11 -5
- data/lib/cassandra/table.rb +1 -1
- data/lib/cassandra/time_uuid.rb +21 -83
- data/lib/cassandra/util.rb +1 -1
- data/lib/cassandra/uuid.rb +6 -4
- data/lib/cassandra/uuid/generator.rb +207 -0
- data/lib/cassandra/version.rb +1 -1
- metadata +24 -19
data/lib/cassandra/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cassandra-driver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Theo Hultberg
|
@@ -9,50 +9,50 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-10-
|
12
|
+
date: 2014-10-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
|
16
|
-
|
15
|
+
name: ione
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.2.0.
|
20
|
+
version: 1.2.0.pre9
|
21
21
|
type: :runtime
|
22
|
-
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
24
|
requirements:
|
24
25
|
- - ~>
|
25
26
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.2.0.
|
27
|
-
name: ione
|
27
|
+
version: 1.2.0.pre9
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
|
30
|
-
|
29
|
+
name: bundler
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - ~>
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '1.6'
|
35
35
|
type: :development
|
36
|
-
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
38
|
requirements:
|
38
39
|
- - ~>
|
39
40
|
- !ruby/object:Gem::Version
|
40
41
|
version: '1.6'
|
41
|
-
name: bundler
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
|
44
|
-
|
43
|
+
name: rake
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - ~>
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '10.0'
|
49
49
|
type: :development
|
50
|
-
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
52
|
requirements:
|
52
53
|
- - ~>
|
53
54
|
- !ruby/object:Gem::Version
|
54
55
|
version: '10.0'
|
55
|
-
name: rake
|
56
56
|
description: A pure Ruby driver for Apache Cassandra
|
57
57
|
email:
|
58
58
|
- theo@iconara.net
|
@@ -68,6 +68,10 @@ files:
|
|
68
68
|
- ext/cassandra_murmur3/cassandra_murmur3.c
|
69
69
|
- ext/cassandra_murmur3/extconf.rb
|
70
70
|
- lib/cassandra.rb
|
71
|
+
- lib/cassandra/address_resolution.rb
|
72
|
+
- lib/cassandra/address_resolution/policies.rb
|
73
|
+
- lib/cassandra/address_resolution/policies/ec2_multi_region.rb
|
74
|
+
- lib/cassandra/address_resolution/policies/none.rb
|
71
75
|
- lib/cassandra/auth.rb
|
72
76
|
- lib/cassandra/auth/providers.rb
|
73
77
|
- lib/cassandra/auth/providers/password.rb
|
@@ -179,6 +183,7 @@ files:
|
|
179
183
|
- lib/cassandra/time_uuid.rb
|
180
184
|
- lib/cassandra/util.rb
|
181
185
|
- lib/cassandra/uuid.rb
|
186
|
+
- lib/cassandra/uuid/generator.rb
|
182
187
|
- lib/cassandra/version.rb
|
183
188
|
homepage: http://datastax.github.io/ruby-driver
|
184
189
|
licenses:
|
@@ -195,17 +200,17 @@ require_paths:
|
|
195
200
|
- lib
|
196
201
|
required_ruby_version: !ruby/object:Gem::Requirement
|
197
202
|
requirements:
|
198
|
-
- - '>='
|
203
|
+
- - ! '>='
|
199
204
|
- !ruby/object:Gem::Version
|
200
205
|
version: 1.9.3
|
201
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
202
207
|
requirements:
|
203
|
-
- - '>'
|
208
|
+
- - ! '>'
|
204
209
|
- !ruby/object:Gem::Version
|
205
210
|
version: 1.3.1
|
206
211
|
requirements: []
|
207
212
|
rubyforge_project:
|
208
|
-
rubygems_version: 2.4.
|
213
|
+
rubygems_version: 2.4.2
|
209
214
|
signing_key:
|
210
215
|
specification_version: 4
|
211
216
|
summary: Datastax Ruby Driver for Apache Cassandra
|