cassandra 0.19.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/Gemfile +0 -1
- data/Rakefile +13 -17
- data/cassandra.gemspec +7 -25
- data/lib/cassandra.rb +1 -1
- data/lib/cassandra/composite.rb +6 -3
- metadata +14 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaa67500c0b2d0287c8e400852f63b34f56cf11e
|
4
|
+
data.tar.gz: b06c254bdb33a7419af717b592ae324fbc709977
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3f3f0c03074f682aa7dded476788a44a953549feef39485ff1c9a17154ba68ce0a1d1019c782d76d6ebddc6ce187f2f29701aac3ab40c8543ed2d4e519d929c
|
7
|
+
data.tar.gz: dd8c8caf83a77878d1bad23e6f268d832081fe34c83207f5f143c26a39124d3b0e28130c18d6c057a063ba586abd3f33360b9eb3170589dc44479a32c5494f5e
|
data/CHANGELOG
CHANGED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -1,21 +1,6 @@
|
|
1
1
|
require 'fileutils'
|
2
|
-
|
3
|
-
|
4
|
-
require 'rubygems'
|
5
|
-
require 'echoe'
|
6
|
-
|
7
|
-
Echoe.new("cassandra") do |p|
|
8
|
-
p.author = "Evan Weaver, Ryan King"
|
9
|
-
p.url = 'http://github.com/twitter/cassandra'
|
10
|
-
p.summary = "A Ruby client for the Cassandra distributed database."
|
11
|
-
p.rubygems_version = ">= 0.8"
|
12
|
-
p.dependencies = ['thrift_client >=0.7.0 <0.9', 'json', 'rake', 'simple_uuid ~>0.2.0']
|
13
|
-
p.development_dependencies = ['echoe']
|
14
|
-
p.ignore_pattern = /^(data|vendor\/cassandra|cassandra|vendor\/thrift|.*\.rbc)/
|
15
|
-
p.rdoc_pattern = /^(lib|bin|tasks|ext)|^README|^CHANGELOG|^TODO|^LICENSE|^COPYING$/
|
16
|
-
p.retain_gemspec = true
|
17
|
-
end
|
18
|
-
end
|
2
|
+
require 'rake/testtask'
|
3
|
+
require 'rake/extensiontask'
|
19
4
|
|
20
5
|
CassandraBinaries = {
|
21
6
|
'0.6' => 'http://archive.apache.org/dist/cassandra/0.6.13/apache-cassandra-0.6.13-bin.tar.gz',
|
@@ -193,3 +178,14 @@ task :fix_perms do
|
|
193
178
|
end
|
194
179
|
|
195
180
|
task :pkg => [:fix_perms]
|
181
|
+
|
182
|
+
Rake::ExtensionTask.new('cassandra_native') do |ext|
|
183
|
+
ext.ext_dir = 'ext'
|
184
|
+
end
|
185
|
+
|
186
|
+
Rake::TestTask.new do |t|
|
187
|
+
t.test_files = FileList['test/*.rb']
|
188
|
+
end
|
189
|
+
|
190
|
+
task :default => :test
|
191
|
+
task :test => :compile
|
data/cassandra.gemspec
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "cassandra"
|
5
|
-
s.version = "0.
|
5
|
+
s.version = "0.20.0"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0.8") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Evan Weaver, Ryan King"]
|
9
|
-
s.date = "2012-09-26"
|
10
9
|
s.description = "A Ruby client for the Cassandra distributed database."
|
11
10
|
s.email = ""
|
11
|
+
s.license = "Apache 2.0"
|
12
12
|
s.executables = ["cassandra_helper"]
|
13
13
|
s.extensions = ["ext/extconf.rb"]
|
14
14
|
s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README.md", "bin/cassandra_helper", "ext/cassandra_native.c", "ext/extconf.rb", "lib/cassandra.rb", "lib/cassandra/0.6.rb", "lib/cassandra/0.6/cassandra.rb", "lib/cassandra/0.6/columns.rb", "lib/cassandra/0.6/protocol.rb", "lib/cassandra/0.7.rb", "lib/cassandra/0.7/cassandra.rb", "lib/cassandra/0.7/columns.rb", "lib/cassandra/0.7/protocol.rb", "lib/cassandra/0.8.rb", "lib/cassandra/0.8/cassandra.rb", "lib/cassandra/0.8/columns.rb", "lib/cassandra/0.8/protocol.rb", "lib/cassandra/1.0.rb", "lib/cassandra/1.0/cassandra.rb", "lib/cassandra/1.0/columns.rb", "lib/cassandra/1.0/protocol.rb", "lib/cassandra/1.1.rb", "lib/cassandra/1.1/cassandra.rb", "lib/cassandra/1.1/columns.rb", "lib/cassandra/1.1/protocol.rb", "lib/cassandra/array.rb", "lib/cassandra/batch.rb", "lib/cassandra/cassandra.rb", "lib/cassandra/column_family.rb", "lib/cassandra/columns.rb", "lib/cassandra/comparable.rb", "lib/cassandra/composite.rb", "lib/cassandra/constants.rb", "lib/cassandra/debug.rb", "lib/cassandra/dynamic_composite.rb", "lib/cassandra/helpers.rb", "lib/cassandra/keyspace.rb", "lib/cassandra/long.rb", "lib/cassandra/mock.rb", "lib/cassandra/ordered_hash.rb", "lib/cassandra/protocol.rb", "lib/cassandra/time.rb"]
|
@@ -21,27 +21,9 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.summary = "A Ruby client for the Cassandra distributed database."
|
22
22
|
s.test_files = ["test/cassandra_client_test.rb", "test/cassandra_mock_test.rb", "test/cassandra_test.rb", "test/comparable_types_test.rb", "test/composite_type_test.rb", "test/eventmachine_test.rb", "test/ordered_hash_test.rb", "test/test_helper.rb"]
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
s.add_runtime_dependency(%q<json>, [">= 0"])
|
30
|
-
s.add_runtime_dependency(%q<rake>, [">= 0"])
|
31
|
-
s.add_runtime_dependency(%q<simple_uuid>, ["~> 0.2.0"])
|
32
|
-
s.add_development_dependency(%q<echoe>, [">= 0"])
|
33
|
-
else
|
34
|
-
s.add_dependency(%q<thrift_client>, ["< 0.9", ">= 0.7.0"])
|
35
|
-
s.add_dependency(%q<json>, [">= 0"])
|
36
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
37
|
-
s.add_dependency(%q<simple_uuid>, ["~> 0.2.0"])
|
38
|
-
s.add_dependency(%q<echoe>, [">= 0"])
|
39
|
-
end
|
40
|
-
else
|
41
|
-
s.add_dependency(%q<thrift_client>, ["< 0.9", ">= 0.7.0"])
|
42
|
-
s.add_dependency(%q<json>, [">= 0"])
|
43
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
44
|
-
s.add_dependency(%q<simple_uuid>, ["~> 0.2.0"])
|
45
|
-
s.add_dependency(%q<echoe>, [">= 0"])
|
46
|
-
end
|
24
|
+
s.add_runtime_dependency('thrift_client', ['< 0.9', '~> 0.7'])
|
25
|
+
s.add_runtime_dependency('json', '>= 0')
|
26
|
+
s.add_runtime_dependency('rake', '>= 0')
|
27
|
+
s.add_runtime_dependency('simple_uuid', '~> 0.2.0')
|
28
|
+
s.add_development_dependency('rake-compiler', '~> 0.8.0')
|
47
29
|
end
|
data/lib/cassandra.rb
CHANGED
data/lib/cassandra/composite.rb
CHANGED
@@ -78,9 +78,12 @@ class Cassandra
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def slice_end_of_component
|
81
|
-
|
82
|
-
|
83
|
-
|
81
|
+
ret = "\x00"
|
82
|
+
ret = "\x01" if @column_slice == :after
|
83
|
+
ret = "\xFF" if @column_slice == :before
|
84
|
+
|
85
|
+
ret.force_encoding('BINARY') if ret.respond_to?(:force_encoding)
|
86
|
+
return ret
|
84
87
|
end
|
85
88
|
|
86
89
|
def fast_unpack(packed_string)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cassandra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Weaver, Ryan King
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2013-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thrift_client
|
@@ -17,9 +17,9 @@ dependencies:
|
|
17
17
|
- - <
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.9'
|
20
|
-
- -
|
20
|
+
- - ~>
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.7
|
22
|
+
version: '0.7'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +27,9 @@ dependencies:
|
|
27
27
|
- - <
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0.9'
|
30
|
-
- -
|
30
|
+
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.7
|
32
|
+
version: '0.7'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: json
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,19 +73,19 @@ dependencies:
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: 0.2.0
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
76
|
+
name: rake-compiler
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- -
|
79
|
+
- - ~>
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
81
|
+
version: 0.8.0
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- -
|
86
|
+
- - ~>
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
88
|
+
version: 0.8.0
|
89
89
|
description: A Ruby client for the Cassandra distributed database.
|
90
90
|
email: ''
|
91
91
|
executables:
|
@@ -234,7 +234,8 @@ files:
|
|
234
234
|
- vendor/1.1/gen-rb/cassandra_types.rb
|
235
235
|
- cassandra.gemspec
|
236
236
|
homepage: http://github.com/twitter/cassandra
|
237
|
-
licenses:
|
237
|
+
licenses:
|
238
|
+
- Apache 2.0
|
238
239
|
metadata: {}
|
239
240
|
post_install_message:
|
240
241
|
rdoc_options:
|
@@ -261,7 +262,7 @@ requirements: []
|
|
261
262
|
rubyforge_project: cassandra
|
262
263
|
rubygems_version: 2.0.3
|
263
264
|
signing_key:
|
264
|
-
specification_version:
|
265
|
+
specification_version: 4
|
265
266
|
summary: A Ruby client for the Cassandra distributed database.
|
266
267
|
test_files:
|
267
268
|
- test/cassandra_client_test.rb
|