Skip to content

Commit

Permalink
Exclude rake tasks from manifest
Browse files Browse the repository at this point in the history
No need to package the travis or github pages tasks in the gem.
  • Loading branch information
blowmage committed Mar 31, 2015
1 parent f2a95c0 commit a36d087
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@ lib/gcloud/storage/file/verifier.rb
lib/gcloud/storage/project.rb
lib/gcloud/version.rb
rakelib/console.rake
rakelib/gh-pages.rake
rakelib/manifest.rake
rakelib/proto.rake
rakelib/rubocop.rake
rakelib/test.rake
rakelib/travis.rake
test/gcloud/datastore/proto/test_cursor.rb
test/gcloud/datastore/proto/test_direction.rb
test/gcloud/datastore/proto/test_operator.rb
Expand Down
3 changes: 2 additions & 1 deletion rakelib/manifest.rake
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@

desc "Update the Manifest file."
task :manifest do
exclude_regexp = /regression*|\.travis\.yml|rakelib\/travis.rake|keyfile.json*|rakelib\/gh-pages.rake|Gemfile*/
`rake git:manifest`
new_manifest = []
File.open("Manifest.txt").each do |line|
new_manifest << line unless line =~ /^regression*|\.travis\.yml|Gemfile*|keyfile.json*/
new_manifest << line unless line =~ exclude_regexp
end
File.write "Manifest.txt", new_manifest.join
end

0 comments on commit a36d087

Please sign in to comment.