Notes:
CoreEx is designed to provides a simple but quite useful extension of the
standard library of Ruby. So some classes and modules like Pathname,
Enumerable, Exception, FileUtils, String, YAML, Module, Class and Object are
extended. There is also some new features like DTime, TempPath, Version,
embedded_tests, FileList (almost from rake), a common Rakefile.
Changes:
New in 0.3, 2005-09-15:
* Architecture:
- Need activesupport ~> 1.1.1.
- No more custom require/load/autoload.
- Many changes to be closer of the activesupport dependency system.
- No more use the auto_require feature of rubygems.
- Add an automated vendor directory support.
- No more use `ask' but HighLine in Rakefiles.
* Module:
- mix_in_with_args.rb: Provides `mixin' which is like `include' but
can receive arguments. A module can aslo be setup by two blocks
`setup' and `teardown'. Which are run in the class context,
before and after the real inclusion.
- import.rb: Allow to write MyFavoriteModule.import! to load or require
a module managed by Dependencies of activesupport.
* Object:
- instance_eval_with_args.rb:
Makes the instance_eval method of Object support arguments.
- the_first_time.rb: This method takes a block. It ensures that the
code will be run only once. You can use this method only once
per file.
- singleton_class.rb: Provides an access to the singleton class of
an object. Also provides singleton_class_eval,
undef_singleton_method, define_singleton_method.
* Yaml:
- Better option handling in yaml extensions.
- Inlines little hashs and arrays (with the Inline option set to true).
* PathList:
- Improves PathList#each, and support aliases in Yaml.
- Many other improvements.
* TempPath: Add TempPath.fork_init that initialize a child of a fork.
|