Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add default rake target to fix travis builds

  • Loading branch information...
commit 9319787ed4836d91441e66d69dcf87e522e9b100 1 parent 4bcea38
@natemueller natemueller authored
Showing with 20 additions and 7 deletions.
  1. +1 −0  .gitignore
  2. +13 −0 Rakefile
  3. +5 −6 cassandra.gemspec
  4. +1 −1  lib/cassandra.rb
View
1  .gitignore
@@ -5,3 +5,4 @@ doc/
.yardoc/
Gemfile.lock
cassandra-*.gem
+tmp
View
13 Rakefile
@@ -1,4 +1,6 @@
require 'fileutils'
+require 'rake/testtask'
+require 'rake/extensiontask'
CassandraBinaries = {
'0.6' => 'http://archive.apache.org/dist/cassandra/0.6.13/apache-cassandra-0.6.13-bin.tar.gz',
@@ -176,3 +178,14 @@ task :fix_perms do
end
task :pkg => [:fix_perms]
+
+Rake::ExtensionTask.new('cassandra_native') do |ext|
+ ext.ext_dir = 'ext'
+end
+
+Rake::TestTask.new do |t|
+ t.test_files = FileList['test/*.rb']
+end
+
+task :default => :test
+task :test => :compile
View
11 cassandra.gemspec
@@ -21,10 +21,9 @@ Gem::Specification.new do |s|
s.summary = "A Ruby client for the Cassandra distributed database."
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"]
- s.specification_version = 3
-
- s.add_runtime_dependency(%q<thrift_client>, ["~> 0.7"])
- s.add_runtime_dependency(%q<json>, [">= 0"])
- s.add_runtime_dependency(%q<rake>, [">= 0"])
- s.add_runtime_dependency(%q<simple_uuid>, ["~> 0.2.0"])
+ s.add_runtime_dependency('thrift_client', '~> 0.7')
+ s.add_runtime_dependency('json', '>= 0')
+ s.add_runtime_dependency('rake', '>= 0')
+ s.add_runtime_dependency('simple_uuid', '~> 0.2.0')
+ s.add_development_dependency('rake-compiler', '~> 0.8.0')
end
View
2  lib/cassandra.rb
@@ -1,5 +1,5 @@
require 'rubygems'
-gem 'thrift_client', '>= 0.7.0', '< 0.9'
+gem 'thrift_client', '~> 0.7'
require 'thrift_client'
gem 'simple_uuid' , '~> 0.2.0'
require 'simple_uuid'
Please sign in to comment.
Something went wrong with that request. Please try again.