about summary refs log tree commit homepage
path: root/lib/raindrops/linux.rb
diff options
context:
space:
mode:
authorDmytro Shteflyuk <kpumuk@kpumuk.info>2017-07-25 16:02:42 -0400
committerEric Wong <e@80x24.org>2017-07-25 20:53:23 +0000
commit35561c491584a22b82dec5f37b84f792aa8a278b (patch)
tree278267ccd20f847cf2090bda2100e15eed95e7fa /lib/raindrops/linux.rb
parent3a81c82c5c03a33ebe6b55a778fc43280a44d119 (diff)
downloadraindrops-35561c491584a22b82dec5f37b84f792aa8a278b.tar.gz
Correct method definition according to Ruby documentation (https://ruby-doc.org/core-2.4.1/Object.html#method-i-respond_to-3F) is:

    respond_to?(string, include_all=false) → true or false

Rack started using second argument starting from version 2:

https://github.com/rack/rack/blob/master/lib/rack/body_proxy.rb#L14

If raindrops is used in Rack 2+ applications, an exception is raised:

    ArgumentError: wrong number of arguments (2 for 1)
        <ROOT>/gems/raindrops-0.18.0/lib/raindrops/middleware/proxy.rb:30:in `respond_to?'
        <ROOT>/gems/rack-2.0.3/lib/rack/body_proxy.rb:14:in `respond_to?'
Diffstat (limited to 'lib/raindrops/linux.rb')
0 files changed, 0 insertions, 0 deletions