KitaitiMakoto commited on
Commit
a274e3b
·
unverified ·
1 Parent(s): 3c1d9fa

ruby : test extra build options only when env var specified (#3136)

Browse files

* 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 CHANGED
@@ -53,7 +53,7 @@ class Options
53
  end
54
 
55
  def extra_options
56
- @options.keys + @pending_options - @ignored_options -
57
  cmake_options.collect {|name, type, value| name}
58
  end
59
 
 
53
  end
54
 
55
  def extra_options
56
+ @options.keys + @pending_options + @ignored_options -
57
  cmake_options.collect {|name, type, value| name}
58
  end
59
 
bindings/ruby/tests/test_package.rb CHANGED
@@ -37,14 +37,9 @@ class TestPackage < TestBase
37
  end
38
 
39
  def test_build_options
40
- # This test is disabled as it currently fails when run locally on macOS and
41
- # Linux. We need to find a good way to handle the situation with build
42
- # options which varies between platforms.
43
- # Refs: https://github.com/ggml-org/whisper.cpp/pull/3132
44
- omit "Temporarily disabled locally as this test currently fails when run locally" unless ENV["CI"]
45
  options = BuildOptions::Options.new
46
  assert_empty options.missing_options
47
- unless ENV["CI"]
48
  assert_empty options.extra_options
49
  end
50
  end
 
37
  end
38
 
39
  def test_build_options
 
 
 
 
 
40
  options = BuildOptions::Options.new
41
  assert_empty options.missing_options
42
+ if ENV["TEST_EXTRA_OPTIONS"] == "1"
43
  assert_empty options.extra_options
44
  end
45
  end
bindings/ruby/whispercpp.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
  s.name = "whispercpp"
5
  s.authors = ["Georgi Gerganov", "Todd A. Fisher"]
6
  s.version = '1.3.2'
7
- s.date = '2025-05-01'
8
  s.description = %q{High-performance inference of OpenAI's Whisper automatic speech recognition (ASR) model via Ruby}
9
  s.email = '[email protected]'
10
  s.extra_rdoc_files = ['LICENSE', 'README.md']
 
4
  s.name = "whispercpp"
5
  s.authors = ["Georgi Gerganov", "Todd A. Fisher"]
6
  s.version = '1.3.2'
7
+ s.date = '2025-05-11'
8
  s.description = %q{High-performance inference of OpenAI's Whisper automatic speech recognition (ASR) model via Ruby}
9
  s.email = '[email protected]'
10
  s.extra_rdoc_files = ['LICENSE', 'README.md']