aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
...
* add deprecations for a smooth transition after #22215Michael Grosser2015-11-191-0/+9
|
* Use proper syntax for class method reference.Tyler Hunt2015-11-161-1/+1
|
* normalizes spacing in a CHANGELOG [ci skip]Xavier Noria2015-11-111-6/+6
|
* Add days_in_year methodJon Pascoe2015-11-111-3/+8
|
* registers these changes in the CHANGELOGsXavier Noria2015-11-111-0/+11
|
* Parameterize with options to preserve case of stringSwaathi K2015-11-071-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | Added test cases Using kwargs instead of three seperate functions Updated parameterize in transliterate.rb Updated parameterize in transliterate.rb Added deprecation warnings and updating RDoc+Guide Misspelled separtor. Fixed. Deprecated test cases and added support to parameterize with keyword parameters Squashing commits. Fixed test cases and added deprecated test cases Small changes to Gemfile.lock and CHANGELOG Update Gemfile.lock
* Merge pull request #16357 from gchan/hwia-respects-to-hash-defaultSean Griffin2015-10-291-0/+6
|\ | | | | | | | | `HashWithIndifferentAccess.new` respects the default value or proc on objects that respond to `#to_hash`
| * `HashWithIndifferentAccess.new` respects the default value or proc on ↵Gordon Chan2014-07-311-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | objects that respond to `#to_hash`. Builds on the work of #12550 where `.new` will convert the object (that respond to `#to_hash`) to a hash and add that hash's keys and values to itself. This change will also make `.new` respect the default value or proc of objects that respond to `#to_hash`. In other words, this `.new` behaves exactly like `.new_from_hash_copying_default`. `.new_from_hash_copying_default` now simply invokes `.new` and any references to `.new_from_hash_copying_default` are replaced with `.new`. Added tests confirm behavior.
* | Change Integer#year to return a Fixnum instead of a Float to improve consistencyKonstantinos Rousis2015-10-221-0/+16
| |
* | Merge pull request #19992 from greysteil/handle-invalid-utf8-in-html-escapeSean Griffin2015-10-201-0/+9
|\ \ | | | | | | | | | Handle invalid UTF-8 strings when HTML escaping
| * | Handle invalid UTF-8 strings when HTML escapingGrey Baker2015-06-081-0/+9
| | | | | | | | | | | | | | | | | | | | | Use `ActiveSupport::Multibyte::Unicode.tidy_bytes` to handle invalid UTF-8 strings in `ERB::Util.unwrapped_html_escape` and `ERB::Util.html_escape_once`. Prevents user-entered input passed from a querystring into a form field from causing invalid byte sequence errors.
* | | Update #20737 to address feedbackSean Griffin2015-10-201-0/+5
| | | | | | | | | | | | | | | | | | | | | Given that this pull request affects a mutable value, we need to test for and document the affects on the receiver in this case. Additionally, this pull request was missing a CHANGELOG entry.
* | | Merge pull request #20872 from maxjacobson/more-humane-roundingSean Griffin2015-10-201-0/+5
|\ \ \ | | | | | | | | | | | | Round some numbers more humanely
| * | | Update the changelog for #20872 to be a bit less confusingSean Griffin2015-10-201-2/+2
| | | |
| * | | Round some numbers more humanelyMax Jacobson2015-07-261-0/+5
| | | | | | | | | | | | | | | | Fix #20869
* | | | Merge pull request #21953 from bdunne/fix_dep_warnMatthew Draper2015-10-171-0/+5
| | | | | | | | | | | | | | | | Fix deprecation warning messages on deprecate_methods
* | | | Merge pull request #21631 from RobinClowers/fix-cache-instrumentationJeremy Daer2015-10-091-0/+4
|\ \ \ \ | | | | | | | | | | | | | | | Fix cache fetch instrumentation
* | | | | Refactor AS::Callbacks halt config and fix the documentationRoque Pinel2015-10-011-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move from `AS::Callbacks::CallbackChain.halt_and_display_warning_on_return_false` to `AS::Callbacks.halt_and_display_warning_on_return_false` base on [this discussion](https://github.com/rails/rails/pull/21218#discussion_r39354580) Fix the documentation broken by 0a120a818d413c64ff9867125f0b03788fc306f8
* | | | | Make `assert_difference` return the result of the yielded block.Lucas Mazza2015-09-241-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this we can perform new assertions on the returned value without having to cache it with an outer variable or wrapping all subsequent assertions inside the `assert_difference` block. Before: ``` post = nil assert_difference -> { Post.count }, 1 do Post.create end assert_predicate post, :persisted? ``` Now: ``` post = assert_difference -> { Post.count } do Post.create end assert_predicate post, :persisted? ```
* | | | | Fix the AS::Callbacks terminator regression from 4.2.3Roque Pinel2015-09-221-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rails 4.2.3 AS::Callbacks will not halt chain if `false` is returned. That is the behavior of specific callbacks like AR::Callbacks and AM::Callbacks.
* | | | | Short-circuit `blank?` on date and time valuesAndrew White2015-09-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The concept of a blank date or time doesn't make sense so we can short circuit the calls for `blank?` on these classes to gain small speed boost. Fixes #21657
* | | | | Replaced `ThreadSafe::Map` with successor `Concurrent::Map`.Jerry D'Antonio2015-09-191-0/+5
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | The thread_safe gem is being deprecated and all its code has been merged into the concurrent-ruby gem. The new class, Concurrent::Map, is exactly the same as its predecessor except for fixes to two bugs discovered during the merge.
* | | | Update Unicode Version to 8.0.0Anshul Sharma2015-09-041-0/+4
| | | |
* | | | No need CHANGELOG entry for #21421 [ci skip]Rafael Mendonça França2015-09-011-6/+0
| | | |
* | | | ArrayInquirer to correctly find symbols or stringsLeigh Halliday2015-08-281-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem existed where if your ArrayInquirer values were strings but you checked them using any? with a symbol, it would not find the value. Now it will correctly check whether both the String form or the Symbol form are included in the Array. `
* | | | - Extracted `DELIMITED_REGEX` to `delimited_regex` method and made use of ↵Vipul A M2015-08-281-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | user passed `options[:delimited_regex]` if available. Changed `DELIMITED_REGEX` to `DEFAULT)DELIMITED_REGEX` to signify what it means. - Added tests for number to delimited and number to currency in both actionview and activesupport. Changes Changes
* | | | Deprecate :si prefix in number_to_human_size without replacementJean Boussier2015-08-101-0/+4
|/ / /
* | | Fix `TimeWithZone#eql?` to handle `TimeWithZone` created from `DateTime`Roque Pinel2015-07-191-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before: ```ruby twz = DateTime.now.in_time_zone twz.eql?(twz.dup) => false ``` Now: ```ruby twz = DateTime.now.in_time_zone twz.eql?(twz.dup) => true ``` Please notice that this fix the `TimeWithZone` comparison to itself, not to `DateTime`. Based on #3725, `DateTime` should not be equal to `TimeWithZone`.
* | | ActiveSupport::HashWithIndifferentAccess select and reject should return ↵Bernard Potocki2015-07-171-0/+7
| | | | | | | | | | | | enumerator if called without block
* | | Replaced `ActiveSupport::Concurrency::Latch` with concurrent-ruby.Jerry D'Antonio2015-07-131-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The concurrent-ruby gem is a toolset containing many concurrency utilities. Many of these utilities include runtime-specific optimizations when possible. Rather than clutter the Rails codebase with concurrency utilities separate from the core task, such tools can be superseded by similar tools in the more specialized gem. This commit replaces `ActiveSupport::Concurrency::Latch` with `Concurrent::CountDownLatch`, which is functionally equivalent.
* | | fix class name typo [ci skip]yuuji.yaginuma2015-07-111-1/+1
| | |
* | | active_support/indifferent_hash: dont raise on to_hash when default_proc raisesSimon Eskildsen2015-07-101-0/+5
| | |
* | | active_support/indifferent_hash: fix cloning default_proc on dupSimon Eskildsen2015-07-101-0/+4
|/ /
* | Code fix in CHANGELOGAditya Sanghi2015-06-081-1/+1
| | | | | | :nail: remove extraneous bracket
* | Fix a range of values for parameters of the Time#changeNikolay Kondratyev2015-06-011-0/+4
| | | | | | | | | | Passing 999999000 < `:nsec` < 999999999 and 999999 < `:usec` < 1000000 to change a time with utc_offset doesn't throw an `ArgumentError`.
* | Add Enumerable#pluck.Kevin Deisz2015-05-281-0/+7
| | | | | | | | Allows fetching the same values from arrays as from ActiveRecord associations.
* | Merge pull request #20208 from gaurish/raise_on_missing_ordered_optionsRafael Mendonça França2015-05-261-0/+17
|\ \ | | | | | | | | | Add bang version to OrderedOptions
| * | Add bang version to OrderedOptionsGaurish Sharma2015-05-231-0/+15
| | | | | | | | | | | | | | | | | | By: Aditya Sanghi(@asanghi) Gaurish Sharma(gaurish)
* | | Merge pull request #16938 from akshay-vishnoi/remove-depricationYves Senn2015-05-261-0/+5
|\ \ \ | |/ / |/| | | | | Remove `.superclass_delegating_accessor`.
| * | Remove `.superclass_delegating_accessor`. Refer #14271Akshay Vishnoi2015-05-241-0/+4
|/ /
* | add missing punctuation in changelog. [ci skip]Yves Senn2015-05-201-2/+2
| |
* | Patch `Delegator` to work with `#try`Nate Smith2015-05-191-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | `Delegator` inherits from `BasicObject`, which means that it will not have `Object#try` defined. It will then delegate the call to the underlying object, which will not (necessarily) respond to the method defined in the enclosing `Delegator`. This patches `Delegator` with the `#try` method to work around the surprising behaviour. Fixes #5790
* | Fix typos is CHANGELOG [ci skip]karanarora2015-05-191-8/+8
| |
* | Pass over CHANGELOGS [ci skip]Prathamesh Sonpatki2015-05-161-3/+5
| |
* | Add Integer#positive? and Integer#negative? query methods in the vein of ↵David Heinemeier Hansson2015-05-131-0/+5
| | | | | | | | Fixnum#zero?
* | Improve ActiveSupport::TimeWithZone conversion to YAMLAndrew White2015-04-221-0/+6
| | | | | | | | | | | | | | | | | | | | | | Previously when converting AS::TimeWithZone to YAML it would be output as a UTC timestamp. Whilst this preserves the time information accurately it loses the timezone information. This commit changes that so that it is saved along with the time information. It also provides nicer encoding of AS::TimeZone instances themselves which previously embedded all of the data from the TZInfo records. Fixes #9183.
* | Add ActiveSupport::TimeZone#strptime.Paul A Jungwirth2015-04-221-0/+5
| | | | | | | | This makes it easier to parse user-inputted times as from a given time zone.
* | pass over CHANGELOGs. [ci skip]Yves Senn2015-04-221-1/+2
| |
* | Raise ArgumentError if an unrecognised callback is skippedIain Beeston2015-04-031-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | At present, if you skip a callback that hasn't been defined, activesupport callbacks silently does nothing. However, it's easy to mistype the name of a callback and mistakenly think that it's being skipped, when it is not. This problem even exists in the current test suite. CallbacksTest::SkipCallbacksTest#test_skip_person attempts to skip callbacks that were never set up. This PR changes `skip_callback` to raise an `ArgumentError` if the specified callback cannot be found.
* | Revert "Remove Array#inquiry"Rafael Mendonça França2015-03-301-1/+4
| | | | | | | | | | | | This reverts commit 9420de59f5b7f5ceac77e28e6c326ec145f71f80. Reason: Turns out we want to keep this method.