aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
Commit message (Collapse)AuthorAgeFilesLines
* Ruby 1.9.2: marshaling round-trips Time#zoneJeremy Kemper2010-03-281-12/+8
|
* Time zone tests were right all along.José Valim2010-03-281-4/+4
|
* Ruby's marshaling of Time instances doesn't respect the zone [#4282 ↵Santiago Pastorino2010-03-271-2/+2
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Limit Array#extract_options! to directl instances of Hash and HWIA. Add ↵wycats2010-03-271-0/+34
| | | | extractable_options? to Hash so that subclasses of Hash can opt-into extractable behavior. This fixes an issue where respond_with wasn't working with subclasses of Hash that were provided by other libraries (such as CouchDB or Mashie) [#4145 state:resolved]
* fixing inconsistency with cattr_reader and matter_reader [#4172 state:resolved]Kabari Hendrick2010-03-272-1/+13
| | | Signed-off-by: wycats <wycats@gmail.com>
* Add support for a type=binary with an optional encoding=base64. If the ↵Josh Franklin2010-03-261-1/+3
| | | | | | encoding attribute is absent, the data is considered unencoded. [#2966 state:resolved]
* Remove test ordering bugEvan Phoenix2010-03-221-8/+14
| | | | | Don't reuse classes with class attributes when testing different use cases of class attributes.
* Singleton classes returns parent's methods with instance_methods(false) and ↵José Valim2010-03-191-0/+14
| | | | this makes remove_method in Module#delegate fail. Add a test case and fix the bug.
* Fix some more warnings on 1.9wycats2010-03-171-1/+1
|
* Be sure to pass through args to to_yamlJeremy Kemper2010-03-111-1/+1
|
* OutputBuffer#to_yaml should return string yaml, not some custom class dumpJeremy Kemper2010-03-111-0/+4
|
* class_attribute gets instance methods which delegate to but may override ↵Jeremy Kemper2010-03-081-10/+25
| | | | their class values as you'd expect. Disable instance writer methods with :instance_writer => false.
* no more interpreted as grouped expression warnings on array_ext_testSantiago Pastorino2010-02-261-2/+2
|
* metaclass deprecated in 2.3.6Jeremy Kemper2010-02-251-7/+0
|
* Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice.Jeremy Kemper2010-02-251-6/+10
|
* Fix streaming by having it create a File object, which can be handled by ↵Carlhuda2010-02-231-0/+4
| | | | Rack servers as appropriate
* Fix test ordering bug related to introducing masked Name classYehuda Katz2010-02-191-14/+6
|
* Clear the attribute after doneYehuda Katz2010-02-161-0/+2
|
* moves Class#reachable? to Module#reachable?, bases implementation on ↵Xavier Noria2010-02-111-0/+41
| | | | anonymous? and constantize, and adds test coverage
* defines Module#anonymous?Xavier Noria2010-02-111-0/+14
|
* Reinstate Object.subclasses_of and Class#descendents for plugin compat.Jeremy Kemper2010-02-092-0/+79
| | | | This reverts commits 7d312e54bad9c39634c137caec07dfc8df471650, 5f981ff0294ba45aa44ad15aa063970b29aeec44, f85f5dfc8ffefff174b695c6363211d342f77a57, 245bfafe335ff883f7a096eab95ac22fe2848679, and ec7c642f5fe60afc857aa64f1a9b4c2be56f9d70
* removes Module#as_load_path, which is no longer usedXavier Noria2010-02-071-5/+0
|
* removes Module#included_in_classes, which is no longer usedXavier Noria2010-02-071-7/+0
|
* Fixed html_safe test cases which weren't testing correctlySantiago Pastorino and José Ignacio Costa2010-02-051-17/+20
| | | | | | [#3845 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Introduce class_attribute to declare inheritable class attributes. Writing ↵Jeremy Kemper2010-02-011-0/+47
| | | | an attribute on a subclass behaves just like overriding the superclass reader method. Unifies and replaces most usage of cattr_accessor, class_inheritable_attribute, superclass_delegating_attribute, and extlib_inheritable_attribute.
* For performance reasons, you can no longer call html_safe! on Strings. ↵Yehuda Katz2010-01-311-33/+34
| | | | | | | | | | | | Instead, all Strings are always not html_safe?. Instead, you can get a SafeBuffer from a String by calling #html_safe, which will SafeBuffer.new(self). * Additionally, instead of doing concat("</form>".html_safe), you can do safe_concat("</form>"), which will skip both the flag set, and the flag check. * For the first pass, I converted virtually all #html_safe!s to #html_safe, and the tests pass. A further optimization would be to try to use #safe_concat as much as possible, reducing the performance impact if we know up front that a String is safe.
* superclass_delegating_accessor rewritten to serve as the base for many other ↵Yehuda Katz2010-01-291-34/+0
| | | | kinds of accessors (step 1 of unification)
* Ensure test sets json time format flagJeremy Kemper2010-01-281-1/+4
|
* Time#- with a DateTime argument behaves the same as with a Time argument, ↵Geoff Buesing2010-01-271-0/+4
| | | | i.e. returns the difference between self and arg as a Float [#3476 status:resolved]
* Merge remote branch 'fxn/master'Jeremy Kemper2010-01-262-140/+0
|\
| * removes Object#extended_byXavier Noria2010-01-261-7/+0
| |
| * removes unused method Object#extend_with_included_modules_fromXavier Noria2010-01-261-15/+0
| |
| * deletes no void files removal.rb and class_test.rbXavier Noria2010-01-262-21/+0
| |
| * removes unused method Class#remove_classXavier Noria2010-01-261-17/+0
| |
| * removes unused Object#subclasses_ofXavier Noria2010-01-261-49/+0
| |
| * removes unused Class#remove_subclassesXavier Noria2010-01-261-21/+0
| |
| * removes unused method Class#subclassesXavier Noria2010-01-261-10/+0
| |
* | Remove deprecated behavior since 2.3.José Valim and Mikel Lindsaar2010-01-241-17/+1
| |
* | Add uniq_by and uniq_by! to Array.José Valim and Mikel Lindsaar2010-01-241-3/+23
|/
* Stop overriding LoadError.new to return a MissingSourceError (and sometimes ↵Yehuda Katz2010-01-191-0/+15
| | | | nil!)
* Use backtrace cleaner for dev mode exception pageJoshua Peek2010-01-161-69/+0
|
* Remove unneeded reliance on super -> method_missing quirkJeremy Kemper2010-01-071-0/+25
|
* Let Integer#multiple_of? accept zero as argumentXavier Noria2010-01-021-0/+5
| | | | | | [#2982 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fixed some bugs and fixed some tests in new SAX-based XmlMini backends.Willem van Bergen2010-01-011-3/+5
| | | | | | [#3636 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Added Object#presence that returns the object if it's #present? otherwise ↵David Heinemeier Hansson2009-12-271-2/+7
| | | | returns nil [DHH/Colin Kelley]
* String#exclude? core extension: inverse of #include?Jeremy Kemper2009-12-271-0/+7
|
* String#<< should work for any object which responds to :to_str, so enable ↵José Valim2009-12-261-0/+24
| | | | this without the performance hit and make Fixnum safe by default.
* Add test for TimeWithZone#to_i with wrapped DateTimeGeoff Buesing2009-12-151-0/+6
|
* Added #to_i to DateTime in ActiveSupport so #to_yaml works correctly on ↵Serguei Filimonov2009-12-151-0/+4
| | | | ActiveRecord models with DateTime attributes.
* Add Enumerable#exclude? to bring parity to Enumerable#include? and avoid if ↵David Heinemeier Hansson2009-12-141-0/+5
| | | | !x.include?/else calls [DHH]