Skip to content

Upgrading pry 0.11 to 0.12

Breaking0.11.3 → 0.12.2Breaking6Deprecated6New10Changed1Fixed12

BreakingUpgrade verdict

6 breaking changes.

  • Deleted the Pry::Helpers::Text.bright_default alias for Pry::Helpers::Text.bold.
  • Renamed Pry.config.prompt_safe_objects to Pry.config.prompt_safe_contexts.
  • Removed deprecated Pry::CommandSet#before_command & Pry::CommandSet#after_command.
  • Pry::Helpers.tablify_to_screen_width(things, options, config = Pry.config) requires options or nil in place of them.
Top 5 of 11 that need code or config changes
Breaking6
Deleted the Pry::Helpers::Text.bright_default alias for Pry::Helpers::Text.bold.
Pry::Helpers::Text.bright_defaultPry::Helpers::Text.bold
Renamed Pry.config.prompt_safe_objects to Pry.config.prompt_safe_contexts.
Pry.config.prompt_safe_objectsPry.config.prompt_safe_contexts
Removed deprecated Pry::CommandSet#before_command & Pry::CommandSet#after_command.
Pry::CommandSet#before_commandPry::CommandSet#after_command
Pry::Helpers.tablify_to_screen_width(things, options, config = Pry.config) requires options or nil in place of them.
Pry::Helpers.tablify_to_screen_width(things, options, config = Pry.config)optionsnil
Pry::Helpers::Table.new(items, args, config = Pry.config) requires args or nil in place of them.
Pry::Helpers::Table.new(items, args, config = Pry.config)argsnil
Completely revamped Pry::HistoryArray.
Pry::HistoryArrayPry::RingPry::Ring#lengthPry::Ring#count#empty?#each
Deprecated5
Deprecated pry.input_array & pry.output_array in favour of pry.input_ring & pry.output_ring respectively.
_pry_.input_array_pry_.output_array_pry_.input_ring_pry_.output_ring
Deprecated Pry::Command#text.
Pry::Command#text#black#whiteBaseHelpersCommandHelpers
Deprecated Pry::Platform.
Pry::PlatformPry::Helpers::PlatformPry::Helpers::BaseHelpersPlatform
Deprecated Pry::Prompt::MAP.
Pry::Prompt::MAPPry::Prompt.all
Deprecated the Data constant to match Ruby 2.5 in the ls command.
Datals