aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
Commit message (Collapse)AuthorAgeFilesLines
* deprecates Module#local_constant_namesXavier Noria2012-01-121-0/+6
|
* add the class name to the assertion messageAaron Patterson2012-01-061-1/+1
|
* use AS::TestCase as the base classAaron Patterson2012-01-0532-53/+53
|
* Nano seconds fraction of time is copied properly in Time#advancePawel Pierzchala2012-01-051-0/+5
| | | | | | When day, month or year was passed, advance created a new time ignoring previous nsec fraction. Now nsec is passed through usec as a Rational number.
* Merge pull request #4252 from lest/deprecate-activesupport-base64José Valim2012-01-021-10/+0
|\ | | | | remove ActiveSupport::Base64 in favor of ::Base64
| * remove ActiveSupport::Base64 in favor of ::Base64Sergey Nartimov2012-01-021-10/+0
| |
* | fix a warning about grouped expressionsVijay Dev2012-01-011-1/+1
|/
* refactor Range#include? to handle ranges with floatsSergey Nartimov2011-12-291-0/+4
|
* deprecate Base64.encode64s from AS. Use Base64.strict_encode64 insteadVasiliy Ermolovich2011-12-271-2/+4
|
* remove File#to_path aliasVasiliy Ermolovich2011-12-251-4/+0
|
* deprecate String#encoding_aware? and remove its usageSergey Nartimov2011-12-241-1/+3
|
* Revert "Added Enumerable#pluck to wrap the common pattern of ↵Aaron Patterson2011-12-221-7/+0
| | | | | | | | | | | | collect(&:method) *DHH*" This reverts commit 4d20de8a50d889a09e6f5642984775fe796ca943. Conflicts: activesupport/CHANGELOG.md activesupport/lib/active_support/core_ext/enumerable.rb activesupport/test/core_ext/enumerable_test.rb
* deprecate Array#uniq_by and Array#uniq_by! in favor of Array#uniq and ↵Vasiliy Ermolovich2011-12-221-6/+14
| | | | Array#uniq! from ruby 1.9
* remove Enumerable#each_with_object from core_ext as it is present in ruby 1.9lest2011-12-211-10/+1
|
* remove Kernel#singleton_class from core_ext as it is present in ruby 1.9lest2011-12-211-6/+1
|
* remove Array#sample from core_extVasiliy Ermolovich2011-12-211-28/+0
|
* Remove some of the ActiveSupport core extensions related to 1.8.Uģis Ozols2011-12-212-49/+0
|
* Initial pass at removing dead 1.8.x code from Active Support.José Valim2011-12-205-71/+11
| | | | | | There are a bunch of other implicit branches that adds 1.8.x specific code that still needs to be removed. Pull requests for those cases are welcome.
* Overrode Hash#nested_under_indifferent_access in HashWithIndifferentAccessMiles Georgi2011-12-111-0/+3
| | | | to return self.
* Restore performance of ERB::Util.html_escapeJon Jensen2011-12-031-6/+17
| | | | | | | Revert html_escape to do a single gsub again, but add the "n" flag (no language, i.e. not multi-byte) to protect against XSS via invalid utf8 Signed-off-by: José Valim <jose.valim@gmail.com>
* Added Enumerable#pluck to wrap the common pattern of collect(&:method) *DHH*David Heinemeier Hansson2011-12-021-1/+8
|
* Module#synchronize is deprecated with no replacement. Please use `monitor` ↵Aaron Patterson2011-11-291-89/+0
| | | | from ruby's standard library.
* Merge pull request #3767 from tadast/object_inYehuda Katz2011-11-261-0/+10
|\ | | | | Object#in? also accepts multiple parameters
| * Object#in? also accepts multiple parametersTadas Tamošauskas2011-11-261-0/+10
| |
* | add more tests for monday and sunday methodsVijay Dev2011-11-261-0/+2
| |
* | Tests added for monday and sunday Arun Agrawal2011-11-261-0/+8
| | | | | | | | | | Reference commits : a8f2860d0e7db86c61bb70935006100b04667ab1 80ac4dc6d0632937ccf61b38bc15fc2f6e27b18b
* | beginning_of_week extended in both Time and Date so that to return week ↵gregolsen2011-11-252-0/+38
| | | | | | | | start based on start day that is monday by default
* | Merge pull request #3725 from marcandre/twz_eqlYehuda Katz2011-11-222-2/+15
|\ \ | |/ |/| Fix inconsistencies with Time{WithZone}#{hash,eql?}
| * Fix inconsistencies with Time{WithZone}#{hash,eql?}Marc-Andre Lafortune2011-11-222-2/+15
| |
* | refactor test_multiple_ofVijay Dev2011-11-161-4/+3
| |
* | Merge pull request #3549 from luckydev/rmethodAaron Patterson2011-11-071-0/+29
|\ \ | | | | | | remove_method tests and changes
| * | added remove_method core_ext testsAnand2011-11-071-0/+29
| |/
* / Removed argument throwing warnings when running tests.Henrik Hodne2011-11-062-16/+16
|/ | | | | | | | The last argument to DateTime.new/civil is the Julian day number for when the calendar reform occured. DateTime ignores it if it's 0, and sets it to the default of DateTime::ITALY instead, so we could just leave it out. This also removes the warnings while running the ActiveSupport tests (there still are some for the setup though).
* defines Module#qualified_const_(defined?|get|set) and String#deconstantizeXavier Noria2011-10-292-0/+98
| | | | | | | | | | This commit also implements a faster version of #demodulize I was unable to isolate with git add --patch. Not a big fan of the name #deconstantize. It complements #demodulize getting rid of the rightmost constant, hence the name, but it is unrelated to the well-known #constantize. So unsure. Could not come with anything better, please feel free to rename.
* Merge pull request #3151 from zenprogrammer/pluralize_without_countJosé Valim2011-10-171-4/+8
|\ | | | | Added include_count parameter to pluralize.
| * Modified String#pluralize to take an optional count parameter.Ryan Oblak2011-09-281-4/+8
| |
* | Fixed test_nonexisting_method_with_arguments to revert commit 29a5aeaYasuo Honda2011-10-061-1/+1
| |
* | Revert "don't raise NoMethodError the tried method doesn't exists"José Valim2011-10-061-1/+1
| | | | | | | | This reverts commit 29a5aeaae976bf8432d57ec996c7c81932a39de6.
* | Merge pull request #2801 from jeremyevans/patch-1Jeremy Kemper2011-10-031-0/+3
|\ \ | |/ |/| Fix obviously breakage of Time.=== for Time subclasses
| * Add tests for fixes to Time.===Jeremy Evans2011-09-071-0/+3
| |
* | Added ActiveSupport::Inflector.safe_constantize and String#safe_constantize; ↵Ryan Oblak2011-09-231-1/+22
| | | | | | | | refactored common constantize tests into ConstantizeTestCases
* | Fix test to reflect use of to_param for keysbrainopia2011-09-181-8/+8
| |
* | Fix Hash#to_query edge case with html_safe string on 1.8 rubybrainopia2011-09-161-0/+9
| |
* | We can't simply check the first line of the backtrace, Arun Agrawal2011-09-041-4/+6
|/ | | because JRuby reports the call to __send__ in the backtrace.
* Revert all the stuff to do with disallowing non-public methods for ↵Jon Leighton2011-08-252-136/+1
| | | | Module#delegate
* Remove trailing whitespaceDaniel Schierbeck2011-08-231-2/+2
|
* properly escape html to avoid invalid utf8 causing XSS attacksAaron Patterson2011-08-161-0/+7
|
* Added Array#prepend as an alias for Array#unshift and Array#append as an ↵David Heinemeier Hansson2011-08-151-0/+10
| | | | alias for Array#<< [DHH]
* Add a test for delegating a method ending in '=' as this is a special case.Jon Leighton2011-08-151-0/+8
|
* Split up the definitions in Module#delegate depending on :allow_nil, and ↵Jon Leighton2011-08-151-0/+12
| | | | don't use exceptions for flow control in the :allow_nil => true case.