1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

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

This commit is contained in:
Chris Salvato 2021-01-12 19:03:16 -07:00 committed by GitHub
parent d425b2b59d
commit b348f44ea0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,5 @@
## master (unreleased)
- Fixes block and proc definition to work with Ruby 3.0.0 [@csalvato] - [#392]
- Removed check for Ruby 2.4 and earlier [@bryanh]
- Rails 5.0 builds are failing, because the sqlite3 version being installed is wrong version [#366]
- Fixes spec suite to properly work via travis, gets a clean build [@imajes, others]

View file

@ -109,8 +109,8 @@ module AwesomePrint
inspector.current_indentation
end
def indented
inspector.increase_indentation(&Proc.new)
def indented(&block)
inspector.increase_indentation(&block)
end
def indent

View file

@ -62,8 +62,8 @@ module AwesomePrint
indentator.indentation
end
def increase_indentation
indentator.indent(&Proc.new)
def increase_indentation(&block)
indentator.indent(&block)
end
# Dispatcher that detects data nesting and invokes object-aware formatter.