cql-rb 1.2.1 → 1.2.2

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: 03aa95c00f99a8244b10f900c6842c34d36fa6a4
4
- data.tar.gz: 8a556630359f6a2be738a643fd6764c0a4131d4b
3
+ metadata.gz: 6dd6370f6131da7cfdd42516a511d5bcc0edbc6a
4
+ data.tar.gz: fc06b032f6f7c1219b8ed6f05c6421b97b76a9ee
5
5
  SHA512:
6
- metadata.gz: c87fe31fba262b307f1bae21b327e3b21e2d8544afc10db79928c4712696ad66e143ab221167c704ab7f6c8e1007640ce472f993640760b7b4b55e2b76e064fe
7
- data.tar.gz: a2d9e635478c7ac2bab760692c93d5fe66d37dd7e95df44d068531831868b17226705f0b6ff35294e75493e520bb1a3336d1be9e0478329babaa538849560d34
6
+ metadata.gz: cc7feeb45c85c6dae447196786859fcd30e045a03c200fa7dea908bcdc923ca456de9ea320693f68d60cbd4eba0daf077f67098d095225d04116695e1cc0b889
7
+ data.tar.gz: f2a77f2ea81b1b910fb7064e373c1cca1a4658184369d85d2d589f27a03ed12d2303abe7b9ed33f394d774d1df3394c62d3ed356e8a0f97ed5846c7b3bacc702
@@ -43,7 +43,7 @@ module Cql
43
43
  when :list, :set
44
44
  _, sub_type = type
45
45
  if value
46
- raw = ''
46
+ raw = ByteBuffer.new
47
47
  write_short(raw, value.size)
48
48
  value.each do |element|
49
49
  to_bytes(raw, sub_type, element, 2)
@@ -55,7 +55,7 @@ module Cql
55
55
  when :map
56
56
  _, key_type, value_type = type
57
57
  if value
58
- raw = ''
58
+ raw = ByteBuffer.new
59
59
  write_short(raw, value.size)
60
60
  value.each do |key, value|
61
61
  to_bytes(raw, key_type, key, 2)
data/lib/cql/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Cql
4
- VERSION = '1.2.1'.freeze
4
+ VERSION = '1.2.2'.freeze
5
5
  end
@@ -76,6 +76,7 @@ module Cql
76
76
  [[:list, :boolean], [true, false, true, true], "\x00\x04" + "\x00\x01\x01" + "\x00\x01\x00" + "\x00\x01\x01" + "\x00\x01\x01"],
77
77
  [[:map, :uuid, :int], {Uuid.new('cfd66ccc-d857-4e90-b1e5-df98a3d40cd6') => 45345, Uuid.new('a4a70900-24e1-11df-8924-001ff3591711') => 98765}, "\x00\x02" + "\x00\x10\xCF\xD6l\xCC\xD8WN\x90\xB1\xE5\xDF\x98\xA3\xD4\f\xD6" + "\x00\x04\x00\x00\xb1\x21" + "\x00\x10\xA4\xA7\t\x00$\xE1\x11\xDF\x89$\x00\x1F\xF3Y\x17\x11" + "\x00\x04\x00\x01\x81\xcd"],
78
78
  [[:map, :ascii, :blob], {'hello' => 'world', 'one' => "\x01", 'two' => "\x02"}, "\x00\x03" + "\x00\x05hello" + "\x00\x05world" + "\x00\x03one" + "\x00\x01\x01" + "\x00\x03two" + "\x00\x01\x02"],
79
+ [[:map, :varchar, :float], {'hello' => 1, 'würld'.force_encoding('utf-8') => 2.0}, "\x00\x02" + "\x00\x05hello" + "\x00\x04?\x80\x00\x00" + "\x00\x06w\xC3\xBCrld" + "\x00\x04@\x00\x00\x00"],
79
80
  [[:set, :int], Set.new([13, 3453, 456456, 123, 768678]), "\x00\x05" + "\x00\x04\x00\x00\x00\x0d" + "\x00\x04\x00\x00\x0d\x7d" + "\x00\x04\x00\x06\xf7\x08" + "\x00\x04\x00\x00\x00\x7b" + "\x00\x04\x00\x0b\xba\xa6"],
80
81
  [[:set, :varchar], Set.new(['foo', 'bar', 'baz']), "\x00\x03" + "\x00\x03foo" + "\x00\x03bar" + "\x00\x03baz"],
81
82
  [[:set, :int], [13, 3453, 456456, 123, 768678], "\x00\x05" + "\x00\x04\x00\x00\x00\x0d" + "\x00\x04\x00\x00\x0d\x7d" + "\x00\x04\x00\x06\xf7\x08" + "\x00\x04\x00\x00\x00\x7b" + "\x00\x04\x00\x0b\xba\xa6"],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cql-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Theo Hultberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-07 00:00:00.000000000 Z
11
+ date: 2014-05-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A pure Ruby CQL3 driver for Cassandra
14
14
  email: