Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 2 | -13/+13 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Add another missing require in 'active_support/inflector/inflections' | Carl Lerche | 2010-07-29 | 1 | -0/+1 |
| | |||||
* | edit pass to apply API guideline wrt the use of "# =>" in example code | Xavier Noria | 2010-07-30 | 1 | -5/+5 |
| | |||||
* | Add a missing require in 'active_support/core_ext/string/inflections' | Carl Lerche | 2010-07-29 | 1 | -0/+1 |
| | |||||
* | Improve bang method defs, make slice! operate in-place. [#5028 state:resolved] | Norman Clarke | 2010-07-08 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Implemented getbyte as an aliased method and RDoc added | Santiago Pastorino | 2010-06-28 | 1 | -3/+2 |
| | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | Makes more sense to ask about method_defined? | Santiago Pastorino | 2010-06-28 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Added getbyte as a core_ext to Ruby < 1.9 | Santiago Pastorino | 2010-06-27 | 1 | -0/+4 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Move constantize from conversions to inflections. | Santiago Pastorino | 2010-06-26 | 2 | -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 Kemper | 2010-06-05 | 2 | -11/+11 |
| | | | | lookups | ||||
* | revises the documentation of String#truncate and the truncate helper | Xavier Noria | 2010-06-02 | 1 | -13/+9 |
| | |||||
* | Extracted String#truncate from TextHelper#truncate [DHH] | David Heinemeier Hansson | 2010-06-01 | 1 | -0/+33 |
| | |||||
* | Unforce i18n from AS | Santiago Pastorino | 2010-05-31 | 1 | -0/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Use multibyte proxy class on 1.9, refactor Unicode. | Norman Clarke | 2010-05-21 | 1 | -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." | wycats | 2010-05-17 | 1 | -0/+11 |
| | | | | This reverts commit ade756fe42423033bae8e5aea8f58782f7a6c517. | ||||
* | Moved encoding work in progress to a feature branch. | Jeremy Kemper | 2010-05-16 | 1 | -11/+0 |
| | | | | This reverts commits af0d1a88157942c6e6398dbf73891cff1e152405 and 64d109e3539ad600f58536d3ecabd2f87b67fd1c. | ||||
* | Initial work to improve the state of encodings for templates | wycats | 2010-05-16 | 1 | -0/+11 |
| | |||||
* | updates String#to_(date|date_time|time) to return nil for blank strings | Daniel Neighman | 2010-04-21 | 1 | -0/+3 |
| | |||||
* | much complete rdoc for String#ord | Xavier Noria | 2010-04-19 | 1 | -3/+19 |
| | |||||
* | revises the rdoc of String#ord | Xavier Noria | 2010-04-19 | 1 | -1/+5 |
| | |||||
* | removes code written for Ruby < 1.8.7 | Xavier Noria | 2010-04-17 | 1 | -7/+0 |
| | |||||
* | moves Object#singleton_class to Kernel#singleton_class to match Ruby also ↵ | Xavier Noria | 2010-04-05 | 1 | -1/+1 |
| | | | | there, same for #class_eval to simplify, and adds coverage for class_eval | ||||
* | Require AS singleton_class code in AS output_safety | snusnu | 2010-03-17 | 1 | -1/+2 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Remove some 1.9 warnings (resulting in some fixed bugs). Remaining AM ↵ | wycats | 2010-03-17 | 2 | -4/+4 |
| | | | | warnings are in dependencies. | ||||
* | to_str works here | Jeremy Kemper | 2010-03-15 | 1 | -5/+1 |
| | |||||
* | Be sure to pass through args to to_yaml | Jeremy Kemper | 2010-03-11 | 1 | -2/+2 |
| | |||||
* | Write strings to fragment cache, not outputbuffers | Jeremy Kemper | 2010-03-11 | 1 | -1/+5 |
| | |||||
* | OutputBuffer#to_yaml should return string yaml, not some custom class dump | Jeremy Kemper | 2010-03-11 | 1 | -0/+4 |
| | |||||
* | Make many parts of Rails lazy. In order to facilitate this, | wycats | 2010-03-07 | 1 | -91/+1 |
| | | | | | | | | | | | | add lazy_load_hooks.rb, which allows us to declare code that should be run at some later time. For instance, this allows us to defer requiring ActiveRecord::Base at boot time purely to apply configuration. Instead, we register a hook that should apply configuration once ActiveRecord::Base is loaded. With these changes, brings down total boot time of a new app to 300ms in production and 400ms in dev. TODO: rename base_hook | ||||
* | Inflection dependency, [#4067 status:resolved] | Jason King | 2010-03-03 | 1 | -1/+3 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | require publicize_conversion_method to ensure to_date and to_datetime became ↵ | Santiago Pastorino | 2010-02-19 | 1 | -0/+1 |
| | | | | public before redefining them (avoid warnings) | ||||
* | Fix doc typo and update fast_xs URL. Thanks to Dmitrii Golub. | Jeremy Kemper | 2010-02-07 | 1 | -1/+1 |
| | |||||
* | Making SafeBuffer << an alias for concat method | Santiago Pastorino | 2010-02-05 | 1 | -5/+2 |
| | | | | | | [#3848 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Merge branch 'master' of git://github.com/rails/rails | Mikel Lindsaar | 2010-02-02 | 1 | -21/+85 |
|\ | |||||
| * | For performance reasons, you can no longer call html_safe! on Strings. ↵ | Yehuda Katz | 2010-01-31 | 1 | -21/+85 |
| | | | | | | | | | | | | | | | | | | | | | | | | Instead, all Strings are always not html_safe?. Instead, you can get a SafeBuffer from a String by calling #html_safe, which will SafeBuffer.new(self). * Additionally, instead of doing concat("</form>".html_safe), you can do safe_concat("</form>"), which will skip both the flag set, and the flag check. * For the first pass, I converted virtually all #html_safe!s to #html_safe, and the tests pass. A further optimization would be to try to use #safe_concat as much as possible, reducing the performance impact if we know up front that a String is safe. | ||||
* | | Updating copyright dates on all licenses | Mikel Lindsaar | 2010-02-01 | 1 | -1/+1 |
|/ | |||||
* | Merge docrails | Pratik Naik | 2010-01-17 | 1 | -2/+2 |
| | |||||
* | String#exclude? core extension: inverse of #include? | Jeremy Kemper | 2009-12-27 | 1 | -0/+6 |
| | |||||
* | String#<< should work for any object which responds to :to_str, so enable ↵ | José Valim | 2009-12-26 | 1 | -0/+12 |
| | | | | this without the performance hit and make Fixnum safe by default. | ||||
* | Simplify and improve the performance of output_safety | Yehuda Katz | 2009-12-24 | 1 | -22/+6 |
| | |||||
* | Instead of marking raw text in templates as safe, and then putting them ↵ | Yehuda Katz | 2009-12-24 | 1 | -0/+1 |
| | | | | through String#<< which checks if the String is safe, use safe_concat, which uses the original (internal) String#<< and leaves the safe flag as is. Results in a significant performance improvement. | ||||
* | Remove concat before overriding it | Joshua Peek | 2009-12-01 | 1 | -6/+7 |
| | |||||
* | Check whether another lib has implemented ruby 1.9 string interp syntax | Jeremy Kemper | 2009-11-18 | 1 | -1/+1 |
| | |||||
* | String#each_char is not needed for Ruby >= 1.8.7 | Xavier Noria | 2009-11-09 | 1 | -13/+0 |
| | |||||
* | String#start_with? and String#end_with? are not needed for Ruby >= 1.8.7, ↵ | Xavier Noria | 2009-11-09 | 1 | -14/+0 |
| | | | | leaves their plural aliases though | ||||
* | String#bytesize is not needed for Ruby >= 1.8.7 | Xavier Noria | 2009-11-09 | 2 | -6/+0 |
| | |||||
* | Revert "Bundle I18n 0.2.0." | Yehuda Katz | 2009-11-09 | 1 | -1/+1 |
| | | | | This reverts commit 83f329f5f30567a10bc96410da230bf986db8ad4. | ||||
* | Bundle I18n 0.2.0. | José Valim | 2009-11-09 | 1 | -1/+1 |
| | |||||
* | Break up inflector to reduce the dependency burden on dependency-les methods ↵ | Yehuda Katz | 2009-11-07 | 1 | -0/+2 |
| | | | | like constantize. | ||||
* | Switch to on-by-default XSS escaping for rails. | Michael Koziarski | 2009-10-08 | 1 | -0/+43 |
| | | | | | | | | | | | | This consists of: * String#html_safe! a method to mark a string as 'safe' * ActionView::SafeBuffer a string subclass which escapes anything unsafe which is concatenated to it * Calls to String#html_safe! throughout the rails helpers * a 'raw' helper which lets you concatenate trusted HTML from non-safety-aware sources (e.g. presantized strings in the DB) * New ERB implementation based on erubis which uses a SafeBuffer instead of a String Hat tip to Django for the inspiration. |