Rakefile in rmagick-5.4.4 vs Rakefile in rmagick-5.5.0

- old
+ new

@@ -141,9 +141,20 @@ file_to_html('doc/ex', file_name, PATH_TO_LOCAL_WEBSITE_REPOSITORY, "#{file_name}.html") end end end +namespace :rbs do + desc 'Validate RBS definitions' + task :validate do + all_sigs = Dir.glob('sig').map { |dir| "-I #{dir}" }.join(' ') + sh("bundle exec rbs #{all_sigs} validate") do |ok, _| + abort('one or more rbs validate failed') unless ok + end + end +end + +require 'bundler/gem_tasks' require 'rake/extensiontask' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) Rake::ExtensionTask.new('RMagick2') do |ext|