--- RMagick-2.15.4/Rakefile~ 2016-03-13 10:19:00.000000000 +0100 +++ RMagick-2.15.4/Rakefile 2016-03-13 10:20:10.123489864 +0100 @@ -21,14 +21,6 @@ end end -desc 'abort when repo is not clean or has uncommited code' -task :assert_clean_repo do - sh('git diff --exit-code') - abort 'Git repo not clean' unless $CHILD_STATUS.success? - sh('git diff-index --quiet --cached HEAD') - abort 'Git repo not commited' unless $CHILD_STATUS.success? -end - desc 'build gem' task :build => [:config] do sh 'gem build -V rmagick.gemspec' @@ -41,24 +33,6 @@ end end -task :push_and_tag => [:build] do - sh "gem push #{File.join(base, 'pkg', gem_name)}" - if $CHILD_STATUS.success? - sh "git tag -a -m \"Version #{version}\" #{version_tag}" - STDOUT.puts "Tagged #{version_tag}." - sh 'git push' - sh 'git push --tags' - else - abort 'tagging aborted pushing gem failed' - end -end - -desc 'Release' -task :release => [:assert_clean_repo, :push_and_tag] - -desc 'Release and build the legacy way' -task :legacy_release=> ['legacy:README.html', 'legacy:extconf', 'legacy:doc', 'legacy:manifest', 'release'] - namespace :legacy do require 'find' --- RMagick-2.15.4/rmagick.gemspec~ 2016-03-13 10:39:36.000000000 +0100 +++ RMagick-2.15.4/rmagick.gemspec 2016-03-13 10:42:46.932844991 +0100 @@ -13,7 +13,7 @@ s.homepage = 'https://github.com/rmagick/rmagick' s.license = 'MIT' - tracked_files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR) + tracked_files = `find ./ -printf "%P\n"`.split($OUTPUT_RECORD_SEPARATOR) file_exclusion_regex = %r{(\Alib/rvg/to_c.rb)} files = tracked_files.reject{|file| file[file_exclusion_regex] } test_files = files.grep(%r{^(test|spec|features)/})