summaryrefslogtreecommitdiff
path: root/lib/pry/method
Commit message (Collapse)AuthorAgeFilesLines
* rubocop: fix offences of the Lint/StringConversionInInterpolationKyrylo Silin2018-10-161-1/+1
|
* Fix rubocop empty line after guard clause style violationsArlandis Word2018-10-142-0/+3
|
* method/disowned: delete unused 'binding' parameterKyrylo Silin2018-10-141-1/+1
| | | | | This was added by 97f1be86b29e41e0a786cf0177d934c4c22e8572 and it feels like a mishap, thus removing.
* rubocop: fix offences of the Lint/UnusedMethodArgument copKyrylo Silin2018-10-141-1/+1
|
* Drop support for RubiniusKyrylo Silin2018-10-071-5/+4
| | | | | | | Fixes #1775 (Drop support for Rubinius) I am amazed how many hacks we've had just to support Rubinius. It feels good to be able to remove them and reduce the complexity of the codebase.
* fix #1471, fix #1621 (#1689)r-obert2017-11-111-5/+16
| | | | | | | | * Abort early when searching for a superclass if the target method has been called through 'super' keyword from a prepended module. * mv spec/regression spec/integration * add hanami integration spec
* fix #1438strcmp2015-08-171-3/+0
| | | | [ci skip]
* Avoid loop in weird method locatorJuan Barreneche2015-03-171-1/+3
|
* Fix some warningsMatijs van Zuijlen2015-01-231-0/+1
|
* Remove deprecation warning for File.exists?Javier Alvarez2014-06-121-1/+1
| | | Rspec 3.0 + Ruby 2.1.1 raises deprecation warning 'warning: File.exists? is a deprecated name, use File.exist? instead'
* Fix yard documentation warnings(fix #1163)yui-knk2014-03-161-2/+2
|
* Method::Patcher should preserve method visibilityConrad Irwin2013-03-301-1/+2
| | | | (Works around https://github.com/rubinius/rubinius/issues/2248)
* Move cache reading into Pry::Code for consistencyConrad Irwin2013-03-281-4/+4
| | | | This necessitates ensuring that the wrapping doesn't add any newlines
* Modify methods using Pry::Method#redefineConrad Irwin2013-03-281-11/+6
| | | | | I considered calling redefine source=, but Pry::Method objects are not designed to be mutable.
* s/code_object/methodConrad Irwin2013-03-281-19/+19
|
* Allow Pry::Method::Patcher to work without _pry_Conrad Irwin2013-03-281-5/+19
|
* Rename Pry::Commands::Edit::MethodPatcher to Pry::Method::PatcherConrad Irwin2013-03-271-2/+2
|
* Move MethodPatcher to Method::PatcherConrad Irwin2013-03-271-0/+115
|
* check for directory? in WeirdMethodLocator#valid_file? prevents crash under ↵Patrick Ritchie2013-03-051-1/+1
| | | | jruby
* Refactor Pry::Method + add Pry::Method::WeirdMethodLocatorJohn Mair2013-02-022-0/+239
WeirdMethodLocator is used by Pry::Method.from_binding() to locate the method captured by the binding when the naive approach fails (i.e method(binding.eval('__method__')). "WeirdMethods" include methods defined on the superclass to the 'self' of the binding, as well as methods that have subsequently been renamed/replaced. We also move Pry::Method::Disowned to its own file (disowned.rb)