From 2935b3a95d67cba7eb676f0268bec48f357afa4d Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Mon, 2 Dec 2024 19:07:11 +0000 Subject: [PATCH] Use idiomatic `File#write` instead of `File#puts` --- Rakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index b8cdf24..92e9754 100644 --- a/Rakefile +++ b/Rakefile @@ -46,7 +46,8 @@ task :update do } end - File.open("data/airports.json", "w").puts JSON.generate(cleaned_data) + f = File.open("data/airports.json", "w") + f.write(JSON.generate(cleaned_data)) end task default: :spec