| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Add MethodSource.clear_cache
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|/ |
|
|\
| |
| | |
Add changelog to gemspec
|
|/
|
| |
For a nice “Changelog” link in the https://rubygems.org/gems/method_source sidebar.
|
|\
| |
| | |
Release v1.0.0
|
|/ |
|
|\
| |
| | |
Test solely on CircleCI, remove Travis
|
|/ |
|
|\
| |
| | |
Test on CircleCI
|
|/ |
|
|\
| |
| | |
More closely match MIT License text verbatim
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
```
|
|\
| |
| | |
Handle new message for unterminated lists on MRI 2.7
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
```
|
|\
| |
| | |
Fix CI builds and add newer ruby versions
|
| | |
|
| | |
|
|/ |
|
|\
| |
| | |
Fix `documentation` link
|
|/ |
|
|\
| |
| | |
Release v0.9.2
|
|/ |
|
|\
| |
| | |
Revert "method_source: fix broken Procs on JRuby 9.2.0.0"
|
|/
|
|
|
|
|
| |
Fixes #52 (Revert the JRuby 9.2.0.0 source_location hack once the newest version
is out)
This reverts commit 20fb1efde4530c78f7627d8b5b4e0b3f43cf821d.
|
| |
|
|\
| |
| | |
method_source: fix broken Procs on JRuby 9.2.0.0
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
#49 fix - Licence missing in the rubygems version and in the gemspec
|
| | |
|
|/ |
|
|
|
|
|
| |
* allow jruby failures
* bump to 2.4.2
|
| |
|
|
|
|
| |
ruby 2.4 support
|
|\
| |
| | |
Add Travis CI status badge
|
| |
| |
| | |
[ci skip]
|
|\ \
| | |
| | | |
Add MIT License to Gemfile
|
| | | |
|
|\ \ \
| |/ /
|/| | |
Replace Bacon to RSpec 3
|
|/ /
| |
| |
| | |
Because Bacon stopped the development.
|
|\ \
| | |
| | | |
Update .travis.yml
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
|
|\ \
| | |
| | | |
Use the latest rubies on Travis
|
| | | |
|
| |/ |
|
|\ \
| |/
|/| |
Integer Unification for Ruby 2.4.0+
|
|/ |
|
|\
| |
| | |
Add new Ruby 2.1 and 2.2 versions
|