Bump version to lock activesupport dependency, update tests to not use old APIs
[arvados.git] / Rakefile
index 3c2ad1587a0644473ef19a7e39ea313deb48d57f..dca3b0903898e62d6dbe901c0d31282bc02a03cd 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -1,7 +1,9 @@
+# -*- ruby -*-
 lib_dir = File.expand_path('../lib', __FILE__)
 $LOAD_PATH.unshift(lib_dir)
 $LOAD_PATH.uniq!
 
+require 'bundler/gem_tasks'
 require 'rubygems'
 require 'rake'
 
@@ -11,7 +13,7 @@ PKG_DISPLAY_NAME   = 'Google API Client'
 PKG_NAME           = PKG_DISPLAY_NAME.downcase.gsub(/\s/, '-')
 PKG_VERSION        = Google::APIClient::VERSION::STRING
 PKG_FILE_NAME      = "#{PKG_NAME}-#{PKG_VERSION}"
-PKG_HOMEPAGE       = 'http://code.google.com/p/google-api-ruby-client/'
+PKG_HOMEPAGE       = 'https://github.com/google/google-api-ruby-client'
 
 RELEASE_NAME       = "REL #{PKG_VERSION}"
 
@@ -27,20 +29,13 @@ list = FileList[
     'lib/**/*', 'spec/**/*', 'vendor/**/*',
     'tasks/**/*', 'website/**/*',
     '[A-Z]*', 'Rakefile'
-]
+].exclude(/[_\.]git$/)
 (open(".gitignore") { |file| file.read }).split("\n").each do |pattern|
   list.exclude(pattern)
 end
 PKG_FILES = list
 
-RCOV_ENABLED = !!(RUBY_PLATFORM != 'java' && RUBY_VERSION =~ /^1\.8/)
-if RCOV_ENABLED
-  task :default => 'spec:rcov'
-else
-  task :default => 'spec'
-end
+task :default => 'spec'
 
 WINDOWS = (RUBY_PLATFORM =~ /mswin|win32|mingw|bccwin|cygwin/) rescue false
 SUDO = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])
-
-Dir['tasks/**/*.rake'].each { |rake| load rake }