]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ruby : test extra build options only when env var specified (#3136)
authorKITAITI Makoto <redacted>
Mon, 12 May 2025 04:49:46 +0000 (13:49 +0900)
committerGitHub <redacted>
Mon, 12 May 2025 04:49:46 +0000 (06:49 +0200)
* Test Ruby bindings' extra options only when commanded

* ruby : test extra build options only when env var specified

* Fix extra_options

* Update gem date

bindings/ruby/ext/options.rb
bindings/ruby/tests/test_package.rb
bindings/ruby/whispercpp.gemspec

index 29ff79090e22c5081cf1c96a3d559e3263a7224c..17b2633eba5e845ff193ddee5c46860321289804 100644 (file)
@@ -53,7 +53,7 @@ class Options
   end
 
   def extra_options
-    @options.keys + @pending_options - @ignored_options -
+    @options.keys + @pending_options + @ignored_options -
       cmake_options.collect {|name, type, value| name}
   end
 
index 3d556513e9e4dce31786f9e9b49e9851f2850934..00ab0a684a43b81d20bdba7fe7280fab29f9659a 100644 (file)
@@ -37,14 +37,9 @@ class TestPackage < TestBase
   end
 
   def test_build_options
-    # This test is disabled as it currently fails when run locally on macOS and
-    # Linux. We need to find a good way to handle the situation with build
-    # options which varies between platforms.
-    # Refs: https://github.com/ggml-org/whisper.cpp/pull/3132
-    omit "Temporarily disabled locally as this test currently fails when run locally" unless ENV["CI"]
     options = BuildOptions::Options.new
     assert_empty options.missing_options
-    unless ENV["CI"]
+    if ENV["TEST_EXTRA_OPTIONS"] == "1"
       assert_empty options.extra_options
     end
   end
index 9e9c424b913da927f14d83b41b89b8a855b35772..44a0cb9c7ecee375d13cbaa6fc03578912020a15 100644 (file)
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
   s.name    = "whispercpp"
   s.authors = ["Georgi Gerganov", "Todd A. Fisher"]
   s.version = '1.3.2'
-  s.date    = '2025-05-01'
+  s.date    = '2025-05-11'
   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']