aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
Commit message (Collapse)AuthorAgeFilesLines
* bump AS deprecation_horizon to 4.1Francesco Rodríguez2012-06-171-2/+2
|
* Avoid unnecessary catching of Exception instead of StandardError.Dylan Smith2012-06-172-2/+2
|
* Documentation: make it clearer that subscribers are not notified ↵Schnittchen2012-06-161-1/+1
| | | | asynchronously, but saved for later use.
* Fix doc example for dasherizeMarc-Andre Lafortune2012-06-151-1/+1
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-06-144-105/+117
|\
| * Document ActiveSupport::JSON.parse_error [ci skip]Mark Rushakoff2012-06-051-0/+8
| |
| * add :nodoc: to AS::NumberHelper private methods [ci skip]Francesco Rodriguez2012-06-051-99/+100
| |
| * add example to AS::GzipFrancesco Rodriguez2012-06-041-1/+8
| |
| * remove double hyphen that doesn't allow properly parsingFrancesco Rodriguez2012-06-041-5/+1
| |
* | raise the same exception in order to keep path infoAaron Patterson2012-06-121-1/+2
| | | | | | | | | | | | Ruby 2.0.0 implements LoadError#path, but newly raised load errors will not contain the path information. Replace the error message, copy blame, and rereaise the same exception object
* | Merge pull request #6711 from takkanm/fix-warning-LoadError-path-methodJosé Valim2012-06-121-5/+7
|\ \ | | | | | | fix method redefined warning in Ruby2.0
| * | fix method redefined warning in Ruby2.0Mitsutaka Mimura2012-06-121-5/+7
| | | | | | | | | | | | Ruby2.0 already has LoadError#path.
* | | Stop relying on mutable structures in the FileUpdateCheckerJosé Valim2012-06-122-35/+7
|/ /
* | fix warning in Ruby2.0.0takkanm2012-06-111-1/+1
| | | | | | | | | | | | | | ``` rails/activesupport/lib/active_support/multibyte/chars.rb:136: warning: character class has duplicated range: /\b('?[\S])/ ```
* | removes the obsolete require_association method from dependenciesXavier Noria2012-06-101-17/+5
| | | | | | | | | | | | | | | | This is an obsolete method from the very early days, apparently it was used circa 2004 because STI support was not smart enough. This method is not public interface, and we are heading a major version, so removal seems right.
* | Merge pull request #6645 from amatsuda/reduce_string_instanceCarlos Antonio da Silva2012-06-064-7/+4
|\ \ | | | | | | Reduce number of String instance
| * | no need to to_s here. Both String and Symbol can be interpolated into StringAkira Matsuda2012-06-061-3/+0
| | |
| * | Symbol responds_to :upcase & :downcase in Ruby >= 1.9Akira Matsuda2012-06-062-2/+2
| | |
| * | stop `to_s`ing method namesAkira Matsuda2012-06-062-2/+2
| | | | | | | | | | | | Module#methods are Symbols in Ruby >= 1.9
* | | MiniTest::Spec shipped with Ruby >= 1.9.3 always responds_to __name__Akira Matsuda2012-06-061-2/+1
|/ /
* | Eliminate dependency on Rails::VERSION::STRINGAndrew White2012-06-051-18/+23
| | | | | | | | | | | | To facilitate the use of ActiveSupport::Testing::Performance outside of a Rails application conditionally check for the presence of Rails::VERSION::STRING before including it in the environment string.
* | add instance_accessor option to ActiveSupport::Configurable#config_accessorFrancesco Rodriguez2012-06-051-5/+52
|/ | | | | | | | | | Changes: * Add `instance_accessor` option to opt out of the instance writer and instance reader methods. * Raises a NameError if the name of the attribute is not valid. * Update documentation and tests. * Add CHANGELOG entry in activesupport.
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-06-021-1/+1
|\
| * Fix typo [ci skip]Erich Menge2012-05-301-1/+1
| |
* | Revert some ActiveSupport::Callbacks changes.Rafael Mendonça França2012-06-011-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commits 911a0859ac065aa8e8834ac985353d659c7c7b65 and 30b31f51af6f7094c4a27b086755fc66c368d6fa. Reason: these changes make the Active Model tests fail randomly. Some examples: http://travis-ci.org/#!/rails/rails/jobs/1498992 http://travis-ci.org/#!/rails/rails/jobs/1496948 http://travis-ci.org/#!/rails/rails/jobs/1489985 This script was used to reproduce these breaks: https://gist.github.com/f6828a03ee4d40bffbc3 200 times, 0 failures
* | Reduce warning messages when running Active Support testsAndrew White2012-05-311-0/+5
| | | | | | | | Eliminate the warnings generated by redefining methods and constants.
* | Merge pull request #6554 from erichmenge/remove-json-variablePiotr Sarnacki2012-05-302-10/+0
|\ \ | |/ |/| Remove deprecated ActiveSupport::JSON::Variable.
| * Remove deprecated ActiveSupport::JSON::Variable.Erich Menge2012-05-302-10/+0
| |
* | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-05-306-28/+105
|\ \ | |/ |/|
| * some copy edits [ci skip]Vijay Dev2012-05-301-4/+4
| |
| * fix example format and add markup in Module#mattr_accessor documentation [ci ↵Francesco Rodriguez2012-05-291-10/+10
| | | | | | | | skip]
| * Updates Array conversions method documentations and clean upsAlvaro Pereyra2012-05-281-4/+0
| |
| * add ActiveSupport::JSON.decode documentation [ci skip]Francesco Rodriguez2012-05-281-0/+5
| |
| * add example to ActiveSupport::JSON.encode [ci skip]Francesco Rodriguez2012-05-281-1/+4
| |
| * fix empty lines [ci skip]Francesco Rodriguez2012-05-282-2/+0
| |
| * Merge branch 'master' of github.com:lifo/docrailsAlvaro Pereyra2012-05-2845-70/+297
| |\
| | * remove :nodoc: from Class#subclasses [ci skip]Francesco Rodriguez2012-05-281-4/+10
| | |
| | * add :locale option to Array#to_sentence documentation [ci skip]Francesco Rodriguez2012-05-281-0/+27
| | |
| | * add examples to Array#to_sentence [ci skip]Francesco Rodriguez2012-05-281-4/+24
| | |
| | * update documentation of array/access methods [ci skip]Francesco Rodriguez2012-05-281-8/+16
| | |
| * | Updates documentation with cleaner examples and texts [ci skip]Alvaro Pereyra2012-05-282-1/+15
| | |
| * | Remove blank trailing commentsHenrik Hodne2012-05-2030-51/+0
| | | | | | | | | | | | | | | | | | | | | For future reference, this is the regex I used: ^\s*#\s*\n(?!\s*#). Replace with the first match, and voilà! Note that the regex matches a little bit too much, so you probably want to `git add -i .` and go through every single diff to check if it actually should be changed.
* | | True, False, and Nil should be represented in as_json as themselves.Erich Menge2012-05-291-9/+9
| | |
* | | Merge pull request #6525 from freerange/minitest-passthrough-exceptionsJosé Valim2012-05-291-0/+12
|\ \ \ | | | | | | | | Exceptions like Interrupt & NoMemoryError should not be rescued in tests.
| * | | Avoid dependency on MiniTest::Unit::TestCase::PASSTHROUGH_EXCEPTIONS.James Mead2012-05-291-2/+10
| | | |
| * | | Exceptions like Interrupt should not be rescued.James Mead2012-05-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Neither Test::Unit nor MiniTest rescue exceptions like Interrupt or NoMemoryError, but ActiveSupport::Testing::SetupAndTeardown#run which overrides MiniTest::Unit::TestCase#run rescues them. Rescuing an Interrupt exception is annoying, because it means when you are running a lot of tests e.g. when running one of the rake test tasks, you cannot break out using ctrl-C. Rescuing exceptions like NoMemoryError is foolish, because the most sensible thing to happen is for the process to terminate as soon as possible. This solution probably needs some finessing e.g. I'm not clear whether the assumption is that only MiniTest is supported. Also early versions of MiniTest did not have this behaviour. However, hopefully it's a start. Integrating with Test::Unit & MiniTest has always been a pain. It would be great if both of them provided sensible extension points for the kind of things that both Rails and Mocha want to do.
* | | | decoupling activesupport performance testing from actionview and adding testsAndrew Mutz2012-05-281-4/+4
| | | |
* | | | Review requires from number helperCarlos Antonio da Silva2012-05-282-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of these requires are now only necessary in ActiveSupport::NumberHelper. Add hash/keys require due to symbolize_keys usage in number helpers. Also remove some whitespaces. Closes #6414
* | | | make AS::Multibyte::Chars work w/o multibyte core extSergey Nartimov2012-05-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Use ActiveSupport::Multibyte::Chars.new instead of String#mb_chars. It allows to use ActiveSupport::Multibyte::Chars without requiring String multibyte core extension.
* | | | remove unnecessary requireSergey Nartimov2012-05-282-4/+0
|/ / / | | | | | | | | | | | | AS::Multibyte are no longer required by access and filters string core extensions.