aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG
Commit message (Collapse)AuthorAgeFilesLines
...
* Extracted String#truncate from TextHelper#truncate [DHH]David Heinemeier Hansson2010-06-011-0/+2
|
* Use multibyte proxy class on 1.9, refactor Unicode.Norman Clarke2010-05-211-1/+3
| | | | | | | | | | Makes String#mb_chars on Ruby 1.9 return an instance of ActiveSupport::Multibyte::Chars to work around 1.9's lack of Unicode case folding. Refactors class methods from ActiveSupport::Multibyte::Chars into new Unicode module, adding other related functionality for consistency. [#4594 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* removes deprecations of last_(month|year) from master, they will be ↵Xavier Noria2010-05-191-1/+1
| | | | deprecated in 2.3 instead
* Renames Array#rand -> Array#random_elementRizwan Reza2010-05-171-0/+2
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* defines prev_(month|year) in Date and Time to ease transition to 1.9, and ↵Xavier Noria2010-05-121-0/+2
| | | | deprecates last_(month|year)
* aliases Date#sunday to Date#end_of_week, for symmetry with existing alias ↵Xavier Noria2010-05-091-0/+2
| | | | Date#monday -> Date#beginning_of_week
* Backports Date#>> from 1.9 so that calculations do the right thing around ↵Xavier Noria2010-05-091-0/+2
| | | | | | | | | | the calendar reform Our next_month gives November for some late dates in September of 1582. Related methods, last_*, and in general advance have the same issues. This commit fixes those, see the test suite for expected behavior, which we still run in 1.9 to ensure it matches as we do with other methods defined in Date in 1.9.
* adds Date#to_time refinement from previous commit to the CHANGELOGXavier Noria2010-05-051-0/+2
|
* Speed up I18n helpers in views and add entry to CHANGELOG.José Valim2010-05-011-0/+2
|
* Move several configuration values from Hash to ActiveSupport::XmlMini, which ↵José Valim2010-04-291-0/+2
| | | | | | both Hash and Array depends on. Also, refactored ActiveModel serializers to just use ActiveSupport::XmlMini.to_tag. As consequence, if a serialized attribute is an array or a hash, it's not encoded as yaml, but as a hash or array.
* ActiveSupport::Cache refactoringBrian Durand2010-04-271-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All Caches * Add default options to initializer that will be sent to all read, write, fetch, exist?, increment, and decrement * Add support for the :expires_in option to fetch and write for all caches. Cache entries are stored with the create timestamp and a ttl so that expiration can be handled independently of the implementation. * Add support for a :namespace option. This can be used to set a global prefix for cache entries. * Deprecate expand_cache_key on ActiveSupport::Cache and move it to ActionController::Caching and ActionDispatch::Http::Cache since the logic in the method used some Rails specific environment variables and was only used by ActionPack classes. Not very DRY but there didn't seem to be a good shared spot and ActiveSupport really shouldn't be Rails specific. * Add support for :race_condition_ttl to fetch. This setting can prevent race conditions on fetch calls where several processes try to regenerate a recently expired entry at once. * Add support for :compress option to fetch and write which will compress any data over a configurable threshold. * Nil values can now be stored in the cache and are distinct from cache misses for fetch. * Easier API to create new implementations. Just need to implement the methods read_entry, write_entry, and delete_entry instead of overwriting existing methods. * Since all cache implementations support storing objects, update the docs to state that ActiveCache::Cache::Store implementations should store objects. Keys, however, must be strings since some implementations require that. * Increase test coverage. * Document methods which are provided as convenience but which may not be universally available. MemoryStore * MemoryStore can now safely be used as the cache for single server sites. * Make thread safe so that the default cache implementation used by Rails is thread safe. The overhead is minimal and it is still the fastest store available. * Provide :size initialization option indicating the maximum size of the cache in memory (defaults to 32Mb). * Add prune logic that removes the least recently used cache entries to keep the cache size from exceeding the max. * Deprecated SynchronizedMemoryStore since it isn't needed anymore. FileStore * Escape key values so they will work as file names on all file systems, be consistent, and case sensitive * Use a hash algorithm to segment the cache into sub directories so that a large cache doesn't exceed file system limits. * FileStore can be slow so implement the LocalCache strategy to cache reads for the duration of a request. * Add cleanup method to keep the disk from filling up with expired entries. * Fix increment and decrement to use file system locks so they are consistent between processes. MemCacheStore * Support all keys. Previously keys with spaces in them would fail * Deprecate CompressedMemCacheStore since it isn't needed anymore (use :compress => true) [#4452 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* JSON: encode objects that don't have a native JSON representation using ↵Jeremy Kemper2010-04-261-0/+5
| | | | to_hash, if available, instead of instance_values (the old fallback) or to_s (other encoders' default). Encode BigDecimal and Regexp encode as strings to conform with other encoders. Try to transcode non-UTF-8 strings.
* Restore HWIA#stringify_keys! and update changelogJeremy Kemper2010-04-221-0/+2
|
* Update changelogs for releaseDavid Heinemeier Hansson2010-04-131-1/+1
|
* Improve reliability of Inflector.transliterate. [#4374 state:resolved]Norman Clarke2010-04-121-0/+2
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Make tidy_bytes work on 1.9 and improve its performance. [#4350 state:resolved]Norman Clarke2010-04-091-0/+5
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Release is today, yoDavid Heinemeier Hansson2010-04-011-1/+2
|
* Updated changelogs to differentiate beta1 and beta2wycats2010-04-011-3/+2
|
* Updated changelogswycats2010-04-011-0/+5
|
* adds and entry for assert_blank and assert_present to CHANGELOGXavier Noria2010-03-301-0/+2
|
* Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice.Jeremy Kemper2010-02-251-0/+2
|
* Automatically prefer Yajl or JSON backend over Yaml, if availableJeremy Kemper2010-02-051-1/+1
|
* Add yajl-ruby as a JSON parsing backendBrian Lopez2010-02-051-0/+5
| | | | | | [#2666 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Introduce class_attribute to declare inheritable class attributes. Writing ↵Jeremy Kemper2010-02-011-0/+2
| | | | an attribute on a subclass behaves just like overriding the superclass reader method. Unifies and replaces most usage of cattr_accessor, class_inheritable_attribute, superclass_delegating_attribute, and extlib_inheritable_attribute.
* Time#- with a DateTime argument behaves the same as with a Time argument, ↵Geoff Buesing2010-01-271-0/+2
| | | | i.e. returns the difference between self and arg as a Float [#3476 status:resolved]
* Remove unbundle changelogsJeremy Kemper2010-01-271-7/+1
|
* Unvendor'd MemCache-Client. Now requires the MemCache Client gem as a ↵Mikel Lindsaar2010-01-281-2/+4
| | | | dependency - Don't forget to gem bundle buys and girls
* Unvendor'd Builder. Now requires the Builder gem as a dependencyMikel Lindsaar2010-01-281-0/+2
|
* Unbundling TZInfoMikel Lindsaar2010-01-281-0/+2
|
* Adding custom yaml (de-)serialization for OrderedHashGregor Schmidt2010-01-271-0/+2
| | | | | | [#3608 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Update bundled TZInfo to v0.3.16Geoff Buesing2010-01-261-0/+2
|
* Georgetown TimeZone is now mapped to "America/Guyana" instead of ↵Geoff Buesing2010-01-261-0/+2
| | | | "America/Argentina/San_Juan" [#1821 status:resolved]
* Changed the default ActiveSupport.use_standard_json_time_format from false ↵David Heinemeier Hansson2010-01-031-0/+3
| | | | | | to true and ActiveSupport.escape_html_entities_in_json from true to false to match previously announced Rails 3 defaults [DHH]
* Added Object#presence that returns the object if it's #present? otherwise ↵David Heinemeier Hansson2009-12-271-0/+2
| | | | returns nil [DHH/Colin Kelley]
* Add Enumerable#exclude? to bring parity to Enumerable#include? and avoid if ↵David Heinemeier Hansson2009-12-141-0/+2
| | | | !x.include?/else calls [DHH]
* Edinburgh TimeZone references "Europe/London" instead of "Europe/Dublin" ↵Phil Ross2009-10-271-0/+2
| | | | [#3310 state:resolved]
* Bundle Tzinfo 0.3.15Geoff Buesing2009-10-271-0/+2
|
* JSON: split encoding and coercionJeremy Kemper2009-06-081-0/+2
|
* String #to_time and #to_datetime: handle fractional seconds [#864 ↵Jason Frey (Fryguy)2009-06-071-0/+2
| | | | state:resolved]
* Update bundled TZInfo to v0.3.13Geoff Buesing2009-06-071-0/+2
|
* Use duck typing to also allow MemCache-like object when initializing a ↵Bryan Helmkamp2009-05-191-1/+1
| | | | | | MemCacheStore Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Allow MemCacheStore to be initialized with a MemCache object instead of ↵Bryan Helmkamp2009-05-191-0/+2
| | | | addresses and options
* Change spelling of Kyev timezone to Kyiv [#2613 state:resolved]Alexander Dymo2009-05-101-0/+2
|
* * Add pluggable JSON backends with support for the JSON gem. [rick]rick2009-04-231-0/+15
| | | | | | | | | | | | | | Example: ActiveSupport::JSON.backend = "JSONGem" All internal Rails JSON encoding is now handled by ActiveSupport::JSON.encode(). Use of #to_json is not recommended, as it may clash with other libraries that overwrite it. However, you can recover Rails specific functionality if you really want to use #to_json. gem 'json' ActiveSupport::JSON.backend = "JSONGem" class ActiveRecord::Base alias to_json rails_to_json end
* No more free lunchJeremy Kemper2009-04-221-0/+2
|
* Merge branch 'master' into cherryJeremy Kemper2009-04-201-0/+4
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: activesupport/CHANGELOG activesupport/lib/active_support/core_ext/class/delegating_attributes.rb activesupport/lib/active_support/core_ext/hash/conversions.rb activesupport/lib/active_support/core_ext/module/attribute_accessors.rb activesupport/lib/active_support/core_ext/string/multibyte.rb activesupport/lib/active_support/core_ext/time/calculations.rb activesupport/lib/active_support/deprecation.rb
| * TimeWithZone.name returns 'Time', to further thwart type checkingGeoff Buesing2009-04-051-0/+2
| |
| * Time.local instances: Adding 24.hours across the DST boundary adds 24 hours ↵Michael Curtis2009-03-291-0/+5
| | | | | | | | instead of one day [#2066 state:resolved]
* | Remove rarely-used DRb cache storeJeremy Kemper2009-04-171-0/+5
|/
* Prepare for final 2.3 releaseDavid Heinemeier Hansson2009-03-151-7/+1
|