Olli commited on
Commit
a69a137
·
unverified ·
1 Parent(s): a6dda9d

ruby : Update uri.rb (#3016)

Browse files

Bugfix ... without this Pathname the "/" operator wouldn't work and will throw an error

bindings/ruby/lib/whisper/model/uri.rb CHANGED
@@ -34,7 +34,7 @@ module Whisper
34
  when /darwin/
35
  Pathname(Dir.home)/"Library/Caches"
36
  else
37
- ENV.key?("XDG_CACHE_HOME") ? ENV["XDG_CACHE_HOME"] : Pathname(Dir.home)/".cache"
38
  end
39
  base/"whisper.cpp"
40
  end
 
34
  when /darwin/
35
  Pathname(Dir.home)/"Library/Caches"
36
  else
37
+ ENV.key?("XDG_CACHE_HOME") ? Pathname(ENV["XDG_CACHE_HOME"]) : Pathname(Dir.home)/".cache"
38
  end
39
  base/"whisper.cpp"
40
  end