We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1208cac commit 1a857daCopy full SHA for 1a857da
Rakefile
@@ -12,6 +12,13 @@ RuboCop::RakeTask.new
12
desc "Generate rbs files"
13
task :rbs_inline do
14
sh "rbs-inline --output --opt-out lib"
15
+
16
+ # If the Ruby file is deleted, delete the RBS file
17
+ Dir.glob("sig/generated/**/*.rbs").each do |path|
18
+ rbs_path = Pathname(path)
19
+ rb_path = rbs_path.sub(%r{^sig/generated}, "lib").sub_ext(".rb")
20
+ rbs_path.delete unless File.exist?(rb_path)
21
+ end
22
end
23
24
desc "Run Steep"
0 commit comments