2024-11-21 15:04:29 +00:00
|
|
|
require_relative "extsources"
|
2024-10-16 15:44:04 +00:00
|
|
|
|
2024-05-22 20:02:52 +00:00
|
|
|
Gem::Specification.new do |s|
|
|
|
|
s.name = "whispercpp"
|
|
|
|
s.authors = ["Georgi Gerganov", "Todd A. Fisher"]
|
|
|
|
s.version = '1.3.0'
|
|
|
|
s.date = '2024-05-14'
|
|
|
|
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']
|
|
|
|
|
2024-10-28 13:43:27 +00:00
|
|
|
s.files = `git ls-files . -z`.split("\x0") +
|
2024-11-21 15:04:29 +00:00
|
|
|
EXTSOURCES.collect {|file|
|
2024-10-28 13:43:27 +00:00
|
|
|
basename = File.basename(file)
|
|
|
|
if s.extra_rdoc_files.include?(basename)
|
|
|
|
basename
|
|
|
|
else
|
2024-11-21 15:04:29 +00:00
|
|
|
file.sub("../..", "ext")
|
2024-10-28 13:43:27 +00:00
|
|
|
end
|
|
|
|
}
|
2024-05-22 20:02:52 +00:00
|
|
|
|
|
|
|
s.summary = %q{Ruby whisper.cpp bindings}
|
2024-11-21 15:04:29 +00:00
|
|
|
s.test_files = s.files.select {|file| file.start_with? "tests/"}
|
2024-05-22 20:02:52 +00:00
|
|
|
|
|
|
|
s.extensions << 'ext/extconf.rb'
|
|
|
|
|
|
|
|
|
|
|
|
#### Documentation and testing.
|
|
|
|
s.homepage = 'https://github.com/ggerganov/whisper.cpp'
|
2024-11-21 15:04:29 +00:00
|
|
|
s.rdoc_options = ['--main', 'README.md']
|
2024-05-22 20:02:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
s.platform = Gem::Platform::RUBY
|
|
|
|
|
|
|
|
s.licenses = ['MIT']
|
|
|
|
end
|