Kyrylo Silin
dcb8c46150
rubocop: fix offences of the Lint/StringConversionInInterpolation
2018-10-16 04:49:13 +08:00
Arlandis Word
59e7afd40b
Fix rubocop empty line after guard clause style violations
2018-10-14 09:44:58 -04:00
Kyrylo Silin
2f05ed8f09
method/disowned: delete unused 'binding' parameter
...
This was added by 97f1be86b2
and it feels like a
mishap, thus removing.
2018-10-14 15:38:47 +08:00
Kyrylo Silin
4c851ca374
rubocop: fix offences of the Lint/UnusedMethodArgument cop
2018-10-14 14:56:53 +08:00
Kyrylo Silin
743b905c81
Drop support for Rubinius
...
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.
2018-10-07 00:58:53 +08:00
r-obert
6a89f574da
fix #1471 , fix #1621 ( #1689 )
...
* 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
2017-11-11 01:12:39 +01:00
strcmp
623306966b
fix #1438
...
[ci skip]
2015-08-17 15:08:32 +01:00
Juan Barreneche
c2ed9ec135
Avoid loop in weird method locator
2015-03-17 18:46:45 -03:00
Matijs van Zuijlen
96b61f14aa
Fix some warnings
2015-01-23 14:03:36 +01:00
Javier Alvarez
8aa9b2fc03
Remove deprecation warning for File.exists?
...
Rspec 3.0 + Ruby 2.1.1 raises deprecation warning 'warning: File.exists? is a deprecated name, use File.exist? instead'
2014-06-12 10:10:14 -05:00
yui-knk
e99ae3df08
Fix yard documentation warnings( fix #1163 )
2014-03-16 23:54:45 +09:00
Conrad Irwin
ad655b7384
Method::Patcher should preserve method visibility
...
(Works around https://github.com/rubinius/rubinius/issues/2248 )
2013-03-30 17:42:46 -07:00
Conrad Irwin
28d0905eb6
Move cache reading into Pry::Code for consistency
...
This necessitates ensuring that the wrapping doesn't add any newlines
2013-03-28 01:05:55 -07:00
Conrad Irwin
29397efb37
Modify methods using Pry::Method#redefine
...
I considered calling redefine source=, but Pry::Method objects are not
designed to be mutable.
2013-03-28 01:02:13 -07:00
Conrad Irwin
da1283b000
s/code_object/method
2013-03-28 00:25:50 -07:00
Conrad Irwin
e43daac85c
Allow Pry::Method::Patcher to work without _pry_
2013-03-28 00:25:50 -07:00
Conrad Irwin
f2bdd33ef0
Rename Pry::Commands::Edit::MethodPatcher to Pry::Method::Patcher
2013-03-27 23:39:44 -07:00
Conrad Irwin
a7c85d7882
Move MethodPatcher to Method::Patcher
2013-03-27 23:12:56 -07:00
Patrick Ritchie
e7d8eb556c
check for directory? in WeirdMethodLocator#valid_file? prevents crash under jruby
2013-03-05 11:27:45 -05:00
John Mair
97f1be86b2
Refactor Pry::Method + add Pry::Method::WeirdMethodLocator
...
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)
2013-02-02 22:37:25 +01:00