Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | String#truncate_bytes: limit to N bytes without breaking multibyte chars | Jeremy Daer | 2018-02-18 | 1 | -0/+41 |
| | | | | | This faithfully preserves grapheme clusters (characters composed of other characters and combining marks) and other multibyte characters. | ||||
* | [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment` | Koichi ITO | 2017-07-11 | 1 | -0/+1 |
| | |||||
* | Use frozen-string-literal in ActiveSupport | Kir Shatrov | 2017-07-09 | 1 | -0/+1 |
| | |||||
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" | Matthew Draper | 2017-07-02 | 1 | -1/+0 |
| | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. | ||||
* | Enforce frozen string in Rubocop | Kir Shatrov | 2017-07-01 | 1 | -0/+1 |
| | |||||
* | applies new string literal convention in activesupport/lib | Xavier Noria | 2016-08-06 | 1 | -3/+3 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Speedup String#squish | ojab | 2015-04-12 | 1 | -2/+1 |
| | |||||
* | Merge pull request #19121 from davydovanton/update-doc-for-remove | Yves Senn | 2015-02-28 | 1 | -2/+3 |
|\ | | | | | | | Update documentation examples for String#remove [skip ci] | ||||
| * | Update documentation examples for String#remove [skip ci] | Anton Davydov | 2015-02-28 | 1 | -6/+7 |
|/ | |||||
* | Fix a backtracking problem in String#truncate_words | Henrik Nygren | 2015-02-25 | 1 | -1/+1 |
| | | | | Fixes #19070. | ||||
* | added example of squish!, remove, test case for multiple occurrence of | Rishi Jain | 2014-11-06 | 1 | -0/+9 |
| | | | | | | | | pattern removal added example for string#remove and test case for remove of multiple occurence of pattern removed extra whitespaces | ||||
* | Make `String#remove` and `String#remove!` accept multiple arguments | Pavel Pravosud | 2014-10-25 | 1 | -6/+10 |
| | |||||
* | As of Unicode 6.3, Mongolian Vowel Separator is not whitespace | Matthew Draper | 2014-09-15 | 1 | -1/+1 |
| | | | | | Ruby 2.2 knows this, and no longer matches it with [[:space:]], so it's not a good candidate for testing String#squish. | ||||
* | Merge pull request #16190 from oss92/word_truncation | Matthew Draper | 2014-07-17 | 1 | -0/+24 |
|\ | | | | | | | Word truncation | ||||
| * | Added truncate_words method to activesupport strings | root | 2014-07-16 | 1 | -0/+21 |
|/ | |||||
* | Typo Fix[ci skip] | Rashmi Yadav | 2013-08-14 | 1 | -3/+3 |
| | |||||
* | Add String#remove(pattern) as a short-hand for the common pattern of ↵ | David Heinemeier Hansson | 2013-08-13 | 1 | -0/+10 |
| | | | | String#gsub(pattern, '') | ||||
* | Better not mutate the given options Hash | Akira Matsuda | 2013-07-10 | 1 | -3/+3 |
| | |||||
* | Speed up String#truncate | Akira Matsuda | 2013-07-10 | 1 | -1/+1 |
| | | | | | | | Benchmark: user system total real old 1.550000 0.040000 1.590000 ( 1.585866) new 1.250000 0.040000 1.290000 ( 1.287693) | ||||
* | interpolate instead of string concat | Vipul A M | 2013-04-15 | 1 | -1/+1 |
| | |||||
* | no need for \Z, \z is more concise | Xavier Noria | 2013-01-28 | 1 | -1/+1 |
| | |||||
* | Improve String#squish whitespaces matching | Antoine Lyset | 2013-01-22 | 1 | -2/+5 |
| | |||||
* | update AS/core_ext docs [ci skip] | Francesco Rodriguez | 2012-09-12 | 1 | -3/+3 |
| | |||||
* | remove unnecessary require | Sergey Nartimov | 2012-05-28 | 1 | -2/+0 |
| | | | | | AS::Multibyte are no longer required by access and filters string core extensions. | ||||
* | Update the documentation and add CHANGELOG entry | Rafael Mendonça França | 2012-05-26 | 1 | -1/+1 |
| | |||||
* | Revert "Merge pull request #6354 from lest/patch-1" | Carlos Galdino + Rafael Mendonça França | 2012-05-16 | 1 | -0/+2 |
| | | | | | | | This reverts commit e8feaff60b9c04d34ad234f7d17b5d2ad9cc7a24, reversing changes made to 9adf28c026070afb78b80027521a4ddddd68d697. Reason: This broke the actionmailer tests | ||||
* | remove unnecessary require | Sergey Nartimov | 2012-05-16 | 1 | -2/+0 |
| | | | | | - access & filters don't use multibyte ext - transliterate requires only AS::Multibyte but not multibyte ext | ||||
* | remove unnecessary 'examples' noise | Francesco Rodriguez | 2012-05-11 | 1 | -1/+0 |
| | |||||
* | Tests for regexp separator in String#truncate | Alexey Gaziev | 2012-04-29 | 1 | -1/+4 |
| | | | | https://github.com/rails/rails/commit/5a7513593f64e0ff7e4de1ee37bac5eeddfae270 | ||||
* | String quotes and trailing spaces | Alexey Gaziev | 2012-04-29 | 1 | -4/+4 |
| | |||||
* | AS core_ext refactoring | Alexey Gaziev | 2012-04-29 | 1 | -5/+9 |
| | |||||
* | refactor String#truncate not to use mb_chars | Sergey Nartimov | 2012-01-04 | 1 | -6/+5 |
| | |||||
* | Example descriptions and their examples were flipped. Fix. | Ben Orenstein | 2011-03-05 | 1 | -3/+3 |
| | |||||
* | revises the documentation of String#truncate and the truncate helper | Xavier Noria | 2010-06-02 | 1 | -13/+9 |
| | |||||
* | Extracted String#truncate from TextHelper#truncate [DHH] | David Heinemeier Hansson | 2010-06-01 | 1 | -0/+33 |
| | |||||
* | Convert String conversions, filters, starts/ends_with, and multibyte ↵ | Jeremy Kemper | 2009-03-28 | 1 | -23/+17 |
| | | | | extension modules to class reopen | ||||
* | Applied the faster squish version (closes #11123) [jordi] | David Heinemeier Hansson | 2008-03-13 | 1 | -2/+4 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9015 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add String#squish and String#squish! to remove consecutive chunks of ↵ | Michael Koziarski | 2008-02-16 | 1 | -0/+24 |
whitespace. Closes #11123 [jordi, Henrik N] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8878 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |