js-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +33 -0
- data/lib/js/rails/engine.rb +6 -0
- data/lib/js/rails/version.rb +5 -0
- data/lib/js/rails.rb +2 -0
- data/lib/js-rails.rb +1 -0
- data/vendor/assets/javascripts/handlebars.js +1550 -0
- data/vendor/assets/javascripts/jquery.js +9404 -0
- data/vendor/assets/javascripts/jquery.min.js +4 -0
- data/vendor/assets/javascripts/jquery_ujs.js +377 -0
- data/vendor/assets/javascripts/underscore.js +1059 -0
- data/vendor/assets/javascripts/underscore.min.js +32 -0
- data/vendor/assets/javascripts/zepto.js +1355 -0
- data/vendor/assets/javascripts/zepto.min.js +2 -0
- metadata +61 -0
data/README.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# js-rails
|
2
|
+
|
3
|
+
Common JavaScript libraries for the Rails asset pipeline.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'js-rails'
|
11
|
+
```
|
12
|
+
|
13
|
+
This gem includes jquery.js, jquery.min.js and jquery_ujs.js, so a dependency on `jquery-rails` is not needed anymore.
|
14
|
+
|
15
|
+
Add the necessary libraries to `app/assets/javascripts/application.js`:
|
16
|
+
|
17
|
+
```js
|
18
|
+
//= require jquery
|
19
|
+
//= require jquery_ujs
|
20
|
+
```
|
21
|
+
|
22
|
+
## What's included?
|
23
|
+
|
24
|
+
* jQuery 1.7.2 (jquery, jquery.min, jquery_ujs)
|
25
|
+
* Zepto 1.0rc1 (zepto, zepto.min)
|
26
|
+
* Underscore.js 1.3.3 (underscore, underscore.min)
|
27
|
+
* Handlebars 1.0.0.beta.6 (handlebars)
|
28
|
+
|
29
|
+
## Acknowledgements
|
30
|
+
|
31
|
+
This gem is based on other gems, most notably [jquery-rails](https://github.com/rails/jquery-rails).
|
32
|
+
|
33
|
+
Copyright Richard Hubers, released under the MIT License.
|
data/lib/js/rails.rb
ADDED
data/lib/js-rails.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'js/rails'
|