Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/opal/opal-activesupport

The port of the glorious ActiveSupport for Opal
https://github.com/opal/opal-activesupport

activesupport opal ruby

Last synced: 3 days ago
JSON representation

The port of the glorious ActiveSupport for Opal

Awesome Lists containing this project

README

        

# Opal: ActiveSupport

[![Build Status](https://travis-ci.org/opal/opal-activesupport.svg?branch=master)](https://travis-ci.org/opal/opal-activesupport)

> @AstonJ But it's vanilla Ruby. It's not like you have ActiveSupport available, which somewhat defeats it for me.

_[@dhh 6:44 PM - Oct 23, 2012](https://twitter.com/dhh/status/260783823254601728)_

## Installation

Add this line to your application's Gemfile:

gem 'opal-activesupport'

And then execute:

$ bundle

Or install it yourself as:

$ gem install opal-activesupport

## Usage

Inside your `application.js.rb`:

```ruby
require 'active_support' # to require the whole active support lib
require 'active_support/core_ext' # require only the corelib extensions
require 'active_support/core_ext/string' # require only the corelib extensions
```

## 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