yui-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ .rvmrc
2
+ .bundle
3
+ .DS_Store
4
+ Gemfile.lock
5
+
6
+ # docs
7
+ doc/*
8
+ rdoc
9
+ .yardoc
10
+
11
+ # editors
12
+ *.tmproj
13
+ *.swp
14
+ .idea
15
+
16
+ # rcov
17
+ coverage
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
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -0,0 +1,8 @@
1
+ module YUI
2
+ module Rails
3
+
4
+ # This engine class adds the gem's vendored assets to sprockets' load path
5
+ class Engine < ::Rails::Engine; end
6
+
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module YUI
2
+ module Rails
3
+
4
+ VERSION = '0.1.0'
5
+ YUI_VERSION = '3.3.0'
6
+
7
+ end
8
+ end
data/lib/yui/rails.rb ADDED
@@ -0,0 +1,3 @@
1
+ require 'rails'
2
+ require 'yui/rails/version'
3
+ require 'yui/rails/engine'
data/lib/yui-rails.rb ADDED
@@ -0,0 +1 @@
1
+ require 'yui/rails'