yui-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/CHANGELOG.md +0 -0
- data/Gemfile +1 -0
- data/LICENSE +21 -0
- data/README.md +47 -0
- data/Rakefile +2 -0
- data/lib/yui/rails/engine.rb +8 -0
- data/lib/yui/rails/version.rb +8 -0
- data/lib/yui/rails.rb +3 -0
- data/lib/yui-rails.rb +1 -0
- data/vendor/assets/javascripts/yui-debug.js +4207 -0
- data/vendor/assets/javascripts/yui-min.js +13 -0
- data/vendor/assets/javascripts/yui.js +4170 -0
- data/vendor/assets/javascripts/yui_ujs.js +5 -0
- data/yui-rails.gemspec +31 -0
- metadata +73 -0
data/.gitignore
ADDED
data/CHANGELOG.md
ADDED
File without changes
|
data/Gemfile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
gemspec
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2011 Matt Sanders
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# YUI-rails
|
2
|
+
|
3
|
+
No-hassle integration of YUI with the Rails 3.1 asset pipeline.
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
This gem vendors the latest YUI 3 for easy use. Once installed, add YUI to your app by adding:
|
8
|
+
|
9
|
+
//= require yui
|
10
|
+
|
11
|
+
To your `app/assets/javascripts/application.js`.
|
12
|
+
|
13
|
+
You can use debug or pre-minimized versions by requiring `yui-debug` or `yui-min`.
|
14
|
+
|
15
|
+
|
16
|
+
## Requirements
|
17
|
+
|
18
|
+
Rails 3.1 or greater.
|
19
|
+
|
20
|
+
## Installation
|
21
|
+
|
22
|
+
### Existing Rails project
|
23
|
+
|
24
|
+
Add the gem to your `Gemfile`:
|
25
|
+
|
26
|
+
gem 'yui-rails'
|
27
|
+
|
28
|
+
Update your gem bundle:
|
29
|
+
|
30
|
+
$ bundle install
|
31
|
+
|
32
|
+
### New Rails project
|
33
|
+
|
34
|
+
You can use the `--javascript` flag with rails to specify your preferred library when creating a new rails project. For example:
|
35
|
+
|
36
|
+
rails new foo --javascript=yui
|
37
|
+
|
38
|
+
This will create a new project named 'foo' with yui-rails already installed.
|
39
|
+
|
40
|
+
## Credits
|
41
|
+
|
42
|
+
Inspired by the [jquery-rails](https://github.com/rails/jquery-rails) gem by Steve Schwartz.
|
43
|
+
|
44
|
+
## License
|
45
|
+
|
46
|
+
Copyright (c) 2011 Matt Sanders. Released under the MIT license.
|
47
|
+
|
data/Rakefile
ADDED
data/lib/yui/rails.rb
ADDED
data/lib/yui-rails.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'yui/rails'
|