lib/pitchfork/chunked.rb in pitchfork-0.4.0 vs lib/pitchfork/chunked.rb in pitchfork-0.4.1
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
require "rack"
-if Rack::VERSION.first >= 3
+if defined?(Rack::RELEASE) && Rack::RELEASE > "3"
require "rack/constants"
require "rack/utils"
end
module Pitchfork