]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ruby : Update uri.rb (#3016)
authorOlli <redacted>
Tue, 8 Apr 2025 13:27:40 +0000 (15:27 +0200)
committerGitHub <redacted>
Tue, 8 Apr 2025 13:27:40 +0000 (22:27 +0900)
Bugfix ... without this Pathname the "/" operator wouldn't work and will throw an error

bindings/ruby/lib/whisper/model/uri.rb

index ce19f715a88cd1bf4d70251a941db105ef3e5910..b2bc9c4b38b4f2d7fcd7c3a3854e3cbc43fe7f91 100644 (file)
@@ -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