mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-04-27 06:20:07 +00:00
* Fix signature of URI.new7s return value * Use path instead of string | _ToPath * Add document comment to RBS * Remove unnecessary build flags * Remove unnecessary line * Remove files have become unnecessary * Make gem install accept build options for whisper.cpp * Add instraction for build options in README * Add methods for check to Options * Test build options * Rename: configs -> options * Add assert_installed assertion * Use assert_installed * Remove unused attribute * Extract dependency check logic as Dependencies class * Update README * Add WHISPER_FFMPEG option * Test extra build options only on local test * Bump version to 1.3.2 [skip ci]
38 lines
1.2 KiB
Ruby
38 lines
1.2 KiB
Ruby
require_relative "extsources"
|
|
|
|
Gem::Specification.new do |s|
|
|
s.name = "whispercpp"
|
|
s.authors = ["Georgi Gerganov", "Todd A. Fisher"]
|
|
s.version = '1.3.2'
|
|
s.date = '2025-04-17'
|
|
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']
|
|
|
|
s.files = `git ls-files . -z`.split("\x0") +
|
|
EXTSOURCES.collect {|file|
|
|
basename = File.basename(file)
|
|
if s.extra_rdoc_files.include?(basename)
|
|
basename
|
|
else
|
|
file.sub("../..", "ext/sources")
|
|
.sub("../javascript", "ext/sources/bindings/javascript")
|
|
end
|
|
}
|
|
|
|
s.summary = %q{Ruby whisper.cpp bindings}
|
|
s.test_files = s.files.select {|file| file.start_with? "tests/"}
|
|
|
|
s.extensions << 'ext/extconf.rb'
|
|
s.required_ruby_version = '>= 3.1.0'
|
|
|
|
#### Documentation and testing.
|
|
s.homepage = 'https://github.com/ggml-org/whisper.cpp'
|
|
s.rdoc_options = ['--main', 'README.md']
|
|
|
|
|
|
s.platform = Gem::Platform::RUBY
|
|
|
|
s.licenses = ['MIT']
|
|
end
|