| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The error message for `issue = %W/` changed, before:
```
(eval):2: syntax error, unexpected tSTRING_END, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or ' '
```
After:
```
((eval):2: unterminated list meets end of file)
```
|
|
|
|
|
|
|
| |
Fixes #52 (Revert the JRuby 9.2.0.0 source_location hack once the newest version
is out)
This reverts commit 20fb1efde4530c78f7627d8b5b4e0b3f43cf821d.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes https://github.com/pry/pry/issues/1804
(JRuby 9.2.0.0 breaks `source_location` and therefore our test suite)
JRuby 9.2.0.0 fails to fetch source code for procs because of the bug:
https://github.com/jruby/jruby/pull/5262
The problem is that source_location is reported at the end of the proc, instead
of the beginning.
The way I fix it is rather dumb (rewinding back and checking if it's complete
expression) but it's isolated only to 9.2.0.0 and likely won't be needed when
another JRuby is released. However, so far it's the latest release.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Also import complete_expression? tests from Pry.
|
| |
|
|
|
|
|
|
| |
When consume is > 0 it prefills the expression buffer with `consume` lines of input. This enables
you to rapidly check a large chunk of code for validity as you skip over the initial portion you know is valid
without having to perform an expensive eval() on each line.
|
|
The hope is that they can live in this gem permanently, and Pry can also
include MethodSource::CodeHelpers in the relevant places.
|