X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fea9f00597a76e5c91f3f06ffa3ddf89032a986e..bb9f607c8e81ded7555d64bd6b4ae49f99142dc1:/Rakefile diff --git a/Rakefile b/Rakefile index 74243aab80..ffbd9e64ef 100644 --- a/Rakefile +++ b/Rakefile @@ -4,19 +4,6 @@ $LOAD_PATH.uniq! require 'rubygems' require 'rake' -require 'rake/testtask' -require 'rake/rdoctask' -require 'rake/packagetask' -require 'rake/gempackagetask' - -gem 'rspec', '~> 1.2.9' -begin - require 'spec/rake/spectask' -rescue LoadError - STDERR.puts "Please install rspec:" - STDERR.puts "sudo gem install rspec" - exit(1) -end require File.join(File.dirname(__FILE__), 'lib/google/api_client', 'version') @@ -24,30 +11,29 @@ 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}" -PKG_AUTHOR = "Bob Aman" -PKG_AUTHOR_EMAIL = "bobaman@google.com" +PKG_AUTHOR = ["Bob Aman", "Steve Bazyl"] +PKG_AUTHOR_EMAIL = "sbazyl@google.com" PKG_SUMMARY = 'Package Summary' PKG_DESCRIPTION = <<-TEXT The Google API Ruby Client makes it trivial to discover and access supported APIs. TEXT -PKG_FILES = FileList[ +list = FileList[ 'lib/**/*', 'spec/**/*', 'vendor/**/*', 'tasks/**/*', 'website/**/*', '[A-Z]*', 'Rakefile' -].exclude(/database\.yml/).exclude(/[_\.]git$/) - -RCOV_ENABLED = (RUBY_PLATFORM != 'java' && RUBY_VERSION =~ /^1\.8/) -if RCOV_ENABLED - task :default => 'spec:verify' -else - task :default => 'spec' +].exclude(/[_\.]git$/) +(open(".gitignore") { |file| file.read }).split("\n").each do |pattern| + list.exclude(pattern) end +PKG_FILES = list + +task :default => 'spec' WINDOWS = (RUBY_PLATFORM =~ /mswin|win32|mingw|bccwin|cygwin/) rescue false SUDO = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])