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

Fixes block and proc definition to work with Ruby 3.0.0 #392

Merged
merged 2 commits into from
Jan 13, 2021

Conversation

csalvato
Copy link
Contributor

@csalvato csalvato commented Jan 5, 2021

This should fix #391.

Ruby 3.0 changed the rules around how and when you can call Proc.new. This should fix the issue by complying with the new rules.

@csalvato csalvato changed the title Fix block and proc definition to work with Ruby 3.0.0 Fixes block and proc definition to work with Ruby 3.0.0 Jan 5, 2021
@torrocus
Copy link

torrocus commented Jan 6, 2021

I think that this PR also resolve #382.

@torrocus
Copy link

torrocus commented Jan 6, 2021

@csalvato Did you notice that in Ruby 2.4 for rails_5.0.gemfiles, rails_5.1.gemfiles, rails_5.2.gemfiles did not pass the test?

@csalvato
Copy link
Contributor Author

csalvato commented Jan 6, 2021

Hm, I did...not quite sure how to address it 🤔

@BryanH BryanH merged commit b348f44 into awesome-print:master Jan 13, 2021
@csalvato
Copy link
Contributor Author

This is my first OSS contribution 🎉

Thanks all :)

jclusso added a commit to jclusso/awesome_print that referenced this pull request Jul 19, 2022
* source/master:
  Update PRY integration section (awesome-print#411)
  BigDecimal required; test fixes for ruby 3 (awesome-print#408)
  Bump canonical (awesome-print#406)
  Ruby 2.6, 2.7 and 3 fixes (awesome-print#405)
  Added canonical for rubygems (awesome-print#401)
  Updated nokogiri to fix vulnerability scan failures (awesome-print#400)
  Corrected bug in examples (issue awesome-print#326); added example headers (awesome-print#398)
  Updated config to remove deprecations (awesome-print#397)
  Update CHANGELOG & fixed travis fails (awesome-print#394)
  Added mongoid 7 gemsets; ignore vendor/bundle (awesome-print#395)
  Added rails 6.0 and 6.1 tests to travis (awesome-print#396)
  Fix method signature after change in IRB (awesome-print#390)
  Fixes block and proc definition to work with Ruby 3.0.0 (awesome-print#392)
  Retire eol rubies (awesome-print#393)
  Use rails 5.2 when testing frozen strings
  Fix frozen string errors
  Run frozen string specs against ruby 2.6
  Run builds against ruby 2.6 instead of head
  Lock rails 5 to correct sqlite3 version
obourdon pushed a commit to obourdon/awesome_print that referenced this pull request Jan 26, 2023
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

Successfully merging this pull request may close these issues.

Output of non-empty Hash object fails when using Ruby 3.0
3 participants