1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
Commit graph

6 commits

Author SHA1 Message Date
r-obert
5cd65d3c0e Add ability to forward ARGV to a Pry session when using bin/pry (#1902)
* Add ability to forward ARGV to a Pry session when using `bin/pry`

Fixes https://github.com/pry/pry/issues/1901
2019-01-13 14:29:12 +08:00
r-obert
ef4a5e4be7 Add test case covering using bin/pry with -I switch (#1910) 2018-12-14 03:05:24 +08:00
Robert
85850f47e0 prevent LoadError being raised when using auto completions + Bundler. (#1896)
* Prevent Bundler from raising a LoadError when accessing input completions.

The scenario:

- $ mkdir foogem
- $ cd foogem
- $ echo "source 'https://rubygems.org'" > Gemfile
- $ bundle install
- $ pry -rbundler/setup
- type "foo".<tab> into Pry

Notice that a LoadError is raised when trying to require
"pry/input_completer". This happens because Pry is not in the
Gemfile, so once the sandbox is initialized by Bundler any require
for a Pry file is doomed to file.

Couple that with the fact that '_pry_.config.completer' is not
loaded until a user uses tab completion, and we end up with this
broken situation.
2018-11-23 00:37:21 +08:00
Kyrylo Silin
e61354693f Add .rspec and require 'helper' from there
Just discovered this nice feature of RSpec where it can load all files for
us. Works with `bundle exec rake` and `bundle exec rspec spec/file_spec.rb`,
which covers all use cases.
2018-11-18 14:04:44 +08:00
Kyrylo Silin
4cc13f9a40 rubocop: fix offences of the Layout/ExtraSpacing cop 2018-10-13 00:54:00 +08:00
r-obert
6a89f574da
fix #1471, fix #1621 (#1689)
* Abort early when searching for a superclass if the target method
has been called through 'super' keyword from a prepended module.

* mv spec/regression spec/integration

* add hanami integration spec
2017-11-11 01:12:39 +01:00