Skip to content

Commit

Permalink
BF update CHANGELOG and README
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Feb 26, 2013
1 parent 9ad0593 commit 69a59ec
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,7 @@
### 0.3.0 - 2013-02-26

* Update asset pipeline check
* add rake yui_rails:version
* add tests
* update code to update YUI library version from the CDN
* Add Benjamin Fleischer to authors
19 changes: 12 additions & 7 deletions README.md
Expand Up @@ -4,27 +4,27 @@ No-hassle integration of YUI with the Rails 3.1 asset pipeline.

## Usage

This gem vendors the latest YUI 3 for easy use. Once installed, add YUI to your app by adding:
This gem vendors the latest YUI 3 for easy use. Once installed, add YUI to your app by adding:

//= require yui

To your `app/assets/javascripts/application.js`.

You can use debug or pre-minimized versions by requiring `yui-debug` or `yui-min`.
To your `app/assets/javascripts/application.js`.

You can use debug or pre-minimized versions by instead requiring `yui-debug` or `yui-min`.


## Requirements

Rails 3.1 or greater.

## Installation
## Installation

### Existing Rails project

Add the gem to your `Gemfile`:

gem 'yui-rails'

Update your gem bundle:

$ bundle install
Expand All @@ -34,7 +34,7 @@ Update your gem bundle:
You can use the `--javascript` flag with rails to specify your preferred library when creating a new rails project. For example:

rails new foo --javascript=yui

This will create a new project named 'foo' with yui-rails already installed.

## TODO
Expand All @@ -44,6 +44,11 @@ Plans for improvement in no particular order:
* Decide how much (all?) of YUI to vendor (with debug versions everything is ~15.5mb, seems awfully heavy)
* Provide intelligent loader to mimic CDN's ability to load a group of dependencies on demand as a single file

## Development

* Update the YUI library version with `./update-yui.sh 3.8.1` where 3.8.1 is the YUI version to update to. Commit the changes, and then `rake install`. You should also change the gem version in yui/rails/version.rb
* Run tests with `rake`

## Credits

Inspired by the [jquery-rails](https://github.com/rails/jquery-rails) gem by Steve Schwartz.
Expand Down

0 comments on commit 69a59ec

Please sign in to comment.