Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | deprecates Module#local_constant_names | Xavier Noria | 2012-01-12 | 1 | -2/+12 |
| | |||||
* | removes the compatibility method Module#method_names | Xavier Noria | 2011-12-25 | 1 | -5/+0 |
| | |||||
* | removes the compatibility method Module#instance_method_names | Xavier Noria | 2011-12-25 | 1 | -4/+0 |
| | |||||
* | ruby 1.9 returns method names as symbols | Sergey Nartimov | 2011-12-25 | 1 | -11/+6 |
| | |||||
* | Module#name returns nil for anonymous class in ruby 1.9 | Vasiliy Ermolovich | 2011-12-25 | 1 | -6/+2 |
| | |||||
* | remove deprecated Module#synchronize from ActiveSupport | Sergey Nartimov | 2011-12-24 | 1 | -45/+0 |
| | |||||
* | Remove more dead code from AS. | José Valim | 2011-12-20 | 1 | -18/+6 |
| | |||||
* | Initial pass at removing dead 1.8.x code from Active Support. | José Valim | 2011-12-20 | 1 | -21/+2 |
| | | | | | | 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. | ||||
* | Module#synchronize is deprecated with no replacement. Please use `monitor` ↵ | Aaron Patterson | 2011-11-29 | 1 | -0/+2 |
| | | | | from ruby's standard library. | ||||
* | defines Module#qualified_const_(defined?|get|set) and String#deconstantize | Xavier Noria | 2011-10-29 | 1 | -0/+64 |
| | | | | | | | | | | 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. | ||||
* | Use safe_constantize where possible. | José Valim | 2011-09-23 | 1 | -3/+1 |
| | |||||
* | Revert all the stuff to do with disallowing non-public methods for ↵ | Jon Leighton | 2011-08-25 | 1 | -6/+2 |
| | | | | Module#delegate | ||||
* | prefer ends_with? over slicing | Xavier Noria | 2011-08-16 | 1 | -1/+2 |
| | |||||
* | Add a test for delegating a method ending in '=' as this is a special case. | Jon Leighton | 2011-08-15 | 1 | -0/+1 |
| | |||||
* | Need to include public_send | Arun Agrawal | 2011-08-15 | 1 | -0/+1 |
| | |||||
* | Split up the definitions in Module#delegate depending on :allow_nil, and ↵ | Jon Leighton | 2011-08-15 | 1 | -17/+22 |
| | | | | don't use exceptions for flow control in the :allow_nil => true case. | ||||
* | Fix the line number in the backtrace when Module#delegate raises | Jon Leighton | 2011-08-15 | 1 | -1/+1 |
| | |||||
* | Just do the method call directly in Module#delegate, if we can (we cannot ↵ | Jon Leighton | 2011-08-15 | 1 | -1/+4 |
| | | | | 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. | ||||
* | Refactored to more closely resemble idiom applied for on_nil | Evan Light | 2011-08-05 | 1 | -5/+11 |
| | |||||
* | Remove unnecessary require (happened after fcbde454f6) | Dmitriy Kiriyenko | 2011-08-01 | 1 | -2/+0 |
| | |||||
* | remove_possible_method: test if method exists | Brad Ediger | 2011-07-31 | 1 | -2/+7 |
| | | | | | | | This speeds up remove_possible_method substantially since it doesn't have to rescue a NameError in the common case. Closes #2346. | ||||
* | Don't do remove_possible_method when delegate is used. Two reasons: 1) ↵ | Jon Leighton | 2011-07-18 | 1 | -4/+0 |
| | | | | warnings should be shown, and fixed at the source and 2) the code is slow. Fixes #1937. | ||||
* | Added instance_accessor: false to Module#mattr_accessor | Vijay Dev | 2011-06-14 | 1 | -2/+6 |
| | |||||
* | Simplify boolean logic into ternary. | Ben Orenstein | 2011-06-08 | 1 | -1/+1 |
| | |||||
* | Removed deprecated methods and related tests from ActiveSupport | Josh Kalderimis | 2011-05-25 | 1 | -31/+0 |
| | |||||
* | Deprecate attr_accessor_with_default. | José Valim | 2011-05-16 | 1 | -0/+1 |
| | |||||
* | Remove a circular require in AS deprecations. This is safe as AS ↵ | Josh Kalderimis | 2011-05-12 | 1 | -2/+0 |
| | | | | deprecations is autoloaded as needed. | ||||
* | adds a couple of missing AS dependencies | Rolf Timmermans | 2011-03-12 | 1 | -0/+2 |
| | |||||
* | Improve clarity of example. Make it follow guidelines for output display. | Ben Orenstein | 2011-02-19 | 1 | -5/+5 |
| | |||||
* | Don't depend on rubygems loading thread (for Mutex) | raggi | 2010-11-25 | 1 | -0/+1 |
| | |||||
* | Use native attr_* macros for performance reasons. | thedarkone | 2010-09-27 | 1 | -6/+13 |
| | |||||
* | Fix 'warning: method redefined' [#5551 state:resolved] | Krekoten' Marjan | 2010-09-25 | 1 | -4/+4 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | attr_accessor_with_default should raise an ArgumentError not a RuntimeError | Aaron Patterson | 2010-09-24 | 1 | -3/+2 |
| | |||||
* | delegate method should treat :prefix => false same as :prefix => nil | Neeraj Singh | 2010-09-01 | 1 | -1/+1 |
| | | | | | | [#5375 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 5 | -7/+7 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Introduced redefine_method | Łukasz Strzałkowski | 2010-07-19 | 1 | -0/+5 |
| | |||||
* | It's not needed to initialize the attr when calling mattr_writer | Santiago Pastorino | 2010-07-18 | 1 | -7/+1 |
| | |||||
* | refactor evals and adds some __FILE__ and __LINE__ | Santiago Pastorino | 2010-05-20 | 1 | -2/+2 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | fix stack trace lines on class_eval | Santiago Pastorino | 2010-04-09 | 3 | -3/+3 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | fisting stack trace [#4349 state:resolved] | Aaron Patterson | 2010-04-08 | 1 | -1/+1 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | LINE on class_eval need + 1, also removed comments [#4281 state:committed] | Santiago Pastorino | 2010-03-27 | 1 | -20/+20 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | fixing inconsistency with cattr_reader and matter_reader [#4172 state:resolved] | Kabari Hendrick | 2010-03-27 | 1 | -5/+9 |
| | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Merge branch 'master' into docrails | wycats | 2010-03-26 | 3 | -1/+27 |
|\ | |||||
| * | Singleton classes returns parent's methods with instance_methods(false) and ↵ | José Valim | 2010-03-19 | 1 | -1/+3 |
| | | | | | | | | this makes remove_method in Module#delegate fail. Add a test case and fix the bug. | ||||
| * | Remove some 1.9 warnings (resulting in some fixed bugs). Remaining AM ↵ | wycats | 2010-03-17 | 1 | -0/+14 |
| | | | | | | | | warnings are in dependencies. | ||||
| * | Eliminate warnings for AM on 1.8 | wycats | 2010-03-16 | 2 | -1/+11 |
| | | |||||
* | | Merge remote branch 'mainstream/master' | Pratik Naik | 2010-02-14 | 4 | -55/+34 |
|\| | | | | | | | | | | | | | | | Conflicts: railties/README railties/guides/source/active_support_core_extensions.textile railties/guides/source/getting_started.textile railties/lib/generators/rails/app/templates/README | ||||
| * | fixes Module#anonymous? for 1.9 | Xavier Noria | 2010-02-11 | 1 | -2/+6 |
| | | |||||
| * | moves Class#reachable? to Module#reachable?, bases implementation on ↵ | Xavier Noria | 2010-02-11 | 1 | -0/+10 |
| | | | | | | | | anonymous? and constantize, and adds test coverage | ||||
| * | defines Module#anonymous? | Xavier Noria | 2010-02-11 | 1 | -0/+20 |
| | |