Rakefile in rbs-1.0.6 vs Rakefile in rbs-1.1.0

- old
+ new

@@ -1,10 +1,11 @@ require "bundler/gem_tasks" require "rake/testtask" require "rbconfig" ruby = ENV["RUBY"] || RbConfig.ruby +racc = ENV.fetch("RACC", "racc") rbs = File.join(__dir__, "exe/rbs") bin = File.join(__dir__, "bin") Rake::TestTask.new(:test) do |t| t.libs << "test" @@ -65,20 +66,20 @@ task :rubocop do sh "rubocop --parallel" end rule ".rb" => ".y" do |t| - sh "racc -v -o #{t.name} #{t.source}" + sh "#{racc} -v -o #{t.name} #{t.source}" end task :parser => "lib/rbs/parser.rb" task :test => :parser task :stdlib_test => :parser task :build => :parser task :confirm_parser do puts "Testing if parser.rb is updated with respect to parser.y" - sh "racc -v -o lib/rbs/parser.rb lib/rbs/parser.y" + sh "#{racc} -v -o lib/rbs/parser.rb lib/rbs/parser.y" sh "git diff --exit-code lib/rbs/parser.rb" end namespace :generate do desc "Generate a test file for a stdlib class signatures"