aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Use already defined Encoding constants rather than creating one-trip StringsAkira Matsuda2013-01-281-1/+1
| | | |
* | | | Merge remote-tracking branch 'docrails/master'Xavier Noria2013-01-262-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: actionpack/lib/action_view/helpers/form_options_helper.rb guides/code/getting_started/app/controllers/comments_controller.rb
| * | | | fix reference to ActiveSupport::ProxyObjectMatt Bridges2013-01-131-1/+1
| | | | |
| * | | | Clarified the minute option on DateTime#changeJakob Waller2013-01-101-1/+1
| | | | |
* | | | | Set Thread.abort_on_exception for the whole AS, AP, and AR testsAkira Matsuda + Koichi Sasada2013-01-241-0/+2
| | | | | | | | | | | | | | | | | | | | this would give us some more clues in case a test silently dies inside Thread
* | | | | Fix some wrong String extensions testsAkira Matsuda2013-01-231-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ASCII_STRING was not an ASCII String * BYTE_STRING was not an in valid UTF-8 String * added an assertion for non-UTF-8 String
* | | | | Test String#dasherizeAkira Matsuda2013-01-231-0/+6
| | | | |
* | | | | Test that rescue_from accepts a class name in StringAkira Matsuda2013-01-231-2/+1
| | | | |
* | | | | Test Kernel#quietlyAkira Matsuda2013-01-231-0/+12
| | | | |
* | | | | Test try! with a blockAkira Matsuda2013-01-231-0/+4
| | | | |
* | | | | Test that DeprecatedConstantProxy does not warn when accessing its classAkira Matsuda2013-01-231-0/+1
| | | | |
* | | | | Missing AS::Deprecation::DeprecatedObjectProxy testAkira Matsuda2013-01-231-0/+5
| | | | |
* | | | | Test that a DateTime acts_like_dateAkira Matsuda2013-01-231-0/+4
| |/ / / |/| | |
* | | | Revert "Set the default timezone after the initialization since the ↵Carlos Antonio da Silva2013-01-221-16/+14
| | | | | | | | | | | | | | | | | | | | | | | | configuration" This reverts commit 39374aa925a7d670b039c0c0c9aa9f4aef19466b.
* | | | resistance is futileXavier Noria2013-01-211-1/+1
| | | |
* | | | slices less, reads betterXavier Noria2013-01-211-13/+22
| | | |
* | | | Merge pull request #8671 from xuanxu/fix_irregularXavier Noria2013-01-212-0/+4
|\ \ \ \ | | | | | | | | | | Inflector irregular singularize rules
| * | | | Inflector irregular singularize rulesJuanjo Bazán2013-01-012-0/+4
| | | | |
* | | | | Use `DateTime.parse` inside `String#to_datetime`Andrew White2013-01-212-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the standard library's `DateTime.parse` because it's marginally faster and supports partial date/time strings. Benchmark: user system total real old 3.980000 0.000000 3.980000 ( 3.987606) new 3.640000 0.010000 3.650000 ( 3.641342)
* | | | | Standardise the return value of `to_time`Andrew White2013-01-218-37/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit standardises the return value of `to_time` to an instance of `Time` in the local system timezone, matching the Ruby core and standard library behavior. The default form for `String#to_time` has been changed from :utc to :local but research seems to suggest the latter is the more common form. Also fix an edge condition with `String#to_time` where the string has a timezone offset in it and the mode is :local. e.g: # Before: >> "2000-01-01 00:00:00 -0500".to_time(:local) => 2000-01-01 05:00:00 -0500 # After: >> "2000-01-01 00:00:00 -0500".to_time(:local) => 2000-01-01 00:00:00 -0500 Closes #2453
* | | | | Remove warning: shadowing outer local variableCarlos Antonio da Silva2013-01-191-1/+1
| | | | |
* | | | | Fix failing test about date.order translation valuesCarlos Antonio da Silva2013-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | Introduced in b718998f3e8e6f3d01ad138e40f08fbcc3736285.
* | | | | Merge pull request #8978 from chrismcg/remove_i18n_symbol_dependencyAaron Patterson2013-01-191-3/+3
|\ \ \ \ \ | | | | | | | | | | | | Remove i18n symbol dependency
| * | | | | Remove i18n symbol dependencyChris McGrath2013-01-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | date.order is the only key in rails i18n that is required to be a symbol. This patch allows for symbols or strings which means: * No requirement for symbol type in .yml files. A future YAML.safe_load wouldn't need to load symbols * Rails could actually use json rather than yml as the backend
* | | | | | Refactor ActiveSupport::Cache::Store#fetch.Joey Butler2013-01-191-25/+41
| | | | | |
* | | | | | The test setup is not threadsafe. Wrap in a mutex.Jon Leighton2013-01-181-3/+7
| | | | | |
* | | | | | MiniTest already defines a ParallelEach classJon Leighton2013-01-181-23/+27
|/ / / / / | | | | | | | | | | | | | | | | | | | | This may or may not fix the intermittent railties failures we've been seeing on the CI with Ruby 2.0. We'll see.
* | | | | Test to allow Range including DateTime and DateTime::Infinitygsphanikumar2013-01-141-0/+6
| | | | | | | | | | | | | | | | | | | | Closes #8587
* | | | | remove_possible_method -> remove_methodNihad Abbasov2013-01-111-2/+2
| | | | | | | | | | | | | | | | | | | | Date#to_time and Date#xmlschema methods defined in Ruby 1.9.3
* | | | | Updating Array access docs more consistentMatt Bridges2013-01-101-4/+4
| | | | | | | | | | | | | | | | | | | | [ci skip]
* | | | | extract PerformanceTest into rails-performance_tests gemYves Senn2013-01-106-740/+8
| | | | |
* | | | | adding missing requiresAaron Patterson2013-01-091-1/+3
| | | | |
* | | | | adding start / finish on the instrumenter, adding tests for the classAaron Patterson2013-01-092-6/+67
| | | | |
* | | | | Merge pull request #8859 from tehgeekmeister/masterVijay Dev2013-01-091-2/+2
|\ \ \ \ \ | | | | | | | | | | | | Fix a typo in a test.
| * | | | | s/messqage/message/ in message_encryptor_test.rbEzekiel Smithburg2013-01-091-2/+2
| | | | | |
* | | | | | CVE-2013-0156: Safe XML params parsing. Doesn't allow symbols or yaml.Jeremy Kemper2013-01-083-10/+52
| | | | | |
* | | | | | Revert "Merge branch 'master-sec'"Jeremy Kemper2013-01-083-52/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 88cc1688d0cb828c17706b41a8bd27870f2a2beb, reversing changes made to f049016cd348627bf8db0d72382d7580bf802a79.
* | | | | | Merge branch 'master-sec'Aaron Patterson2013-01-083-10/+52
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | * master-sec: CVE-2013-0156: Safe XML params parsing. Doesn't allow symbols or yaml. * Strip nils from collections on JSON and XML posts. [CVE-2013-0155] * dealing with empty hashes. Thanks Damien Mathieu
| * | | | | CVE-2013-0156: Safe XML params parsing. Doesn't allow symbols or yaml.Jeremy Kemper2013-01-083-10/+52
| |/ / / /
* | | | | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-01-097-8/+25
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Conflicts: guides/source/getting_started.md
| * | | | Correct method notation for #acts_like? [ci skip]Doug Yun2013-01-071-4/+4
| | | | |
| * | | | Instance_variable_names are strings. That is the most important information IMOAkira Matsuda2013-01-081-1/+1
| | | | |
| * | | | prefer american spelling of 'behavior'Gosha Arinich2013-01-072-2/+2
| | | | |
| * | | | `Model.all` alone does nothingAkira Matsuda2013-01-041-1/+1
| | | | |
| * | | | Add documentation for BacktraceCleaner#remove_filters!Matthew Stopa2013-01-021-0/+3
| | | | |
| * | | | Add more documentation to TimeWithZoneMatthew Stopa2013-01-011-0/+14
| | | | | | | | | | | | | | | | | | | | [ci skip]
* | | | | Revert some warning removals related to Ruby 2.0Carlos Antonio da Silva2013-01-072-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These warnings were actually a bug in Ruby 2.0, the accessors should not be raising such warnings, they are only meant for ivars. - Revert "fix warnings in Ruby 2.0" This reverts commit 26702a6d3461f4a1c75165030b96886514ecb877. - Revert "Merge pull request #8282 from arunagw/warning_removed_for_ruby2" This reverts commit f63d6544e45e78cda29c0c56fbdf3d9e1f405340, reversing changes made to 3a890681fad8218305585036abed6d7463a44e41.
* | | | | Namespace HashWithIndifferentAccessAkira Matsuda2013-01-071-1/+1
| | | | |
* | | | | Require 'active_support/core_ext/module/aliasing' in the infinite_comparable ↵Diogo Mafra2013-01-061-0/+1
| |_|_|/ |/| | | | | | | | | | | module
* | | | Remove unnecessary begin..rescue..end, use only rescueAkira Matsuda2013-01-065-39/+30
| | | |