Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update test name to the corresponding method name | Sebastian Martinez | 2011-04-12 | 1 | -1/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵ | David Heinemeier Hansson | 2011-04-12 | 1 | -3/+3 |
| | | | | suggestion! | ||||
* | Add support for Object#in? and Object#either? in Active Support [#6321 ↵ | Prem Sichanugrist, Brian Morearty, John Reitano | 2011-04-11 | 1 | -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 Kalderimis | 2011-04-05 | 1 | -0/+18 |
| | | | | | | use find_zone! as well as adding Railtie tests Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Raise on invalid timezone | Marc-Andre Lafortune | 2011-04-05 | 1 | -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 Patterson | 2011-03-07 | 1 | -9/+4 |
| | | | | of Time.now does nothing | ||||
* | reverted tests deleted by 080345baca1076a9788d, refactored implementations ↵ | Diego Carrion | 2011-03-04 | 1 | -3/+13 |
| | | | | | | should not invalidate the validations Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | updated Time, Date and DateTime current methods in AS to use Time.zone and ↵ | Josh Kalderimis | 2011-02-28 | 5 | -37/+38 |
| | | | | | | not Time.zone_default. [#6410 state:committed] | ||||
* | added Range#count? for Ruby 1.8 | Diego Carrion | 2011-02-19 | 1 | -0/+12 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Remove unused line in test setup. | Ben Orenstein | 2011-02-17 | 1 | -1/+0 |
| | | | | | | [#6442 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Remove unused code. | Ben Orenstein | 2011-02-16 | 1 | -3/+0 |
| | | | | | | [#6437 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Add Date#rfc3339 and Date#iso8601 to AS | Santiago Pastorino | 2011-02-13 | 1 | -0/+10 |
| | |||||
* | Removed Array#safe_join in AS core_ext and moved it to a view helper with ↵ | Josh Kalderimis | 2011-02-10 | 1 | -44/+0 |
| | | | | | | the same same. This also changes how safe_join works, if items or the separator are not html_safe they are html_escape'd, a html_safe string is always returned. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Revert "Removed Array#safe_join in AS core_ext and moved it to a view helper ↵ | José Valim | 2011-02-10 | 1 | -0/+44 |
| | | | | | | | | with the same same." Applied the wrong version. This reverts commit 98c0c5db50a7679b3d58769ac22cb0a27a62c930. | ||||
* | Removed Array#safe_join in AS core_ext and moved it to a view helper with ↵ | Josh Kalderimis | 2011-02-10 | 1 | -44/+0 |
| | | | | the same same. | ||||
* | Corrected the html_safe implementation for Array. Moved the html safe ↵ | Josh Kalderimis | 2011-02-10 | 1 | -13/+13 |
| | | | | version of join to its own method (safe_join) as not to degrade the performance of join for unrelated html_safe use. [#6298 state:resolved] | ||||
* | Initial html_safe implemention for Array | Paul Hieromnimon | 2011-02-10 | 1 | -0/+44 |
| | |||||
* | Ruby 1.8.7+ provides to_date/to_datetime, AS just makes them public. | John Firebaugh | 2011-02-03 | 1 | -13/+3 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Preserve fractional seconds in DateTime#to_time | John Firebaugh | 2011-02-03 | 1 | -0/+2 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | prefering psych as the yaml parser if possible, fixing assertions for YAML ↵ | Aaron Patterson | 2011-01-21 | 1 | -2/+2 |
| | | | | 1.1 compatibility | ||||
* | fixing psych support in big decimal, fixing tests to support YAML 1.1 | Aaron Patterson | 2011-01-21 | 1 | -4/+4 |
| | |||||
* | Fixed various isolated test missing requires within AS. | Josh Kalderimis | 2011-01-12 | 2 | -2/+5 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | adding to_d to BigDecimal | Aaron Patterson | 2011-01-10 | 1 | -1/+6 |
| | |||||
* | make our yaml output consistent | Aaron Patterson | 2011-01-04 | 1 | -1/+1 |
| | |||||
* | Fix Duration#to_json | Pratik Naik | 2010-12-29 | 1 | -0/+5 |
| | |||||
* | Fix activesupport tests. These classes are not used anywhere | Piotr Sarnacki | 2010-12-22 | 1 | -12/+0 |
| | |||||
* | Only convert direct hash instances in hash with indifferent access. | José Valim | 2010-11-26 | 1 | -0/+8 |
| | |||||
* | Don't depend on rubygems loading thread (for Mutex) | raggi | 2010-11-25 | 1 | -0/+1 |
| | |||||
* | class inheritable attributes is used no more! all internal use of class ↵ | Josh Kalderimis | 2010-11-20 | 1 | -0/+5 |
| | | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | removes orphan tests, custom String#% was removed from AS in 39d6f9e | Xavier Noria | 2010-11-19 | 1 | -69/+0 |
| | |||||
* | Revert "Quick fix for not escaping []s (not ideal)" | Santiago Pastorino | 2010-11-18 | 1 | -4/+4 |
| | | | | | | | | | According to http://www.ietf.org/rfc/rfc2616.txt and http://tools.ietf.org/rfc/rfc3986.txt [ and ] are reserved characters and should be escaped using "%" HEX HEX This reverts commit 856d2fd874d72dd9f83204affff4edfef3308361 and 1ee9b40b18a0bed5bb10a0785f7e2730bac983f6.. | ||||
* | Add support for try to just yield the object to a block if no method is to ↵ | raggi | 2010-11-14 | 1 | -0/+10 |
| | | | | be called. Kind of like a tap_if_present. | ||||
* | HashWithIndifferentAccess should not change the subclass of an array | Larry Sprock | 2010-11-14 | 1 | -0/+17 |
| | |||||
* | Merge remote branch 'drogus/plugin_new' | José Valim | 2010-11-11 | 1 | -0/+15 |
|\ | | | | | | | | | Conflicts: railties/test/generators/app_generator_test.rb | ||||
| * | Added Hash#deep_dup function which performs deep duplication on given hash | Piotr Sarnacki | 2010-11-02 | 1 | -0/+15 |
| | | |||||
* | | Fix ActiveSupport::TimeWithZone#localtime method with DateTime | Alvaro Bautista | 2010-11-11 | 1 | -0/+11 |
| | | | | | | | | | | | | [#5344 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | | Remove unused method | Santiago Pastorino | 2010-11-10 | 1 | -31/+0 |
| | | |||||
* | | Remove useless cgi | Denis Odorcic | 2010-11-10 | 1 | -15/+0 |
| | | | | | | | | | | | | [#5943 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | | Ensure that HashWithIndifferentAccess duplication preserves class (for ↵ | laserlemon | 2010-11-07 | 1 | -1/+14 |
| | | | | | | | | | | | | sublclasses) and default value [#5724 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | | Allowing to_xml :camelize option to be set to :lower to enable ↵ | Jeremy Holland | 2010-11-03 | 1 | -1/+8 |
|/ | | | | lower-camelcase tags [#5903 state:resolved] | ||||
* | implements weeks_ago and prev_week for Date/DateTime/Time [#5122 ↵ | Rob Zolkos & Xavier Noria | 2010-10-16 | 3 | -0/+50 |
| | | | | state:committed] | ||||
* | Override #store to be consistent with #[]. | Andrea Campi | 2010-10-10 | 1 | -0/+10 |
| | | | | | | [#5775 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | let Hash#to_param and Hash#to_query sort again | Xavier Noria | 2010-09-28 | 1 | -3/+7 |
| | | | | | This was a regression introduced in 5c858220085dc4ddc1bec496747059dfbe32f1da. We bring sorting back because people rely on it, eg for constructing consistent cache keys. | ||||
* | Make assert_valid_keys slightly faster. | thedarkone | 2010-09-27 | 1 | -1/+1 |
| | |||||
* | attr_accessor_with_default should raise an ArgumentError not a RuntimeError | Aaron Patterson | 2010-09-24 | 1 | -1/+1 |
| | |||||
* | Exception handling more readable | Thiago Pradi | 2010-09-19 | 1 | -2/+2 |
| | | | | | | [#5601 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Use `Time.current` to maintain consistency with AS::Duration | Prem Sichanugrist | 2010-09-19 | 1 | -0/+38 |
| | | | | | | | | | | In [32b82e4c6f5523cdf5ee78c3022c50b46e018351], the committer has switch methods in AS::Duration to use `Time.current` to return the correct duration based on the `Time.default_zone` instead of using `Time.now`. [#5607 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Move capture to Kernel. [#5641 state:resolved] | Krekoten' Marjan | 2010-09-18 | 1 | -0/+5 |
| | |||||
* | delegate method should treat :prefix => false same as :prefix => nil | Neeraj Singh | 2010-09-01 | 1 | -0/+13 |
| | | | | | | [#5375 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Make ActiveSupport::Duration#method_missing delegate blocks to value [#5498 ↵ | Krekoten' Marjan | 2010-09-01 | 1 | -0/+8 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> |