cassandra-driver 1.1.0-java → 1.1.1-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba36bd754db916c52e42130906733192c16ec6fa
4
- data.tar.gz: dd30b1f020b3647d686e901638305b93c6286412
3
+ metadata.gz: 984d90b0ce4b175a04a676dca086bc1ea986326c
4
+ data.tar.gz: 78893f940c6799e77ee062edc206dfb7b6747801
5
5
  SHA512:
6
- metadata.gz: e4e143ed5e11f1d2f88fefee54acd0ac3a92ffd2d8f650cf34b2c090041ee1f8e359c3b9c2b93dafd2e6ec8582a691d351e1c8371c4bc376e630273f3e1c0e0e
7
- data.tar.gz: bca986745e23c0efc77e24cf2f816e94db79479079dfa2c115476f6d9c14b9c69ad17468f112ea6b65dc4f803f62da14048d25f16ec1eb4f1a073b8e4efb71c7
6
+ metadata.gz: e9cbe330d6fab7ab4aed5c48345a04f25adb329ba40220d7eaf5e714fb3f4f8695063b6534f487b4f88f5dd6014976152360215a732e1209046a68bc72745344
7
+ data.tar.gz: 09e4ee074e44063aa14f4766aed0874560368c1c4cca7a353e5db37dda3876baf0b4d73b1a9380ae1705e6dd1905aae7ce198ce138f4f436e66b9a48f5e32c01
data/README.md CHANGED
@@ -83,7 +83,7 @@ gem install cassandra-driver
83
83
  Install via Gemfile
84
84
 
85
85
  ```ruby
86
- gem 'cassandra-driver', '~> 1.0.0'
86
+ gem 'cassandra-driver'
87
87
  ```
88
88
 
89
89
  __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://datastax.github.io/ruby-driver/features/#compression)
@@ -93,7 +93,7 @@ __Note__: if you want to use compression you should also install [snappy](http:/
93
93
 
94
94
  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.
95
95
 
96
- ## What's new in v1.1.0
96
+ ## What's new in v1.1.1
97
97
 
98
98
  Current release introduces the following new features:
99
99
 
@@ -213,6 +213,8 @@ module Cassandra
213
213
  end
214
214
 
215
215
  def batch(statement, options)
216
+ return @futures.error(Errors::ClientError.new("Batch statements are not supported by the current version of Apache Cassandra")) if @connection_options.protocol_version < 2
217
+
216
218
  timeout = options.timeout
217
219
  keyspace = @keyspace
218
220
  plan = @load_balancing_policy.plan(keyspace, statement, options)
@@ -225,7 +225,7 @@ module Cassandra
225
225
  max_index = nil
226
226
 
227
227
  columns.each do |cl|
228
- if cl['type'].upcase == 'CLUSTERING_KEY'
228
+ if cl['type'].to_s.upcase == 'CLUSTERING_KEY'
229
229
  index = cl['component_index'] || 0
230
230
 
231
231
  if max_index.nil? || index > max_index
@@ -284,7 +284,7 @@ module Cassandra
284
284
  next if row['column_name'].empty?
285
285
 
286
286
  column = create_column(row)
287
- type = row['type']
287
+ type = row['type'].to_s
288
288
  index = row['component_index'] || 0
289
289
 
290
290
  case type.upcase
@@ -321,7 +321,7 @@ module Cassandra
321
321
 
322
322
  if column['index_type'].nil?
323
323
  index = nil
324
- elsif column['index_type'].upcase == 'CUSTOM' || !column['index_options']
324
+ elsif column['index_type'].to_s.upcase == 'CUSTOM' || !column['index_options']
325
325
  index = Column::Index.new(column['index_name'])
326
326
  else
327
327
  options = ::JSON.load(column['index_options'])
@@ -201,6 +201,7 @@ module Cassandra
201
201
  end
202
202
  end
203
203
  end
204
+ promise.future
204
205
  end
205
206
  end
206
207
 
@@ -233,6 +234,11 @@ module Cassandra
233
234
  @@factory.all(*futures)
234
235
  end
235
236
 
237
+ # Returns a new promise instance
238
+ def self.promise
239
+ @@factory.promise
240
+ end
241
+
236
242
  # @private
237
243
  def initialize(signal)
238
244
  @signal = signal
@@ -17,5 +17,5 @@
17
17
  #++
18
18
 
19
19
  module Cassandra
20
- VERSION = '1.1.0'.freeze
20
+ VERSION = '1.1.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.1.0
4
+ version: 1.1.1
5
5
  platform: java
6
6
  authors:
7
7
  - Theo Hultberg