Skip to content

Commit 53d7889

Browse files
author
Bulat Shakirzyanov
committed
[ci skip] fix docs and bump version
1 parent e574fda commit 53d7889

File tree

5 files changed

+8
-14
lines changed

5 files changed

+8
-14
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
cassandra-driver (2.1.1)
4+
cassandra-driver (2.1.3)
55
ione (~> 1.2)
66

77
GEM

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ __Note__: if you want to use compression you should also install [snappy](http:/
9191

9292
Some of the new features added to the driver have unfortunately led to changes in the original cql-rb API. In the examples directory, you can find [an example of how to wrap the ruby driver to achieve almost complete interface parity with cql-rb](https://github.com/datastax/ruby-driver/blob/master/examples/cql-rb-wrapper.rb) to assist you with gradual upgrade.
9393

94-
## What's new in v2.1.1
94+
## What's new in v2.1.3
9595

9696
Features:
9797

docs.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,14 @@ links:
2929
- title: Releases
3030
href: https://github.com/datastax/ruby-driver/releases
3131
versions:
32-
- name: v2.1.1
33-
ref: aca873205f0d17d8fdeda315e5c99be4fc49c037
34-
- name: v2.1.0
35-
ref: 4821258dce39c47b936672b3b870048e40990708
32+
- name: v2.1.3
33+
ref: c93eac55227e1d188d863d53bf5a90df95264dba
3634
- name: v2.0.1
3735
ref: 80cab0ad188511ec16eb39111c0b67329c754729
38-
- name: v2.0.0
39-
ref: 4b0b0efd8e8e3d36d7eb0bfe809a4ce0f5d5aa73
4036
- name: v1.2.0
4137
ref: 6c398cb3dbc5218f6a77177dcc2130d11bf0158a
4238
- name: v1.1.1
4339
ref: 1763066e2f70db8889799aa0af4a8eb63ad9ab74
44-
- name: v1.1.0
45-
ref: 3a69e5b21113b91b1bc364ceeefb4e2940181194
4640
- name: v1.0.0
4741
ref: 72bfc9609f94e904c0186b061a02404fb2c0d22e
4842
- name: v1.0.0-rc.1

features/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ For queries that will be run repeatedly, [you should use Prepared statements](#p
4040
**If you're using Cassandra 2.0 or later** you no longer have to build CQL strings when you want to insert a value in a query, there's a new feature that lets you bind values with regular statements:
4141

4242
```ruby
43-
session.execute("UPDATE users SET age = ? WHERE user_name = ?", 41, 'Sam')
43+
session.execute("UPDATE users SET age = ? WHERE user_name = ?", arguments: [41, 'Sam'])
4444
```
4545

4646
If you find yourself doing this often, it's better to use prepared statements. As a rule of thumb, if your application is sending a request more than once, a prepared statement is almost always the right choice.
@@ -61,7 +61,7 @@ data = [
6161

6262
# execute all statements in background
6363
futures = data.map do |(age, username)|
64-
session.execute_async("UPDATE users SET age = ? WHERE user_name = ?", age, username)
64+
session.execute_async("UPDATE users SET age = ? WHERE user_name = ?", arguments: [age, username])
6565
end
6666

6767
# block until both statements executed
@@ -77,7 +77,7 @@ The driver supports prepared statements. Use `#prepare` to create a statement ob
7777
```ruby
7878
statement = session.prepare('INSERT INTO users (username, email) VALUES (?, ?)')
7979

80-
session.execute(statement, 'avalanche123', '[email protected]')
80+
session.execute(statement, arguments: ['avalanche123', '[email protected]'])
8181
```
8282

8383
You should prepare a statement for a given query **only** once and then resue it by calling #execute. Re-preparing the same statement will have a negative impact on the performance and should be avoided.

lib/cassandra/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
#++
1818

1919
module Cassandra
20-
VERSION = '2.1.1'.freeze
20+
VERSION = '2.1.3'.freeze
2121
end

0 commit comments

Comments
 (0)