Code Monkey home page Code Monkey logo

assorted_candy's Introduction

Assorted Candy (aka: All Sorts Of Staff)

This is a collection of Ruby extensions and utilities I've been carting around from project to project. Some are taken from the Facets project (I just don't want to include that whole gem in my codebases). Others gathered from blog posts, repositories and snippets founded in the web. This is not something kind of valid gem though.

Usage

My own approach where to place this library in rails project:

app/
config/
db/
gems/
    assorted_candy/ # <-- here
...

and require it in my Gemfile as:

gem 'assorted_candy', path: 'gems/assorted_candy'

As you can see I just clone this repository into project's tree and treat it as ordinary library. Don't miss that you should explicitely require particular ruby files.

The library does not automatically require anything, so you can pick and choose which extensions get added, by requiring them individually, e.g.:

require 'assorted_candy/null_object/null_object'
require 'assorted_candy/core/multi_block'

and so on.

Or you can use helper method somewere in your initializing script:

AssortedCandy[:option, :null_object]

Just feed this method with names of library name.

Cautions

Some of established minilibs adds a method(s) to Kernel which might be considered bad practice. So use it wisely.

Contribute

I would appreciate any participation in the project. Any additions, fixes and ideas are welcome!

How to contribute:

  • Fork the project on Github
  • Create a topic branch for your changes
  • Ensure that the changes in your branch are as atomic as possible
  • Create a pull request on Github

License

This ruby gem is under MIT License. Copyright 2013 Yury Batenko [email protected]

assorted_candy's People

Contributors

svenyurgensson avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.