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

13 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
Kyrylo Silin
4956376f13 rubocop: fix offences of the Metrics/LineLength cop
I realise that some code might be less readable now, but now that we set a good
default limit, we protect the codebase from further mess. It's important to do
this to prevent adding more mess to already messy code that we have. :doctor:
2019-03-03 17:37:58 +02:00
Kyrylo Silin
b07d3252dc rubocop: fix offences of the Style/VariableInterpolation cop 2019-03-02 17:01:04 +02:00
Kyrylo Silin
6f743ac7ba rubocop: fix offences of the Style/SpecialGlobalVars cop 2019-03-02 15:59:16 +02:00
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