We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeff6dd commit ef3e8cbCopy full SHA for ef3e8cb
1 file changed
Rakefile
@@ -1,3 +1,5 @@
1
+require 'fileutils'
2
+
3
task :clean do
4
sh('rm -rf _site')
5
end
@@ -14,7 +16,13 @@ task :dependencies do
14
16
15
17
# Fix pathutil on Ruby 3; works around https://github.com/envygeeks/pathutil/pull/5
18
# as suggested by https://stackoverflow.com/a/73909894/67873
- sh('sed -i.bak "s/, kwd/, **kwd/" $(bundle exec gem which pathutil)')
19
+ pathutil_path = `bundle exec gem which pathutil`.chomp()
20
+ content = File.read(pathutil_path).gsub(', kwd', ', **kwd')
21
+ backup_path = '#{pathutil_path}.bak'
22
+ if File.exist?(backup_path) then
23
+ FileUtil.mv(pathutil_path, backup_path)
24
+ end
25
+ File.write(pathutil_path, content)
26
27
28
task :spelling_dependencies do
0 commit comments