aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
Commit message (Collapse)AuthorAgeFilesLines
* need magic commentsAkira Matsuda2011-07-141-0/+2
|
* treat fullwidth whitespace as a blank characterAkira Matsuda2011-07-141-1/+1
|
* Fix xmlschema output with fraction_digits >0shtirlic2011-07-111-0/+7
| | | | | Current implementation produce incorrect output when Time#usec returns integer < 100000, because to_s doesn't add leading zeros.
* Merge pull request #1296 from c42engineering/issue636José Valim2011-07-111-0/+49
|\ | | | | Resubmitting issue #636 as a pull request
| * Issue #636 - Parsing an xml file with multiple records and extra attributes ↵Sidu Ponnappa2011-07-111-0/+49
| | | | | | | | (besides type) fails
* | Merge pull request #1463 from psanford/masterSantiago Pastorino2011-07-061-0/+1
|\ \ | | | | | | Fix timezone handling in String.to_time
| * | Make String.to_time respect timezonesNate Mueller2011-06-021-0/+1
| | |
* | | all numerics should be html_safe - Closes #1935Damien Mathieu2011-07-031-0/+4
| | |
* | | Merge pull request #1690 from vijaydev/mattr_accessor_changesJosé Valim2011-06-301-0/+7
|\ \ \ | | | | | | | | Added instance_accessor: false to Module#mattr_accessor
| * | | Added instance_accessor: false to Module#mattr_accessorVijay Dev2011-06-141-0/+7
| | | |
* | | | Array.wrap should follow Kernel#Array semantics when the object's to_ary is ↵Jon Leighton2011-06-301-2/+3
| | | | | | | | | | | | | | | | nil. In this case, the object should be wrapped.
* | | | Add option to omit creating an instance reader method on class_attributeJames Miller2011-06-181-0/+6
|/ / /
* | | Rename Time#whole_* to Time#all_* [thanks Pratik!]David Heinemeier Hansson2011-06-131-10/+10
| | |
* | | Added Time#whole_day/week/quarter/year as a way of generating ranges ↵David Heinemeier Hansson2011-06-131-0/+20
| | | | | | | | | | | | (example: Event.where(created_at: Time.now.whole_week)) [DHH]
* | | Added instance_accessor: false as an option to Class#cattr_accessor and ↵David Heinemeier Hansson2011-06-131-2/+9
| | | | | | | | | | | | friends [DHH]
* | | Define ActiveSupport#to_param as to_str - closes #1663Andrew White2011-06-121-1/+7
| | |
* | | Allow a Date to be frozen more than once without an error in Ruby 1.8.xBradley Buda2011-06-081-0/+6
|/ /
* / Removed deprecated methods and related tests from ActiveSupportJosh Kalderimis2011-05-252-269/+0
|/
* Removed the AS core_ext/kernel/debugger breakpoint method as this method is ↵Josh Kalderimis2011-05-231-3/+43
| | | | added by ruby-debug and should be left as is. Missing tests added.
* make sure missing method does not fail with argumentsdmathieu2011-05-221-0/+6
|
* don't raise NoMethodError the tried method doesn't existsdmathieu2011-05-211-1/+1
|
* Fix AS::Duration#duplicable? on 1.8thedarkone2011-05-211-1/+2
|
* Check for Module.new.dup as well in ↵Prakash Murthy2011-05-211-1/+1
| | | | https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/object/duplicable.rb
* Test that HWIA.with_indifferent_access does not return selfDavid Lee2011-05-171-0/+1
|
* Use dup to preserve previous behaviorDavid Lee2011-05-171-1/+1
|
* Optimize parts of HashWithIndifferentAccessDavid Lee2011-05-171-0/+5
|
* Deprecate attr_accessor_with_default.José Valim2011-05-161-4/+12
|
* indifferent access should recurse Hash subclassesDavid Lee2011-05-081-3/+12
| | | | | | | | | | | | | | This commit makes Hash subclasses convert to HWIA by default for nested objects of subclasses of Hash, but allows certain subclasses to prevent nested conversion by introducing Hash#nested_under_indifferent_access that subclasses can overwrite. ActiveSupport::OrderedHash is one such subclass that overwrites +nested_under_indifferent_access+, since implicitly converting it to HWIA would remove the ordering of keys and values in Ruby 1.8. This change is necessary because commit ce9456e broke nested indifferent access conversion for all subclasses of Hash.
* Revert "Merge pull request #275 from pk-amooma/master"José Valim2011-05-071-12/+0
| | | | | | | Several AP tests fail after this change. This reverts commit aaf01cd53718c8aa5b69ac056b997e6dd9893777, reversing changes made to 9cc18c52faeebaad6a76bd62cdca1c6b9f96afed.
* Merge pull request #286 from jasoncodes/marshal_subsecJosé Valim2011-05-071-0/+7
|\ | | | | Fix marshal round-tripping of fractional seconds (Time#subsec).
| * Fix marshal round-tripping of fractional seconds (Time#subsec).Jason Weathered2011-04-171-0/+7
| |
* | Merge pull request #275 from pk-amooma/masterJosé Valim2011-05-071-0/+12
|\ \ | | | | | | properly escape "'" to "'" for XML
| * | test "Escapes special HTML/XML characters" do ...Philipp Kempgen2011-04-261-0/+12
| | |
* | | Merge remote branch 'rolftimmermans/desc_tracker'José Valim2011-05-072-0/+2
|\ \ \
| * | | Add missing dependency string inflection test.Rolf Timmermans2011-03-131-0/+1
| | | |
| * | | Missing dependency for duration test.Rolf Timmermans2011-03-131-0/+1
| | | |
* | | | Fix bug with empty CDATA not being handled in Hash.from_xmlBradley Harris2011-04-291-2/+2
| | | |
* | | | Added test for empty CDATA bug in from_xmlBradley Harris2011-04-291-2/+8
| | | |
* | | | fixing Array#from to return consistent resultsJared McFarland2011-04-261-1/+1
| | | |
* | | | Add String#inquiry as a convenience method for turning a string into a ↵David Heinemeier Hansson2011-04-181-0/+5
| |_|/ |/| | | | | | | | StringInquirer object [DHH]
* | | Only rescue a thrown NoMethodError, don't preemptively check for #include?; ↵Jared McFarland2011-04-151-0/+4
| |/ |/| | | | | added tests
* | attributes no longer disappear if a tag contains whitespaceAndre Arko2011-04-141-0/+9
| | | | | | | | | | | | | | | | | | | | old: Hash.from_xml("<tag foo='bar'>\n</tag>") => {"tag"=>"\n"} new: Hash.from_xml("<tag foo='bar'>\n</tag>") => {"tag"=>{"foo"=>"bar", "__content__"=>"\n"}
* | Remove `#among?` from Active SupportPrem Sichanugrist2011-04-131-6/+0
| | | | | | | | | | | | After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now. It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
* | Update test name to the corresponding method nameSebastian Martinez2011-04-121-1/+1
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵David Heinemeier Hansson2011-04-121-3/+3
| | | | | | | | suggestion!
* | Add support for Object#in? and Object#either? in Active Support [#6321 ↵Prem Sichanugrist, Brian Morearty, John Reitano2011-04-111-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | state:committed] This will allow you to check if an object is included in another object or the list of objects or not. This patch is derived from patch by Brian Morearty and John Reitano on Lighthouse ticket. I've rewrite it and make sure that we support both 'another object' and 'list of objects' version, as it surely be useful to support both.
* | added find_zone and find_zone! to AS timezones and changed the AS Railtie to ↵Josh Kalderimis2011-04-051-0/+18
| | | | | | | | | | | | use find_zone! as well as adding Railtie tests Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Raise on invalid timezoneMarc-Andre Lafortune2011-04-051-5/+26
|/ | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* removing stubs. 1.9.3 implements Date.today in C so mocking the return value ↵Aaron Patterson2011-03-071-9/+4
| | | | of Time.now does nothing
* reverted tests deleted by 080345baca1076a9788d, refactored implementations ↵Diego Carrion2011-03-041-3/+13
| | | | | | should not invalidate the validations Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>