Rakefile in simplecov-0.7.0 vs Rakefile in simplecov-0.7.1

- old
+ new

@@ -3,9 +3,17 @@ require 'rubygems' require 'bundler/setup' require 'appraisal' Bundler::GemHelper.install_tasks +# See https://github.com/colszowka/simplecov/issues/171 +desc "Set permissions on all files so they are compatible with both user-local and system-wide installs" +task :fix_permissions do + system 'bash -c "find . -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \;"' +end +# Enforce proper permissions on each build +Rake::Task[:build].prerequisites.unshift :fix_permissions + require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.test_files = FileList['test/test_*.rb'] test.verbose = true