Merge pull request #181 from seuros/patch-1
[arvados.git] / Rakefile
index a33a41286410f13a89d5721cef4f0c77c12023a3..01e62ddd6c64ddbdab0440df15af6341ef5153b9 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -11,7 +11,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}"
 
@@ -23,20 +23,17 @@ 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:rcov'
-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'])
-
-Dir['tasks/**/*.rake'].each { |rake| load rake }