diff options
author | matoro <matoro@users.noreply.github.com> | 2023-03-14 21:03:33 -0400 |
---|---|---|
committer | matoro <matoro@users.noreply.github.com> | 2023-03-14 21:03:33 -0400 |
commit | 19348fe09e1aeb08424abdf331c3497159139f20 (patch) | |
tree | 6f88a09d93056f13e65d5cf62f4c3ed8e2ff7c16 | |
parent | 9c704ce922352d623f405d7f18c3c9247079af5d (diff) | |
download | ffi-19348fe09e1aeb08424abdf331c3497159139f20.tar.gz |
Update gen/Rakefile for Ruby 3 compat
Ruby 3 changed the 'mode' argument from an option hash to keyword
argument. This change is backwards-compatible with Ruby 2.
See: https://github.com/ruby/fileutils/commit/482de6d397742526d1111576e2791f9b7051e3c0
-rw-r--r-- | gen/Rakefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gen/Rakefile b/gen/Rakefile index f71a1da..65f62c9 100644 --- a/gen/Rakefile +++ b/gen/Rakefile @@ -9,7 +9,7 @@ logfile = File.join(File.dirname(__FILE__), 'log') file types_conf do |task| options = {} - FileUtils.mkdir_p(File.dirname(task.name), { :mode => 0755 }) + FileUtils.mkdir_p(File.dirname(task.name), mode: 0755) File.open(task.name, File::CREAT|File::TRUNC|File::RDWR, 0644) do |f| f.puts FFI::TypesGenerator.generate(options) end |