aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/string
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #1463 from psanford/masterSantiago Pastorino2011-07-061-2/+2
|\ | | | | Fix timezone handling in String.to_time
| * Make String.to_time respect timezonesNate Mueller2011-06-021-2/+2
| |
* | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-07-051-8/+8
|\ \
| * | document meta methodsVijay Dev2011-07-031-8/+8
| | |
* | | all numerics should be html_safe - Closes #1935Damien Mathieu2011-07-031-1/+1
| | |
* | | Merge pull request #1648 from dlee/acronymsXavier Noria2011-06-241-1/+0
|\ \ \ | |/ / |/| | Inflector support for acronyms (Issue #1366)
| * | RefactorDavid Lee2011-06-111-1/+0
| | |
* | | calling unsafe methods which don't return a string shouldn't failDamien Mathieu2011-06-221-2/+2
| | |
* | | safe_concat should not work on dirty buffers.José Valim2011-06-161-4/+13
| | |
* | | Fix safe buffer by adding a dirty status.José Valim2011-06-161-12/+24
| | |
* | | Define ActiveSupport#to_param as to_str - closes #1663Andrew White2011-06-121-0/+4
|/ /
* | ensuring that json_escape returns html safe strings when passed an html safe ↵Aaron Patterson2011-06-091-1/+2
| | | | | | | | string
* | Prefer 'each' over 'for in' syntax.Sebastian Martinez2011-06-071-1/+1
| |
* | Ensure that the strings returned by SafeBuffer#gsub and friends aren't ↵Michael Koziarski2011-06-071-0/+13
|/ | | | | | | | | | considered html_safe? Also make sure that the versions of those methods which modify a string in place such as gsub! can't be called on safe buffers at all. Conflicts: activesupport/test/safe_buffer_test.rb
* minor fixesVijay Dev2011-05-073-4/+3
|
* Add String#inquiry as a convenience method for turning a string into a ↵David Heinemeier Hansson2011-04-181-0/+13
| | | | StringInquirer object [DHH]
* s/ERb/ERB/gAkira Matsuda2011-04-031-1/+1
| | | | | The author of ERB sais, his eRuby implementation was originally named "ERb/ERbLight" and then renamed to "ERB" when started bundled as a Ruby standard lib. http://www2a.biglobe.ne.jp/~seki/ruby/erb.html
* Active Support typos.R.T. Lechow2011-03-052-2/+2
|
* Example descriptions and their examples were flipped. Fix.Ben Orenstein2011-03-051-3/+3
|
* Correct bad wording in description.Ben Orenstein2011-02-141-1/+1
|
* make sure we play nicely when syck is activatedAaron Patterson2011-01-281-5/+8
|
* Psych correctly gets visitor for SafeBuffer from superclassbrainopia2011-01-281-2/+5
|
* applies API conventions to the RDoc of json_encodeXavier Noria2010-11-201-10/+12
| | | | | | | | * Examples running with the text are preferred over separate Example sections. * No need to call puts, in # => we show the return value, not STDOUT. * Say explicitly that double quotes are removed. * Specify that we are talking \uXXX, rather than, say, HTML entities.
* Make safe_append= live on AV::OutputBuffer not AS::SafeBufferMichael Koziarski2010-11-081-1/+0
| | | | | | Conflicts: actionpack/lib/action_view/template/handlers/erb.rb
* Added support for Erubis <%== tagJan Maurits Faber2010-11-081-0/+1
| | | | | | | <%== x %> is syntactic sugar for <%= raw(x) %> Signed-off-by: Michael Koziarski <michael@koziarski.com> [#5918 status:committed]
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2010-10-191-0/+6
|\
| * json_escape makes json invalid doc change [#1485 state:resolved]Neeraj Singh2010-10-161-0/+6
| |
* | explains why ERB::Util#h is removed before being re-aliasedXavier Noria2010-10-181-0/+1
|/
* let String#strip_heredoc handle blank lines even if they are not indentedXavier Noria2010-08-301-3/+5
|
* implements String#strip_heredocXavier Noria2010-08-291-0/+24
|
* adds missing require for #parameterizeXavier Noria2010-08-261-0/+2
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-142-13/+13
| | | | 's/[ \t]*$//' -i {} \;)
* Add another missing require in 'active_support/inflector/inflections'Carl Lerche2010-07-291-0/+1
|
* edit pass to apply API guideline wrt the use of "# =>" in example codeXavier Noria2010-07-301-5/+5
|
* Add a missing require in 'active_support/core_ext/string/inflections'Carl Lerche2010-07-291-0/+1
|
* Improve bang method defs, make slice! operate in-place. [#5028 state:resolved]Norman Clarke2010-07-081-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Implemented getbyte as an aliased method and RDoc addedSantiago Pastorino2010-06-281-3/+2
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* Makes more sense to ask about method_defined?Santiago Pastorino2010-06-281-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Added getbyte as a core_ext to Ruby < 1.9Santiago Pastorino2010-06-271-0/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Move constantize from conversions to inflections.Santiago Pastorino2010-06-262-11/+11
| | | | | | | | This removes ActiveModel dependency on TZInfo. [#4979 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
* ActiveSupport::Dependencies.constantize shortcut for caching named constant ↵Jeremy Kemper2010-06-052-11/+11
| | | | lookups
* revises the documentation of String#truncate and the truncate helperXavier Noria2010-06-021-13/+9
|
* Extracted String#truncate from TextHelper#truncate [DHH]David Heinemeier Hansson2010-06-011-0/+33
|
* Unforce i18n from ASSantiago Pastorino2010-05-311-0/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Use multibyte proxy class on 1.9, refactor Unicode.Norman Clarke2010-05-211-13/+17
| | | | | | | | | | 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>
* Revert "Moved encoding work in progress to a feature branch."wycats2010-05-171-0/+11
| | | | This reverts commit ade756fe42423033bae8e5aea8f58782f7a6c517.
* Moved encoding work in progress to a feature branch.Jeremy Kemper2010-05-161-11/+0
| | | | This reverts commits af0d1a88157942c6e6398dbf73891cff1e152405 and 64d109e3539ad600f58536d3ecabd2f87b67fd1c.
* Initial work to improve the state of encodings for templateswycats2010-05-161-0/+11
|
* updates String#to_(date|date_time|time) to return nil for blank stringsDaniel Neighman2010-04-211-0/+3
|
* much complete rdoc for String#ordXavier Noria2010-04-191-3/+19
|