summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #73 from yhirano55/cache_clearableHEADmasterJohn Mair2021-11-171-0/+5
|\ | | | | Add MethodSource.clear_cache
| * 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 ```
* Merge pull request #72 from stas/class_method_commentJohn Mair2021-11-034-0/+59
|\ | | | | Allow fetching class/module comments
| * Allow fetching class/module comments.Stas SUȘCOV2021-11-034-0/+59
|/
* Merge pull request #66 from rafbm/patch-1Kyrylo Silin2020-04-071-0/+1
|\ | | | | Add changelog to gemspec
| * Add changelog to gemspecRafael Masson2020-04-061-0/+1
|/ | | For a nice “Changelog” link in the https://rubygems.org/gems/method_source sidebar.
* Merge pull request #64 from banister/release-1-0-0v1.0.0Kyrylo Silin2020-03-193-6/+14
|\ | | | | Release v1.0.0
| * Release v1.0.0Kyrylo Silin2020-03-193-6/+14
|/
* Merge pull request #63 from banister/travis-removalKyrylo Silin2020-03-193-34/+14
|\ | | | | Test solely on CircleCI, remove Travis
| * Test solely on CircleCI, remove TravisKyrylo Silin2020-03-193-34/+14
|/
* Merge pull request #62 from banister/circleciKyrylo Silin2020-03-181-0/+128
|\ | | | | Test on CircleCI
| * Test on CircleCIKyrylo Silin2020-03-181-0/+128
|/
* Merge pull request #61 from jasonkarns/patch-1Kyrylo Silin2020-03-031-4/+1
|\ | | | | More closely match MIT License text verbatim
| * More closely match MIT License text verbatimJason Karns2020-03-021-4/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tweak the license such that tooling (in particular, `licensee`) recognizes the LICENSE file as MIT. Before: ``` $ /usr/local/share/gem/bin/licensee License: NOASSERTION Matched files: LICENSE, README.markdown, method_source.gemspec LICENSE: Content hash: bfd1a6d003c3210704bb2025ee95bfc059adcd4d License: NOASSERTION README.markdown: Content hash: d64f3bb4282a97b37454b5bb96a8a264a3363dc3 Attribution: Copyright (c) 2011 John Mair (banisterfiend) Confidence: 100.00% Matcher: Licensee::Matchers::Exact License: MIT method_source.gemspec: Confidence: 90.00% Matcher: Licensee::Matchers::Gemspec License: MIT ``` After: ``` $ /usr/local/share/gem/bin/licensee License: MIT Matched files: LICENSE, README.markdown, method_source.gemspec LICENSE: Content hash: d64f3bb4282a97b37454b5bb96a8a264a3363dc3 Attribution: Copyright (c) 2011 John Mair (banisterfiend) Confidence: 100.00% Matcher: Licensee::Matchers::Exact License: MIT ```
* Merge pull request #59 from casperisfine/fix-ruby-2.7Kyrylo Silin2019-10-282-1/+2
|\ | | | | Handle new message for unterminated lists on MRI 2.7
| * Test against Ruby 2.7 on CIJean Boussier2019-10-261-0/+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) ```
* Merge pull request #60 from casperisfine/fix-ciKyrylo Silin2019-10-263-9/+10
|\ | | | | Fix CI builds and add newer ruby versions
| * Fix ruby warning in spec_helperJean Boussier2019-10-252-3/+3
| |
| * Add MRI 2.5 and 2.6Jean Boussier2019-10-251-5/+7
| |
| * Fix CI buildJean Boussier2019-10-251-1/+0
|/
* Merge pull request #56 from nisusam/fix_documentation_linkJohn Mair2019-02-051-1/+1
|\ | | | | Fix `documentation` link
| * Fix `documentation` linknisusam2019-02-051-1/+1
|/
* Merge pull request #55 from banister/release-0-9-2v0.9.2Kyrylo Silin2018-11-122-5/+5
|\ | | | | Release v0.9.2
| * Release v0.9.2Kyrylo Silin2018-11-122-5/+5
|/
* Merge pull request #54 from banister/52-jruby-patch-removalKyrylo Silin2018-11-123-27/+3
|\ | | | | Revert "method_source: fix broken Procs on JRuby 9.2.0.0"
| * Revert "method_source: fix broken Procs on JRuby 9.2.0.0"Kyrylo Silin2018-11-123-27/+3
|/ | | | | | | 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-022-5/+5
|
* Merge pull request #51 from kyrylo/jruby-9200-fixJohn Mair2018-11-023-3/+27
|\ | | | | method_source: fix broken Procs on JRuby 9.2.0.0
| * method_source: fix broken Procs on JRuby 9.2.0.0Kyrylo Silin2018-11-023-3/+27
|/ | | | | | | | | | | | | | | 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.
* Merge pull request #50 from mensfeld/masterJohn Mair2017-11-212-1/+3
|\ | | | | #49 fix - Licence missing in the rubygems version and in the gemspec
| * remove gemfile lockMaciej Mensfeld2017-11-211-34/+0
| |
| * license for the gemspecMaciej Mensfeld2017-11-213-1/+37
|/
* tweaks to .travis.ymlJohn Mair2017-10-221-1/+2
| | | | | * allow jruby failures * bump to 2.4.2
* Run rake gemspec task to bump gemspec data (incl version number)John Mair2017-10-221-21/+21
|
* Version 0.9.0 releasev0.9.0John Mair2017-09-261-1/+1
| | | | ruby 2.4 support
* Merge pull request #35 from mlarraz/patch-1John Mair2017-09-261-1/+1
|\ | | | | Add Travis CI status badge
| * Add Travis CI status badgeMatt Larraz2016-01-221-1/+1
| | | | | | [ci skip]
* | Merge pull request #46 from petems/patch-1John Mair2017-09-261-0/+1
|\ \ | | | | | | Add MIT License to Gemfile
| * | Add MIT License to GemfilePeter Souter2017-07-031-0/+1
| | |
* | | Merge pull request #45 from junaruga/feature/rspecJohn Mair2017-09-266-49/+61
|\ \ \ | |/ / |/| | Replace Bacon to RSpec 3
| * | Replace Bacon to RSpec 3.Jun Aruga2017-05-316-49/+61
|/ / | | | | | | Because Bacon stopped the development.
* | Merge pull request #42 from junaruga/feature/travis-ruby-headJohn Mair2017-04-241-3/+15
|\ \ | | | | | | Update .travis.yml
| * | Update .travis.ymlJun Aruga2017-04-241-3/+15
|/ / | | | | | | | | | | | | | | | | | | | | * Update rubies to latest version. * Add ruby-head and jruby-head to Travis as allow_failures. * It's good to know new version Ruby's issue as faster before the release. * fast_finish is to get the Travis result as faster without waiting the result of the "allow_failures" items. See https://blog.travis-ci.com/2013-11-27-fast-finishing-builds/ * Add logic to update Bundler because of below issue. http://stackoverflow.com/questions/33733476/nomethoderror-undefined-method-spec-for-nilnilclass-active-utils-factory
* | Merge pull request #40 from koic/use_latest_rubiesJohn Mair2017-02-021-0/+2
|\ \ | | | | | | Use the latest rubies on Travis
| * | CI against Ruby 2.4.0Koichi ITO2017-01-111-0/+1
| | |
| * | CI against Ruby 2.3Koichi ITO2017-01-111-0/+1
| |/
* | Merge pull request #39 from koic/integer_unificationJohn Mair2017-02-023-6/+6
|\ \ | |/ |/| Integer Unification for Ruby 2.4.0+
| * Integer Unification for Ruby 2.4.0+Koichi ITO2017-01-113-6/+6
|/
* Merge pull request #29 from nicolasleger/add_ruby_2_1_and_2_2Conrad Irwin2015-05-011-0/+2
|\ | | | | Add new Ruby 2.1 and 2.2 versions