Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | remove ruby 1.8 checking in constantize method | Vasiliy Ermolovich | 2011-12-29 | 1 | -39/+24 |
| | |||||
* | fix typo again (Thanks Phillip Oertel) | Vijay Dev | 2011-11-08 | 1 | -1/+1 |
| | |||||
* | fix typo | Vijay Dev | 2011-11-06 | 1 | -1/+1 |
| | |||||
* | Refactored pluralize and singularize into a common method. | Henrik Hodne | 2011-11-06 | 1 | -16/+18 |
| | | | | See diff discussion on rails/#3536. | ||||
* | defines Module#qualified_const_(defined?|get|set) and String#deconstantize | Xavier Noria | 2011-10-29 | 1 | -6/+23 |
| | | | | | | | | | | 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. | ||||
* | let demodulize do less work, and add tests | Xavier Noria | 2011-10-29 | 1 | -1/+3 |
| | | | | This is also faster on 1.9. | ||||
* | Update CHANGELOG for safe_constantize. | José Valim | 2011-09-23 | 1 | -1/+4 |
| | |||||
* | Ensure that constantize just rescues NameError that applies to the constant ↵ | José Valim | 2011-09-23 | 1 | -4/+20 |
| | | | | being currently loaded. | ||||
* | Added ActiveSupport::Inflector.safe_constantize and String#safe_constantize; ↵ | Ryan Oblak | 2011-09-23 | 1 | -0/+27 |
| | | | | refactored common constantize tests into ConstantizeTestCases | ||||
* | Revert removing gsub and sub from safe buffer. | José Valim | 2011-09-08 | 1 | -24/+8 |
| | |||||
* | remove support of symbols on classify and camelize | Damien Mathieu | 2011-09-08 | 1 | -0/+16 |
| | |||||
* | make gsub and sub unavailable in SafeBuffers - Closes #1555 | Damien Mathieu | 2011-09-08 | 1 | -8/+8 |
| | |||||
* | Add more examples to #titleize | Pol Llovet | 2011-07-09 | 1 | -2/+4 |
| | |||||
* | Add acronym support to Inflector; Issue #1366 | David Lee | 2011-06-11 | 2 | -10/+14 |
| | |||||
* | Refactor | David Lee | 2011-06-11 | 2 | -91/+143 |
| | |||||
* | adds code examples for negative ordinalize | Vijay Dev | 2011-05-08 | 1 | -1/+3 |
| | |||||
* | ordinalize negative numbers patch | Jason | 2011-05-07 | 1 | -2/+2 |
| | | | | | | | Applied patch by Amir Manji https://github.com/rails/rails/issues/437#issuecomment-1116045 Signed-off-by: Jason <jasonmichaelroth@gmail.com> | ||||
* | proper reset all inflector scopes | Stefan Huber | 2011-04-25 | 1 | -1/+1 |
| | |||||
* | Added a word boundary to uncountable inflection regex for #singularize so ↵ | John Paul Ashenfelter | 2010-12-22 | 1 | -1/+1 |
| | | | | short inflections like ors do not affect larger words like sponsors [#6093 state:resolved] | ||||
* | require i18n in transliterate so it can run in isolated situations | Jack Dempsey | 2010-09-14 | 1 | -0/+1 |
| | |||||
* | camelize and underscore are sort of inverse of each other, but not in a ↵ | Xavier Noria | 2010-07-22 | 1 | -1/+11 |
| | | | | mathematical sense [#5174 state:resolved] | ||||
* | Use multibyte proxy class on 1.9, refactor Unicode. | Norman Clarke | 2010-05-21 | 1 | -2/+3 |
| | | | | | | | | | | Makes String#mb_chars on Ruby 1.9 return an instance of ActiveSupport::Multibyte::Chars to work around 1.9's lack of Unicode case folding. Refactors class methods from ActiveSupport::Multibyte::Chars into new Unicode module, adding other related functionality for consistency. [#4594 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | fixes colon in previous YAML example | Xavier Noria | 2010-05-03 | 1 | -1/+1 |
| | |||||
* | Fix transliteration rule example in docs. [#4526 state:resolved] | Norman Clarke | 2010-05-03 | 1 | -2/+3 |
| | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | Delegate Inflector.transliterate to i18n. [#4508 state:resolved] | Norman Clarke | 2010-04-30 | 1 | -38/+56 |
| | | | | | | | Ancillary changes: Moved Chars#normalize into a class method; removed unused UTF_PAT constant. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Improve reliability of Inflector.transliterate. [#4374 state:resolved] | Norman Clarke | 2010-04-12 | 1 | -24/+37 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Avoid unnecessary allocations in Inflector.underscore [#3626 state:resolved] | Joe Van Dyk | 2010-04-12 | 1 | -5/+7 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Changed the way inflections for uncountables work for 'funky jeans' [#3576 ↵ | Rolf Bjaanes | 2010-04-05 | 1 | -1/+1 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Parameterize should accept malformed utf8 characters [#4323 state:resolved] | Kristopher Murata | 2010-04-04 | 1 | -1/+4 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Any reason we can't just use the slow 1.8 path for transliteration in 1.9? | wycats | 2010-03-17 | 1 | -2/+2 |
| | |||||
* | Removed the + sign as an accepted character from the parameterize method, as ↵ | Stijn Mathysen | 2010-03-05 | 1 | -1/+1 |
| | | | | | | | | a + sign is interpreted by the browser as a space, possibly resulting in a "ArgumentError: illegal character in key" [#4080 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Avoid calling triggering const_missing if const_missing is private when ↵ | Carl Lerche | 2010-02-18 | 1 | -1/+1 |
| | | | | doing constantize | ||||
* | Remove string access core extension dependency | Jeremy Kemper | 2009-11-09 | 1 | -3/+1 |
| | |||||
* | Break up inflector to reduce the dependency burden on dependency-les methods ↵ | Yehuda Katz | 2009-11-07 | 3 | -0/+413 |
like constantize. |