pry-bond
pry-bond offers input completion in the pry repl through the bond rubygem. the default input completion for pry has been inherited from IRB but bond offers more extensibility options through gems like bond-yard.
Features
- provides input completion in pry through the
bond
rubygem. - provides
enable-bond!
command for switching to bond completion inside a repl session. - provides
disable-bond!
command for switching back the pry default inside a repl session. - provides a file for require to change pry default(
Pry::InputCompleter
) toPry::BondCompleter
.
Examples
enable/disable in a repl session
[1] pry(main)> enable-bond!
bond input completion has been enabled and is ready to use!
--
[2] pry(main)> disable-bond!
bond input completion has been disabled and the pry default has been restored.
--
Dependencies
pry-bond depends on:
-
pry
~> 0.10
the repl! -
bond
~> 0.5
provides input completion -
rb-readline
~> 0.5
provides pure ruby implementation of readline that removes platform compatibility issues with C version and editline(OSX).
Contribute
- fork it
- clone forked repository (
git clone https://github.com/your-name/pry-bond.git
) - create feature branch (
git checkout -b new-feature
) - commit your changes (
git commit -am 'Add new feature'
) - push to the branch (
git push origin new-feature
) - create new Pull Request
Tips
install runtime and development dependencies with bundler.
$ git clone https://github.com/pry/pry-bond.git
$ cd pry-bond
$ bundle install
run the tests.
$ [bundle exec] rake test
Install
gem install pry-bond
License
MIT. See LICENSE.txt.