aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
Commit message (Collapse)AuthorAgeFilesLines
* JRuby return different Array for module contents.Arun Agrawal2012-05-291-1/+1
| | | | | Test was failing against JRuby. It loads like [Constant3 Constant1]
* Merge pull request #6525 from freerange/minitest-passthrough-exceptionsJosé Valim2012-05-292-8/+62
|\ | | | | 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-282-8/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-282-4/+44
| |
* | 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.
* Fix handling of negative zero in number_to_currencyJared Beck2012-05-282-1/+3
|
* Moving NumberHelpers from ActionView to ActiveSupportAndrew Mutz2012-05-279-2/+1417
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-05-272-14/+32
|\
| * update Module#mattr_accessor documentation [ci skip]Francesco Rodriguez2012-05-261-6/+6
| |
| * update Hash documentation with 1.9 syntax [ci skip]Francesco Rodriguez2012-05-261-8/+16
| |
| * add examples to Hash#deep_stringify_keys and Hash#deep_symbolize_keys [ci skip]Francesco Rodriguez2012-05-261-0/+10
| |
* | Update the documentation and add CHANGELOG entryRafael Mendonça França2012-05-261-1/+1
| |
* | Truncate now has the ability to receive a html option that allows it to call ↵Li Ellis Gallardo2012-05-261-0/+4
|/ | | | | | | | | | | | rails helpers. This way if my text is long I don't have to do something like this: .text = truncate(@text, :length => 27) if @text.size >= 27 = link_to "continue", notes_path, ....."")
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-05-264-13/+16
|\
| * Fix unbalanced braces in Hash#typecast_xml_value internal commentAlexey Vakhov2012-05-251-1/+1
| |
| * Clean Date#beginning_of_month descriptionAlexey Vakhov2012-05-251-1/+1
| | | | | | | | | | Unnecessary peace of text was injected at 507da04a149b44e20c5a0ba72a218fe1762b6baf by mistake.
| * Update examples of Array #in_groups and #in_groups_ofAlexey Vakhov2012-05-251-10/+13
| | | | | | | | | | Examples should be not square to visually underline a difference between Array#in_groups and Array#in_groups_of.
| * Fix ActiveSupport Cache decrement method descriptionAlexey Vakhov2012-05-251-1/+1
| |
* | Reorder deep_symbolize_keys methodsMark McSpadden2012-05-251-7/+7
| |
* | Fix Range#sum optimized versionAlexey Vakhov2012-05-252-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At 1bd4d1c67459a91415ee73a8f55d2309c0d62a87 was added Range#sum optimized version for arithmetic progressions. This improvment injected a defect with not integer range boundaries. The defect was fixed by e0adfa82c05f9c975005f102b4bcaebfcd17d241. The second commit really disabled optimization at all because in Ruby integer-valued numbers are instances of Fixnum and Bignum classes. We should #use is_a? (#kind_of?) method instead #instance_of? to check if value is numerical: 1.class # => Fixnum 1.instance_of?(Integer) # => false 1.is_a?(Integer) # => true -100_000_000_000.class # => Bignum -100_000_000_000.instance_of?(Integer) # => false -100_000_000_000.is_a?(Integer) # => true Moreover original implementation of Range#sum has a defect with reverse range boundaries. If the first boundary is less than the second range is empty. Current commit fixes and tests this case too.
* | Add missing requires for deep_dup and hash ext testCarlos Antonio da Silva2012-05-242-0/+3
| |
* | Use deep_dup in the deep_transform_keys tests.Rafael Mendonça França2012-05-241-20/+98
| | | | | | | | | | | | | | | | Using only dup make some tests to not catch up an implementation error because the methods were changing the nested hashes. Related to: https://github.com/rails/rails/commit/541429fbe49b0671adb3842ab1818230d670ef9f#L1R96
* | Merge pull request #6466 from markmcspadden/hash_deep_transform_keysRafael Mendonça França2012-05-233-19/+43
|\ \ | |/ |/| Add Hash#deep_transform_keys and Hash#deep_transform_keys! Also convert ...
| * Add Hash#deep_transform_keys and Hash#deep_transform_keys! Also convert ↵Mark McSpadden2012-05-233-19/+43
| | | | | | | | deep_*_keys to use deep_transform_keys.
* | Merge pull request #6462 from grosser/feature/licensesJosé Valim2012-05-231-0/+1
|\ \ | |/ |/| Add license field to gemspecs, by Matt Griffin
| * Add license field to gemspecs, by Matt GriffinMatt Griffin2012-05-231-0/+1
| |
* | Adding deep versions of stringify_keys and symbolize_keys (plain and bang) ↵Lucas Húngaro2012-05-234-1/+145
|/ | | | for nested hashes
* Add Hash#transform_keys and Hash#transform_keys! and refactor *_keys methods ↵Mark McSpadden2012-05-233-18/+42
| | | | to use them.
* changed xml type datetime to dateTime, fixes #6328Angelo capilleri2012-05-234-8/+11
| | | | | | | | | XmlMini define the xml 'datatime', but according to http://www.w3.org/TR/xmlschema-2/#dateTime could be better change this to 'dateTime' with upper case letter 'T. So 'DateTime' and 'Time' are redefined from 'datetime' to 'dateTime' add the changing to the changelog
* Fix the buildSantiago Pastorino2012-05-221-0/+1
|
* require active_support/lazy_load_hooks where is neededSantiago Pastorino2012-05-222-1/+1
|
* refactor lazy_load_hooks load positionJan Xie2012-05-222-1/+1
|
* remove useless requireJan Xie2012-05-221-1/+0
|
* Merge pull request #5125 from winston/log_exception_when_cache_read_failsMichael Koziarski2012-05-212-1/+11
|\ | | | | #read_entry in ActiveSupport::Cache::FileStore should log details of the exception when an exception is thrown
| * #read_entry in ActiveSupport::Cache::FileStore should log details of the ↵Winston2012-02-222-1/+11
| | | | | | | | exception when an exception is thrown.
* | Add instance_accessor option to class_attributeAlexey Vakhov2012-05-223-2/+13
| |
* | Improve docs for `try` by adding note on `BasicObject`Piotr Sarnacki2012-05-201-0/+4
| | | | | | | | [ci skip] closes #5790
* | Don't use assert_block method. It will be deprecated.kennyj2012-05-201-1/+1
| |
* | Fix warning: shadowing outer local variable - constant.kennyj2012-05-191-3/+3
| |
* | Add CHANGELOG entry for constantize - closes #6165.Andrew White2012-05-191-0/+2
| |
* | Handle case where ancestor is not the end of the chainAndrew White2012-05-192-7/+14
| |
* | Fix constantize so top level constants are looked up properly.Marc-Andre Lafortune2012-05-192-1/+19
| |
* | Make constantize look down the ancestor chain (excluding Object)Marc-Andre Lafortune2012-05-192-1/+30
| |
* | Merge pull request #6376 from jgaskins/timestamp-microsecondsJeremy Kemper2012-05-182-1/+4
|\ \ | | | | | | Increase numeric-timestamp precision to nanoseconds
| * | Increase `AR#cache_key` precision to nanosecondsJamie Gaskins2012-05-192-1/+4
| | |
* | | Merge pull request #6183 from nashby/fix-issue-6179Jeremy Kemper2012-05-185-40/+65
|\ \ \ | | | | | | | | wrap time ranges with timezones
| * | | respect nsec in TimeWithZoneVasiliy Ermolovich + Sergey Nartimov2012-05-185-40/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when we pass fractional usec to Time methods we should use Rational instead of Float because of accuracy problem Time.local(2011,6,12,23,59,59,999999.999).nsec # => 999999998 Time.local(2011,6,12,23,59,59,Rational(999999999, 1000)).nsec # => 999999999