]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ruby : tiny bug fix (#3490)
authorKITAITI Makoto <redacted>
Tue, 28 Oct 2025 18:50:44 +0000 (03:50 +0900)
committerGitHub <redacted>
Tue, 28 Oct 2025 18:50:44 +0000 (03:50 +0900)
* Remove build-xcframework.sh from package

* Remove unused variable

* Bump version to 1.3.5

* Don't use variable before declaration

bindings/ruby/extsources.rb
bindings/ruby/lib/whisper/model/uri.rb
bindings/ruby/test/test_segment.rb
bindings/ruby/whispercpp.gemspec

index 18ae348d7100cc31f263294e2ec9f6348a9fdb50..b24f1a7f13dd2073cff3e31461ee0a1a33d0585a 100644 (file)
@@ -27,6 +27,7 @@ ignored_files = %w[
   twitch.sh
   yt-wsp.sh
   close-issue.yml
+  build-xcframework.sh
 ]
 
 EXTSOURCES =
index d8a98699f07e00e247a3546e6f8d3ccddee2f40a..9cb9085523d64f0f681b3ac9c7f009770182ff53 100644 (file)
@@ -94,7 +94,8 @@ module Whisper
       end
 
       def show_progress(current, size)
-        progress_rate_available = size && $stderr.tty? && $stderr.winsize[1] >= line.size
+        line_size = 47
+        progress_rate_available = size && $stderr.tty? && $stderr.winsize[1] >= line_size
 
         unless @prev
           @prev = Time.now
index cb4ba9eb705c8c72825553645d3678b721c9a486..08a037c01f25c0f12823165a00e5870b5d1abd52 100644 (file)
@@ -73,7 +73,6 @@ class TestSegment < TestBase
   end
 
   def test_transcription_after_segment_retrieved
-    params = Whisper::Params.new
     segment = whisper.each_segment.first
     assert_match(/ask not what your country can do for you, ask what you can do for your country/, segment.text)
 
index eac35b8a416dc8b67ac6cfa68de95e645fd93d8c..2e05769a22c8b49ba280da1078e6916cead2233e 100644 (file)
@@ -3,7 +3,7 @@ require_relative "extsources"
 Gem::Specification.new do |s|
   s.name    = "whispercpp"
   s.authors = ["Georgi Gerganov", "Todd A. Fisher"]
-  s.version = '1.3.4'
+  s.version = '1.3.5'
   s.description = %q{High-performance inference of OpenAI's Whisper automatic speech recognition (ASR) model via Ruby}
   s.email   = 'todd.fisher@gmail.com'
   s.extra_rdoc_files = ['LICENSE', 'README.md']