Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Trifling typos | Raphomet | 2010-08-21 | 1 | -2/+2 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | to_sentence should return a duplicate | Matthew Mongeau | 2010-08-17 | 1 | -0/+5 |
| | |||||
* | Class Attribute setter returns set value | Peter Wagenet | 2010-08-16 | 1 | -0/+5 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 19 | -100/+100 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | adds test coverage to ensure DateTime#advance processes first the date ↵ | Xavier Noria | 2010-08-05 | 1 | -12/+19 |
| | | | | deltas, and then the time deltas | ||||
* | adds test coverage for edge-cases of Array.wrap, and better documentation ↵ | Xavier Noria | 2010-07-28 | 1 | -0/+20 |
| | | | | for how it differs from Kernel#Array | ||||
* | Removes unused vars | Santiago Pastorino | 2010-07-24 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | These tests are trusting in the order of the elements so use OrderedHash ↵ | Santiago Pastorino | 2010-07-21 | 1 | -2/+3 |
| | | | | instead of Hash | ||||
* | Test Hash#to_param escapes keys and values | Santiago Pastorino | 2010-07-22 | 1 | -0/+4 |
| | | | | [#5175] | ||||
* | Hash#to_param is doesn't use sort anymore, some tests added for Hash#to_param | Santiago Pastorino | 2010-07-22 | 1 | -0/+25 |
| | |||||
* | Don't rely on implementation-specific order-dependence of array comparisons ↵ | Nick Sieger | 2010-07-17 | 1 | -4/+5 |
| | | | | | | in unit tests Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Define a convention for descendants and subclasses. | José Valim | 2010-07-05 | 2 | -70/+19 |
| | | | | | | The former should be symmetric with ancestors and include all children. However, it should not include self since ancestors + descendants should not have duplicated. The latter is symmetric to superclass in the sense it only includes direct children. By adopting a convention, we expect to have less conflict with other frameworks, as Datamapper. For this moment, to ensure ActiveModel::Validations can be used with Datamapper, we should always call ActiveSupport::DescendantsTracker.descendants(self) internally instead of self.descendants avoiding conflicts. | ||||
* | Don't store incorrect values in zones_map | Santiago Pastorino | 2010-06-28 | 1 | -3/+1 |
| | | | | | | [#4942 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Added getbyte as a core_ext to Ruby < 1.9 | Santiago Pastorino | 2010-06-27 | 1 | -0/+8 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | when the timezone is nil, a TimeWithZone object should not be constructed. ↵ | Aaron Patterson | 2010-06-17 | 1 | -0/+7 |
| | | | | | | [#4881 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Date#since, #ago, #beginning_of_day, #end_of_day, #xmlschema return ↵ | Geoff Buesing | 2010-06-12 | 1 | -1/+50 |
| | | | | | | TimeWithZone when Time.zone_default is set Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | Remove String#constantize deps | Jeremy Kemper | 2010-06-11 | 1 | -7/+8 |
| | |||||
* | Merge remote branch 'rsim/oracle_enhanced_rails3' | wycats | 2010-06-07 | 1 | -2/+2 |
|\ | |||||
| * | fix conditions when DateTime#to_date and DateTime#xmlschema methods are defined | Raimonds Simanovskis | 2010-06-04 | 1 | -2/+2 |
| | | |||||
* | | oops, two cancelling errors made a previous test pass, fixing it | Xavier Noria | 2010-06-07 | 1 | -1/+1 |
| | | |||||
* | | the order in which we apply deltas in Date#advance matters, add test ↵ | Xavier Noria | 2010-06-07 | 1 | -0/+10 |
| | | | | | | | | coverage for that | ||||
* | | removes Array#random_element and backports Array#sample from Ruby 1.9, ↵ | Xavier Noria | 2010-06-05 | 1 | -7/+23 |
|/ | | | | thanks to Marc-Andre Lafortune | ||||
* | Extracted String#truncate from TextHelper#truncate [DHH] | David Heinemeier Hansson | 2010-06-01 | 1 | -0/+29 |
| | |||||
* | Fix test incorrectly using a bare assert to use assert_kind_of | Santiago Pastorino | 2010-05-24 | 1 | -1/+1 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Use multibyte proxy class on 1.9, refactor Unicode. | Norman Clarke | 2010-05-21 | 1 | -5/+3 |
| | | | | | | | | | | Makes String#mb_chars on Ruby 1.9 return an instance of ActiveSupport::Multibyte::Chars to work around 1.9's lack of Unicode case folding. Refactors class methods from ActiveSupport::Multibyte::Chars into new Unicode module, adding other related functionality for consistency. [#4594 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | 1.day should respond_to kind_of too | Neeraj Singh | 2010-05-21 | 1 | -0/+1 |
| | | | | | | [#4656 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Final iteration of use better testing methods | Neeraj Singh | 2010-05-19 | 10 | -39/+39 |
| | | | | | | [#4652 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | removes deprecations of last_(month|year) from master, they will be ↵ | Xavier Noria | 2010-05-19 | 2 | -16/+0 |
| | | | | deprecated in 2.3 instead | ||||
* | Renames Array#rand -> Array#random_element | Rizwan Reza | 2010-05-17 | 1 | -4/+0 |
| | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | Revert "Moved encoding work in progress to a feature branch." | wycats | 2010-05-17 | 1 | -0/+8 |
| | | | | This reverts commit ade756fe42423033bae8e5aea8f58782f7a6c517. | ||||
* | Moved encoding work in progress to a feature branch. | Jeremy Kemper | 2010-05-16 | 1 | -8/+0 |
| | | | | This reverts commits af0d1a88157942c6e6398dbf73891cff1e152405 and 64d109e3539ad600f58536d3ecabd2f87b67fd1c. | ||||
* | Change on Array extension from rand => random_element [#4555 state:committed] | Santiago Pastorino | 2010-05-16 | 1 | -4/+8 |
| | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | Initial work to improve the state of encodings for templates | wycats | 2010-05-16 | 1 | -0/+8 |
| | |||||
* | defines prev_(month|year) in Date and Time to ease transition to 1.9, and ↵ | Xavier Noria | 2010-05-12 | 3 | -18/+34 |
| | | | | deprecates last_(month|year) | ||||
* | adds calendar reform test coverage for more relevant date calculations | Xavier Noria | 2010-05-09 | 1 | -1/+14 |
| | |||||
* | Backports Date#>> from 1.9 so that calculations do the right thing around ↵ | Xavier Noria | 2010-05-09 | 1 | -0/+27 |
| | | | | | | | | | | the calendar reform Our next_month gives November for some late dates in September of 1582. Related methods, last_*, and in general advance have the same issues. This commit fixes those, see the test suite for expected behavior, which we still run in 1.9 to ensure it matches as we do with other methods defined in Date in 1.9. | ||||
* | add test coverage for (last|next)_year on leap years | Xavier Noria | 2010-05-08 | 1 | -0/+8 |
| | |||||
* | let Time.time_with_datetime_fallback handle properly years in the range 0..138 | Xavier Noria | 2010-05-05 | 3 | -1/+19 |
| | |||||
* | adds test coverage for Date.current vs Date.today in ↵ | Xavier Noria | 2010-05-03 | 1 | -1/+45 |
| | | | | Date.(yesterday|tomorrow) implementation | ||||
* | revises tests for Date.yesterday and Date.tomorrow | Xavier Noria | 2010-05-02 | 1 | -3/+3 |
| | |||||
* | array.to_xml should be able to handle all types of data elements [#4490 ↵ | Neeraj Singh | 2010-04-29 | 1 | -5/+5 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Use explicit source encoding rather than forced UTF-8 from US-ASCII. | Santiago Pastorino | 2010-04-26 | 1 | -1/+1 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Change HWIA#stringify_keys to return a HWIA not a Hash | Jeremy Kemper | 2010-04-22 | 1 | -0/+3 |
| | |||||
* | Restore HWIA#stringify_keys! and update changelog | Jeremy Kemper | 2010-04-22 | 1 | -3/+3 |
| | |||||
* | HWIA delegates to to_hash symbolize_keys and stringify_keys and bang methods ↵ | Santiago Pastorino | 2010-04-22 | 1 | -2/+36 |
| | | | | | | are not in the api Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | updates String#to_(date|date_time|time) to return nil for blank strings | Daniel Neighman | 2010-04-21 | 1 | -3/+6 |
| | |||||
* | Switch to TimezoneProxy for later support of deferred TZ loading | Jeremy Kemper | 2010-04-20 | 1 | -2/+5 |
| | |||||
* | removes code written for Ruby < 1.8.7 | Xavier Noria | 2010-04-17 | 1 | -12/+0 |
| | |||||
* | moves Object#singleton_class to Kernel#singleton_class to match Ruby also ↵ | Xavier Noria | 2010-04-05 | 2 | -5/+11 |
| | | | | there, same for #class_eval to simplify, and adds coverage for class_eval | ||||
* | Fix class_attribute so that it works with singleton classes. | Carl Lerche | 2010-04-01 | 1 | -0/+6 |
| |