• Hash#deep_transform_keys and Hash#deep_transform_keys! Now transform hashes in nested arrays. This change also applies to Hash#deep_stringify_keys, Hash#deep_stringify_keys!, Hash#deep_symbolize_keys and Hash#deep_symbolize_keys! OZAWA Sakuro • HashWithIndifferentAccess better respects #to_hash on objects it's given. In particular #update, #merge, #replace all accept objects which respond to #to_hash, even if those objects are not Hashes directly. Currently, if HashWithIndifferentAccess.new is given a non-Hash (even if it responds to #to_hash) that object is treated as the default value, rather than the initial keys and value. Changing that could break existing code, so it will be updated in 4.2. Peter Jaros June 23, 2014 June 16, 2014 May 27, 2014 May 06, 2014. • Disable the ability to iterate over Range of AS::TimeWithZone due to significant performance issues. Apr 30, 2010 can't activate activesupport (>= 2.2.3, runtime) for. That needs activesupport 2.0.2 But then metric_fu comes along and demands activesupport. I got Gem::InstallError: activesupport requires Ruby version >= 2.2.2. An error occurred while installing activesupport (5.0.0), and Bundler cannot continue. Make sure that `gem install activesupport -v '5.0.0'` succe. Bogdan Gusiev • Fix ActiveSupport::Cache::FileStore#cleanup to no longer rely on missing each_key method. Murray Steele • Ensure that autoloaded constants in all-caps nestings are marked as autoloaded. Simon Coffey • Adds a new deprecation behaviour that raises an exception. Throwing this line into config/environments/development.rb: ActiveSupport::Deprecation.behavior =:raise will cause the application to raise an ActiveSupport::DeprecationException on deprecations. Use this for aggressive deprecation cleanups. Xavier Noria • Improve ActiveSupport::Cache::MemoryStore cache size calculation. The memory used by a key/entry pair is calculated via #cached_size: def cached_size(key, entry) key.to_s.bytesize + entry.size + PER_ENTRY_OVERHEAD end The value of PER_ENTRY_OVERHEAD is 240 bytes based on an for 64-bit MRI on 1.9.3 and 2.0. Fixes #11512. Simeon Simeonov • Only raise Module::DelegationError if it's the source of the exception. Fixes #10559. • Add DateTime#usec and DateTime#nsec so that ActiveSupport::TimeWithZone keeps sub-second resolution when wrapping a DateTime value. Fixes #10855. Andrew White • Make Time.at_with_coercion retain the second fraction and return local time. Fixes #11350. Neer Friedman, Andrew White • Fix return value from BacktraceCleaner#noise when the cleaner is configured with multiple silencers. Fixes #11030. Titorenko • Fix ActiveSupport::Dependencies::Loadable#load_dependency calling #blame_file! On Exceptions that do not have the Blamable mixin Andrew Kreiling October 30, 2013 October 23, 2013 October 21, 2013 October 17, 2013 June 25, 2013. • Fix DateTime comparison with DateTime::Infinity object. Dan Kubb • Remove surrogate unicode character encoding from ActiveSupport::JSON.encode The encoding scheme was broken for unicode characters outside the basic multilingual plane; since json is assumed to be UTF-8, and we already force the encoding to UTF-8 simply pass through the un-encoded characters. Brett Carter • Fix mocha v0.13.0 compatibility. James Mead • #as_json isolates options when encoding a hash. [Backport #8185] Fix #8182 Yves Senn • Handle the possible Permission Denied errors atomic.rb might trigger due to its chown and chmod calls. [Backport #8027] Daniele Sluijters March 06, 2013 February 27, 2013 February 11, 2013. • ruby193: String#prepend is also unsafe Akira Matsuda • Fix obviously breakage of Time.=== for Time subclasses jeremyevans • Added fix so that file store does not raise an exception when cache dir does not exist yet. This can happen if a delete_matched is called before anything is saved in the cache. Philippe Huibonhoa • Fixed performance issue where TimeZone lookups would require tzinfo each time Tim Lucas • ActiveSupport::OrderedHash is now marked as extractable when using Array#extract_options! Prem Sichanugrist October 05, 2011 September 29, 2011 September 14, 2011 August 31, 2011. • ActiveSupport::Dependencies#load and ActiveSupport::Dependencies#require now return the value from super Aaron Patterson • Fixed ActiveSupport::Gzip to work properly in Ruby 1.8 Guillermo Iguaran • Kernel.require libraryor_gem was deprecated and will be removed in Rails 3.2.0 Josh Kalderimis • ActiveSupport::Duration#duplicable? Was fixed for Ruby 1.8 thedarkone • ActiveSupport::BufferedLogger set log encoding to BINARY, but still use text mode to output portable newlines. Fxn • ActiveSupport::Dependencies now raises NameError if it finds an existing constant in load missingconstant. This better reflects the nature of the error which is usually caused by calling constantize on a nested constant. Andrew White • Deprecated ActiveSupport::SecureRandom in favour of SecureRandom from the standard library Jon Leighton • New reporting method Kernel#quietly. Fxn • Add String#inquiry as a convenience method for turning a string into a StringInquirer object DHH • Add Object#in? To test if an object is included in another object Prem Sichanugrist, Brian Morearty, John Reitano • LocalCache strategy is now a real middleware class, not an anonymous class posing for pictures. • ActiveSupport::Dependencies::ClassCache class has been introduced for holding references to reloadable classes. • ActiveSupport::Dependencies::Reference has been refactored to take direct advantage of the new ClassCache. • Backports Range#cover? As an alias for Range#include? In Ruby 1.8 Diego Carrion, fxn • Added weeks ago and prevweek to Date/DateTime/Time. Rob Zolkos, fxn • Added before removeconst callback to ActiveSupport::Dependencies.remove unloadableconstants! Andrew White • JSON decoding now uses the multi_json gem which also vendors a json engine called OkJson. The yaml backend has been removed in favor of OkJson as a default engine for 1.8.x, while the built in 1.9.x json implementation will be used by default. Josh Kalderimis Please check for previous changes. August 29, 2011 August 16, 2011 July 25, 2011 June 09, 2011 June 08, 2011 June 07, 2011 May 21, 2011 May 04, 2011 January 28, 2013 January 08, 2013.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2018
Categories |