Skip to content
Projets

À propos

Some useful extensions to the core Ruby classes

Outils de développement

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
Historique en cours
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Gem Version CI Status

Powerpack

Powerpack offers some useful extensions to the standard Ruby classes (kind of like ActiveSupport, but less ambitious and more modular).

The project has several design goals:

  • minimalistic - we don't add every possible extensions, we focus only on the stuff that are commonly requested and would be often useful in practice
  • modular - all extensions can be loaded individually (often they are just individual methods)
  • safe - you can't end up accidentally overriding some existing method definition with Powerpack's extensions

Installation

Add this line to your application's Gemfile (if you're using bundler, that is):

gem 'powerpack'

And then execute:

$ bundle

Or install it yourself as:

$ gem install powerpack

Extensions

Documentation

A listing of the extensions provided by Powerpack is available here.

Usage

To load the entire powerpack do:

require 'powerpack'

To load only the String extensions do:

require 'powerpack/string'

To load only a specific extension like String#format do:

require 'powerpack/string/format'

Changelog

Powerpack's changelog is available here.

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

Explorer des projets similaires

Chargement…