Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Ruby 1.9 compat: fix regexp slice test | Jeremy Kemper | 2009-09-13 | 1 | -1/+1 | |
| | ||||||
* | Correctly handle offsets in Multibyte::Chars#index and #rindex. | Erik Ostrom | 2009-08-09 | 1 | -1/+6 | |
| | | | | | | | | The offset in codepoints was being passed directly to the wrapped string's index/rindex method. Now we translate the offset into bytes first. [#3028 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | pare down core_ext dependency | Jeremy Kemper | 2009-08-09 | 1 | -2/+1 | |
| | ||||||
* | Add rindex to ActiveSupport::Multibyte::Chars. | Erik Ostrom | 2009-08-09 | 1 | -0/+7 | |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Ruby 1.9 compat: rename deprecated assert_raises to assert_raise. | Jeremy Kemper | 2009-03-08 | 1 | -17/+17 | |
| | | | | [#1617 state:resolved] | |||||
* | Make Chars#slice! behave more like String#slice! [#1243 state:resolved] | George Ogata | 2009-03-07 | 1 | -5/+9 | |
| | | | | | | | - Chars#slice! now returns the slice instead of itself - Chars#slice! now removes the slice from itself Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Add ActiveSupport::Multibyte::Chars#ord method so that it returns correct ↵ | Jason Cheow | 2008-12-08 | 1 | -0/+4 | |
| | | | | | | | | Unicode value instead of falling back on String#ord in CoreExtensions, which is not multibyte compatible [#1483 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Move multibyte test helpers to a separate file and make the conformance ↵ | Manfred Stienstra | 2008-09-21 | 1 | -21/+4 | |
| | | | | tests run again. | |||||
* | Add tests for u_unpack to make sure it raises an EncodingError on invalid ↵ | Manfred Stienstra | 2008-09-21 | 1 | -0/+11 | |
| | | | | UTF-8 strings. | |||||
* | Non-string results from forwarded methods should be returned vertabim. | Manfred Stienstra | 2008-09-21 | 1 | -7/+12 | |
| | ||||||
* | All methods which normally return a string now return a proxy instance. | Manfred Stienstra | 2008-09-21 | 1 | -7/+42 | |
| | ||||||
* | Add a test for ActiveSupport::Multibyte::Chars.consumes?. | Manfred Stienstra | 2008-09-21 | 1 | -1/+8 | |
| | ||||||
* | Simplify ActiveSupport::Multibyte and make it run on Ruby 1.9. | Manfred Stienstra | 2008-09-21 | 1 | -150/+492 | |
| | | | | | | * Unicode methods are now defined directly on Chars instead of a handler * Updated Unicode database to Unicode 5.1.0 * Improved documentation | |||||
* | Fix ActiveRecord::Base.quote_bound_value for ActiveSupper::Multibyte::Chars ↵ | Manfred Stienstra | 2008-09-11 | 1 | -0/+4 | |
| | | | | | | | | | | values. - Adds String#acts_like_string? - Adds Chars#acts_like_string? Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1029 state:committed] | |||||
* | Ruby 1.9 compat: declare utf-8 file encoding | Jeremy Kemper | 2008-02-02 | 1 | -0/+1 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8789 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Fix invalid time test. Closes #10632 [Dirkjan Bussink] | Jeremy Kemper | 2008-01-02 | 1 | -8/+1 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8518 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Multibyte: String#chars returns self for Ruby 1.9 | Jeremy Kemper | 2007-12-21 | 1 | -1/+12 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8460 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Multibyte: String#chars uses passthrough handler for Ruby 1.9 | Jeremy Kemper | 2007-12-21 | 1 | -9/+13 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8459 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Make the utf-handler return the correct value for non-matching regular ↵ | Michael Koziarski | 2007-08-05 | 1 | -1/+3 | |
| | | | | | | expressions. Closes #9049 [manfred] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7273 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Multibyte strings respond_to the String methods they proxy so they can be ↵ | Jeremy Kemper | 2007-05-28 | 1 | -0/+7 | |
| | | | | | | duck-typed. Closes #6549. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6882 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Pull in latest multibyte patch. Closes #6346 [Manfred Stienstra] | Michael Koziarski | 2006-10-04 | 1 | -3/+4 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Add ActiveSupport::Multibyte. Provides String#chars which lets you deal ↵ | Michael Koziarski | 2006-10-03 | 1 | -0/+163 | |
with strings as a sequence of chars, not of bytes. Closes #6242 [Julian Tarkhanov, Manfred Stienstra & Jan Behrens] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5223 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |