Closed akshaymohite closed 3 years ago
can we get that merged?
@imajes Can we please have this merged?
Based on the number of closed PRs in the last year, and the general lack of maintainer engagement, I would guess this is not being merged. This means that in a very short timeframe gems that depend on AP for one reason or the other will have to migrate to another library.
As a work around I placed the following in config/initializers/awesome_print.rb
module AwesomePrint
module Formatters
class BaseFormatter
def indented(&block)
inspector.increase_indentation(&block)
end
end
end
class Inspector
def increase_indentation(&block)
indentator.indent(&block)
end
end
end
works like a charm ;)
I am aware that it is not the best solution but for now if you have libraries that depend on it at least it cleans up your logs. A lot.
What other libraries do folks recommend for nice console printing? I tried Hirb, but I must be missing something about the configuration options, it was a bit clunky.
Someone has cloned and relaunched awesome print as amazing print. This is currently maintained. Give it a look :)
Ah yeah, i ended up using pry-rails – that's definitely what I was looking for :P
Yeah... I moved to amazing_print
(the fork) for now. Fixes the deprecation warnings for me -- https://github.com/amazing-print/amazing_print
Yeah... I moved to
amazing_print
(the fork) for now. Fixes the deprecation warnings for me -- https://github.com/amazing-print/amazing_print
thanks for the tip man
PRs were submitted and I'm untangling the (unrelated) build errors - stay tuned!
Fixed with latest PR - will be pushed out in next release!
Ref: https://github.com/ruby/ruby/commit/9f1fb0a17febc59356d58cef5e98db61a3c03550
Warnings:
After this change: