Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | make gsub and sub unavailable in SafeBuffers - Closes #1555 | Damien Mathieu | 2011-09-08 | 2 | -11/+24 | |
| | | ||||||
* | | Make sure require_tzinfo only calls Kernel#require if TZInfo isn't already ↵ | Tim Lucas | 2011-09-07 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | present. This wasn't a problem when require_tzinfo was only called from TimeZone#initialize, but now it's being called for every lookup to TimeZone.[] (via lazy_zones_map) TimeZone lookup can occur when unmarshalling TimeWithZone objects, which is where I first saw the big slowdown (500ms for each Rails action that loaded from Rails.cache) | |||||
* | | Modified content in guides and comments | Arun Agrawal | 2011-09-04 | 1 | -2/+2 | |
| | | | | | | | | | | | | for "assert /" warnings. Removed because if somebody will use this code they will get warnings! | |||||
* | | Merge pull request #2827 from sikachu/extractable_ordered_hash | José Valim | 2011-09-03 | 1 | -0/+5 | |
|\ \ | | | | | | | Make `ActiveSupport::OrderedHash` extractable when using `Array#extract_options! | |||||
| * | | Make `ActiveSupport::OrderedHash` extractable when using ↵ | Prem Sichanugrist | 2011-09-03 | 1 | -0/+5 | |
| |/ | | | | | | | | | `Array#extract_options!` `ActiveSupport::OrderedHash` is actually a subclass of the hash, so it does make sense that it should be extractable from the array list. | |||||
* / | docs formatting changes | Vijay Dev | 2011-09-01 | 3 | -4/+4 | |
|/ | ||||||
* | Revert "Ruby 1.8.7+ provides to_date/to_datetime, AS just makes them ↵ | Chris Griego | 2011-08-31 | 1 | -0/+22 | |
| | | | | | | | | public." to support date implementations without private to_date/to_datetime on Time (home_run). This reverts commit 080345baca1076a9788dff4803153600aec31f86. Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Revert all the stuff to do with disallowing non-public methods for ↵ | Jon Leighton | 2011-08-25 | 3 | -32/+2 | |
| | | | | Module#delegate | |||||
* | stop circular require warnings | Aaron Patterson | 2011-08-24 | 2 | -2/+0 | |
| | ||||||
* | only backport the to_d method if it does not exist | Aaron Patterson | 2011-08-24 | 1 | -2/+5 | |
| | ||||||
* | dealing with some -w warnings on startup | Aaron Patterson | 2011-08-24 | 1 | -0/+2 | |
| | ||||||
* | Fix autoload_once_paths when using Pathnames & ruby 1.9 | Jonathan del Strother | 2011-08-24 | 1 | -1/+2 | |
| | | | | | | | Under ruby 1.9.2 - "/var/log".starts_with?(Pathname.new("/var")) # => false so setting config.autoload_once_paths with Pathnames would not work | |||||
* | `load` should also return the value from `super` | Aaron Patterson | 2011-08-23 | 1 | -1/+3 | |
| | ||||||
* | require needs to return true or false. thank you Ryan "zenspider" Davis | Aaron Patterson | 2011-08-23 | 1 | -1/+3 | |
| | ||||||
* | properly escape html to avoid invalid utf8 causing XSS attacks | Aaron Patterson | 2011-08-16 | 1 | -1/+1 | |
| | ||||||
* | Merge branch 'master' of github.com:lifo/docrails | Xavier Noria | 2011-08-16 | 1 | -0/+2 | |
|\ | ||||||
| * | Document Hash#extract!. | Sebastian Martinez | 2011-08-15 | 1 | -0/+2 | |
| | | ||||||
| * | fixing assert_difference issues on ruby 1.8 | Aaron Patterson | 2011-08-13 | 1 | -6/+7 | |
| | | ||||||
| * | make assert_difference error message not suck | Aaron Patterson | 2011-08-13 | 1 | -5/+6 | |
| | | ||||||
| * | Pass options in ActiveSupport::Cache::CacheStore#read_multi through to the ↵ | Brian Durand | 2011-08-13 | 1 | -1/+1 | |
| | | | | | | | | delete_entry call. | |||||
| * | Remove unnecessary require (happened after fcbde454f6) | Dmitriy Kiriyenko | 2011-08-13 | 1 | -2/+0 | |
| | | ||||||
| * | remove_possible_method: test if method exists | Brad Ediger | 2011-08-13 | 1 | -2/+7 | |
| | | | | | | | | | | | | | | This speeds up remove_possible_method substantially since it doesn't have to rescue a NameError in the common case. Closes #2346. | |||||
| * | Change ActiveSupport::Cache behavior to always return duplicate objects ↵ | Brian Durand | 2011-08-13 | 1 | -15/+8 | |
| | | | | | | | | instead of frozen objects. | |||||
| * | delay backtrace scrubbing until we actually raise an exception. fixes #1936 | Aaron Patterson | 2011-08-13 | 1 | -7/+4 | |
| | | ||||||
| * | Reset @dirty to false when slicing an instance of SafeBuffer | Brian Cardarella | 2011-08-13 | 1 | -0/+6 | |
| | | ||||||
| * | Replace unnecessary regexp in Dependencies#load_missing_constant | Jonathan del Strother | 2011-08-13 | 1 | -2/+1 | |
| | | ||||||
| * | Constantize a regexp in Dependencies#load_missing_constant | Jonathan del Strother | 2011-08-13 | 1 | -1/+2 | |
| | | ||||||
* | | prefer ends_with? over slicing | Xavier Noria | 2011-08-16 | 1 | -1/+2 | |
| | | ||||||
* | | Fix tzinfo require (it broke ↵ | Jon Leighton | 2011-08-16 | 1 | -6/+13 | |
| | | | | | | | | test_raises_when_an_invalid_timezone_is_defined_in_the_config in railties) | |||||
* | | Be more lazy about creating time zone objects. Decreases startup time by ↵ | Jon Leighton | 2011-08-16 | 1 | -2/+13 | |
| | | | | | | | | about 10%. (#734) | |||||
* | | Added Array#prepend as an alias for Array#unshift and Array#append as an ↵ | David Heinemeier Hansson | 2011-08-15 | 2 | -0/+8 | |
| | | | | | | | | alias for Array#<< [DHH] | |||||
* | | Removing unnecessary require, solve 'circular require considered harmful' ↵ | Jon Leighton | 2011-08-16 | 1 | -2/+0 | |
| | | | | | | | | warning. | |||||
* | | Document Object#public_send | Jon Leighton | 2011-08-15 | 1 | -1/+1 | |
| | | ||||||
* | | Add a test for delegating a method ending in '=' as this is a special case. | Jon Leighton | 2011-08-15 | 1 | -0/+1 | |
| | | ||||||
* | | Need to include public_send | Arun Agrawal | 2011-08-15 | 1 | -0/+1 | |
| | | ||||||
* | | Split up the definitions in Module#delegate depending on :allow_nil, and ↵ | Jon Leighton | 2011-08-15 | 1 | -17/+22 | |
| | | | | | | | | don't use exceptions for flow control in the :allow_nil => true case. | |||||
* | | Fix the line number in the backtrace when Module#delegate raises | Jon Leighton | 2011-08-15 | 1 | -1/+1 | |
| | | ||||||
* | | Just do the method call directly in Module#delegate, if we can (we cannot ↵ | Jon Leighton | 2011-08-15 | 1 | -1/+4 | |
| | | | | | | | | for method names ending in '='). Two reasons: 1) it's faster, see https://gist.github.com/1089783 and 2) more importantly, delegate should not allow you to accidentally call private or protected methods. | |||||
* | | Backport Object#public_send to 1.8 so that we can implement Module#delegate ↵ | Jon Leighton | 2011-08-15 | 2 | -0/+26 | |
| | | | | | | | | such that non-public methods raise | |||||
* | | backporting IO#binread for 1.8 users | Aaron Patterson | 2011-08-08 | 1 | -0/+15 | |
| | | ||||||
* | | Added irregular zombie inflection, so zombies no longer gets singularized ↵ | Gregg Pollack | 2011-08-07 | 1 | -0/+1 | |
| | | | | | | | | into zomby | |||||
* | | Merge pull request #2450 from guilleiguaran/activesupport-gzip-1.8 | Santiago Pastorino | 2011-08-06 | 1 | -0/+1 | |
|\ \ | | | | | | | Fix ActiveSupport::Gzip under Ruby 1.8.7. Closes #2416 | |||||
| * | | Fix ActiveSupport::Gzip under Ruby 1.8.7. Closes #2416 | Guillermo Iguaran | 2011-08-06 | 1 | -0/+1 | |
| | | | ||||||
* | | | Refactored to more closely resemble idiom applied for on_nil | Evan Light | 2011-08-05 | 1 | -5/+11 | |
|/ / | ||||||
* | | Fix AR test suite error under Rubinius 2.0 | Guillermo Iguaran | 2011-08-05 | 1 | -0/+1 | |
| | | ||||||
* | | fixing assert_difference issues on ruby 1.8 | Aaron Patterson | 2011-08-04 | 1 | -6/+7 | |
| | | ||||||
* | | make assert_difference error message not suck | Aaron Patterson | 2011-08-03 | 1 | -5/+6 | |
| | | ||||||
* | | Merge pull request #2393 from bdurand/fix_cache_read_multi | Santiago Pastorino | 2011-08-01 | 1 | -1/+1 | |
|\ \ | | | | | | | Fix ArgumentError in ActiveSupport::Cache::CacheStore.read_multi | |||||
| * | | Pass options in ActiveSupport::Cache::CacheStore#read_multi through to the ↵ | Brian Durand | 2011-08-01 | 1 | -1/+1 | |
| | | | | | | | | | | | | delete_entry call. | |||||
* | | | Remove unnecessary require (happened after fcbde454f6) | Dmitriy Kiriyenko | 2011-08-01 | 1 | -2/+0 | |
| | | |