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:
parent
d425b2b59d
commit
b348f44ea0
3 changed files with 5 additions and 4 deletions
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue