cassandra-driver 3.2.3 → 3.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +19 -19
- data/lib/cassandra/future.rb +1 -1
- data/lib/cassandra/protocol/cql_byte_buffer.rb +2 -2
- data/lib/cassandra/types.rb +1 -1
- data/lib/cassandra/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c0aa334a3d307fd76859ce7a0182bd96ca27b454c8e80532091872dd7bbeba56
|
4
|
+
data.tar.gz: 75dda83c9ec236bbc76987fcae00a7970b2d9d31db5b71b51cf8d50de71ae8b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8318028554e6ad8d9377657c09b6b2a82bb004ca397eca52326364e04b52b4a5f43d8ac1783dbb0af2ac3ebbaab7d9ad0e64c452864b58a42a0a5a373ca73f54
|
7
|
+
data.tar.gz: d561999a9a759c4b5ec8bf2e9558cb5673a8f5786c855e40e8c2a5586b99d77c319b72f0ae995a1ccebabe3d6b0b5cff3f4d46c35fd724e9c06900b5bf9ab854
|
data/README.md
CHANGED
@@ -21,14 +21,14 @@ better compatibility and support for DataStax Enterprise.
|
|
21
21
|
|
22
22
|
This driver is based on [the cql-rb gem](https://github.com/iconara/cql-rb) by [Theo Hultberg](https://github.com/iconara) and we added support for:
|
23
23
|
|
24
|
-
* [Asynchronous execution](http://docs.datastax.com/en/developer/ruby-driver/3.
|
25
|
-
* One-off, [prepared](http://docs.datastax.com/en/developer/ruby-driver/3.
|
26
|
-
* Automatic peer discovery and cluster metadata with [support for change notifications](http://docs.datastax.com/en/developer/ruby-driver/3.
|
27
|
-
* Various [load-balancing](http://docs.datastax.com/en/developer/ruby-driver/3.
|
28
|
-
* [SSL encryption](http://docs.datastax.com/en/developer/ruby-driver/3.
|
29
|
-
* [Flexible and robust error handling](http://docs.datastax.com/en/developer/ruby-driver/3.
|
30
|
-
* [Per-request execution information and tracing](http://docs.datastax.com/en/developer/ruby-driver/3.
|
31
|
-
* [Configurable address resolution](http://docs.datastax.com/en/developer/ruby-driver/3.
|
24
|
+
* [Asynchronous execution](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/asynchronous_io/)
|
25
|
+
* One-off, [prepared](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/basics/prepared_statements/) and [batch statements](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/basics/batch_statements/)
|
26
|
+
* Automatic peer discovery and cluster metadata with [support for change notifications](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/state_listeners/)
|
27
|
+
* Various [load-balancing](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/load_balancing/), [retry](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/retry_policies/) and [reconnection](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/reconnection/) policies with [ability to write your own](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/load_balancing/implementing_a_policy/)
|
28
|
+
* [SSL encryption](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/security/ssl_encryption/)
|
29
|
+
* [Flexible and robust error handling](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/error_handling/)
|
30
|
+
* [Per-request execution information and tracing](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/debugging/)
|
31
|
+
* [Configurable address resolution](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/address_resolution/)
|
32
32
|
|
33
33
|
[Check out the slides from Ruby Driver Explained](https://speakerdeck.com/avalanche123/ruby-driver-explained) for a detailed overview of the Ruby Driver architecture.
|
34
34
|
|
@@ -76,9 +76,9 @@ __Note__: The host you specify is just a seed node, the driver will automaticall
|
|
76
76
|
|
77
77
|
Read more:
|
78
78
|
|
79
|
-
* [`Cassandra.cluster` options](http://docs.datastax.com/en/developer/ruby-driver/3.
|
80
|
-
* [`Session#execute_async` options](http://docs.datastax.com/en/developer/ruby-driver/3.
|
81
|
-
* [Usage documentation](http://docs.datastax.com/en/developer/ruby-driver/3.
|
79
|
+
* [`Cassandra.cluster` options](http://docs.datastax.com/en/developer/ruby-driver/3.2/api/cassandra/#cluster-class_method)
|
80
|
+
* [`Session#execute_async` options](http://docs.datastax.com/en/developer/ruby-driver/3.2/api/cassandra/session/#execute_async-instance_method)
|
81
|
+
* [Usage documentation](http://docs.datastax.com/en/developer/ruby-driver/3.2/features)
|
82
82
|
|
83
83
|
## Installation
|
84
84
|
|
@@ -94,14 +94,14 @@ Install via Gemfile
|
|
94
94
|
gem 'cassandra-driver'
|
95
95
|
```
|
96
96
|
|
97
|
-
__Note__: if you want to use compression you should also install [snappy](http://rubygems.org/gems/snappy) or [lz4-ruby](http://rubygems.org/gems/lz4-ruby). [Read more about compression.](http://docs.datastax.com/en/developer/ruby-driver/3.
|
97
|
+
__Note__: if you want to use compression you should also install [snappy](http://rubygems.org/gems/snappy) or [lz4-ruby](http://rubygems.org/gems/lz4-ruby). [Read more about compression.](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/#compression)
|
98
98
|
|
99
99
|
|
100
100
|
## Upgrading from cql-rb
|
101
101
|
|
102
102
|
Some of the new features added to the driver have unfortunately led to changes in the original cql-rb API.
|
103
103
|
In the examples directory, you can find [an example of how to wrap the ruby driver to achieve almost complete
|
104
|
-
interface parity with cql-rb](https://github.com/datastax/ruby-driver/blob/v3.2.
|
104
|
+
interface parity with cql-rb](https://github.com/datastax/ruby-driver/blob/v3.2.4/examples/cql-rb-wrapper.rb)
|
105
105
|
to assist you with gradual upgrade.
|
106
106
|
|
107
107
|
If you are upgrading to DataStax Enterprise, use the [Ruby DSE driver](https://github.com/datastax/ruby-dse-driver.git)
|
@@ -112,7 +112,7 @@ This minor release adds support for MRI 2.4.x and also contains a few miscellane
|
|
112
112
|
support for Ruby versions prior to 2.2. This was already officially the case, but the minimum version limit is
|
113
113
|
now enforced.
|
114
114
|
|
115
|
-
See the [changelog](https://github.com/datastax/ruby-driver/blob/v3.2.
|
115
|
+
See the [changelog](https://github.com/datastax/ruby-driver/blob/v3.2.4/CHANGELOG.md) for more information on all
|
116
116
|
changes in this version and past versions.
|
117
117
|
|
118
118
|
## What's new in v3.1
|
@@ -180,7 +180,7 @@ examples in the `features/` directory.
|
|
180
180
|
## Running tests
|
181
181
|
|
182
182
|
If you don't feel like reading through the following instructions on how to run
|
183
|
-
ruby-driver tests, feel free to [check out .travis.yml for the entire build code](https://github.com/datastax/ruby-driver/blob/v3.2.
|
183
|
+
ruby-driver tests, feel free to [check out .travis.yml for the entire build code](https://github.com/datastax/ruby-driver/blob/v3.2.4/.travis.yml).
|
184
184
|
|
185
185
|
* Check out the driver codebase and install test dependencies:
|
186
186
|
|
@@ -204,7 +204,7 @@ CASSANDRA_VERSION=2.1.12 bundle exec rake test # run both as well as integration
|
|
204
204
|
## Changelog & versioning
|
205
205
|
|
206
206
|
Check out the [releases on GitHub](https://github.com/datastax/ruby-driver/releases) and
|
207
|
-
[changelog](https://github.com/datastax/ruby-driver/blob/v3.2.
|
207
|
+
[changelog](https://github.com/datastax/ruby-driver/blob/v3.2.4/CHANGELOG.md). Version
|
208
208
|
numbering follows the [semantic versioning](http://semver.org/) scheme.
|
209
209
|
|
210
210
|
Private and experimental APIs, defined as whatever is not in the
|
@@ -227,7 +227,7 @@ the release.
|
|
227
227
|
* Because the driver reactor is using `IO.select`, the maximum number of tcp connections allowed is 1024.
|
228
228
|
* Because the driver uses `IO#write_nonblock`, Windows is not supported.
|
229
229
|
|
230
|
-
Please [refer to the usage documentation for more information on common pitfalls](http://docs.datastax.com/en/developer/ruby-driver/3.
|
230
|
+
Please [refer to the usage documentation for more information on common pitfalls](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/)
|
231
231
|
|
232
232
|
## Contributing
|
233
233
|
|
@@ -245,7 +245,7 @@ Driver for Apache Cassandra will continue on this project, while
|
|
245
245
|
|
246
246
|
## Copyright
|
247
247
|
|
248
|
-
|
248
|
+
© DataStax, Inc.
|
249
249
|
|
250
250
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
|
251
251
|
except in compliance with the License. You may obtain a copy of the License at
|
@@ -257,4 +257,4 @@ License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
|
257
257
|
either express or implied. See the License for the specific language governing permissions
|
258
258
|
and limitations under the License.
|
259
259
|
|
260
|
-
[1]: http://docs.datastax.com/en/developer/ruby-driver/3.
|
260
|
+
[1]: http://docs.datastax.com/en/developer/ruby-driver/3.2/api
|
data/lib/cassandra/future.rb
CHANGED
@@ -58,7 +58,7 @@ module Cassandra
|
|
58
58
|
if scale <= 0
|
59
59
|
# Special case where the actual scale is positive; scale in the protocol is actually negative of
|
60
60
|
# reality.
|
61
|
-
BigDecimal
|
61
|
+
BigDecimal(number_string + '0' * -scale)
|
62
62
|
else
|
63
63
|
if number_string.length <= scale
|
64
64
|
if number_string.start_with?(MINUS)
|
@@ -75,7 +75,7 @@ module Cassandra
|
|
75
75
|
fraction_string <<
|
76
76
|
number_string[number_string.length - scale, number_string.length]
|
77
77
|
end
|
78
|
-
BigDecimal
|
78
|
+
BigDecimal(fraction_string)
|
79
79
|
end
|
80
80
|
rescue Errors::DecodingError => e
|
81
81
|
raise Errors::DecodingError, e.message, e.backtrace
|
data/lib/cassandra/types.rb
CHANGED
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: 3.2.
|
4
|
+
version: 3.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Theo Hultberg
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2020-04-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ione
|
@@ -46,14 +46,14 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
49
|
+
version: '13.0'
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '
|
56
|
+
version: '13.0'
|
57
57
|
description: A pure Ruby driver for Apache Cassandra
|
58
58
|
email:
|
59
59
|
- theo@iconara.net
|
@@ -232,8 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
232
|
- !ruby/object:Gem::Version
|
233
233
|
version: '0'
|
234
234
|
requirements: []
|
235
|
-
|
236
|
-
rubygems_version: 2.4.5.1
|
235
|
+
rubygems_version: 3.0.8
|
237
236
|
signing_key:
|
238
237
|
specification_version: 4
|
239
238
|
summary: Datastax Ruby Driver for Apache Cassandra
|