Skip to content

FYI: Warning after upgrading this gem to 2.7.0-preview1 #989

@jasnow

Description

@jasnow

Basic Info

  • Faraday Version: 0.15.4
  • Ruby Version: 2.7.0-preview1

Issue description

Getting this warning after upgrading to Ruby 2.7.0-preview1:

faraday-0.15.4/lib/faraday/options.rb:166: warning: Capturing the 
given block  using Proc.new is deprecated; use `&block` instead

and

faraday-0.15.4/lib/faraday/rack_builder.rb:55: warning: Capturing the 
given block using Proc.new is deprecated; use `&block` instead

Steps to reproduce

Just upgrade a repo to Ruby 2.7.0-preview1 and then run "rake" command.
Here is a link to other repos working on this issue:

https://github.com/aws/aws-sdk-ruby/issues/2058

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