Incorrect Rack::RELEASE comparison in test_rack_server.rb
ron-shinall opened this issue · comments
Describe the bug
The Rack::RELEASE
version comparison for requiring Rack::Chunked
is incorrect in test/test_rack_server.rb
.
If the Rack::RELEASE
is "3.1" the following evaluates to true and therefore requires rack/chunked when it should not be (as of 3.1):
require "rack/chunked" if Rack::RELEASE.between?('3', '3.1')
This was changed in #3064
Expected behavior
A comparison more like this is what is required:
require "rack/chunked" if Rack::RELEASE >= '3' && Rack::RELEASE < '3.1'
Thanks. My mistake.
I'll fix soon with Rack::RELEASE.start_with? '3.0'
. For others, no versions of Rack 3.1 have been released, and current master is '3.0.0'.
@MSP-Greg Thanks for the quick response! I appreciate your efforts.