Sha256: 743baaa7969987bf093bcf78c8547514144f20b047fe64dc4a6eee4c23ab02f1

Contents?: true

Size: 1.74 KB

Versions: 1

Compression:

Stored size: 1.74 KB

Contents

# Junior::Rails

`junior-rails` packages [awesome Junior](http://justspamjustin.github.com/junior/#home) front-end framework files and integrates it into Rails apps.

### Currently only works in Rails 3.1+ with asset pipeline enabled

## Installation

Add this line to your application's Gemfile:

    gem 'junior-rails'

And then execute:

    $ bundle

## Usage

After installing the gem, add Junior assets to your manifest files:

    # application.js
    //= require junior_manifest

OR in case if don't want to include certain files (let's say you already have `modernizr` in your app), you can require files individually:

    # application.js
    //= require modernizr.custom.15848
    //= require zepto.min
    //= require zepto.flickable.min
    //= require lodash.min
    //= require backbone-min
    //= require junior

Junior CSS files

    # application.css
    /*...
    *= require junior_manifest
    */

OR require individually:

    # application.css
    /*...
    *= require ratchet
    *= require junior
    */

## Acknowledgements

Heavily influenced by [jquery-rails](https://github.com/rails/jquery-rails)

## Contributing

1. If any of libraries in `vendor/assets` is out of date, feel free to put in a pull request with new version of the library.
2. Since `junior.js` version is not stated clearly, `JUNIOR_VERSION` constant in `version.rb` is SHA1 hash of `junior.js`. It can be calculated using `sha1_version_generator.rb` located in the root of the gem:

```shell
ruby sha1_version_generator.rb vendor/assets/javascripts/junior.js
```

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
junior-rails-0.0.1 README.md