Skip to content

Commit

Permalink
Merge pull request #4068 from DataDog/rack-fix
Browse files Browse the repository at this point in the history
fix rack 3/rackup situation on ruby 3.4
  • Loading branch information
TonyCTHsu authored Nov 5, 2024
2 parents b3a00f4 + 923a3c0 commit 3e73b3b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions appraisal/ruby-3.4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@
gem 'sneakers', '>= 2.12.0'
gem 'sucker_punch'
gem 'que', '>= 1.0.0'

# When Rack 3+ is used, we need rackup.
gem 'rackup'
end

[
Expand Down
1 change: 1 addition & 0 deletions gemfiles/ruby_3.4_contrib.gemfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions gemfiles/ruby_3.4_contrib.gemfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spec/datadog/tracing/contrib/suite/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

require 'rack'
# `Rack::Handler::WEBrick` was extracted to the `rackup` gem in Rack 3.0
require 'rackup' if Rack::VERSION[0] >= 3
require 'rackup' if Gem::Version.new(Rack::RELEASE) >= Gem::Version.new('3')
require 'webrick'

RSpec.describe 'contrib integration testing', :integration do
Expand Down

0 comments on commit 3e73b3b

Please sign in to comment.