Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use separate test class name | David Heinemeier Hansson | 2015-12-17 | 1 | -1/+1 |
| | |||||
* | Add thread_m/cattr_accessor/reader/writer suite of methods for declaring ↵ | David Heinemeier Hansson | 2015-12-17 | 1 | -0/+109 |
| | | | | class and module variables that live per-thread | ||||
* | Don't leak Object constants in core_ext/module/qualified_const | Genadi Samokovarov | 2015-12-16 | 1 | -60/+70 |
| | |||||
* | Make `Module#redefine_method` to keep method visibility | yui-knk | 2015-10-26 | 1 | -1/+19 |
| | | | | | | | Before this commit `Module#redefine_method` always changes visibility of redefined method to `public`. This commit changes behavior of Module#redefine_method` to keep method visibility. | ||||
* | Add Module#remove_possible_singleton_method | Andrew White | 2015-10-21 | 1 | -3/+15 |
| | | | | | This is primarily to fix method redefinition warnings in class_attribute but may be of use in other places where we define singleton methods. | ||||
* | Regex fix for mattr_accessor validation | Aliaksandr Buhayeu | 2015-10-01 | 1 | -0/+14 |
| | | | | | Change ^ and $ operators to \A and \z to prevent code injection after the line breaks | ||||
* | Only invoke the default block for mattr_accessor once so that it does not ↵ | Lachlan Sylvester | 2015-08-07 | 1 | -0/+6 |
| | | | | cause issues if it is not idempotent | ||||
* | Introduce Concern#class_methods and Kernel#concern | Jeremy Kemper | 2014-02-23 | 1 | -14/+44 |
| | |||||
* | Introduce Module#concerning | Jeremy Kemper | 2013-12-17 | 1 | -0/+35 |
| | | | | | | A natural, low-ceremony way to separate responsibilities within a class. Imported from https://github.com/37signals/concerning#readme | ||||
* | Unify cattr and mattr accessors declarations | Genadi Samokovarov | 2013-12-02 | 1 | -4/+22 |
| | |||||
* | Fix some assert_raise calls containing messages in Active Support | Carlos Antonio da Silva | 2012-10-28 | 1 | -6/+13 |
| | |||||
* | Fix ActiveSupport tests that depend on run order | Francesco Rodriguez | 2012-08-23 | 1 | -11/+18 |
| | |||||
* | validate attribute names in class and module attribute accessors | Dmitry Plashchynski | 2012-03-30 | 1 | -0/+14 |
| | |||||
* | use AS::TestCase as the base class | Aaron Patterson | 2012-01-05 | 3 | -3/+3 |
| | |||||
* | Module#synchronize is deprecated with no replacement. Please use `monitor` ↵ | Aaron Patterson | 2011-11-29 | 1 | -89/+0 |
| | | | | from ruby's standard library. | ||||
* | added remove_method core_ext tests | Anand | 2011-11-07 | 1 | -0/+29 |
| | |||||
* | defines Module#qualified_const_(defined?|get|set) and String#deconstantize | Xavier Noria | 2011-10-29 | 1 | -0/+94 |
| | | | | | | | | | | 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. | ||||
* | Added instance_accessor: false to Module#mattr_accessor | Vijay Dev | 2011-06-14 | 1 | -0/+7 |
| | |||||
* | Removed deprecated methods and related tests from ActiveSupport | Josh Kalderimis | 2011-05-25 | 1 | -39/+0 |
| | |||||
* | Deprecate attr_accessor_with_default. | José Valim | 2011-05-16 | 1 | -4/+12 |
| | |||||
* | Don't depend on rubygems loading thread (for Mutex) | raggi | 2010-11-25 | 1 | -0/+1 |
| | |||||
* | attr_accessor_with_default should raise an ArgumentError not a RuntimeError | Aaron Patterson | 2010-09-24 | 1 | -1/+1 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 5 | -17/+17 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Final iteration of use better testing methods | Neeraj Singh | 2010-05-19 | 2 | -7/+7 |
| | | | | | | [#4652 state:resolved] 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 | -0/+6 |
| | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | moves Class#reachable? to Module#reachable?, bases implementation on ↵ | Xavier Noria | 2010-02-11 | 1 | -0/+41 |
| | | | | anonymous? and constantize, and adds test coverage | ||||
* | defines Module#anonymous? | Xavier Noria | 2010-02-11 | 1 | -0/+14 |
| | |||||
* | Move model naming into ActiveModel | Joshua Peek | 2009-06-17 | 1 | -28/+0 |
| | |||||
* | Add #element and #collection to ModelName | Jeremy Kemper | 2009-06-08 | 1 | -0/+8 |
| | |||||
* | Fix dependencies revealed by testing in isolation | Jeremy Kemper | 2009-04-22 | 4 | -3/+7 |
| | |||||
* | Opt in to Dependencies | Jeremy Kemper | 2009-04-22 | 1 | -0/+1 |
| | |||||
* | Explicit test dependencies | Jeremy Kemper | 2009-03-28 | 1 | -1/+4 |
| | |||||
* | Ruby 1.9 compat: rename deprecated assert_raises to assert_raise. | Jeremy Kemper | 2009-03-08 | 1 | -2/+2 |
| | | | | [#1617 state:resolved] | ||||
* | Rework testing extensions to reflect the recent miniunit upheaval | Jeremy Kemper | 2008-11-07 | 1 | -4/+4 |
| | |||||
* | Module#synchronize: Add testcase to ensure that singleton methods can be wrapped | Nick | 2008-08-29 | 1 | -3/+17 |
| | |||||
* | Add method punctuation handling to #synchronize | Nick | 2008-08-29 | 1 | -0/+14 |
| | |||||
* | Adds Module#synchronize for easier method-level synchronization. | Nick | 2008-08-29 | 1 | -0/+57 |
| | |||||
* | Move Class::ModelName to Active Support module core_ext | Jeremy Kemper | 2008-06-06 | 1 | -0/+19 |
| | |||||
* | require abstract_unit directly since test is in load path | Jeremy Kemper | 2008-01-05 | 4 | -5/+5 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Ruby 1.9 compat: shadowed vars, kcode | Jeremy Kemper | 2007-12-15 | 1 | -2/+6 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8402 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Hax to workaround private send for Ruby 1.9. Consider moving to send! and ↵ | Jeremy Kemper | 2007-09-27 | 1 | -7/+7 |
| | | | | | | aliasing to send for < 1.9. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7651 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Use instance_variable_defined? instead of instance_variables.include? to ↵ | Jeremy Kemper | 2007-09-27 | 2 | -11/+11 |
| | | | | | | account for string/symbol differences between 1.8 and 1.9 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7650 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Let alias_attribute work with attributes with initial capital letters ↵ | Michael Koziarski | 2007-07-19 | 1 | -1/+24 |
| | | | | | | (legacy columns etc). Closes #8596 [mpalmer] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Clean up junk test. Closes #7973 [Rob Sanheim] | Jeremy Kemper | 2007-06-08 | 2 | -31/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added :instance_writer option to #mattr_writer/accessor, ↵ | Rick Olson | 2007-01-28 | 2 | -0/+63 |
| | | | | | | #cattr_writer/accessor, and #class_inheritable_writer to skip the creation of the instance writer. [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6050 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Rename test file so it's not ignored by rake | Rick Olson | 2007-01-28 | 1 | -0/+0 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6049 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add Module#attr_accessor_with_default to initialize value of attribute ↵ | Marcel Molina | 2006-11-16 | 1 | -0/+30 |
| | | | | | | before setting it. Closes #6538. [Stuart Halloway, Marcel Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5539 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | attr_internal to support namespacing and deprecation | Jeremy Kemper | 2006-08-07 | 1 | -0/+52 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4692 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added Module#alias_attribute [Jamis/DHH] | David Heinemeier Hansson | 2006-08-03 | 1 | -0/+31 |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4653 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |