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 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.
@@ -0,0 +1,6 @@
1
+ module Js
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module Js
2
+ module Rails
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
data/lib/js/rails.rb ADDED
@@ -0,0 +1,2 @@
1
+ require 'js/rails/engine'
2
+ require 'js/rails/version'
data/lib/js-rails.rb ADDED
@@ -0,0 +1 @@
1
+ require 'js/rails'