aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
Commit message (Collapse)AuthorAgeFilesLines
...
| * Clean up spurious JSON decoding test failureJeremy Kemper2009-09-134-16/+7
| |
| * Ruby 1.9 compat: fix regexp slice testJeremy Kemper2009-09-131-1/+1
| |
| * Silence warning for Encoding.default_external=Jeremy Kemper2009-09-131-9/+5
| |
| * Use Encoding.default_external, not _internalJeremy Kemper2009-09-132-10/+10
| |
| * activesupport -> active_supportJeremy Kemper2009-09-131-3/+2
| |
| * making secure_compare fasterAaron Patterson2009-09-131-28/+8
| | | | | | | | | | | | [#3195 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Dup the arguments to string compare so we can use force_encoding.Michael Koziarski2009-09-131-2/+2
| |
| * Revert "ruby 1.9 friendly secure_compare" because it breaks CI and Sam ↵Yehuda Katz2009-09-121-6/+9
| | | | | | | | | | | | Ruby's suite This reverts commit 5de75398c495f109772b622291362a98bc6c21d1.
| * Revert "Allow frameworks to be required by their gem name"Jeremy Kemper2009-09-121-1/+0
| | | | | | | | | | | | | | This has just been confusing. Better to educate than band-aid. This reverts commit 18a24274ec823ded4ffa29bf33fd3d76816aab7e. Originally from http://dev.rubyonrails.org/ticket/8845 [drnic]
| * ruby 1.9 friendly secure_compareJakub Kuźma2009-09-121-9/+6
| | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
| * Remove redundant checks for valid character regexp in ↵Beau Harrington2009-09-101-2/+2
| | | | | | | | | | | | | | | | ActiveSupport::Multibyte#clean and #verify. [#3181 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Refactor new callbacks and AR implementation.José Valim2009-09-082-67/+103
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Changed ActiveRecord to use new callbacks and speed up observers by only ↵José Valim2009-09-082-46/+65
| | | | | | | | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Ruby 1.9: fix MessageVerifier#secure_compareJeremy Kemper2009-09-081-9/+27
| |
| * Please 1.8.6 CIJoshua Peek2009-09-071-0/+3
| |
| * Fix failing AS isolated testsJoshua Peek2009-09-054-3/+14
| |
| * Turn warnings on for AS isolated testsJoshua Peek2009-09-051-1/+1
| |
| * Fix a messed up merge commitMichael Koziarski2009-09-041-4/+0
| |
| * Add verify and clean methods to ActiveSupport::Multibyte.Michael Koziarski2009-09-044-18/+239
| | | | | | | | | | | | | | | | | | | | | | | | 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
| * Fix timing attack vulnerability in ActiveSupport::MessageVerifier.Coda Hale2009-09-041-3/+16
| | | | | | | | | | | | Use a constant-time comparison algorithm to compare the candidate HMAC with the calculated HMAC to prevent leaking information about the calculated HMAC. Signed-off-by: Michael Koziarski <michael@koziarski.com>
| * Add required dependencies on activemodelCarl Lerche2009-09-011-1/+1
| |
| * Add rake gemspec and gemspecs to the repoYehuda Katz2009-08-312-0/+34
| |
* | details that symbolize_keys symbolizes keys as long as they respond to ↵Xavier Noria2009-09-131-2/+4
| | | | | | | | to_sym (so "all" may not be really all)
* | documents Hash#with_indifferent_accessXavier Noria2009-09-121-0/+5
| |
* | documents in Hash#except that convert_key is honoredXavier Noria2009-09-121-0/+8
| |
* | documents Hash#to_xmlXavier Noria2009-09-121-0/+48
| |
* | Merge commit 'mainstream/master'Pratik Naik2009-08-3126-78/+240
|\|
| * Duplicating the options hash in Date#advance to prevent modification of the ↵Jay Pignata2009-08-312-0/+7
| | | | | | | | | | | | original [#1133 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Eliminate warnings from Regexp multiline extension testsJeffrey Hardy2009-08-261-3/+3
| | | | | | | | | | | | [#3103 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Correct Regexp#un/optionalize assertions and fix uncovered failuresJeffrey Hardy2009-08-262-6/+8
| | | | | | | | | | | | [#3102 state:incomplete] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Ruby 1.9: fix Time#beginning_of_day inaccuracy due to subtracting a FloatJeremy Kemper2009-08-221-1/+2
| |
| * Skip isolation test tests when using MiniTestJeremy Kemper2009-08-151-2/+4
| |
| * Allow superclass_delegating_accessor to take a block for initial set.Yehuda Katz2009-08-111-3/+4
| |
| * More perf work:Yehuda Katz2009-08-111-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move #set_cookie and #delete_cookie inline to optimize. These optimizations should almost certainly be sent back upstream to Rack. The optimization involves using an ivar for cookies instead of indexing into the headers each time. * Was able to use a bare Hash for headers now that cookies have their own joining semantics (some code assumed that the raw cookies were an Array). * Cache blankness of body on body= * Improve expand_cache_key for Arrays of a single element (common in our case) * Use a simple layout condition check unless conditions are used * Cache visible actions * Lazily load the UrlRewriter * Make etag an ivar that is set on prepare!
| * Got overhead down from 127 to 85. All tests pass:Yehuda Katz2009-08-111-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 itBryan Helmkamp2009-08-102-5/+21
| |
| * Correctly handle offsets in Multibyte::Chars#index and #rindex.Erik Ostrom2009-08-092-4/+11
| | | | | | | | | | | | | | | | 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>
| * Fixing isolation testJay Pignata2009-08-091-1/+1
| | | | | | | | | | | | [#3022 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Fix that JSON parser fails to read escaped backslashes.Daniel Sheppard2009-08-092-4/+9
| | | | | | | | | | | | [#973 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Fix that irregular plural inflections should not be double-pluralized: ↵Prem Sichanugrist2009-08-092-0/+13
| | | | | | | | | | | | | | | | 'people'.pluralize should return 'people' not 'peoples'. [#1183 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * pare down core_ext dependencyJeremy Kemper2009-08-091-2/+1
| |
| * Add rindex to ActiveSupport::Multibyte::Chars.Erik Ostrom2009-08-092-0/+20
| | | | | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * make private_and_public_methods unmemoizable [#2372 state:resolved]jeem2009-08-092-1/+45
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Support deep-merging HashWithIndifferentAccess.Andrew Moreland2009-08-092-4/+17
| | | | | | | | | | | | [#2732 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Improving test coverage for Range#sum [#2489]José Valim2009-08-091-1/+1
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Fix that Hash#to_xml and Array#to_xml shouldn't modify their options hashes ↵David Burger2009-08-094-0/+16
| | | | | | | | | | | | [#672 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Fix failing dependencies test relying on . being in LOAD_PATHJeremy Kemper2009-08-091-2/+4
| |
| * Extract repetitive methodJeremy Kemper2009-08-091-33/+37
| |
| * Uses &:fooJeremy Kemper2009-08-091-0/+1
| |
* | explains difference between Array.wrap and Array()Xavier Noria2009-08-251-0/+9
|/