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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 067a2b7e2d13c823a684b6a4ffbd49245f03d01f
4
- data.tar.gz: da9b6fb47787c9bbe2e6663f195cfa50e42ded6a
3
+ metadata.gz: 03aa95c00f99a8244b10f900c6842c34d36fa6a4
4
+ data.tar.gz: 8a556630359f6a2be738a643fd6764c0a4131d4b
5
5
  SHA512:
6
- metadata.gz: e5ffe9cc6e3e23563208a5499a428516e5c6ade8a6f737566d24f73e039d7626b2d0743ec3a940e1fa1c63b0b8dced9542510b3296e785421a8243cd06ae0a8b
7
- data.tar.gz: ae439196fdb1cce49e9c8ae7ad2958590579291a9b2b5427d8b8ef16d0183bea4ce74b58ab3f799d3ce32da41e2c8a159c75fde9b9856b43ebee63bb06a9860b
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 = (@n & 0xffffffffffffffff) ^ ((@n >> 64) & 0xffffffffffffffff)
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
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Cql
4
- VERSION = '1.2.0'.freeze
4
+ VERSION = '1.2.1'.freeze
5
5
  end
@@ -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(276263553384940695775376958868900023510).hash
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.0
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-01-29 00:00:00.000000000 Z
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: