Upgrading pry 0.11 to 0.12
Breaking0.11.3 → 0.12.2Breaking6Deprecated6New10Changed1Fixed12
BreakingUpgrade verdict
6 breaking changes.
In plain terms
- 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.
Must act Top 5 of 11 that need code or config changes
What you must change
Breaking6
Deleted the Pry::Helpers::Text.bright_default alias for Pry::Helpers::Text.bold.
Pry::Helpers::Text.bright_defaultPry::Helpers::Text.boldRenamed Pry.config.prompt_safe_objects to Pry.config.prompt_safe_contexts.
Pry.config.prompt_safe_objectsPry.config.prompt_safe_contextsRemoved deprecated Pry::CommandSet#before_command & Pry::CommandSet#after_command.
Pry::CommandSet#before_commandPry::CommandSet#after_commandPry::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)optionsnilPry::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)argsnilCompletely revamped Pry::HistoryArray.
Pry::HistoryArrayPry::RingPry::Ring#lengthPry::Ring#count#empty?#eachDeprecations to plan for
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_ringDeprecated Pry::Command#text.
Pry::Command#text#black#whiteBaseHelpersCommandHelpersDeprecated Pry::Platform.
Pry::PlatformPry::Helpers::PlatformPry::Helpers::BaseHelpersPlatformDeprecated Pry::Prompt::MAP.
Pry::Prompt::MAPPry::Prompt.allDeprecated the Data constant to match Ruby 2.5 in the ls command.
Datals