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.
Files changed (53) hide show
  1. checksums.yaml +13 -5
  2. data/README.md +8 -6
  3. data/lib/cassandra.rb +99 -13
  4. data/lib/cassandra/address_resolution.rb +36 -0
  5. data/lib/cassandra/address_resolution/policies.rb +2 -0
  6. data/lib/cassandra/address_resolution/policies/ec2_multi_region.rb +56 -0
  7. data/lib/cassandra/address_resolution/policies/none.rb +35 -0
  8. data/lib/cassandra/auth.rb +1 -1
  9. data/lib/cassandra/auth/providers/password.rb +1 -1
  10. data/lib/cassandra/client.rb +2 -2
  11. data/lib/cassandra/client/batch.rb +3 -3
  12. data/lib/cassandra/client/client.rb +12 -12
  13. data/lib/cassandra/client/connection_manager.rb +2 -2
  14. data/lib/cassandra/client/connector.rb +6 -10
  15. data/lib/cassandra/client/prepared_statement.rb +4 -4
  16. data/lib/cassandra/client/request_runner.rb +1 -2
  17. data/lib/cassandra/cluster.rb +15 -5
  18. data/lib/cassandra/cluster/client.rb +158 -96
  19. data/lib/cassandra/cluster/connector.rb +42 -27
  20. data/lib/cassandra/cluster/control_connection.rb +384 -132
  21. data/lib/cassandra/cluster/options.rb +5 -2
  22. data/lib/cassandra/cluster/registry.rb +19 -9
  23. data/lib/cassandra/compression.rb +1 -1
  24. data/lib/cassandra/compression/compressors/lz4.rb +1 -1
  25. data/lib/cassandra/compression/compressors/snappy.rb +1 -1
  26. data/lib/cassandra/driver.rb +28 -20
  27. data/lib/cassandra/errors.rb +325 -35
  28. data/lib/cassandra/future.rb +3 -3
  29. data/lib/cassandra/load_balancing/policies/dc_aware_round_robin.rb +7 -3
  30. data/lib/cassandra/load_balancing/policies/token_aware.rb +1 -1
  31. data/lib/cassandra/protocol.rb +0 -16
  32. data/lib/cassandra/protocol/cql_byte_buffer.rb +18 -18
  33. data/lib/cassandra/protocol/cql_protocol_handler.rb +74 -8
  34. data/lib/cassandra/protocol/frame_decoder.rb +2 -2
  35. data/lib/cassandra/protocol/frame_encoder.rb +1 -1
  36. data/lib/cassandra/protocol/response.rb +1 -1
  37. data/lib/cassandra/protocol/responses/detailed_error_response.rb +16 -1
  38. data/lib/cassandra/protocol/responses/error_response.rb +17 -0
  39. data/lib/cassandra/protocol/responses/event_response.rb +1 -1
  40. data/lib/cassandra/protocol/responses/raw_rows_result_response.rb +1 -1
  41. data/lib/cassandra/protocol/responses/result_response.rb +1 -1
  42. data/lib/cassandra/protocol/responses/rows_result_response.rb +1 -1
  43. data/lib/cassandra/protocol/type_converter.rb +4 -3
  44. data/lib/cassandra/reconnection.rb +1 -1
  45. data/lib/cassandra/retry.rb +3 -5
  46. data/lib/cassandra/session.rb +11 -5
  47. data/lib/cassandra/table.rb +1 -1
  48. data/lib/cassandra/time_uuid.rb +21 -83
  49. data/lib/cassandra/util.rb +1 -1
  50. data/lib/cassandra/uuid.rb +6 -4
  51. data/lib/cassandra/uuid/generator.rb +207 -0
  52. data/lib/cassandra/version.rb +1 -1
  53. metadata +24 -19
@@ -17,5 +17,5 @@
17
17
  #++
18
18
 
19
19
  module Cassandra
20
- VERSION = '1.0.0.beta.3'.freeze
20
+ VERSION = '1.0.0.rc.1'.freeze
21
21
  end
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.beta.3
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-04 00:00:00.000000000 Z
12
+ date: 2014-10-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- prerelease: false
16
- version_requirements: !ruby/object:Gem::Requirement
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.pre4
20
+ version: 1.2.0.pre9
21
21
  type: :runtime
22
- requirement: !ruby/object:Gem::Requirement
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.pre4
27
- name: ione
27
+ version: 1.2.0.pre9
28
28
  - !ruby/object:Gem::Dependency
29
- prerelease: false
30
- version_requirements: !ruby/object:Gem::Requirement
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
- requirement: !ruby/object:Gem::Requirement
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
- prerelease: false
44
- version_requirements: !ruby/object:Gem::Requirement
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
- requirement: !ruby/object:Gem::Requirement
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.1
213
+ rubygems_version: 2.4.2
209
214
  signing_key:
210
215
  specification_version: 4
211
216
  summary: Datastax Ruby Driver for Apache Cassandra