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

Proc.new is deprecated #387

Closed
navid-farjad opened this issue Nov 27, 2020 · 5 comments
Closed

Proc.new is deprecated #387

navid-farjad opened this issue Nov 27, 2020 · 5 comments

Comments

@navid-farjad
Copy link

iam facing very annoying warning:
/.rvm/gems/ruby-2.7.0/gems/awesome_print-1.8.0/lib/awesome_print/formatters/base_formatter.rb:113: warning: Capturing the given block using Proc.new is deprecated; use &block instead

It's all over the console for every call. please let me know how can I fix it.
Rails 6.0.3.2
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]

Thank you

@hasannadeem
Copy link

I'm having the same issue. 😞

@chaoxng
Copy link

chaoxng commented Dec 29, 2020

Try https://github.com/amazing-print/amazing_print

@BryanH
Copy link
Collaborator

BryanH commented Jan 13, 2021

Thanks for the PRs - I am working on merging

@BryanH
Copy link
Collaborator

BryanH commented Jan 13, 2021

Fixed with latest PR. I'll cut a new version after more cleanup

@BryanH BryanH closed this as completed Jan 13, 2021
@ashleyconnor
Copy link

ashleyconnor commented Jan 30, 2021

Any ETA on 1.9.0 being published on rubygems?

Edit: Apologies. Never spotted this: #399

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

5 participants