From: Olli Date: Tue, 8 Apr 2025 13:27:40 +0000 (+0200) Subject: ruby : Update uri.rb (#3016) X-Git-Tag: upstream/1.7.5+105~92 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=b1f5c11b32b9669998c05b595930d4fcaec72341;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp ruby : Update uri.rb (#3016) Bugfix ... without this Pathname the "/" operator wouldn't work and will throw an error --- 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