Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ end
appraise "ruby_llm-current" do
gem "ruby_llm"
end

appraise "ruby_llm-main" do
gem "ruby_llm", github: "crmne/ruby_llm", branch: "main"
end
1 change: 1 addition & 0 deletions gemfiles/ruby_llm_1.10.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ group :development, :test do
gem "rake", "~> 13.0"
gem "rubocop", "~> 1.86"
gem "rubocop-minitest", "~> 0.39"
gem "ruby-lsp", "~> 0.26"
gem "simplecov", "~> 0.22"
end

Expand Down
1 change: 1 addition & 0 deletions gemfiles/ruby_llm_1.13.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ group :development, :test do
gem "rake", "~> 13.0"
gem "rubocop", "~> 1.86"
gem "rubocop-minitest", "~> 0.39"
gem "ruby-lsp", "~> 0.26"
gem "simplecov", "~> 0.22"
end

Expand Down
1 change: 1 addition & 0 deletions gemfiles/ruby_llm_1.14.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ group :development, :test do
gem "rake", "~> 13.0"
gem "rubocop", "~> 1.86"
gem "rubocop-minitest", "~> 0.39"
gem "ruby-lsp", "~> 0.26"
gem "simplecov", "~> 0.22"
end

Expand Down
1 change: 1 addition & 0 deletions gemfiles/ruby_llm_1.5.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ group :development, :test do
gem "rake", "~> 13.0"
gem "rubocop", "~> 1.86"
gem "rubocop-minitest", "~> 0.39"
gem "ruby-lsp", "~> 0.26"
gem "simplecov", "~> 0.22"
end

Expand Down
1 change: 1 addition & 0 deletions gemfiles/ruby_llm_1.6.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ group :development, :test do
gem "rake", "~> 13.0"
gem "rubocop", "~> 1.86"
gem "rubocop-minitest", "~> 0.39"
gem "ruby-lsp", "~> 0.26"
gem "simplecov", "~> 0.22"
end

Expand Down
1 change: 1 addition & 0 deletions gemfiles/ruby_llm_current.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ group :development, :test do
gem "rake", "~> 13.0"
gem "rubocop", "~> 1.86"
gem "rubocop-minitest", "~> 0.39"
gem "ruby-lsp", "~> 0.26"
gem "simplecov", "~> 0.22"
end

Expand Down
18 changes: 18 additions & 0 deletions gemfiles/ruby_llm_main.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This file was generated by Appraisal

source "https://gem.coop"

gem "ruby_llm", branch: "main", git: "https://github.com/crmne/ruby_llm"

group :development, :test do
gem "appraisal", "~> 2.5"
gem "minitest", "~> 6.0"
gem "minitest-mock", "~> 5.27"
gem "rake", "~> 13.0"
gem "rubocop", "~> 1.86"
gem "rubocop-minitest", "~> 0.39"
gem "ruby-lsp", "~> 0.26"
gem "simplecov", "~> 0.22"
end

gemspec path: "../"
6 changes: 6 additions & 0 deletions lib/ruby_llm/test/test_provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ def initialize(provider, test_harness)
@test_harness = test_harness
end

# There are a number of cases that access `provider.class.display_name`, which avoids the delegation. Adding
# dummy stub for this. TBD if this needs to be more sophisticated in the future.
def self.display_name
"TestProvider"
end

def complete(...)
parameters = CompleteParameters.capture_from(__getobj__, ...)
@test_harness.record_request(parameters)
Expand Down
Loading