Change Log
June 28, 2024 ยท View on GitHub
1.0.1
- Fix issue with deleting
pdoptions from aHashif it was the only argument breaking the guarantee thatpdnever modifies the printed object, which could cause bugs. - Fix issue with attempting to modify a frozen
Hashwhen passing a frozenHashas the only argument forpdmethod
1.0.0
- Support including class/method after file/line in every
pdprintout
0.13.5
- Fix not printing source line in Rails app w/ Pry
- Note that Pry's compatibility (inside Pry) is experimental and fragile because Pry's API is not reliable
0.13.4
- Reverted change to default
printerbehavior from 0.13.3 to avoid causing a double-print to stdout as it turns outputsis not always needed since Rails redirects to standard out by default inRails.logger.debugcalls
0.13.3
- Update default
printerbehavior for Rails to always output viaputs(not just in tests) in addition toRails.logger.debug - Update custom implementation of
callerfor Opal to accept args (optionalstartandlengthor alternativelyrange) just like the Ruby API
0.13.2
- Fix issue caused by MiniTest Rails having
IRBconstant declared despite being outside of IRB
0.13.1
- Support
a: '[PD]'shortcut to passingannouncer: '[PD]' - Support
c: :tshortcut to passingcaller: true
0.13.0
- Support
h: :tshortcut to passingheader: true - Support
f: :tshortcut to passingfooter: true - Support
w: :tshortcut to passingwrapper: true
0.12.0
- Upgrade
awesome_printto~> 1.9.2 - Support passing pd options as part of a printed hash instead of requiring a separate hash (e.g.
pd(path: path, header: true)instead ofpd({path: path}, header: true)) - Support empty use of pd statement + options (e.g.
pdorpd header: true)
0.11.0
- Pry support
- In Opal, print exceptions as errors in the web console using an alternative to full_message since it's not implemented in Opal yet
- Fix
pd_inspectandpdiin IRB
0.10.2
- Improve Opal Ruby compatibility by displaying source file/line
0.10.1
- Remove the need for specifying
require 'ap'beforerequire 'pd'
0.10.0
- Support
require 'pd' as a shorter alternative torequire 'puts_debuggerer' - Support
printeras a Logger object or Logging::Logger (from "logging" gem). Basically any object that responds to :debug method. - Support
printer: falseoption to return rendered String instead of printing and returning object - Set logger formatter to PutsDebuggerer::LOGGER_FORMATTER_DECORATOR when passing as printer (keeping format the same, but decorating msg with pd)
- Add pd_inspect (and pdi alias) Kernel core extension methods
- Made awesome_print gem require happen only if printer is set to :ap or :awesome_print
- Support logging gem logger and Decorate logger layout with PutsDebuggerer::LOGGING_LAYOUT_DECORATOR for logging gem
0.9.0
- Provide partial support for Opal Ruby (missing display of file name, line number, and source code)
source_line_countoptionwraperoption for including bothheaderandfooter- Special handling of exceptions (prints using full_message)
- Change :ap printer default to :p when unavailable
- Support varargs printing (example:
pd arg1, arg2, arg3) - Display
run_atrun number in printout
0.8.2
- require 'stringio' for projects that don't require automatically via other gems
0.8.1
printeroption support for Rails test environment
0.8.0
printeroption support
0.7.1
- default print engine to :ap (AwesomePrint)
0.7.0
run_atoption, global and piecemeal.
0.6.1
- updated README and broke apart specs
0.6.0
- unofficial erb support, returning evaluated object/expression, removed static syntax support (replaced with header support)
0.5.1
- support for print engine lambdas and smart defaults for leveraging Rails and AwesomePrint debuggers in Rails
0.5.0
- custom formatter, caller backtrace, per-puts piecemeal options, and multi-line support
0.4.0
- custom print engine (e.g. ap), custom announcer, and IRB support
0.3.0
- header/footer support, multi-line printout, improved format
0.2.0
- App path exclusion support, Rails root support, improved format
0.1.0
- File/line/expression print out