aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #17383 from rwz/string-removeRafael Mendonça França2014-11-031-0/+4
|\ | | | | | | | | | | | | Make `String#remove` and `String#remove!` accept multiple arguments Conflicts: activesupport/CHANGELOG.md
| * Make `String#remove` and `String#remove!` accept multiple argumentsPavel Pravosud2014-10-251-0/+4
| |
* | Optimize TimeWithZoneTest#strftimePablo Herrero2014-10-271-0/+5
|/
* Update CHANGELOG and release notes for e98f2a7Godfrey Chan2014-10-221-2/+2
|
* some changelog formatting. [ci skip]Yves Senn2014-10-161-8/+8
|
* Merge pull request #14146 from chewi/fix-underscore-acronyms-regexMatthew Draper2014-10-041-0/+4
| | | | Fix underscore inflector handling of namespaced and adjacent acronyms
* fixes typo in AS CHANGELOG [ci skip]Xavier Noria2014-09-291-2/+2
| | | | References f92ac24.
* Delegation works with reserved words passed to `:to`Agis-2014-09-191-0/+6
| | | | Fixes #16956.
* Merge pull request #16950 from akshay-vishnoi/docs-rails-4point2Abdelkader Boudih2014-09-171-4/+4
|\ | | | | Grammar correction in ActiveSupport CHANGELOG [ci skip]
| * Grammar correction in ActiveSupport CHANGELOG [ci skip]Akshay Vishnoi2014-09-181-4/+4
| |
* | Merge pull request #16948 from akshay-vishnoi/docs-rails-4point2Rafael Mendonça França2014-09-171-20/+20
|\| | | | | [ci skip] ActiveSupport CHANGELOG fixes
| * [ci skip] ActiveSupport CHANGELOG fixesAkshay Vishnoi2014-09-181-20/+20
| | | | | | | | | | | | | | 1. spacing issues 2. spelling correction 3. grammar correction 4. Add missing docs
* | Merge pull request #11794 from yoazt/duration-eqlRafael Mendonça França2014-09-171-0/+15
|\ \ | |/ |/| | | | | | | | | | | | | Added method `#eql?` to `ActiveSupport::Duration`, in addition to `#==`. Conflicts: activesupport/CHANGELOG.md activesupport/lib/active_support/duration.rb activesupport/test/core_ext/duration_test.rb
| * Added method `#eql?` to `ActiveSupport::Duration`, in addition to `#==`.Joost Lubach2013-08-071-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently, the following returns `false`, contrary to expectation: 1.minute.eql?(1.minute) Adding method `#eql?` will make this behave like expected. Method `#eql?` is just a bit stricter than `#==`, as it checks whether the argument is also a uration. Their parts may be different though. 1.minute.eql?(60.seconds) # => true 1.minute.eql?(60) # => false
* | Time#change can now change nanoseconds (:nsec)Agis-2014-09-141-0/+5
| | | | | | | | Closes #16392.
* | MessageVerifier raises an appropriate exception if the secret is nilKostiantyn Kahanskyi2014-09-121-0/+5
| | | | | | | | | | Otherwise this will lead to another error later on when generating a signature: TypeError (no implicit conversion of nil into String).
* | Default to sorting user's test cases for nowGodfrey Chan2014-09-081-6/+6
| | | | | | | | | | | | | | | | | | | | | | Goals: 1. Default to :random for newly generated applications 2. Default to :sorted for existing applications with a warning 3. Only show the warning once 4. Only show the warning if the app actually uses AS::TestCase Fixes #16769
* | Fix for inflector's incorrect camelCase replacement for acronymsMatthew Draper2014-09-061-0/+7
| | | | | | | | | | | | Fixes #8015, #9756. [Fred Wu & Matthew Draper]
* | Time#change throws exception with an out-of-range :usecAgis-2014-09-041-0/+5
| | | | | | | | | | | | | | | | | | | | https://github.com/rails/rails/commit/98b46bf5e201307cae56ee14bf41363a539779c5 did not properly handled out-of-range `:usec`s. Passing a `:usec` that's out of range now throws an `ArgumentError` as it should. Fixes #16759.
* | Methods are not duplicable.Peter Jaros2014-09-031-0/+5
| |
* | Merge pull request #16450 from ↵Yves Senn2014-09-021-0/+7
|\ \ | | | | | | | | | | | | | | | tgxworld/dont_swallow_error_when_identifying_constant_from_test_name Do not swallow exception on NameError within constant.
* | | remove trailing whitespace. [ci skip]Yves Senn2014-09-021-2/+2
|/ /
* | We tenderized the wrong method! Object#try already had the yield option, ↵David Heinemeier Hansson2014-08-291-9/+4
| | | | | | | | just needed some tenderloving instance_eval to fit the bill
* | Use instance_eval on @tenderlove's suggestion :trollface:David Heinemeier Hansson2014-08-291-1/+1
| |
* | Update examples to show real worthDavid Heinemeier Hansson2014-08-291-1/+10
| |
* | Added yield to Object#presenceDavid Heinemeier Hansson2014-08-291-0/+6
| |
* | Follow-up to #16560Robin Dupret2014-08-241-2/+3
| | | | | | | | | | | | | | For the sake of backward-compatibility, we need to make #instance_of? return true for Fixnum. On the other hand, the method should still give true for ActiveSupport::Duration itself which was not the case before.
* | Define the Duration#instance_of? methodRobin Dupret2014-08-181-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Since Duration is extending from ProxyObject which extends itself from BasicObject, the Duration object doesn't respond to the #instance_of? method. Thus, the #method_missing hook get triggered, delegating the method to its `value` attribute. However, Rubinius' #eql? definition relies on #instance_of?, thus this will equal to true with a Fixnum (since its `value` attribute is a Fixnum) while it should not. The previous behavior was wrong anyway, no matter the implementation.
* | Fix rounding errors with #travel_to by resetting the usec on any passed time ↵David Heinemeier Hansson2014-08-171-0/+5
| | | | | | | | to zero, so we only travel with per-second precision, not anything deeper than that.
* | Nobody sucks so nobody should call this awful method nameRafael Mendonça França2014-08-121-1/+1
| |
* | CHANGELOG entry for TestCase.i_suck_and_my_tests_are_order_dependent! fixAkira Matsuda2014-08-121-0/+6
| |
* | Fix DateTime comparison with DateTime::Infinity objectRafael Mendonça França2014-08-061-0/+4
| | | | | | | | Fixes #16406
* | Fix AS docs / changelog with wrong method [ci skip]Carlos Antonio da Silva2014-08-051-2/+2
| |
* | Rename Object#self to Object#itself to have parity with matz sanctioned ↵David Heinemeier Hansson2014-08-011-2/+2
| | | | | | | | method name for Ruby 2.2
* | Added Object#self which returns the object itselfDavid Heinemeier Hansson2014-08-011-0/+6
| |
* | Add implicit receiver support to `Object#with_options`Pavel Pravosud2014-07-291-0/+5
| |
* | Fixed a compatibility issue with the `Oj` gemGodfrey Chan2014-07-291-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | `Time#as_json`, `Date#as_json` and `DateTime#as_json` incorrectly depends on a delegation that is set up in `active_support/json/encoding`. We cannot simply require that file in `core_ext/object/json` because it would cause a circular dependency problem (see #12203 for background). We should instead rely on AS's autoload to load that file for us on-demand. To trigger autoload correctly, we need to reference the `AS::JSON::Encoding` constant instead of using the delegated version. Fixes #16131.
* | Make HWIA copy the default proc too.Arthur Neves2014-07-241-0/+4
| | | | | | | | [fixes #16279]
* | Merge pull request #16190 from oss92/word_truncationMatthew Draper2014-07-171-0/+4
|\ \ | | | | | | | | | Word truncation
| * | Added truncate_words method to activesupport stringsroot2014-07-161-0/+4
|/ /
* | Move uuid_v5 and uuid_v3 to Digest::UUIDRafael Mendonça França2014-07-151-1/+1
| | | | | | | | | | These methods are not random so they should not belings to SecureRandom module.
* | Add CHANGELOG entry for #13392 [ci skip]Rafael Mendonça França2014-07-151-0/+7
| |
* | `DateTime#to_f` now preserves fractional seconds.John Paul Ashenfelter2014-07-021-0/+7
| | | | | | | | | | | | | | Previously this method always returns `.0` in the fractional part. This commit changes it to preserve the fractional seconds instead. Fixes #15994.
* | Add `Hash#map_values` to ActiveSupportSean Griffin2014-06-291-0/+5
| | | | | | | | | | Didn't get a chance to convert existing code, I'll skim through the code base to make use of this later this afternoon.
* | Quick pass through Active Support and guides CHANGELOGRobin Dupret2014-06-291-0/+2
| | | | | | | | [ci skip]
* | Merge pull request #15943 from wagenet/cache-instrumentationRafael Mendonça França2014-06-271-0/+7
|\ \ | | | | | | | | | Always instrument ActiveSupport::Cache
* | | Make the apply_inflections method case-sensitiveRobin Dupret2014-06-261-4/+9
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since d3071db1, the apply_inflections method check if the downcased version of a string is contained inside the "whitelist" of uncountable words. However, if the word is composed of capital letters, it won't be matched in the list while it should. We can't simply revert to the previous behavior as there is a performance concern (benchmarked over /usr/share/dict/words): Before d3071db1 135.610000 0.290000 135.900000 (137.807081) Since d3071db1 22.170000 0.020000 22.190000 ( 22.530005) With the patch 22.060000 0.020000 22.080000 ( 22.125771) Benchmarked with http://git.io/aFnWig This way, the solution is to put the down-case version of words inside the @uncountables array.
* | Make dependencies.rb add a name to NameErrorArthur Neves2014-06-201-0/+3
| |
* | Formatting fix in AS changelog [ci skip]Juanjo Bazán2014-06-161-2/+5
| |
* | fix error with long keys in ActiveSupport::Cache::FileStoreAdam Panzer2014-06-101-0/+3
| |