aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-11-034-9/+9
|\ | | | | | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/mime_responds.rb activerecord/lib/active_record/attribute_methods.rb guides/source/working_with_javascript_in_rails.md
| * Adding a missing parenthesis in the doc of String#parameterize.Geoffrey Roguelon2012-10-241-2/+2
| |
| * fix output messages - docs [ci skip]Francesco Rodriguez2012-10-224-6/+6
| |
| * More changes around 1.9 hash syntaxAvnerCohen2012-10-212-4/+4
| | | | | | | | Added missing space in previous hash related commit
* | Fixed timezone mapping of Solomon Islands.Steve Klabnik2012-11-012-1/+3
| | | | | | | | | | | | | | | | Fixes #8095. For reference, here is the discussion about the mapping being incorrect: http://rubyforge.org/pipermail/tzinfo-users/2012-November/000114.html
* | Make caller attribute in deprecation methods optionalAlexey Gaziev2012-10-3013-15/+23
| |
* | Provide a call stack for deprecation warnings where needed.Nikita Afanasenko2012-10-294-6/+12
| | | | | | | | It's sometimes hard to quickly find where deprecated call was performed, especially in case of migrating between Rails versions. So this is an attempt to improve the call stack part of the warning message by providing caller explicitly.
* | atomicc.rb: Don't assume we may chown/chmod a file.Daniele Sluijters2012-10-292-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously this code just assumed it is capable of changing the file ownership, both user and group. This will fail in a lot of scenario's unless: * The process is run as a superuser (root); * The owning user and group are already set to the user and group we're trying to chown to; * The user chown'ing only changes the group to another group it is a member of. If either of those conditions are not met the filesystem will simply deny the operation throwing an error. It is also not always possible to do a chmod, there might be a SELinux policy or another limitation preventing the user to change the file mode. To this end the chmod call has also been added to the rescue block. I've also added a little comment above the chmod command that doing a chmod on a file which has an ACL set will cause the ACL to be recalculated / modified.
* | Merge pull request #8046 from pmahoney/exceptions_as_flow_controlRafael Mendonça França2012-10-281-2/+2
|\ \ | | | | | | Replace flow-control exception with explicit test.
| * | Replace flow-control exception with explicit test.Patrick Mahoney2012-10-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was noticed while profiling 'assets:precompile' in JRuby that exception creation was consuming a large portion of time, and some of that was due to File.atomic_write. Testing first with File.exists? eliminates the need for an exception which should be a perfomrance improvement on both JRuby and MRI. In this case, the stat() isn't even extra overhead, since it is always called.
* | | Fix some assert_raise calls containing messages in Active SupportCarlos Antonio da Silva2012-10-282-7/+15
|/ /
* | Fix queueing tests that should be consuming the queue rather than draining itJeremy Kemper2012-10-262-4/+10
| |
* | Job consumer logs to Rails.logger by defaultJeremy Kemper2012-10-261-2/+5
| |
* | Job worker thread logs failed jobs tooJeremy Kemper2012-10-262-2/+2
| |
* | Job worker thread logs to stderr if no logger is providedJeremy Kemper2012-10-262-2/+13
| |
* | Implement replace method so key? works correctly.David Graham2012-10-263-0/+22
| |
* | Remove ActiveRecord::Model consant from AS::TestCaseCarlos Antonio da Silva2012-10-261-1/+1
| | | | | | | | Fixing the build.
* | make the cache test more @tenderlove(ing) and not depend on internal ↵Noah Hendrix2012-10-231-2/+7
| | | | | | | | implentation
* | pass the key to the block in cache.fetch on missesNoah Hendrix2012-10-232-7/+12
|/
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-10-215-8/+8
|\ | | | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/slice.rb guides/source/active_support_core_extensions.md
| * Hash Syntax changes to 1.9 formatAvnerCohen2012-10-205-9/+9
| |
* | fix assertionsAaron Patterson2012-10-181-2/+2
| |
* | Make DescendantsTracker thread safe and optimize the #descendants method.thedarkone2012-10-183-30/+51
| |
* | some ruby interpreters don't have ruby-prof so just skip the testsAaron Patterson2012-10-182-4/+13
| | | | | | | | rather than exiting the process.
* | Revert "remove unnecessary object/conversions file"Xavier Noria2012-10-164-2/+11
| | | | | | | | | | | | | | This file is used at least by Active Merchant, its existence is maybe not necessary but no big deal either. This reverts commit ae9b3d7cecd77b9ace38671b183e1a360bf632b6.
* | Backpedal from class-oriented config.queue. Set an actual queue instance.Jeremy Kemper2012-10-121-4/+0
| |
* | Remove the queue container. Premature consolidation. Set up and maintain ↵Jeremy Kemper2012-10-122-54/+0
| | | | | | | | queues in the classes that use them instead.
* | Merge pull request #7007 from Mik-die/hash_extractRafael Mendonça França2012-10-123-4/+39
|\ \ | | | | | | make Hash#extract! more symmetric with Hash#slice
| * | add more testcases and doc about Hash#extract!Mikhail Dieterle2012-10-082-4/+11
| | |
| * | make Hash#extract! more symmetric with Hash#sliceMikhail Dieterle2012-10-083-3/+31
| | |
* | | Move the TestQueue tests to the proper fileRafael Mendonça França2012-10-121-0/+44
| | |
* | | Merge pull request #7913 from mje113/masterXavier Noria2012-10-121-0/+4
|\ \ \ | | | | | | | | MemCacheStore's move to dalli as a backend broke :race_condition_ttl support
| * | | Padding expires_in by 5 minutes on dalli key write to facilitate ↵Mike Evans2012-10-111-0/+4
| | |/ | |/| | | | | | | :race_condition_ttl working correctly.
* | | Cleanup trailing whitespacesdfens2012-10-121-1/+1
| | |
* | | adding a test for b21f24d9807bd161af947cf0f0cc440c9adffb73Aaron Patterson2012-10-111-0/+14
|/ /
* | Ensure expires_in and created_at timestamps aren't nil when attempting to ↵Joshua Peek2012-10-101-1/+1
| | | | | | | | upgrade cache
* | let (array|hash)/conversions.rb load the extensions in ↵Xavier Noria2012-10-093-3/+5
| | | | | | | | object/to_(param|query).rb
* | adds a missing requireXavier Noria2012-10-091-0/+1
| |
* | adds missing requireXavier Noria2012-10-091-0/+1
| |
* | keys.include? -> key?Xavier Noria2012-10-091-1/+1
| |
* | Merge pull request #7817 from NARKOZ/object-conversionsXavier Noria2012-10-094-11/+2
|\ \ | |/ |/| remove unnecessary object/conversions file
| * remove unnecessary object/conversions fileNihad Abbasov2012-10-024-11/+2
| |
* | explains why these requires are in an unusual placeXavier Noria2012-10-071-0/+8
| |
* | Merge pull request #7650 from kennyj/fix_warning_20120915Xavier Noria2012-10-071-6/+7
|\ \ | | | | | | Fix warning: circular require considered harmful.
| * | Fix warning: circular require considered harmful.kennyj2012-10-031-6/+7
| |/
* | Ruby 2 compat. Hash[] now raises on bad elements rather than ignoring them. ↵Jeremy Kemper2012-10-061-1/+0
| | | | | | | | No sense over-testing this MRI-specific behavior. See ruby/ruby@8d6add973ebcb3b4c1efbfaf07786550a3e219af
* | rename private method to avoid overridingFrancesco Rodriguez2012-10-061-2/+2
| |
* | use Rails backtrace in testsFrancesco Rodriguez2012-10-051-0/+1
| |
* | bump minitest version ~> 4.1.0Francesco Rodriguez2012-10-051-1/+1
| |
* | Revert "Use flat_map { } instead of map {}.flatten"Santiago Pastorino2012-10-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | This reverts commit abf8de85519141496a6773310964ec03f6106f3f. We should take a deeper look to those cases flat_map doesn't do deep flattening. irb(main):002:0> [[[1,3], [1,2]]].map{|i| i}.flatten => [1, 3, 1, 2] irb(main):003:0> [[[1,3], [1,2]]].flat_map{|i| i} => [[1, 3], [1, 2]]