Merge pull request #19 from simplymeasured/feature/make-autorefresh-of-token-optional
[arvados.git] / Rakefile
index a33a41286410f13a89d5721cef4f0c77c12023a3..afd7fdd0892982155f3e607ead7479b16155a6d0 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -23,11 +23,15 @@ 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/)
 if RCOV_ENABLED