Rakefile in rmagick-4.1.0.rc2 vs Rakefile in rmagick-4.1.0

- old
+ new

@@ -41,11 +41,11 @@ sh 'gem build -V rmagick.gemspec' if $CHILD_STATUS.success? FileUtils.mkdir_p(File.join(base, 'pkg')) FileUtils.mv(File.join(base, gem_name), 'pkg') else - STDERR.puts 'Could not build gem' + warn 'Could not build gem' exit $CHILD_STATUS.exitstatus end end task push_and_tag: [:build] do @@ -119,25 +119,25 @@ desc 'Build README.html from README.txt' task README => 'README.txt' do puts "writing #{README}" File.open(README, 'w') do |html| - html.write <<END_HTML_HEAD -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<html> - <head> - <title>RMagick #{Magick::VERSION} README</title> - <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> - <meta name="GENERATOR" content="RedCloth"> - </head> - <body> -END_HTML_HEAD + html.write <<~END_HTML_HEAD + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> + <html> + <head> + <title>RMagick #{Magick::VERSION} README</title> + <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> + <meta name="GENERATOR" content="RedCloth"> + </head> + <body> + END_HTML_HEAD html.write File.readlines('README.txt') - html.write <<END_HTML_TAIL - </body> -</html> -END_HTML_TAIL + html.write <<~END_HTML_TAIL + </body> + </html> + END_HTML_TAIL end end desc 'Update versions in html files' task :doc do @@ -170,27 +170,21 @@ end end end require 'rake/extensiontask' -require 'rake/testtask' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) Rake::ExtensionTask.new('RMagick2') do |ext| ext.ext_dir = 'ext/RMagick' end -Rake::TestTask.new(:test) do |t| - t.libs << 'test' -end - -task test: :compile task spec: :compile if ENV['STYLE_CHECKS'] require 'rubocop/rake_task' RuboCop::RakeTask.new task default: %i[rubocop] else - task default: %i[spec test] + task default: %i[spec] end