Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use String#truncate_bytes inside Multibyte::Chars#limit | Francesco Rodríguez | 2018-10-20 | 1 | -13/+1 |
| | |||||
* | Refactor Chars#reverse and Chars#grapheme_length | Francesco Rodríguez | 2018-10-16 | 1 | -2/+2 |
| | | | | | | | | | Use \X meta character directly to get grapheme clusters. Thanks to @mtsmfm for the tip: https://github.com/rails/rails/pull/34123#issuecomment-429028878 r? @jeremy | ||||
* | Deprecate ActiveSupport::Multibyte::Chars.consumes? | Francesco Rodríguez | 2018-10-15 | 1 | -0/+5 |
| | | | | | | In favor of String#is_utf8?. I think this method was made for internal use only, and its usage was removed here: https://github.com/rails/rails/pull/8261/files#diff-ce956ebe93786930e40f18db1da5fd46L39. | ||||
* | Deprecate Unicode#normalize and Chars#normalize (#34202) | Francesco Rodríguez | 2018-10-12 | 1 | -2/+19 |
| | |||||
* | Use native String#capitalize | Francesco Rodríguez | 2018-10-12 | 1 | -8/+1 |
| | |||||
* | Deprecate Unicode#downcase/upcase/swapcase. | Francesco Rodríguez | 2018-10-12 | 1 | -23/+2 |
| | | | | Use String methods directly instead. | ||||
* | Remove unused `require "active_support/core_ext/regexp"` | Ryuta Kamizono | 2018-07-29 | 1 | -1/+0 |
| | | | | | | | | Ruby 2.4 has native `Regexp#match?`. https://ruby-doc.org/core-2.4.0/Regexp.html#method-i-match-3F Related #32034. | ||||
* | [Active Support] require_relative => require | Akira Matsuda | 2017-10-21 | 1 | -5/+5 |
| | | | | This basically reverts 8da30ad6be34339124ba4cb4e36aea260dda12bc | ||||
* | [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 |
| | |||||
* | [Active Support] require => require_relative | Akira Matsuda | 2017-07-01 | 1 | -5/+5 |
| | |||||
* | Fix doc in Multibyte::Chars [ci skip] | kenta-s | 2017-02-17 | 1 | -4/+5 |
| | |||||
* | Privatize unneededly protected methods in Active Support | Akira Matsuda | 2016-12-24 | 1 | -3/+3 |
| | |||||
* | Add missing `+` around a some literals. | bogdanvlviv | 2016-10-27 | 1 | -1/+1 |
| | | | | | | Mainly around `nil` [ci skip] | ||||
* | Add three new rubocop rules | Rafael Mendonça França | 2016-08-16 | 1 | -1/+1 |
| | | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository. | ||||
* | modernizes hash syntax in activesupport | Xavier Noria | 2016-08-06 | 1 | -1/+1 |
| | |||||
* | applies new string literal convention in activesupport/lib | Xavier Noria | 2016-08-06 | 1 | -11/+11 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | systematic revision of =~ usage in AS | Xavier Noria | 2016-07-22 | 1 | -1/+2 |
| | | | | | Where appropriate prefer the more concise Regexp#match?, String#include?, String#start_with?, and String#end_with? | ||||
* | Update #20737 to address feedback | Sean Griffin | 2015-10-20 | 1 | -2/+5 |
| | | | | | | | Given that this pull request affects a mutable value, we need to test for and document the affects on the receiver in this case. Additionally, this pull request was missing a CHANGELOG entry. | ||||
* | Fixed slice! behavior: return nil for out-of-bound parameters | Gourav Tiwari | 2015-10-20 | 1 | -1/+2 |
| | |||||
* | File encoding is defaulted to utf-8 in Ruby >= 2.1 | Akira Matsuda | 2015-09-18 | 1 | -1/+0 |
| | |||||
* | Merge pull request #20297 from gouravtiwari/patch-9 | Claudio B. | 2015-05-26 | 1 | -0/+6 |
|\ | | | | | Added multibyte slice! example to doc [ci skip] | ||||
| * | Added multibyte slice! example to doc [ci skip] | Gourav Tiwari | 2015-05-26 | 1 | -0/+6 |
| | | |||||
* | | Remove redundant 'like' from doc of slice! method [ci skip] | Mehmet Emin İNAÇ | 2015-05-26 | 1 | -1/+1 |
|/ | |||||
* | Drying up method_missing code | Hitendra Singh | 2013-09-20 | 1 | -2/+1 |
| | |||||
* | update AS/log_subscriber and AS/multibyte docs [ci skip] | Francesco Rodriguez | 2012-09-14 | 1 | -24/+36 |
| | |||||
* | fix warning in Ruby2.0.0 | takkanm | 2012-06-11 | 1 | -1/+1 |
| | | | | | | | ``` rails/activesupport/lib/active_support/multibyte/chars.rb:136: warning: character class has duplicated range: /\b('?[\S])/ ``` | ||||
* | make AS::Multibyte::Chars work w/o multibyte core ext | Sergey Nartimov | 2012-05-28 | 1 | -1/+1 |
| | | | | | | Use ActiveSupport::Multibyte::Chars.new instead of String#mb_chars. It allows to use ActiveSupport::Multibyte::Chars without requiring String multibyte core extension. | ||||
* | removing unnecessary 'examples' noise from activesupport | Francesco Rodriguez | 2012-05-13 | 1 | -11/+0 |
| | |||||
* | Use respond_to_missing? for Chars | Marc-Andre Lafortune | 2012-05-05 | 1 | -2/+2 |
| | |||||
* | Build fix when running isolated test | Arun Agrawal | 2012-02-01 | 1 | -0/+1 |
| | |||||
* | Added as_json method for multibyte strings | Dmitriy Vorotilin | 2012-02-01 | 1 | -0/+4 |
| | |||||
* | Improve doc consistency | Norman Clarke | 2012-01-06 | 1 | -3/+3 |
| | |||||
* | Implement Chars#swapcase. | Norman Clarke | 2012-01-06 | 1 | -0/+8 |
| | |||||
* | Use friendlier method name | Norman Clarke | 2012-01-05 | 1 | -2/+2 |
| | |||||
* | Use friendlier method names for upcasing/downcasing | Norman Clarke | 2012-01-05 | 1 | -3/+3 |
| | |||||
* | Use more descriptive method names | Norman Clarke | 2012-01-05 | 1 | -2/+2 |
| | |||||
* | Move include to top of class for clarity | Norman Clarke | 2012-01-05 | 1 | -2/+1 |
| | |||||
* | Replace Unicode.u_unpack with String#codepoints | Norman Clarke | 2012-01-05 | 1 | -2/+2 |
| | |||||
* | Remove "_codepoints" from compose/decompose | Norman Clarke | 2012-01-05 | 1 | -2/+2 |
| | |||||
* | Remove unused code. | Norman Clarke | 2012-01-05 | 1 | -25/+0 |
| | |||||
* | Document method definition | Norman Clarke | 2012-01-05 | 1 | -0/+2 |
| | |||||
* | Just use Ruby's String#[]= | Norman Clarke | 2012-01-05 | 1 | -41/+0 |
| | |||||
* | Assume Encoding support | Norman Clarke | 2012-01-05 | 1 | -5/+1 |
| | |||||
* | Just delegate a few methods directly to @wrapped_string | Norman Clarke | 2012-01-05 | 1 | -20/+3 |
| | |||||
* | Merge branch 'refactor-multibyte-chars' of https://github.com/lest/rails ↵ | Norman Clarke | 2012-01-05 | 1 | -11/+5 |
|\ | | | | | | | | | | | | | into multibyte Conflicts: activesupport/lib/active_support/multibyte/chars.rb | ||||
| * | refactor AS::Multibyte::Chars | Sergey Nartimov | 2012-01-05 | 1 | -39/+5 |
| | | |||||
* | | Make return value from bang methods match Ruby docs | Norman Clarke | 2012-01-05 | 1 | -2/+2 |
| | | | | | | | | | | The docs for the String class indicate that methods like `rstrip!` and others should return nil when they do not have an effect on the string. | ||||
* | | Override #slice! to ensure proper return value. | Norman Clarke | 2012-01-05 | 1 | -0/+4 |
| | | | | | | | | | | The default pass-through to `method_missing` makes `#slice!` return `self` rather than the string that was sliced off. | ||||
* | | Remove overidden slice and slice! methods. | Norman Clarke | 2012-01-05 | 1 | -29/+1 |
|/ |