From b1f5c11b32b9669998c05b595930d4fcaec72341 Mon Sep 17 00:00:00 2001 From: Olli Date: Tue, 8 Apr 2025 15:27:40 +0200 Subject: [PATCH] ruby : Update uri.rb (#3016) Bugfix ... without this Pathname the "/" operator wouldn't work and will throw an error --- bindings/ruby/lib/whisper/model/uri.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/ruby/lib/whisper/model/uri.rb b/bindings/ruby/lib/whisper/model/uri.rb index ce19f715..b2bc9c4b 100644 --- a/bindings/ruby/lib/whisper/model/uri.rb +++ b/bindings/ruby/lib/whisper/model/uri.rb @@ -34,7 +34,7 @@ module Whisper when /darwin/ Pathname(Dir.home)/"Library/Caches" else - ENV.key?("XDG_CACHE_HOME") ? ENV["XDG_CACHE_HOME"] : Pathname(Dir.home)/".cache" + ENV.key?("XDG_CACHE_HOME") ? Pathname(ENV["XDG_CACHE_HOME"]) : Pathname(Dir.home)/".cache" end base/"whisper.cpp" end