Rafael Mendonça França
18707ab17f
Standardize nodoc comments
2021-07-29 21:18:07 +00:00
Koichi ITO
ac717d65a3
[Active Support] rubocop -a --only Layout/EmptyLineAfterMagicComment
2017-07-11 13:12:32 +09:00
Kir Shatrov
72950568dd
Use frozen-string-literal in ActiveSupport
2017-07-09 15:08:29 +03:00
Matthew Draper
87b3e226d6
Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"
...
This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing
changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
2017-07-02 02:15:17 +09:30
Kir Shatrov
cfade1ec7e
Enforce frozen string in Rubocop
2017-07-01 02:11:03 +03:00
Xavier Noria
d66e7835be
applies new string literal convention in activesupport/lib
...
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 18:10:53 +02:00
claudiob
019df98875
Replace comments' non-breaking spaces with spaces
...
Sometimes, on Mac OS X, programmers accidentally press Option+Space
rather than just Space and don’t see the difference. The problem is
that Option+Space writes a non-breaking space (0XA0) rather than a
normal space (0x20).
This commit removes all the non-breaking spaces inadvertently
introduced in the comments of the code.
2012-12-04 22:11:54 -08:00
Francesco Rodriguez
d71d5ba71f
update AS docs [ci skip]
2012-09-17 00:22:18 -05:00
Francesco Rodriguez
fa03e37d31
removing unnecessary 'examples' noise from activesupport
2012-05-13 20:26:53 -05:00
Norman Clarke
d2455bd8a5
Remove unnecessary requires/encoding comment
2012-01-05 17:15:21 -03:00
Norman Clarke
3fe7ca1dbe
Replace Unicode.u_unpack with String#codepoints
2012-01-05 17:08:27 -03:00
Norman Clarke
51648a6fee
Remove multibyte utils
...
This is neither a public API, nor used internally, so let's remove it.
2012-01-05 17:02:14 -03:00
Santiago Pastorino
b451de0d6d
Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;)
2010-08-14 04:12:33 -03:00
Evgeniy Dolzhenko
ccf9577aee
Fix a bunch of minor spelling mistakes
2010-06-11 14:15:34 +04:00
Norman Clarke
f3abc8ac36
Use multibyte proxy class on 1.9, refactor Unicode.
...
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>
2010-05-21 12:24:54 -07:00
wycats
a5587efc19
Remove some 1.9 warnings (resulting in some fixed bugs). Remaining AM warnings are in dependencies.
2010-03-17 00:20:09 -07:00
Manfred Stienstra
0e64eab6a2
Autoload Multibyte features.
2009-11-04 10:15:03 +01:00
Michael Koziarski
87c93da440
Fix a messed up merge commit
2009-09-04 14:28:32 +12:00
Michael Koziarski
9a73630d93
Add verify and clean methods to ActiveSupport::Multibyte.
...
When accepting character input from outside of your application you can't
blindly trust that all strings are properly encoded. With these methods
you can check incoming strings and clean them up if necessary.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Conflicts:
activesupport/lib/active_support/multibyte.rb
2009-09-04 09:25:38 +12:00
Jeremy Kemper
f28bd9557c
Fix dependencies revealed by testing in isolation
2009-04-22 18:54:13 -07:00
Manfred Stienstra
efb9ef65cc
Fix a typo in ActiveSupport::Multibyte::NORMALIZATION_FORMS. [ #1179 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-10-06 19:04:45 +01:00
Manfred Stienstra
bfc73852b1
Improve documentation.
2008-09-21 17:28:05 +02:00
Manfred Stienstra
22f75d539d
Simplify ActiveSupport::Multibyte and make it run on Ruby 1.9.
...
* Unicode methods are now defined directly on Chars instead of a handler
* Updated Unicode database to Unicode 5.1.0
* Improved documentation
2008-09-21 17:21:30 +02:00
Jeremy Kemper
ea1eafb6b1
Don't assume ActiveSupport module is already defined
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7917 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-15 10:12:47 +00:00
David Heinemeier Hansson
0aa0c84c17
Nodoc the irrelevant (from 1.2)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6044 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-01-26 21:37:38 +00:00
Michael Koziarski
f238d495b7
Add ActiveSupport::Multibyte. Provides String#chars which lets you deal 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
2006-10-03 23:45:32 +00:00