cassandra-driver 3.2.5.rc1 → 3.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/cassandra/protocol/requests/query_request.rb +10 -2
- data/lib/cassandra/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8c5a43dbb0d9f94193939527fc90de1e0f0d52c3860626c6344f22a5f42dd70
|
4
|
+
data.tar.gz: 1de98d478a133db7eb1c21812562c9397a882483db11f2da5b976e9cbf0b2b8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 638e6bbee952fd60df5aead9e71072b64ffa0d4c93ed8b85abc57fd40733c12972be228af587adbb8a86fa798d776329b82c492e02d95bf069323c821b9685c8
|
7
|
+
data.tar.gz: a6f0e1760b0cefacecae677961c4a8bcefd40d2a71df85e1ac1dd086a4b12214859aba362c36cd8b6b4de749079f49415de0224d196f95369d4a31164401fae6
|
data/README.md
CHANGED
@@ -99,7 +99,7 @@ __Note__: if you want to use compression you should also install [snappy](http:/
|
|
99
99
|
|
100
100
|
Some of the new features added to the driver have unfortunately led to changes in the original cql-rb API.
|
101
101
|
In the examples directory, you can find [an example of how to wrap the ruby driver to achieve almost complete
|
102
|
-
interface parity with cql-rb](https://github.com/datastax/ruby-driver/blob/v3.2.
|
102
|
+
interface parity with cql-rb](https://github.com/datastax/ruby-driver/blob/v3.2.5/examples/cql-rb-wrapper.rb)
|
103
103
|
to assist you with gradual upgrade.
|
104
104
|
|
105
105
|
If you are upgrading to DataStax Enterprise, use the [Ruby DSE driver](https://docs.datastax.com/en/developer/ruby-driver-dse/2.1/) for more features and better compatibility.
|
@@ -109,7 +109,7 @@ This minor release adds support for MRI 2.4.x and also contains a few miscellane
|
|
109
109
|
support for Ruby versions prior to 2.2. This was already officially the case, but the minimum version limit is
|
110
110
|
now enforced.
|
111
111
|
|
112
|
-
See the [changelog](https://github.com/datastax/ruby-driver/blob/v3.2.
|
112
|
+
See the [changelog](https://github.com/datastax/ruby-driver/blob/v3.2.5/CHANGELOG.md) for more information on all
|
113
113
|
changes in this version and past versions.
|
114
114
|
|
115
115
|
## What's new in v3.1
|
@@ -177,7 +177,7 @@ examples in the `features/` directory.
|
|
177
177
|
## Running tests
|
178
178
|
|
179
179
|
If you don't feel like reading through the following instructions on how to run
|
180
|
-
ruby-driver tests, feel free to [check out .travis.yml for the entire build code](https://github.com/datastax/ruby-driver/blob/v3.2.
|
180
|
+
ruby-driver tests, feel free to [check out .travis.yml for the entire build code](https://github.com/datastax/ruby-driver/blob/v3.2.5/.travis.yml).
|
181
181
|
|
182
182
|
* Check out the driver codebase and install test dependencies:
|
183
183
|
|
@@ -201,7 +201,7 @@ CASSANDRA_VERSION=2.1.12 bundle exec rake test # run both as well as integration
|
|
201
201
|
## Changelog & versioning
|
202
202
|
|
203
203
|
Check out the [releases on GitHub](https://github.com/datastax/ruby-driver/releases) and
|
204
|
-
[changelog](https://github.com/datastax/ruby-driver/blob/v3.2.
|
204
|
+
[changelog](https://github.com/datastax/ruby-driver/blob/v3.2.5/CHANGELOG.md). Version
|
205
205
|
numbering follows the [semantic versioning](http://semver.org/) scheme.
|
206
206
|
|
207
207
|
Private and experimental APIs, defined as whatever is not in the
|
@@ -51,6 +51,14 @@ module Cassandra
|
|
51
51
|
!!@payload
|
52
52
|
end
|
53
53
|
|
54
|
+
def append_flags(buffer,flags,protocol_version)
|
55
|
+
if protocol_version < 5
|
56
|
+
buffer.append(flags.chr)
|
57
|
+
else
|
58
|
+
buffer.append_int(flags)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
54
62
|
def write(buffer, protocol_version, encoder)
|
55
63
|
buffer.append_long_string(@cql)
|
56
64
|
buffer.append_consistency(@consistency)
|
@@ -63,10 +71,10 @@ module Cassandra
|
|
63
71
|
if @values && !@values.empty?
|
64
72
|
flags |= 0x01
|
65
73
|
flags |= 0x40 if protocol_version > 2 && !@names.empty?
|
66
|
-
buffer
|
74
|
+
append_flags(buffer, flags, protocol_version)
|
67
75
|
encoder.write_parameters(buffer, @values, @type_hints, @names)
|
68
76
|
else
|
69
|
-
buffer
|
77
|
+
append_flags(buffer, flags, protocol_version)
|
70
78
|
end
|
71
79
|
buffer.append_int(@page_size) if @page_size
|
72
80
|
buffer.append_bytes(@paging_state) if @paging_state
|
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.5
|
4
|
+
version: 3.2.5
|
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: 2020-10-
|
13
|
+
date: 2020-10-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ione
|
@@ -229,9 +229,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
229
229
|
version: 2.2.0
|
230
230
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
231
231
|
requirements:
|
232
|
-
- - "
|
232
|
+
- - ">="
|
233
233
|
- !ruby/object:Gem::Version
|
234
|
-
version:
|
234
|
+
version: '0'
|
235
235
|
requirements: []
|
236
236
|
rubygems_version: 3.0.8
|
237
237
|
signing_key:
|