cql-rb 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cql/uuid.rb +1 -1
- data/lib/cql/version.rb +1 -1
- data/spec/cql/uuid_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03aa95c00f99a8244b10f900c6842c34d36fa6a4
|
4
|
+
data.tar.gz: 8a556630359f6a2be738a643fd6764c0a4131d4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c87fe31fba262b307f1bae21b327e3b21e2d8544afc10db79928c4712696ad66e143ab221167c704ab7f6c8e1007640ce472f993640760b7b4b55e2b76e064fe
|
7
|
+
data.tar.gz: a2d9e635478c7ac2bab760692c93d5fe66d37dd7e95df44d068531831868b17226705f0b6ff35294e75493e520bb1a3336d1be9e0478329babaa538849560d34
|
data/lib/cql/uuid.rb
CHANGED
@@ -39,7 +39,7 @@ module Cql
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def hash
|
42
|
-
@h
|
42
|
+
@h ||= 0x7fffffffffffffff - ((@n & 0xffffffffffffffff) ^ ((@n >> 64) & 0xffffffffffffffff))
|
43
43
|
end
|
44
44
|
|
45
45
|
# Returns the numerical representation of this UUID
|
data/lib/cql/version.rb
CHANGED
data/spec/cql/uuid_spec.rb
CHANGED
@@ -53,7 +53,7 @@ module Cql
|
|
53
53
|
|
54
54
|
describe '#hash' do
|
55
55
|
it 'calculates a 64 bit hash of the UUID' do
|
56
|
-
h = Uuid.new(
|
56
|
+
h = Uuid.new(162917432198567078063626261009205865234).hash
|
57
57
|
h.should be < 2**63
|
58
58
|
h.should be > -2**63
|
59
59
|
end
|
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.
|
4
|
+
version: 1.2.1
|
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-
|
11
|
+
date: 2014-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A pure Ruby CQL3 driver for Cassandra
|
14
14
|
email:
|