Merge pull request #19 from simplymeasured/feature/make-autorefresh-of-token-optional
[arvados.git] / Rakefile
index 1565402c4db55a8ca895b0ec20cd2b1c9fa6d924..afd7fdd0892982155f3e607ead7479b16155a6d0 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -5,15 +5,6 @@ $LOAD_PATH.uniq!
 require 'rubygems'
 require 'rake'
 
-gem 'rspec', '~> 2.10.0'
-begin
-  require 'rspec/core/rake_task'
-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')
 
 PKG_DISPLAY_NAME   = 'Google API Client'
@@ -24,21 +15,25 @@ PKG_HOMEPAGE       = 'http://code.google.com/p/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$/)
+].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/)
+RCOV_ENABLED = !!(RUBY_PLATFORM != 'java' && RUBY_VERSION =~ /^1\.8/)
 if RCOV_ENABLED
   task :default => 'spec:rcov'
 else