Project

core_ext

0.01
No commit activity in last 3 years
No release in over 3 years
Utility classes and Ruby extensions for non Rails projects
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.1
~> 10.0

Runtime

~> 3.2
~> 0.7
>= 1.7.7, ~> 1.7
~> 1.1
 Project Readme

wercker status Code Climate

CoreExt

Utility classes and Ruby extensions for non Rails projects.

Philosophy

CoreExt is a reduced fork of Rails's ActiveSupport gem, shipping only the core_ext part and its minimal dependencies. Some stufft like Autoload, Caching, Logging, Notifications and other Rails related classes are left behind. It was built with a few goals in mind:

  • Pick only what you need - use (or require) only the modules or classes that you need on your project, without load (and override) the entire stack.
  • Embrace the magic - Patching Ruby core classes - excuse me the purists - is more productive that using tons of utils classes spread throughtout your project. And this, ActiveSupport does well.
  • Don't Repeat Yourself - Rather than always implement the same core functionality on different projects, centralize and reuse it.

Installation

If using bundler, first add 'core_ext' to your Gemfile:

gem "core_ext"

And run

bundle install

Otherwise simply

gem install core_ext

Usage

Loading all core extensions:

require "core_ext/all"

Cherry-picking only what you want:

require "core_ext/object"
require "core_ext/time"

Documentation

See Rail's ActiveSupport Core Extensions documentation.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Ruby on Rails is released under the MIT License.

CoreExt is released under the MIT License.