summaryrefslogtreecommitdiff
path: root/lib/method_source
Commit message (Collapse)AuthorAgeFilesLines
* Release v1.0.0Kyrylo Silin2020-03-191-1/+1
|
* Handle new message for unterminated lists on MRI 2.7Jean Boussier2019-10-261-1/+1
| | | | | | | | | | | | | | 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) ```
* Release v0.9.2Kyrylo Silin2018-11-121-1/+1
|
* Revert "method_source: fix broken Procs on JRuby 9.2.0.0"Kyrylo Silin2018-11-121-23/+0
| | | | | | | Fixes #52 (Revert the JRuby 9.2.0.0 source_location hack once the newest version is out) This reverts commit 20fb1efde4530c78f7627d8b5b4e0b3f43cf821d.
* bump version number to 0.9.1v0.9.1John Mair2018-11-021-1/+1
|
* method_source: fix broken Procs on JRuby 9.2.0.0Kyrylo Silin2018-11-021-0/+23
| | | | | | | | | | | | | | | 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.
* Version 0.9.0 releasev0.9.0John Mair2017-09-261-1/+1
| | | | ruby 2.4 support
* Integer Unification for Ruby 2.4.0+Koichi ITO2017-01-112-5/+5
|
* Bump to v0.8.2v0.8.2Ryan Fitzgerald2013-07-271-1/+1
|
* Bump to v0.8.2pre1Ryan Fitzgerald2013-07-271-1/+1
|
* Be more careful about separating out the rbx-only regexesRyan Fitzgerald2013-07-271-6/+6
|
* Remove colons from rbx regexps, separate from generic onesRyan Fitzgerald2013-07-271-4/+19
|
* Fix 'assigned but unused variable' warningJack Nagel2013-04-061-1/+1
|
* version 0.8.1 release, ruby 2.0 supportv0.8.1John Mair2012-10-171-1/+1
|
* Basic ruby-2.0 supportConrad Irwin2012-09-111-1/+1
|
* version 0.8v0.8Conrad Irwin2012-07-051-1/+1
|
* Allow embedded documents in incomplete expressions [Fixes pry#622]Conrad Irwin2012-07-022-1/+3
| | | | Also import complete_expression? tests from Pry.
* properly documented :consume parameterJohn Mair2012-07-022-6/+12
|
* define a consume parameter for expression_at and extract_first_expressionJohn Mair2012-06-291-5/+11
| | | | | | 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.
* Fix procs/lambdasConrad Irwin2012-06-031-1/+1
|
* Bump to version 0.8.pre.1Conrad Irwin2012-06-031-1/+1
|
* Import some CodeHelpers from Pry.Conrad Irwin2012-06-031-0/+125
| | | | | The hope is that they can live in this gem permanently, and Pry can also include MethodSource::CodeHelpers in the relevant places.
* Allow source_location to work in eval on 1.8.7Conrad Irwin2012-06-021-1/+1
|
* version 0.7.1v0.7.1John Mair2012-02-291-1/+1
|
* Fix in the case of overridden method methodConrad Irwin2012-02-281-2/+2
|
* be conservative and bump version to 0.7.0v0.7.0John Mair2012-01-011-1/+1
|
* version bump, 0.6.8John Mair2011-12-011-1/+1
|
* bumped dependencies for compatibility with pryv0.6.7John Mair2011-10-261-1/+1
|
* version 0.6.6, added REE supportJohn Mair2011-10-031-1/+1
|
* Use syntactically nicer versionConrad Irwin2011-10-011-3/+3
|
* Add a less hacky version for ree-1.8.7Conrad Irwin2011-10-011-4/+20
|
* added JRuby source_location hack, also added a LICENSE fileJohn Mair2011-09-072-53/+75
|
* version 0.6.0 releaseJohn Mair2011-06-091-1/+1
|
* version 0.6.0pre1. added *.rbc files to CLEAN taskJohn Mair2011-06-091-1/+1
|
* added Proc#source_location support for ruby 1.8John Mair2011-06-092-8/+22
|
* version bump 0.5.0John Mair2011-06-011-1/+1
|
* added source_location to procs for rbx, all tests passing on rbxJohn Mair2011-06-011-6/+18
|
* Fix warnings emitted by -w.Rob Gleeson2011-05-191-1/+1
|
* defaults to RubyParser on all 1.9 implementations except MRIJohn Mair2011-04-111-1/+1
|
* version 0.4.0, added proper support for immediate values toJohn Mair2011-03-162-1/+15
| | | | source_location in 1.8.
* version 0.3.5, now has support to take advantage of Method#source on rubiniusJohn Mair2011-03-051-1/+1
|
* version 0.3.4, fixed 1.8 1.9 String#clear incompat in Method#commentv0.3.4John Mair2011-02-281-1/+1
|
* opted in to gemtestJohn Mair2011-02-281-1/+1
|
* version 0.3.2, added more tests and improved some codeJohn Mair2011-02-282-2/+6
|
* version 0.3.0, some ruby 1.8 supportdevJohn Mair2011-02-282-1/+57
|
* version 0.2.0, support for method comments (and a few minor changes), thanks ↵Adam Sanderson2010-12-181-1/+1
| | | | | | | | | | to Adam Sanderson * Merged in Adam's changes * Refactored source_helper to reflect comment_helper style * Made some adjustments to Adam's code: removed buffer.strip, now doing an lstrip on each line before adding to buffer * No longer including blank lines in comment buffer (blank lines ignored) * Added large number of comment-related tests
* replaced RubyVM::ISeq with Ripper; method_source should now work on all 1.9 ↵John Mair2010-12-171-1/+1
| | | | Ruby implementations that support Ripper
* added warning about YARV only (due to RubyVM, so not JRuby compatible). Also ↵John Mair2010-12-171-1/+1
| | | | added support and tests for Proc#source
* first commitJohn Mair2010-12-171-0/+3