Rakefile in rbs-0.16.0 vs Rakefile in rbs-0.17.0

- old
+ new

@@ -27,11 +27,11 @@ task :validate => :parser do sh "#{ruby} #{rbs} validate --silent" FileList["stdlib/*"].each do |path| next if path =~ %r{stdlib/builtin} - + lib = [File.basename(path).to_s] if lib == ["bigdecimal-math"] lib << "bigdecimal" end @@ -57,9 +57,15 @@ 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 "git diff --exit-code lib/rbs/parser.rb" +end namespace :generate do task :stdlib_test, [:class] do |_task, args| klass = args.fetch(:class) do raise "Class name is necessary. e.g. rake 'generate:stdlib_test[String]'"