Remove the use of #__send__ in order to boost performance. This also means that you can no longer delegate to private methods on the target object.
Dependency fix for activesupport
* Refactor log subscriber, use select! to avoid a new object * Remove deprecation messages related to AS::Deprecation behavior This was added about 2 years ago for Rails 3: d4c7d3f * Remove some not used requires * Refactor delegate to avoid string conversions and if statements inside each block
There are a bunch of other implicit branches that adds 1.8.x specific code that still needs to be removed. Pull requests for those cases are welcome.
…itor` from ruby's standard library.
…ntize This commit also implements a faster version of #demodulize I was unable to isolate with git add --patch. Not a big fan of the name #deconstantize. It complements #demodulize getting rid of the rightmost constant, hence the name, but it is unrelated to the well-known #constantize. So unsure. Could not come with anything better, please feel free to rename.
…and don't use exceptions for flow control in the :allow_nil => true case.
…nnot for method names ending in '='). Two reasons: 1) it's faster, see https://gist.github.com/1089783 and 2) more importantly, delegate should not allow you to accidentally call private or protected methods.