summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-config
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-12-27 16:49:32 +0900
committerKOBAYASHI Shuji <[email protected]>2019-12-27 16:49:32 +0900
commit26e6e75ba6a59bc77c80a6ce5d207626cfed91a6 (patch)
treedc77273f9040dfe78a90d7e00108549ef2fd7f08 /mrbgems/mruby-bin-config
parentef6805f599c19634809158da42ad7059ef0a9c5d (diff)
downloadmruby-26e6e75ba6a59bc77c80a6ce5d207626cfed91a6.tar.gz
mruby-26e6e75ba6a59bc77c80a6ce5d207626cfed91a6.zip
Use Rake DSL instead of commands of `FileUtils`
- Respect `--verbose(-v)` and `--dry-run(-n)` options. - Silence warnings to keyword arguments on Ruby 2.7.
Diffstat (limited to 'mrbgems/mruby-bin-config')
-rw-r--r--mrbgems/mruby-bin-config/mrbgem.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-config/mrbgem.rake b/mrbgems/mruby-bin-config/mrbgem.rake
index 3a0a1b897..6005a876d 100644
--- a/mrbgems/mruby-bin-config/mrbgem.rake
+++ b/mrbgems/mruby-bin-config/mrbgem.rake
@@ -17,7 +17,7 @@ unless MRuby::Build.current.kind_of?(MRuby::CrossBuild)
}]
tmplt = File.read(tmplt_path)
File.write(t.name, tmplt.gsub(/(#{Regexp.union(*config.keys)})\b/, config))
- FileUtils.chmod(0755, t.name)
+ chmod(0755, t.name)
end
end
end