Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | String already respond_to scrub at Ruby 2.2 | Rafael Mendonça França | 2015-01-04 | 1 | -2/+1 |
| | |||||
* | Update to Unicode 7.0.0 | Benjamin Fleischer | 2014-11-15 | 1 | -1/+1 |
| | | | | | | | | 7.0.0 was released on June 16, 2014 http://unicode-inc.blogspot.com.ar/2014/10/unicode-version-70-complete-text-of.html ruby bin/generate_tables | ||||
* | As of Unicode 6.3, Mongolian Vowel Separator is not whitespace | Matthew Draper | 2014-09-15 | 1 | -1/+0 |
| | | | | | Ruby 2.2 knows this, and no longer matches it with [[:space:]], so it's not a good candidate for testing String#squish. | ||||
* | Preload UnicodeDatabase outside the loop | Akira Matsuda | 2014-08-18 | 1 | -0/+1 |
| | | | | | | This fixes random multibyte_chars_test fail under Ruby 1.9.3. I don't know why the tests fail. And I really don't know why this fixes. Maybe we need some more investigation... | ||||
* | format | Akira Matsuda | 2014-08-18 | 1 | -2/+1 |
| | |||||
* | Prevent using String#scrub on Rubinius | Robin Dupret | 2014-07-30 | 1 | -1/+2 |
| | | | | | | Rubinius' has built-in support for String#scrub but it doesn't have yet support for ASCII-incompatible chars so for now, we should rely on the old implementation of #tidy_bytes. | ||||
* | Fix tidy_bytes for JRuby | Justin Coyne | 2014-02-10 | 1 | -3/+3 |
| | | | | | The previous implementation was broken because JRuby (1.7.10) doesn't have a code converter for UTF-8 to UTF8-MAC. | ||||
* | use feature detection to decide which implementation to use | Aaron Patterson | 2014-02-08 | 1 | -1/+1 |
| | | | | Decouple the code from the particular Ruby version. | ||||
* | Update to Unicode 6.3.0 | Norman Clarke | 2013-12-27 | 1 | -1/+1 |
| | | | | | | 6.3.0 was released on September 30, 2013. http://unicode-inc.blogspot.com.ar/2013/09/announcing-unicode-standard-version-63.html | ||||
* | Use String#scrub when available to tidy bytes | Norman Clarke | 2013-12-26 | 1 | -35/+35 |
| | |||||
* | Initializing Codepoint object with default values | Hitendra Singh | 2013-09-20 | 1 | -0/+7 |
| | |||||
* | Drying up method_missing code | Hitendra Singh | 2013-09-20 | 1 | -2/+1 |
| | |||||
* | compatability => compatibility | Vipul A M | 2013-05-26 | 1 | -3/+3 |
| | |||||
* | Use ruby's Encoding support for tidy_bytes | Burke Libbey | 2013-05-08 | 1 | -39/+19 |
| | | | | | | | | | | The previous implementation was quite slow. This leverages some of the transcoding abilities built into Ruby 1.9 instead. It is roughly 96% faster. The roundtrip through UTF_8_MAC here is because ruby won't let you transcode from UTF_8 to UTF_8. I chose the closest encoding I could find as an intermediate. | ||||
* | Update to latest Unicode data. | Norman Clarke | 2013-02-10 | 1 | -1/+1 |
| | | | | Release notes at: http://www.unicode.org/versions/Unicode6.2.0/ | ||||
* | Revert "Use flat_map { } instead of map {}.flatten" | Santiago Pastorino | 2012-10-05 | 1 | -2/+2 |
| | | | | | | | | | | | This reverts commit abf8de85519141496a6773310964ec03f6106f3f. We should take a deeper look to those cases flat_map doesn't do deep flattening. irb(main):002:0> [[[1,3], [1,2]]].map{|i| i}.flatten => [1, 3, 1, 2] irb(main):003:0> [[[1,3], [1,2]]].flat_map{|i| i} => [[1, 3], [1, 2]] | ||||
* | Use flat_map { } instead of map {}.flatten | Santiago Pastorino | 2012-10-05 | 1 | -2/+2 |
| | |||||
* | update AS/log_subscriber and AS/multibyte docs [ci skip] | Francesco Rodriguez | 2012-09-14 | 2 | -45/+67 |
| | |||||
* | Avoid unnecessary catching of Exception instead of StandardError. | Dylan Smith | 2012-06-17 | 1 | -1/+1 |
| | |||||
* | 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 | 2 | -14/+0 |
| | |||||
* | Use respond_to_missing? for Chars | Marc-Andre Lafortune | 2012-05-05 | 1 | -2/+2 |
| | |||||
* | Update Unicode database to recently-released 6.1. | Norman Clarke | 2012-02-03 | 1 | -1/+1 |
| | | | | http://www.geek.com/articles/geek-pick/unicode-6-1-released-complete-with-emoji-characters-and-a-pile-of-poo-2012022/ | ||||
* | 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 | 2 | -0/+16 |
| | |||||
* | Use friendlier method name | Norman Clarke | 2012-01-05 | 1 | -2/+2 |
| | |||||
* | Use friendlier method names for upcasing/downcasing | Norman Clarke | 2012-01-05 | 2 | -12/+20 |
| | |||||
* | Use more descriptive method names | Norman Clarke | 2012-01-05 | 2 | -8/+8 |
| | |||||
* | 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 | 3 | -26/+5 |
| | |||||
* | Remove multibyte utils | Norman Clarke | 2012-01-05 | 1 | -27/+0 |
| | | | | This is neither a public API, nor used internally, so let's remove it. | ||||
* | Remove "_codepoints" from compose/decompose | Norman Clarke | 2012-01-05 | 2 | -9/+9 |
| | |||||
* | 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 |
| | |||||
* | Update to Unicode 6.0 | Norman Clarke | 2012-01-05 | 1 | -1/+1 |
| | |||||
* | Remove useless parens | Norman Clarke | 2012-01-05 | 1 | -1/+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 |
|/ | |||||
* | remove checks for encodings availability | Sergey Nartimov | 2011-12-25 | 2 | -47/+12 |
| | |||||
* | Initial pass at removing dead 1.8.x code from Active Support. | José Valim | 2011-12-20 | 1 | -155/+6 |
| | | | | | | 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. | ||||
* | adds a couple of missing magic comments [fixes #1374] | Xavier Noria | 2011-07-23 | 1 | -0/+1 |
| |