Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add MethodSource.clear_cache | Yoshiyuki Hirano | 2021-11-17 | 1 | -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ȘCOV | 2021-11-03 | 1 | -0/+31 |
| | |||||
* | Release v1.0.0 | Kyrylo Silin | 2020-03-19 | 1 | -1/+1 |
| | |||||
* | Handle new message for unterminated lists on MRI 2.7 | Jean Boussier | 2019-10-26 | 1 | -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.2 | Kyrylo Silin | 2018-11-12 | 1 | -1/+1 |
| | |||||
* | Revert "method_source: fix broken Procs on JRuby 9.2.0.0" | Kyrylo Silin | 2018-11-12 | 1 | -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.1 | John Mair | 2018-11-02 | 1 | -1/+1 |
| | |||||
* | method_source: fix broken Procs on JRuby 9.2.0.0 | Kyrylo Silin | 2018-11-02 | 1 | -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.0 | John Mair | 2017-09-26 | 1 | -1/+1 |
| | | | | ruby 2.4 support | ||||
* | Integer Unification for Ruby 2.4.0+ | Koichi ITO | 2017-01-11 | 2 | -5/+5 |
| | |||||
* | Bump to v0.8.2v0.8.2 | Ryan Fitzgerald | 2013-07-27 | 1 | -1/+1 |
| | |||||
* | Bump to v0.8.2pre1 | Ryan Fitzgerald | 2013-07-27 | 1 | -1/+1 |
| | |||||
* | Be more careful about separating out the rbx-only regexes | Ryan Fitzgerald | 2013-07-27 | 1 | -6/+6 |
| | |||||
* | Remove colons from rbx regexps, separate from generic ones | Ryan Fitzgerald | 2013-07-27 | 1 | -4/+19 |
| | |||||
* | Fix 'assigned but unused variable' warning | Jack Nagel | 2013-04-06 | 1 | -1/+1 |
| | |||||
* | version 0.8.1 release, ruby 2.0 supportv0.8.1 | John Mair | 2012-10-17 | 1 | -1/+1 |
| | |||||
* | Basic ruby-2.0 support | Conrad Irwin | 2012-09-11 | 1 | -1/+1 |
| | |||||
* | version 0.8v0.8 | Conrad Irwin | 2012-07-05 | 1 | -1/+1 |
| | |||||
* | Allow embedded documents in incomplete expressions [Fixes pry#622] | Conrad Irwin | 2012-07-02 | 2 | -1/+3 |
| | | | | Also import complete_expression? tests from Pry. | ||||
* | properly documented :consume parameter | John Mair | 2012-07-02 | 2 | -6/+12 |
| | |||||
* | define a consume parameter for expression_at and extract_first_expression | John Mair | 2012-06-29 | 1 | -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/lambdas | Conrad Irwin | 2012-06-03 | 2 | -3/+3 |
| | |||||
* | Bump to version 0.8.pre.1 | Conrad Irwin | 2012-06-03 | 1 | -1/+1 |
| | |||||
* | Improve error messages | Conrad Irwin | 2012-06-03 | 1 | -9/+12 |
| | |||||
* | Import some CodeHelpers from Pry. | Conrad Irwin | 2012-06-03 | 2 | -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.7 | Conrad Irwin | 2012-06-02 | 1 | -1/+1 |
| | |||||
* | Added SourceNotFoundError class | Reginald Tan | 2012-06-02 | 1 | -6/+8 |
| | |||||
* | Fix regex warnings on ruby-1.8.7 | Conrad Irwin | 2012-05-26 | 1 | -1/+1 |
| | |||||
* | If displaying method source fails for *_evaled methods, retry again. | Reginald Tan | 2012-05-23 | 1 | -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.1 | John Mair | 2012-02-29 | 1 | -1/+1 |
| | |||||
* | Fix in the case of overridden method method | Conrad Irwin | 2012-02-28 | 1 | -2/+2 |
| | |||||
* | be conservative and bump version to 0.7.0v0.7.0 | John Mair | 2012-01-01 | 1 | -1/+1 |
| | |||||
* | version bump, 0.6.8 | John Mair | 2011-12-01 | 1 | -1/+1 |
| | |||||
* | replace ruby_parser dependency with eval | Ryan Fitzgerald | 2011-11-30 | 1 | -30/+17 |
| | |||||
* | bumped dependencies for compatibility with pryv0.6.7 | John Mair | 2011-10-26 | 1 | -1/+1 |
| | |||||
* | version 0.6.6, added REE support | John Mair | 2011-10-03 | 1 | -1/+1 |
| | |||||
* | Use syntactically nicer version | Conrad Irwin | 2011-10-01 | 1 | -3/+3 |
| | |||||
* | Add a less hacky version for ree-1.8.7 | Conrad Irwin | 2011-10-01 | 1 | -4/+20 |
| | |||||
* | added JRuby source_location hack, also added a LICENSE file | John Mair | 2011-09-07 | 2 | -53/+75 |
| | |||||
* | version 0.6.0 release | John Mair | 2011-06-09 | 1 | -1/+1 |
| | |||||
* | version 0.6.0pre1. added *.rbc files to CLEAN task | John Mair | 2011-06-09 | 1 | -1/+1 |
| | |||||
* | added Proc#source_location support for ruby 1.8 | John Mair | 2011-06-09 | 3 | -12/+23 |
| | |||||
* | version bump 0.5.0 | John Mair | 2011-06-01 | 1 | -1/+1 |
| | |||||
* | added source_location to procs for rbx, all tests passing on rbx | John Mair | 2011-06-01 | 2 | -22/+39 |
| | |||||
* | Fix warnings emitted by -w. | Rob Gleeson | 2011-05-19 | 2 | -2/+2 |
| | |||||
* | defaults to RubyParser on all 1.9 implementations except MRI | John Mair | 2011-04-11 | 2 | -2/+2 |
| | |||||
* | version 0.4.0, added proper support for immediate values to | John Mair | 2011-03-16 | 2 | -1/+15 |
| | | | | source_location in 1.8. | ||||
* | changed (C) to 2011 from 2010 | John Mair | 2011-03-05 | 1 | -1/+1 |
| | |||||
* | version 0.3.5, now has support to take advantage of Method#source on rubinius | John Mair | 2011-03-05 | 2 | -1/+25 |
| | |||||
* | version 0.3.4, fixed 1.8 1.9 String#clear incompat in Method#commentv0.3.4 | John Mair | 2011-02-28 | 2 | -2/+2 |
| |