Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Switch to on-by-default XSS escaping for rails. | Michael Koziarski | 2009-10-08 | 2 | -1/+45 | |
| | | | | | | | | | | | | 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. | |||||
* | Restore split between require-time and runtime load path mungery. Simplifies ↵ | Jeremy Kemper | 2009-09-24 | 3 | -3/+3 | |
| | | | | vendor requires. | |||||
* | Rollback AS bundler work and improve activation of vendored dependencies | Joshua Peek | 2009-09-13 | 3 | -3/+3 | |
| | ||||||
* | require reporting before attempting to "shush" | Joshua Peek | 2009-09-13 | 1 | -0/+2 | |
| | ||||||
* | Shush, rexml | Jeremy Kemper | 2009-09-13 | 1 | -2/+2 | |
| | ||||||
* | Duplicating the options hash in Date#advance to prevent modification of the ↵ | Jay Pignata | 2009-08-31 | 1 | -0/+1 | |
| | | | | | | original [#1133 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | Correct Regexp#un/optionalize assertions and fix uncovered failures | Jeffrey Hardy | 2009-08-26 | 1 | -0/+2 | |
| | | | | | | [#3102 state:incomplete] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Ruby 1.9: fix Time#beginning_of_day inaccuracy due to subtracting a Float | Jeremy Kemper | 2009-08-22 | 1 | -1/+2 | |
| | ||||||
* | Allow superclass_delegating_accessor to take a block for initial set. | Yehuda Katz | 2009-08-11 | 1 | -3/+4 | |
| | ||||||
* | Got overhead down from 127 to 85. All tests pass: | Yehuda Katz | 2009-08-11 | 1 | -2/+3 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | * Tentatively replaced HeaderHash with SimpleHeaderHash, which does not preserve case but does handle converting Arrays to Strings in to_hash. This requires further discussion. * Moved default_charset to ActionDispatch::Response to avoid having to hop over to ActionController. Ideally, this would be a constant on AD::Response, but some tests expect to be able to change it dynamically and I didn't want to change them yet. * Completely override #initialize from Rack::Response. Previously, it was creating a HeaderHash, and then we were creating an entirely new one. There is no way to call super without incurring the overhead of creating a HeaderHash. * Override #write from Rack::Response. Its implementation tracks Content-Length, and doing so adds additional overhead that could be mooted if other middleware changes the body. It is more efficiently done at the top-level server. * Change sending_file to an instance_variable instead of header inspection. In general, if a state is important, it should be set as a property of the response not reconstructed later. * Set the Etag to @body instead of .body. AS::Cache.expand_cache_key handles Arrays fine, and it's more efficient to let it handle the body parts, since it is not forced to create a joined String. * If we detect the default cache control case, just set it, rather than setting the constituent parts and then running the normal (expensive) code to generate the string. | |||||
* | Allow delegating to nil, because the method might actually exist on it | Bryan Helmkamp | 2009-08-10 | 1 | -4/+9 | |
| | ||||||
* | Support deep-merging HashWithIndifferentAccess. | Andrew Moreland | 2009-08-09 | 1 | -4/+5 | |
| | | | | | | [#2732 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Fix that Hash#to_xml and Array#to_xml shouldn't modify their options hashes ↵ | David Burger | 2009-08-09 | 2 | -0/+2 | |
| | | | | | | [#672 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Remove unnecessary &block from Range#sum and add tests for (num..float).sum | Pratik Naik | 2009-08-09 | 1 | -1/+1 | |
| | ||||||
* | Optimize Range#sum only for integers [#2489] | José Valim | 2009-08-09 | 1 | -2/+3 | |
| | ||||||
* | Setting usec (and nsec for Ruby 1.9) on Time#end_of_* methods [#1255 ↵ | Hugo Peixoto | 2009-08-09 | 1 | -8/+8 | |
| | | | | | | status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Optimize Range#sum to use arithmetic progression when a block is not given ↵ | José Valim | 2009-08-09 | 1 | -0/+9 | |
| | | | | | | [#2489]. Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Temporary fix to get our LoadError monkey-patch working with newer JRuby. We ↵ | Yehuda Katz | 2009-08-09 | 1 | -1/+2 | |
| | | | | should probably remove MissingSourceFile and just monkey-patch LoadError instead of overriding LoadError.new. | |||||
* | Enumerable#sum now works will all enumerables, even if they don't respond to ↵ | Marc-Andre Lafortune | 2009-08-08 | 1 | -4/+2 | |
| | | | | | | | | :size [#2489 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Extract String#bytesize shim | Jeremy Kemper | 2009-08-01 | 2 | -3/+7 | |
| | ||||||
* | Merge docrails | Pratik Naik | 2009-07-25 | 4 | -4/+4 | |
| | ||||||
* | * don't include String#% for Ruby 1.9 | Sven Fuchs | 2009-07-18 | 1 | -73/+79 | |
| | | | | | | | | | | * raise a KeyError exception for missing named interpolation args (like Ruby 1.9 does) * raise an ArgumentError when mixing named and unnamed placeholders (like Ruby 1.9 does) * improve docs and comply a bit more w/ Rails names/conventions [#2870 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | ActiveSupport Hash optimizations [#2902 state:resolved] | Lourens Naude | 2009-07-15 | 3 | -3/+3 | |
| | | | | Signed-off-by: Carl Lerche <carllerche@mac.com> | |||||
* | Ruby 1.9 style String interpolation support for lower ruby versions. Thanks ↵ | Lawrence Pit | 2009-07-07 | 2 | -0/+88 | |
| | | | | | | to code from Masao Mutoh's GetText gem. [#2870 state:resolved] Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local> | |||||
* | Friendlier runtime exception if delegatee is nil | Jeremy Kemper | 2009-06-18 | 1 | -3/+9 | |
| | ||||||
* | Delegated methods report the expected file/line in backtraces | Jeremy Kemper | 2009-06-18 | 1 | -2/+3 | |
| | ||||||
* | Move model naming into ActiveModel | Joshua Peek | 2009-06-17 | 2 | -26/+0 | |
| | ||||||
* | Require missing file in AS | Yehuda Katz + Carl Lerche | 2009-06-15 | 1 | -0/+2 | |
| | ||||||
* | moves reopening of core classes to add generic stuff from Action Pack to ↵ | Xavier Noria | 2009-06-13 | 5 | -0/+43 | |
| | | | | | | | | AS/core_ext and adds tests [#2798 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Bytes calculation speed up | Luca Guidi | 2009-06-13 | 1 | -8/+15 | |
| | | | | | | [#2800 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | uses Object#metaclass and Object#class_eval in a few spots | Xavier Noria | 2009-06-12 | 1 | -1/+1 | |
| | | | | | | [#2797 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Add #element and #collection to ModelName | Jeremy Kemper | 2009-06-08 | 1 | -3/+5 | |
| | ||||||
* | Don't rely on Rails.logger | Jeremy Kemper | 2009-06-08 | 1 | -2/+4 | |
| | ||||||
* | String #to_time and #to_datetime: handle fractional seconds [#864 ↵ | Jason Frey (Fryguy) | 2009-06-07 | 1 | -2/+6 | |
| | | | | state:resolved] | |||||
* | Simplify callbacks to use less metaprogramming | Yehuda Katz | 2009-06-02 | 1 | -2/+4 | |
| | ||||||
* | Remove 'core' fluff. Hookable ActiveSupport.load_all! | Jeremy Kemper | 2009-05-20 | 1 | -2/+1 | |
| | ||||||
* | Break out Symbol#to_proc as a future-ruby extension | Jeremy Kemper | 2009-05-20 | 2 | -14/+15 | |
| | ||||||
* | Break up misc Object extensions | Jeremy Kemper | 2009-05-20 | 4 | -80/+85 | |
| | ||||||
* | Cherry-pick core extensions | Jeremy Kemper | 2009-05-13 | 1 | -0/+3 | |
| | ||||||
* | Check for date/time methods that moved upstream in 1.9 | Jeremy Kemper | 2009-05-07 | 3 | -6/+6 | |
| | ||||||
* | Make module dependency DSL opt in | Joshua Peek | 2009-05-07 | 2 | -27/+0 | |
| | ||||||
* | Fixed Hash#from_xml with keys that are all caps. | codebrulee | 2009-05-04 | 1 | -1/+1 | |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | Prefer behavior check to RUBY_VERSION to catch 1.8 backports | Jeremy Kemper | 2009-04-29 | 3 | -5/+5 | |
| | ||||||
* | Refactor ActionView::Template | Yehuda Katz + Carl Lerche | 2009-04-27 | 1 | -1/+3 | |
| | | | | | | | | ActionView::Template is now completely independent from template storage, which allows different back ends such as the database. ActionView::Template's only responsibility is to take in the template source (passed in from ActionView::Path), compile it, and render it. | |||||
* | Fix dependencies revealed by testing in isolation | Jeremy Kemper | 2009-04-22 | 17 | -15/+43 | |
| | ||||||
* | Fix tests on 1.9 | Jeremy Kemper | 2009-04-22 | 2 | -1/+3 | |
| | ||||||
* | Opt in to Dependencies | Jeremy Kemper | 2009-04-22 | 1 | -0/+2 | |
| | ||||||
* | No more free lunch | Jeremy Kemper | 2009-04-22 | 1 | -1/+3 | |
| | ||||||
* | stdlib autoloads were hanging on 1.9.1 | Jeremy Kemper | 2009-04-22 | 1 | -3/+2 | |
| | ||||||
* | Convert string extension modules to class reopens | Jeremy Kemper | 2009-04-22 | 5 | -288/+247 | |
| |