Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reorder deep_symbolize_keys methods | Mark McSpadden | 2012-05-25 | 1 | -7/+7 |
| | |||||
* | Fix Range#sum optimized version | Alexey Vakhov | 2012-05-25 | 1 | -2/+6 |
| | | | | | | | | | | | | | | | | | | | | | | 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 test | Carlos Antonio da Silva | 2012-05-24 | 1 | -0/+2 |
| | |||||
* | Add Hash#deep_transform_keys and Hash#deep_transform_keys! Also convert ↵ | Mark McSpadden | 2012-05-23 | 1 | -17/+26 |
| | | | | deep_*_keys to use deep_transform_keys. | ||||
* | Adding deep versions of stringify_keys and symbolize_keys (plain and bang) ↵ | Lucas Húngaro | 2012-05-23 | 1 | -0/+44 |
| | | | | for nested hashes | ||||
* | Add Hash#transform_keys and Hash#transform_keys! and refactor *_keys methods ↵ | Mark McSpadden | 2012-05-23 | 1 | -18/+25 |
| | | | | to use them. | ||||
* | changed xml type datetime to dateTime, fixes #6328 | Angelo capilleri | 2012-05-23 | 1 | -2/+2 |
| | | | | | | | | | 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 | ||||
* | Add instance_accessor option to class_attribute | Alexey Vakhov | 2012-05-22 | 1 | -2/+4 |
| | |||||
* | Improve docs for `try` by adding note on `BasicObject` | Piotr Sarnacki | 2012-05-20 | 1 | -0/+4 |
| | | | | [ci skip] closes #5790 | ||||
* | Merge pull request #6376 from jgaskins/timestamp-microseconds | Jeremy Kemper | 2012-05-18 | 1 | -0/+1 |
|\ | | | | | Increase numeric-timestamp precision to nanoseconds | ||||
| * | Increase `AR#cache_key` precision to nanoseconds | Jamie Gaskins | 2012-05-19 | 1 | -0/+1 |
| | | |||||
* | | Merge pull request #6183 from nashby/fix-issue-6179 | Jeremy Kemper | 2012-05-18 | 1 | -4/+4 |
|\ \ | | | | | | | wrap time ranges with timezones | ||||
| * | | respect nsec in TimeWithZone | Vasiliy Ermolovich + Sergey Nartimov | 2012-05-18 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | | | doesn't modify params in SafeBuffer#% | Vasiliy Ermolovich | 2012-05-18 | 1 | -3/+1 |
| |/ |/| | |||||
* | | Fix documentation around duplicable regarding Class and Module. | Mark McSpadden | 2012-05-17 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-05-17 | 1 | -5/+4 |
|\ \ | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/core.rb | ||||
| * | | copy edit and remove nodoc on instance_values method [ci skip] | Vijay Dev | 2012-05-17 | 1 | -4/+4 |
| | | | |||||
| * | | removing 1.8 reference | Francesco Rodriguez | 2012-05-16 | 1 | -3/+2 |
| | | | |||||
* | | | Remove special cases for duplicable? on Class and Module | Mark McSpadden | 2012-05-17 | 1 | -24/+0 |
| | | | |||||
* | | | Revert "Merge pull request #6354 from lest/patch-1" | Carlos Galdino + Rafael Mendonça França | 2012-05-16 | 2 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | | This reverts commit e8feaff60b9c04d34ad234f7d17b5d2ad9cc7a24, reversing changes made to 9adf28c026070afb78b80027521a4ddddd68d697. Reason: This broke the actionmailer tests | ||||
* | | | remove unnecessary require | Sergey Nartimov | 2012-05-16 | 2 | -4/+0 |
| | | | | | | | | | | | | | | | - access & filters don't use multibyte ext - transliterate requires only AS::Multibyte but not multibyte ext | ||||
* | | | fix safe string interpolation with SafeBuffer#%, closes #6352 | Vasiliy Ermolovich | 2012-05-16 | 1 | -0/+14 |
| | | | |||||
* | | | remove backported string interpolation | Vasiliy Ermolovich | 2012-05-15 | 2 | -3/+0 |
|/ / | |||||
* | | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-05-15 | 13 | -24/+44 |
|\ \ | | | | | | | | | | | | | Conflicts: actionpack/lib/action_view/helpers/asset_tag_helper.rb | ||||
| * | | missing dot [ci skip] | Vijay Dev | 2012-05-15 | 1 | -1/+1 |
| | | | |||||
| * | | adding examples to deep_dup method | Francesco Rodriguez | 2012-05-14 | 1 | -1/+23 |
| | | | |||||
| * | | removing unnecessary 'examples' noise from activesupport | Francesco Rodriguez | 2012-05-13 | 9 | -16/+3 |
| | | | |||||
| * | | Fixing Hash#stringify_keys docs | Francesco Rodriguez | 2012-05-13 | 1 | -1/+1 |
| | | | |||||
| * | | marking self in Hash#symbolize_keys! | Francesco Rodriguez | 2012-05-13 | 1 | -1/+1 |
| | | | |||||
| * | | added example to Hash#symbolize_keys | Francesco Rodriguez | 2012-05-13 | 1 | -2/+5 |
| | | | |||||
| * | | unnecessary 'examples' noise in Hash#assert_valid_keys docs | Francesco Rodriguez | 2012-05-13 | 1 | -1/+0 |
| | | | |||||
| * | | added example to Hash#stringify_keys | Francesco Rodriguez | 2012-05-13 | 1 | -1/+5 |
| | | | |||||
| * | | adding examples to Hash#deep_merge method | Francesco Rodriguez | 2012-05-13 | 1 | -2/+7 |
| | | | |||||
| * | | Update docs to public_send for Object#try | Oscar Del Ben | 2012-05-13 | 1 | -1/+1 |
| | | | |||||
| * | | update docs on Object#try | Vasiliy Ermolovich | 2012-05-13 | 1 | -1/+1 |
| | | | |||||
* | | | Remove blockless_step leave all that up to Ruby | Santiago Pastorino | 2012-05-13 | 2 | -14/+0 |
|/ / | | | | | | | Closes #6297 | ||||
* | | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-05-12 | 8 | -13/+93 |
|\ \ | | | | | | | | | | | | | Conflicts: activesupport/lib/active_support/callbacks.rb | ||||
| * | | fix incorrect example [ci skip] | Vijay Dev | 2012-05-12 | 1 | -1/+1 |
| | | | |||||
| * | | remove docs related to ruby 1.8 from Array#wrap | Vasiliy Ermolovich | 2012-05-12 | 1 | -3/+0 |
| | | | |||||
| * | | added examples to Integer#multiple_of? | Francesco Rodriguez | 2012-05-11 | 1 | -0/+4 |
| | | | |||||
| * | | removing trailing spaces | Francesco Rodriguez | 2012-05-11 | 1 | -3/+3 |
| | | | |||||
| * | | added docs to String#to_datetime | Francesco Rodriguez | 2012-05-11 | 1 | -0/+6 |
| | | | |||||
| * | | added docs to String#to_date | Francesco Rodriguez | 2012-05-11 | 1 | -0/+6 |
| | | | |||||
| * | | added examples to String#exclude? | Francesco Rodriguez | 2012-05-11 | 1 | -1/+6 |
| | | | |||||
| * | | remove unnecessary 'examples' noise | Francesco Rodriguez | 2012-05-11 | 3 | -9/+0 |
| | | | |||||
| * | | fix String#last example | Francesco Rodriguez | 2012-05-11 | 1 | -1/+1 |
| | | | |||||
| * | | fix String#last example | Francesco Rodriguez | 2012-05-11 | 1 | -1/+1 |
| | | | |||||
| * | | added docs to String#last | Francesco Rodriguez | 2012-05-11 | 1 | -0/+10 |
| | | | |||||
| * | | improve String#first docs | Francesco Rodriguez | 2012-05-11 | 1 | -4/+3 |
| | | | |||||
| * | | fix typo in String#first | Francesco Rodriguez | 2012-05-11 | 1 | -1/+1 |
| | | |