Skip to content

2.7 deprecation in middleware/stack.rb #2122

@Legogris

Description

@Legogris

This seems to be broken since 2.7.0:

grape-1.5.0/lib/grape/middleware/stack.rb:87: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
grape-1.5.0/lib/grape/middleware/stack.rb:11: warning: The called method `initialize' is defined here

Constructor:

def initialize(klass, *args, **opts, &block)

Problematic calls (AFAICT):

middleware = self.class::Middleware.new(*args, &block)

middleware = self.class::Middleware.new(*args, &block)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions