This project is archived and is in readonly mode.

Changeset [133925804f24d716a3836698dbe5a7d8b30de0b5] by Michael S. Klishin

December 28th, 2008 @ 08:26 AM

Introduce minimalistic package for ActiveSupport.

To simplify using of ActiveSupport in 3rd party libraries, a simple way to require only minimum of commonly used extensions (multibyte, inflections, array and hash extensions, #blank?, and a few others) is needed. For exactly this reason some out-of-Rails-space libraries adopted Extlib, originally from DataMapper.

To keep it 2067% backwards compatible, and still available to everyone even in 2.x releases, active_support/minimalistic.rb was added.

Use it like this:

gem 'active_support', '>=2.3' require 'active_support/minimalistic'

instead of

require 'activesupport'

Right now this package with RubyGems uses about 10 megs of RAM (10.01 or so). It can be further slimmed down though, once we simplify multibyte implementation that right now uses advanced accessors from Module extensions.

To compare RAM usage with previous ActiveSupport versions and Extlib, at the time of writing, see http://gist.github.com/40401. http://github.com/rails/rails/co...

Committed by Michael S. Klishin

  • M activesupport/lib/active_support/core_ext/string/multibyte.rb
  • M activesupport/lib/active_support/minimalistic.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>