Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning: Capturing the given block using Proc.new is deprecated; use &block instead #349

Open
thomasfaller opened this issue Nov 17, 2020 · 4 comments

Comments

@thomasfaller
Copy link

Hey folks,
I'm using ZAT and when launching my Sinatra instance using zat server I get the following output:

$ zat server
/var/lib/gems/2.7.0/gems/faraday-0.9.2/lib/faraday/options.rb:153: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead
/var/lib/gems/2.7.0/gems/faraday-0.9.2/lib/faraday/options.rb:153: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead
/var/lib/gems/2.7.0/gems/faraday-0.9.2/lib/faraday/options.rb:153: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead
/var/lib/gems/2.7.0/gems/faraday-0.9.2/lib/faraday/options.rb:153: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead
/var/lib/gems/2.7.0/gems/faraday-0.9.2/lib/faraday/options.rb:153: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead
== Sinatra (v1.4.8) has taken the stage on 4567 for development with backup from Thin
Thin web server (v1.7.2 codename Bachmanity)
Maximum connections set to 1024
Listening on localhost:4567, CTRL+C to stop

As you can see in the output, the warning doesn't get in the way of the web server actually functioning. Just thought I would still report that in case it needs to be investigated.

As a note, I don't remember getting that error on macOS, if that helps troubleshooting.

My environment:

zat version # 3.8.1
ruby --version # ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]
gem --version # 3.1.2

The bug seems to be linked to Gem so perhaps I sould report that to them ?

@dels07
Copy link

dels07 commented Nov 23, 2020

I got the same problem, downgrading to ruby 2.4.10 remove the warning, not familiar with Ruby, but it's good if we can see an update on this

@ohitsdylan
Copy link

It looks like the issue with faraday was fixed here but ZAT still depends on 0.9.2. I'm just a user of this tool, but I may try to test using the newer faraday version and see what happens.

ohitsdylan added a commit to ohitsdylan/zendesk_apps_tools that referenced this issue Feb 5, 2021
@jenktam
Copy link

jenktam commented May 4, 2021

Can this get merged? It looks like this will fix and issue with ZAT that my team is using.

@dels07
Copy link

dels07 commented May 5, 2021

Can this get merged? It looks like this will fix and issue with ZAT that my team is using.

Zendesk likely abandoned ZAT and continue development in zcli, I already migrated two weeks ago, running well so far

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants