summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add MethodSource.clear_cacheYoshiyuki Hirano2021-11-171-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | We often need to clear cache. For example, in web application development, when we changed source code, we would like the change applied to the app server without reboot. In the case of a Rails application, this requires the following configuration: ```ruby Rails.application.configure do config.to_prepare do MethodSource.instance_variable_set(:@lines_for_file, {}) end end ``` It seems so ugly, isn't it? So I feel we need to add `MethodSource.clear_cache` interface. ```diff Rails.application.configure do config.to_prepare do - MethodSource.instance_variable_set(:@lines_for_file, {}) + MethodSource.clear_cache end end ```
* Allow fetching class/module comments.Stas SUȘCOV2021-11-031-0/+31
|
* 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-032-3/+3
|
* Bump to version 0.8.pre.1Conrad Irwin2012-06-031-1/+1
|
* Improve error messagesConrad Irwin2012-06-031-9/+12
|
* Import some CodeHelpers from Pry.Conrad Irwin2012-06-032-96/+168
| | | | | 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
|
* Added SourceNotFoundError classReginald Tan2012-06-021-6/+8
|
* Fix regex warnings on ruby-1.8.7Conrad Irwin2012-05-261-1/+1
|
* If displaying method source fails for *_evaled methods, retry again.Reginald Tan2012-05-231-10/+36
| | | | | | | | | This time, assume inside eval string and simulate interpolation of #{} by replacing with a placeholder when doing syntax validation Only works if *_eval contains the arguments filename and lineno + 1. Without them, UnboundMethod#source_location would not return the proper filename and lineno needed to display the source.
* 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
|
* replace ruby_parser dependency with evalRyan Fitzgerald2011-11-301-30/+17
|
* 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-093-12/+23
|
* version bump 0.5.0John Mair2011-06-011-1/+1
|
* added source_location to procs for rbx, all tests passing on rbxJohn Mair2011-06-012-22/+39
|
* Fix warnings emitted by -w.Rob Gleeson2011-05-192-2/+2
|
* defaults to RubyParser on all 1.9 implementations except MRIJohn Mair2011-04-112-2/+2
|
* version 0.4.0, added proper support for immediate values toJohn Mair2011-03-162-1/+15
| | | | source_location in 1.8.
* changed (C) to 2011 from 2010John Mair2011-03-051-1/+1
|
* version 0.3.5, now has support to take advantage of Method#source on rubiniusJohn Mair2011-03-052-1/+25
|
* version 0.3.4, fixed 1.8 1.9 String#clear incompat in Method#commentv0.3.4John Mair2011-02-282-2/+2
|