Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you install pry plugins?

Tags:

ruby

rubygems

pry

I've read about these great pry plugins (e.g. pry-debugger, pry-stack_explorer), but after nearly 30 minutes of searching, I can't find any documentation on how to install them. I've gone to their github site, the pry wiki and read/watched several tutorials, but there's nothing in there about installation.

like image 266
Peter Alfvin Avatar asked Dec 07 '25 00:12

Peter Alfvin


1 Answers

Every pry plugin that start with pry- are auto-loaded. You just need to gem install pry-name.

Here is the link about plugins(creating plugins too) and exact quote:

A valid Pry plugin is a gem that has the pry- prefix (such as the pry-doc gem)

If a Pry plugin is installed (i.e a gem with the pry- prefix is installed) it will be loaded automatically when a session starts.

Note: pry has special command gem-install gem_name. You should use that command instead of .gem install gem_name in order to work. This (pry)command install and(!) reload gem cache.

If that won't work try installing gems from console then running pry.

ps. you can check installed plugins via pry --installed-plugins(in console) or in pry just type help and it will show you available commands.

like image 118
Darek Nędza Avatar answered Dec 08 '25 14:12

Darek Nędza



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!