cql-rb 1.0.5 → 1.0.6

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 ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDk1YTJjZWRjODBkYTMyNjIyYjBhYjZkN2NjYzA5MWE1YzJkNTVjMw==
5
+ data.tar.gz: !binary |-
6
+ ZjI5MjQ2Mzc1MDE3MzRjYzg4MzVjMmY5YTMyM2U4ODY0ODY4ZTg0OQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ Y2IxNTg3NGYxOWM1MzY3ZmViYTY4MjcxNDhkNDAzZjkxMmY5MTBjYjc4YzJi
10
+ MDMwMjI1Y2NmZjI2OTAyNTM3ZWQ5ODk2M2YwMjNjODU5ODlkNjI5ZDUxNDk2
11
+ Y2NhNWZlMjk3ZWUzNTU4YzM2Y2UyZWI5M2YyODQyMjVmODczODU=
12
+ data.tar.gz: !binary |-
13
+ YjJhNDIwN2M1NTg4ZjMxMWNiYjA1NGFlMjZiMDc1ODgxZDhmMDAyZTUzZDEx
14
+ ZDE2OGNlZTAzN2IwNTVmNWYzNjcxYzNhNTdlNzk0Mzg3Zjk4ZDhjZjE1ZmY5
15
+ MjQ4NzE3NzUyNDQ5NTc5NDE5ODQ4MmE2MGZkMjIyMjlhMjk4NWQ=
@@ -27,7 +27,11 @@ module Cql
27
27
  end
28
28
 
29
29
  def write_uuid(buffer, uuid)
30
- write_varint(buffer, uuid.value)
30
+ v = uuid.value
31
+ write_int(buffer, (v >> 96) & 0xffffffff)
32
+ write_int(buffer, (v >> 64) & 0xffffffff)
33
+ write_int(buffer, (v >> 32) & 0xffffffff)
34
+ write_int(buffer, v & 0xffffffff)
31
35
  end
32
36
 
33
37
  def write_string_list(buffer, strs)
data/lib/cql/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Cql
4
- VERSION = '1.0.5'.freeze
4
+ VERSION = '1.0.6'.freeze
5
5
  end
@@ -325,6 +325,7 @@ module Cql
325
325
  end
326
326
 
327
327
  it 'cleans out failed connections' do
328
+ pending 'There\'s some kind of race condition in the setup for this test'
328
329
  f = io_reactor.queue_request(Protocol::QueryRequest.new('USE system', :one), @connection_id)
329
330
  expect { f.get }.to raise_error(ConnectionNotFoundError)
330
331
  end
@@ -121,6 +121,11 @@ module Cql
121
121
  buffer.should eql_bytes("\xA4\xA7\t\x00$\xE1\x11\xDF\x89$\x00\x1F\xF3Y\x17\x11")
122
122
  end
123
123
 
124
+ it 'encodes a UUID as 16 bytes' do
125
+ Encoding.write_uuid(buffer, Uuid.new('00000000-24e1-11df-8924-001ff3591711'))
126
+ buffer.size.should eql(16)
127
+ end
128
+
124
129
  it 'appends to the buffer' do
125
130
  buffer << 'FOO'
126
131
  Encoding.write_uuid(buffer, uuid)
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cql-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
5
- prerelease:
4
+ version: 1.0.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Theo Hultberg
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-10 00:00:00.000000000 Z
11
+ date: 2013-10-14 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: A pure Ruby CQL3 driver for Cassandra
15
14
  email:
@@ -95,30 +94,26 @@ files:
95
94
  homepage: http://github.com/iconara/cql-rb
96
95
  licenses:
97
96
  - Apache
97
+ metadata: {}
98
98
  post_install_message:
99
99
  rdoc_options: []
100
100
  require_paths:
101
101
  - lib
102
102
  required_ruby_version: !ruby/object:Gem::Requirement
103
- none: false
104
103
  requirements:
105
104
  - - ! '>='
106
105
  - !ruby/object:Gem::Version
107
106
  version: 1.9.2
108
107
  required_rubygems_version: !ruby/object:Gem::Requirement
109
- none: false
110
108
  requirements:
111
109
  - - ! '>='
112
110
  - !ruby/object:Gem::Version
113
111
  version: '0'
114
- segments:
115
- - 0
116
- hash: -3554416859720559091
117
112
  requirements: []
118
113
  rubyforge_project:
119
- rubygems_version: 1.8.23
114
+ rubygems_version: 2.1.5
120
115
  signing_key:
121
- specification_version: 3
116
+ specification_version: 4
122
117
  summary: Cassandra CQL3 driver
123
118
  test_files:
124
119
  - spec/cql/byte_buffer_spec.rb