Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Backport thread-local variables from Ruby 2.0 | Rafael Mendonça França | 2012-12-11 | 1 | -0/+77 |
| | |||||
* | Deprecate obsolete Time to DateTime fallback methods | Andrew White | 2012-12-11 | 4 | -29/+41 |
| | | | | | | | The Time.time_with_datetime_fallback, Time.utc_time and Time.local_time methods were added to handle the limitations of Ruby's native Time implementation. Those limitations no longer apply so we are deprecating them in 4.0 and they will be removed in 4.1. | ||||
* | Beef up tests for String#in_time_zone and Date#in_time_zone | Andrew White | 2012-12-11 | 2 | -18/+128 |
| | |||||
* | Deprecate Date#to_time_in_current_zone | Andrew White | 2012-12-11 | 1 | -0/+8 |
| | | | | | | | | | | | | | The to_time_in_current_zone method doesn't match the naming of the methods for converting to ActiveSupport::TimeWithZone on Time and DateTime. Since DateTime inherits from Date that has led to confusion with some users using the to_time_in_current_zone method with DateTime instances and having the time part dropped and the UTC offset lost. This commit fixes this by deprecating the old method and adding a new in_time_zone method which matches the naming for DateTime and Time. This should prevent accidently dropping times and UTC offsets when converting DateTime instances to ActiveSupport::TimeWithZone. | ||||
* | Add String#in_time_zone method | Andrew White | 2012-12-11 | 1 | -24/+44 |
| | | | | | | This commit adds a convenience method for converting a string to an ActiveSupport::TimeWithZone instance using the configured Time.zone or another passed as an argument. | ||||
* | Rename ActiveSupport::BasicObject to ActiveSupport::ProxyObject | Francesco Rodriguez | 2012-12-07 | 1 | -2/+2 |
| | | | | | AS::BasicObject is used for proxy classes. Let's give it a less concerning name. Also, it avoids the confusion with Ruby's Basic Object. | ||||
* | silence warning: possibly useless use of a constant in void context | kennyj | 2012-12-06 | 1 | -3/+7 |
| | |||||
* | Merge pull request #8393 from frodsan/fix_dependend_order_test_example | Carlos Antonio da Silva | 2012-12-03 | 1 | -0/+3 |
|\ | | | | | Ensure original encoding does not change in mb_chars test. | ||||
| * | ensure original encoding doesnt change | Francesco Rodriguez | 2012-12-01 | 1 | -0/+3 |
| | | |||||
* | | Only take the date parts from Time.zone.now | Andrew White | 2012-12-01 | 1 | -0/+7 |
|/ | | | | | | | When there are missing components in the Hash returned by Date._parse only the date components should default to the value of Time.zone.now, the time components should all default to zero. | ||||
* | Patched Marshal#load to work with constant autoloading ↵ | Uriel Katz | 2012-12-01 | 4 | -19/+195 |
| | | | | (active_support/dependecies.rb) (issue #8167) | ||||
* | Make `Time.zone.parse` to work with JavaScript date strings | Andrew White | 2012-12-01 | 1 | -14/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Chrome, Safari and Firefox serialize Date objects to strings such as 'Mon May 28 2012 00:00:00 GMT-0700 (PDT)'. When these strings are parsed the zone is interpreted as 'GMT-0700' which doesn't exist in the TzInfo list of timezones. By taking advantage of the improved date/time handling in 1.9.3 we can use `Date._parse` and the `:offset` value which is parsed correctly. Three tests were amended to make them pass: 1. test_parse_with_old_date This needed changing to a different value because the original value was before EST was adopted so was being changed to a LMT (Local Mean Time) value after the change. It didn't before because `DateTime` just has offsets from UTC not timezones. 2. test_parse_should_not_black_out_system_timezone_dst_jump Changed the implementation of this test as the stubs were dependent on internal implementation details of the test. Confirmed that the modified test still failed when the implementation of `parse` was restored to pre-#5571. 3. test_parse_should_black_out_app_timezone_dst_jump Ditto. Closes #5770. | ||||
* | Add #seconds_until_end_of_day to DateTime and Time | Olek Janiszewski | 2012-11-29 | 2 | -0/+56 |
| | |||||
* | Simplify String#mb_chars and stop proxying #class | Steve Klabnik | 2012-11-28 | 1 | -1/+4 |
| | | | | | | | | This behavior mattered under Ruby 1.8, but that doesn't matter now that we don't support it. In addition, we don't want to proxy the #class method. A test was added to prevent against regressions. | ||||
* | prevent Dependencies#remove_const from autoloading parents [fixes #8301] | Xavier Noria | 2012-11-28 | 1 | -0/+10 |
| | |||||
* | Properly deprecate #pending from AS::TestCase | Carlos Antonio da Silva | 2012-11-18 | 1 | -0/+6 |
| | | | | Check https://github.com/rails/rails/pull/4575#issuecomment-5765575. | ||||
* | Use Integer#div instead of Integer#/ to avoid side effects from mathn | Marc-Andre Lafortune | 2012-11-16 | 1 | -0/+8 |
| | |||||
* | Merge pull request #8112 from rails/encrypted_cookies | Santiago Pastorino | 2012-11-15 | 1 | -1/+1 |
|\ | | | | | Encrypted cookies | ||||
| * | Add cookie.encrypted which returns an EncryptedCookieJar | Santiago Pastorino | 2012-11-03 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | How to use it? cookies.encrypted[:discount] = 45 => Set-Cookie: discount=ZS9ZZ1R4cG1pcUJ1bm80anhQang3dz09LS1mbDZDSU5scGdOT3ltQ2dTdlhSdWpRPT0%3D--ab54663c9f4e3bc340c790d6d2b71e92f5b60315; path=/ cookies.encrypted[:discount] => 45 | ||||
* | | Merge pull request #8219 from nikitug/threadsafe_xmlmini_with_backend | Rafael Mendonça França | 2012-11-15 | 1 | -0/+62 |
|\ \ | | | | | | | | | | | | | | | | | | | Make XmlMini.with_backend usable with threads Conflicts: activesupport/CHANGELOG.md | ||||
| * | | Make XmlMini.with_backend usable with threads | Nikita Afanasenko | 2012-11-15 | 1 | -0/+62 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `XmlMini.with_backend` now may be safely used with threads: Thread.new do XmlMini.with_backend("REXML") { rexml_power } end Thread.new do XmlMini.with_backend("LibXML") { libxml_power } end Each thread will use it's own backend. | ||||
* | | | let remove_constant still delete Kernel#autoload constants [rounds #8213] | Xavier Noria | 2012-11-15 | 1 | -2/+2 |
|/ / | | | | | | | | | The method #remove_const does not load the file, so we can still remove the constant. | ||||
* | | dependencies no longer trigger Kernel#autoload in remove_const [fixes #8213] | Xavier Noria | 2012-11-15 | 2 | -0/+11 |
| | | |||||
* | | backporting Struct#to_h from ruby 2.0 | Aaron Patterson | 2012-11-13 | 1 | -0/+10 |
| | | |||||
* | | `#as_json` isolates options when encoding a hash. Closes #8182 | Yves Senn | 2012-11-12 | 1 | -0/+18 |
| | | | | | | | | | | | | Setting options in a custom `#as_json` method had side effects. Modifications of the `options` hash leaked outside and influenced the conversion of other objects contained in the hash. | ||||
* | | Test Hash#diff deprecation, also prevent deprecation message in AS tests | Nikita Afanasenko | 2012-11-11 | 1 | -1/+3 |
| | | |||||
* | | Merge pull request #7763 from route/full-capture | Carlos Antonio da Silva | 2012-11-08 | 1 | -0/+2 |
|\ \ | | | | | | | Kernel#capture replaced by version which can catch output from subprocesses | ||||
| * | | Kernel#capture replaced by version which can catch output from subprocesses | Dmitry Vorotilin | 2012-11-01 | 1 | -0/+2 |
| |/ | |||||
* | | cleaning up constantize tests | Aaron Patterson | 2012-11-07 | 1 | -44/+44 |
| | | |||||
* | | Make the tests pass with minitest 4.2 | Rafael Mendonça França | 2012-11-05 | 1 | -0/+3 |
| | | |||||
* | | Fix typo in test name | Carlos Antonio da Silva | 2012-11-04 | 2 | -3/+2 |
|/ | |||||
* | Make caller attribute in deprecation methods optional | Alexey Gaziev | 2012-10-30 | 1 | -1/+1 |
| | |||||
* | Fix some assert_raise calls containing messages in Active Support | Carlos Antonio da Silva | 2012-10-28 | 2 | -7/+15 |
| | |||||
* | Fix queueing tests that should be consuming the queue rather than draining it | Jeremy Kemper | 2012-10-26 | 1 | -3/+9 |
| | |||||
* | Job worker thread logs failed jobs too | Jeremy Kemper | 2012-10-26 | 1 | -1/+1 |
| | |||||
* | Job worker thread logs to stderr if no logger is provided | Jeremy Kemper | 2012-10-26 | 1 | -0/+12 |
| | |||||
* | Implement replace method so key? works correctly. | David Graham | 2012-10-26 | 1 | -0/+12 |
| | |||||
* | make the cache test more @tenderlove(ing) and not depend on internal ↵ | Noah Hendrix | 2012-10-23 | 1 | -2/+7 |
| | | | | implentation | ||||
* | pass the key to the block in cache.fetch on misses | Noah Hendrix | 2012-10-23 | 1 | -2/+7 |
| | |||||
* | fix assertions | Aaron Patterson | 2012-10-18 | 1 | -2/+2 |
| | |||||
* | Make DescendantsTracker thread safe and optimize the #descendants method. | thedarkone | 2012-10-18 | 2 | -11/+17 |
| | |||||
* | some ruby interpreters don't have ruby-prof so just skip the tests | Aaron Patterson | 2012-10-18 | 1 | -3/+12 |
| | | | | rather than exiting the process. | ||||
* | Revert "remove unnecessary object/conversions file" | Xavier Noria | 2012-10-16 | 2 | -0/+2 |
| | | | | | | | This file is used at least by Active Merchant, its existence is maybe not necessary but no big deal either. This reverts commit ae9b3d7cecd77b9ace38671b183e1a360bf632b6. | ||||
* | Remove the queue container. Premature consolidation. Set up and maintain ↵ | Jeremy Kemper | 2012-10-12 | 1 | -28/+0 |
| | | | | queues in the classes that use them instead. | ||||
* | Merge pull request #7007 from Mik-die/hash_extract | Rafael Mendonça França | 2012-10-12 | 1 | -1/+25 |
|\ | | | | | make Hash#extract! more symmetric with Hash#slice | ||||
| * | add more testcases and doc about Hash#extract! | Mikhail Dieterle | 2012-10-08 | 1 | -2/+9 |
| | | |||||
| * | make Hash#extract! more symmetric with Hash#slice | Mikhail Dieterle | 2012-10-08 | 1 | -0/+17 |
| | | |||||
* | | Move the TestQueue tests to the proper file | Rafael Mendonça França | 2012-10-12 | 1 | -0/+44 |
| | | |||||
* | | Cleanup trailing whitespaces | dfens | 2012-10-12 | 1 | -1/+1 |
| | | |||||
* | | adding a test for b21f24d9807bd161af947cf0f0cc440c9adffb73 | Aaron Patterson | 2012-10-11 | 1 | -0/+14 |
| | |