Skip to content

Commit

Permalink
Upgrade dependencies and fix show_notes reference
Browse files Browse the repository at this point in the history
  • Loading branch information
codenamev committed Dec 6, 2024
1 parent ac8e9d2 commit b8c6b28
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 42 deletions.
76 changes: 39 additions & 37 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,118 +11,120 @@ GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
async (2.15.3)
async (2.17.0)
console (~> 1.26)
fiber-annotation
io-event (~> 1.6, >= 1.6.5)
async-http (0.69.0)
async-http (0.80.0)
async (>= 2.10.2)
async-pool (~> 0.7)
io-endpoint (~> 0.11)
io-stream (~> 0.4)
protocol-http (~> 0.26)
protocol-http1 (~> 0.19)
protocol-http2 (~> 0.18)
protocol-http (~> 0.37)
protocol-http1 (~> 0.27)
protocol-http2 (~> 0.19)
traces (>= 0.10)
async-http-faraday (0.15.0)
async-http-faraday (0.19.0)
async-http (~> 0.42)
faraday
async-pool (0.8.0)
async-pool (0.8.1)
async (>= 1.25)
metrics
traces
console (1.27.0)
fiber-annotation
fiber-local (~> 1.1)
json
diff-lcs (1.5.1)
event_stream_parser (1.0.0)
faraday (2.10.1)
faraday-net_http (>= 2.0, < 3.2)
faraday (2.12.0)
faraday-net_http (>= 2.0, < 3.4)
json
logger
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (3.1.1)
faraday-net_http (3.3.0)
net-http
fiber-annotation (0.2.0)
fiber-local (1.1.0)
fiber-storage
fiber-storage (1.0.0)
io-endpoint (0.13.0)
io-event (1.6.5)
io-stream (0.4.0)
io-endpoint (0.13.1)
io-event (1.7.1)
io-stream (0.4.3)
json (2.7.2)
language_server-protocol (3.17.0.3)
lint_roller (1.1.0)
logger (1.6.0)
logger (1.6.1)
metrics (0.10.2)
multipart-post (2.4.1)
net-http (0.4.1)
uri
parallel (1.26.1)
parser (3.3.4.2)
parallel (1.26.3)
parser (3.3.5.0)
ast (~> 2.4.1)
racc
protocol-hpack (1.5.0)
protocol-http (0.28.1)
protocol-http1 (0.19.1)
protocol-hpack (1.5.1)
protocol-http (0.37.0)
protocol-http1 (0.27.0)
protocol-http (~> 0.22)
protocol-http2 (0.18.0)
protocol-http2 (0.19.3)
protocol-hpack (~> 1.4)
protocol-http (~> 0.18)
racc (1.8.1)
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.9.2)
rexml (3.3.4)
strscan
rexml (3.3.8)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-core (3.13.1)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.1)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
rspec-mocks (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
rubocop (1.64.1)
rubocop (1.65.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
regexp_parser (>= 2.4, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.32.0)
rubocop-ast (1.32.3)
parser (>= 3.3.1.0)
rubocop-performance (1.21.1)
rubocop-performance (1.22.1)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-openai (7.1.0)
event_stream_parser (>= 0.3.0, < 2.0.0)
faraday (>= 1)
faraday-multipart (>= 1)
ruby-progressbar (1.13.0)
standard (1.39.2)
standard (1.40.1)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.64.0)
rubocop (~> 1.65.0)
standard-custom (~> 1.0.0)
standard-performance (~> 1.4)
standard-custom (1.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.50)
standard-performance (1.4.0)
standard-performance (1.5.0)
lint_roller (~> 1.1)
rubocop-performance (~> 1.21.0)
strscan (3.1.0)
traces (0.11.1)
unicode-display_width (2.5.0)
uri (0.13.0)
rubocop-performance (~> 1.22.0)
traces (0.13.1)
unicode-display_width (2.6.0)
uri (0.13.1)

PLATFORMS
ruby
Expand Down
10 changes: 5 additions & 5 deletions exe/podcast_buddy
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,11 @@ def generate_show_notes
]
})
show_notes = response.dig("choices", 0, "message", "content").strip
File.open(PodcastBuddy.show_notes_path, "w") do |file|
File.open(PodcastBuddy.session.show_notes_path, "w") do |file|
file.puts show_notes
end

PodcastBuddy.logger.info to_human("Show notes saved to: #{PodcastBuddy.show_notes_path}", :success)
PodcastBuddy.logger.info to_human("Show notes saved to: #{PodcastBuddy.session.show_notes_path}", :success)
end

# Periodically summarize latest transcription
Expand All @@ -260,7 +260,7 @@ def summarize_latest(listener)
end

def wait_for_question_end(listener)
Sync do |parent|
Async do |parent|
loop do
PodcastBuddy.logger.debug("Shutdown: wait_for_question_end...") and break if @shutdown

Expand Down Expand Up @@ -293,7 +293,7 @@ def wait_for_question_end(listener)
end

def wait_for_question_start(listener)
Sync do |parent|
Async do |parent|
PodcastBuddy.logger.info Rainbow("Press ").blue + Rainbow("Enter").black.bg(:yellow) + Rainbow(" to signal a question start...").blue
loop do
PodcastBuddy.logger.debug("Shutdown: wait_for_question...") and break if @shutdown
Expand Down Expand Up @@ -324,7 +324,7 @@ Signal.trap("INT") do
end

# Start audio stream processing
Async do |task|
Sync do |task|
listener = PodcastBuddy::Listener.new(transcriber: @transcriber)
listener_task = task.async { listener.start }
periodic_summarization_task = task.async { periodic_summarization(listener) }
Expand Down

0 comments on commit b8c6b28

Please sign in to comment.