Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Rack version to work across multiple released versions
Rack deprecated `Rack.version` and the associated constant `Rack::VERSION` in v3, to be removed in v3.1. We were getting the deprecation warnings on our test suite: ./judoscale-ruby/judoscale-rack/lib/judoscale/rack.rb:14: warning: Rack.version is deprecated and will be removed in Rack 3.1! ./gems/rack-3.0.11/lib/rack/version.rb:25: warning: constant Rack::VERSION is deprecated Running on the latest v3.1 version caused them to break: ./judoscale-ruby/judoscale-rack/lib/judoscale/rack.rb:14:in `<top (required)>': undefined method `version' for module Rack (NoMethodError) framework_version: ::Rack.version ^^^^^^^^ Deprecation: rack/rack@856934f#diff-75f019921d551ec3df0214212140eeda19369f014b93b77a9c92cfa64ec04c16 Removal: rack/rack@a5762cf#diff-75f019921d551ec3df0214212140eeda19369f014b93b77a9c92cfa64ec04c16 Reintroducing `Rack::VERSION` constant: (which we don't use -- unreleased as of now) rack/rack@4cfad11
- Loading branch information