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

5 commits

Author SHA1 Message Date
Utkarsh Gupta
b61aad5000 Fix bundler_spec test
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
2020-06-16 19:35:43 +05:30
Kyrylo Silin
7bf0bb4210 spec/integration/bundler: fix the "no dependencies" warning
Fixes the following warning:

```
The Gemfile specifies no dependencies
```
2020-03-21 10:48:23 +08:00
Kyrylo Silin
18c45d26c5 rubocop: enable the Style/FrozenStringLiteralComment cop
This will greatly ease Pry support on Ruby 3.0 (when it's out).
2019-05-08 00:13:17 +03:00
Kyrylo Silin
edaa1383f2 Require files from pry.rb; deps from each file that uses them
This change brings some order to how we require files. Previously, we required
app files from everywhere, including pry.rb. Now we require app files only from
pry.rb.

External and stdlib dependencies are required at places where they're used, not
globally.
2019-03-10 13:20:03 +02: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