Skip to content

Commit c62adfb

Browse files
ruby : tiny bug fix (#3490)
* Remove build-xcframework.sh from package * Remove unused variable * Bump version to 1.3.5 * Don't use variable before declaration
1 parent f16c12f commit c62adfb

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

bindings/ruby/extsources.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
twitch.sh
2828
yt-wsp.sh
2929
close-issue.yml
30+
build-xcframework.sh
3031
]
3132

3233
EXTSOURCES =

bindings/ruby/lib/whisper/model/uri.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ def download(response)
9494
end
9595

9696
def show_progress(current, size)
97-
progress_rate_available = size && $stderr.tty? && $stderr.winsize[1] >= line.size
97+
line_size = 47
98+
progress_rate_available = size && $stderr.tty? && $stderr.winsize[1] >= line_size
9899

99100
unless @prev
100101
@prev = Time.now

bindings/ruby/test/test_segment.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ def test_on_new_segment_twice
7373
end
7474

7575
def test_transcription_after_segment_retrieved
76-
params = Whisper::Params.new
7776
segment = whisper.each_segment.first
7877
assert_match(/ask not what your country can do for you, ask what you can do for your country/, segment.text)
7978

bindings/ruby/whispercpp.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ require_relative "extsources"
33
Gem::Specification.new do |s|
44
s.name = "whispercpp"
55
s.authors = ["Georgi Gerganov", "Todd A. Fisher"]
6-
s.version = '1.3.4'
6+
s.version = '1.3.5'
77
s.description = %q{High-performance inference of OpenAI's Whisper automatic speech recognition (ASR) model via Ruby}
88
s.email = '[email protected]'
99
s.extra_rdoc_files = ['LICENSE', 'README.md']

0 commit comments

Comments
 (0)