Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ensure original encoding doesnt change | Francesco Rodriguez | 2012-12-01 | 1 | -0/+3 |
| | |||||
* | Simplify String#mb_chars and stop proxying #class | Steve Klabnik | 2012-11-28 | 1 | -1/+4 |
| | | | | | | | | This behavior mattered under Ruby 1.8, but that doesn't matter now that we don't support it. In addition, we don't want to proxy the #class method. A test was added to prevent against regressions. | ||||
* | Fix class_eval without __FILE__ and __LINE__. | kennyj | 2012-07-18 | 1 | -1/+1 |
| | |||||
* | Use respond_to_missing? for Chars | Marc-Andre Lafortune | 2012-05-05 | 1 | -0/+9 |
| | |||||
* | Added as_json method for multibyte strings | Dmitriy Vorotilin | 2012-02-01 | 1 | -0/+3 |
| | |||||
* | Implement Chars#swapcase. | Norman Clarke | 2012-01-06 | 1 | -2/+13 |
| | |||||
* | use AS::TestCase as the base class | Aaron Patterson | 2012-01-05 | 1 | -3/+3 |
| | |||||
* | Use friendlier method name | Norman Clarke | 2012-01-05 | 1 | -1/+1 |
| | |||||
* | Replace Unicode.u_unpack with String#codepoints | Norman Clarke | 2012-01-05 | 1 | -11/+0 |
| | |||||
* | Just use Ruby's String#[]= | Norman Clarke | 2012-01-05 | 1 | -5/+0 |
| | |||||
* | Merge branch 'refactor-multibyte-chars' of https://github.com/lest/rails ↵ | Norman Clarke | 2012-01-05 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | into multibyte Conflicts: activesupport/lib/active_support/multibyte/chars.rb | ||||
| * | refactor AS::Multibyte::Chars | Sergey Nartimov | 2012-01-05 | 1 | -1/+1 |
| | | |||||
* | | Make return value from bang methods match Ruby docs | Norman Clarke | 2012-01-05 | 1 | -4/+10 |
| | | | | | | | | | | 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. | ||||
* | | Fix incorrect behavior specified in test. | Norman Clarke | 2012-01-05 | 1 | -1/+1 |
|/ | | | | This test was actually specifying the opposite of what it should. | ||||
* | Remove more dead code from AS. | José Valim | 2011-12-20 | 1 | -4/+2 |
| | |||||
* | Initial pass at removing dead 1.8.x code from Active Support. | José Valim | 2011-12-20 | 1 | -9/+2 |
| | | | | | | 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. | ||||
* | Missing dependency in MultiByte test. | Rolf Timmermans | 2011-03-13 | 1 | -0/+1 |
| | |||||
* | Removes unused vars | Santiago Pastorino | 2010-07-24 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Improve bang method defs, make slice! operate in-place. [#5028 state:resolved] | Norman Clarke | 2010-07-08 | 1 | -16/+25 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix ActiveSupport::Multibyte::Chars#slice for empty strings when starting ↵ | Alex Muntean | 2010-06-30 | 1 | -0/+1 |
| | | | | | | offset is negative [#4717 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix AS::MB::Chars#+ to not alter self [#4646 state:resolved] | James MacAulay | 2010-06-30 | 1 | -7/+9 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Adds titleize/titlecase to AS::Multibyte::Chars | Norman Clarke | 2010-06-20 | 1 | -0/+14 |
| | | | | | | [#2794 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Use multibyte proxy class on 1.9, refactor Unicode. | Norman Clarke | 2010-05-21 | 1 | -48/+41 |
| | | | | | | | | | | 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> | ||||
* | Final iteration of use better testing methods | Neeraj Singh | 2010-05-19 | 1 | -3/+3 |
| | | | | | | [#4652 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Use explicit source encoding rather than forced UTF-8 from US-ASCII. | Santiago Pastorino | 2010-04-26 | 1 | -1/+1 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Make tidy_bytes work on 1.9 and improve its performance. [#4350 state:resolved] | Norman Clarke | 2010-04-09 | 1 | -26/+47 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Revert "failing tests in multibyte_chars_test.rb fixed". The bug is in Ruby ↵ | José Valim | 2010-02-02 | 1 | -11/+11 |
| | | | | | | 1.9.1 p376, not in AS test suite. This reverts commit bf1f70d8776e28f9181faefc4914059b4ad26b99. | ||||
* | failing tests in multibyte_chars_test.rb fixed | Santiago Pastorino | 2010-02-01 | 1 | -11/+11 |
| | | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local> | ||||
* | Work around assert_raise limitation | Jeremy Kemper | 2009-11-08 | 1 | -3/+3 |
| | |||||
* | Ruby 1.9.2: work around changes to flatten and nil.to_str | Jeremy Kemper | 2009-11-08 | 1 | -3/+3 |
| | |||||
* | Make ActiveSupport::Chars#limit run on Ruby 1.9. | Manfred Stienstra | 2009-11-04 | 1 | -29/+27 |
| | |||||
* | Add ActiveSupport::Multibyte::Chars#limit. | Manfred Stienstra | 2009-11-04 | 1 | -0/+59 |
| | | | | | | | | | | The limit method limits the number of bytes in a string. Useful when the storage space of the string is limited, for instance in a database column definition. Sharpen up the implementation of translate offset. [#3192 state:committed] | ||||
* | Fix chars.reverse for multibyte decomposed strings | Matias Flores | 2009-11-02 | 1 | -0/+11 |
| | | | | | | [#597 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Ruby 1.9 doesn't recognize EM SPACE as whitespace, breaking String#strip | Jeremy Kemper | 2009-11-02 | 1 | -1/+7 |
| | |||||
* | 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 |