jquerypp-rails 1.0 → 1.0.1.1.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +14 -0
- data/README.markdown +61 -0
- data/jquerypp-rails.gemspec +2 -0
- data/lib/jquerypp/generators/jquerypp/install/install_generator.rb +4 -1
- data/lib/jquerypp/rails/version.rb +1 -1
- metadata +22 -5
- data/README.rdoc +0 -24
data/Gemfile.lock
ADDED
data/README.markdown
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
# jquerypp-rails
|
2
|
+
|
3
|
+
jQuery++! For Rails! So great.
|
4
|
+
|
5
|
+
jQuery++ is a collection of all the DOM utilities and special events jQuery forgot about. Come learn about jQuery++ and how it can be useful to your project.
|
6
|
+
|
7
|
+
This gem provides:
|
8
|
+
|
9
|
+
* jQuery++
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
Apps generated with Rails 3.1 or later include jquery-rails in the Gemfile by default. So just make a new app:
|
14
|
+
|
15
|
+
```sh
|
16
|
+
rails new myapp
|
17
|
+
```
|
18
|
+
|
19
|
+
If upgrading from an older version of rails, or for rails 3.0 apps,
|
20
|
+
add the jquery-rails gem to your Gemfile.
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
gem "jquerypp-rails"
|
24
|
+
```
|
25
|
+
|
26
|
+
And run `bundle install`. The rest of the installation depends on
|
27
|
+
whether the asset pipeline is being used.
|
28
|
+
|
29
|
+
### Rails 3.1 or greater (with asset pipeline *enabled*)
|
30
|
+
|
31
|
+
The jquery and jquery-ujs files will be added to the asset pipeline and available for you to use. If they're not already in `app/assets/javascripts/application.js` by default, add these lines:
|
32
|
+
|
33
|
+
```js
|
34
|
+
//= require jquerypp
|
35
|
+
```
|
36
|
+
|
37
|
+
In order to use the themed parts of jQuery UI, you will also need to supply [your own theme CSS](http://jqueryui.com) (or use the jquery-ui-rails gem mentioned above).
|
38
|
+
|
39
|
+
### Rails 3.0 (or greater with asset pipeline *disabled*)
|
40
|
+
|
41
|
+
This gem adds a single generator: `jquery:install`. Running the generator will remove any Prototype JS files you may happen to have, and copy jQuery++ to the `public/javascripts` directory.
|
42
|
+
|
43
|
+
This gem will also hook into the Rails configuration process, removing Prototype and adding jQuery to the javascript files included by the `javascript_include_tag(:defaults)` call. While this gem contains the minified and un-minified versions of jQuery and jQuery UI, only the minified versions are included in `:defaults`.
|
44
|
+
|
45
|
+
To invoke the generator, run:
|
46
|
+
|
47
|
+
```sh
|
48
|
+
rails generate jquery:install
|
49
|
+
```
|
50
|
+
|
51
|
+
You're done!
|
52
|
+
|
53
|
+
## Contributing
|
54
|
+
|
55
|
+
Feel free to open an issue ticket if you find something that could be improved. A couple notes:
|
56
|
+
|
57
|
+
## Acknowledgements
|
58
|
+
|
59
|
+
Many thanks are due to all of [the jquery-rails contributors](https://github.com/rails/jquery-rails/graphs/contributors). Special thanks to [JangoSteve](http://github.com/JangoSteve) for tirelessly answering questions and accepting patches, and the [Rails Core Team](https://github.com/organizations/rails/teams/617) for making jquery-rails an official part of Rails 3.1.
|
60
|
+
|
61
|
+
Copyright [André Arko](http://arko.net), released under the MIT License.
|
data/jquerypp-rails.gemspec
CHANGED
@@ -14,6 +14,8 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.required_rubygems_version = ">= 1.3.6"
|
15
15
|
s.rubyforge_project = "jquerypp-rails"
|
16
16
|
|
17
|
+
s.add_dependency "jquery-rails", "~> 2.0"
|
18
|
+
|
17
19
|
s.files = `git ls-files`.split("\n")
|
18
20
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
19
21
|
s.require_path = 'lib'
|
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'rails'
|
2
2
|
|
3
|
-
# Supply generator for Rails 3.0.x or if asset pipeline is not enabled
|
4
3
|
if ::Rails.version < "3.1" || !::Rails.application.config.assets.enabled
|
5
4
|
module Jquerypp
|
6
5
|
module Generators
|
@@ -23,7 +22,11 @@ if ::Rails.version < "3.1" || !::Rails.application.config.assets.enabled
|
|
23
22
|
|
24
23
|
def copy_jquerypp_lib
|
25
24
|
say_status("copying", "jQuery++ lib (#{Jquerypp::Rails::JQUERY_VERSION})", :green)
|
25
|
+
<<<<<<< Updated upstream
|
26
26
|
copy_file "lib/.*", "public/javascripts/lib"
|
27
|
+
=======
|
28
|
+
copy_entry "lib/", "public/javascripts/lib"
|
29
|
+
>>>>>>> Stashed changes
|
27
30
|
end
|
28
31
|
|
29
32
|
end
|
metadata
CHANGED
@@ -1,16 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquerypp-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.1.1.rc1
|
5
|
+
prerelease: 8
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jonathan Tapia
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
13
|
-
dependencies:
|
12
|
+
date: 2012-06-28 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: jquery-rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '2.0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.0'
|
14
30
|
description: This gem provides jQuery++ for your Rails 3 application.
|
15
31
|
email:
|
16
32
|
- jonathan.tapia@crowdint.com
|
@@ -21,8 +37,9 @@ files:
|
|
21
37
|
- .document
|
22
38
|
- .gitignore
|
23
39
|
- Gemfile
|
40
|
+
- Gemfile.lock
|
24
41
|
- LICENSE.txt
|
25
|
-
- README.
|
42
|
+
- README.markdown
|
26
43
|
- Rakefile
|
27
44
|
- jquerypp-rails.gemspec
|
28
45
|
- lib/jquerypp-rails.rb
|
data/README.rdoc
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# jquerypp-rails
|
2
|
-
|
3
|
-
jQuery++! For Rails! So great.
|
4
|
-
|
5
|
-
This gem provides:
|
6
|
-
|
7
|
-
* jQuery++
|
8
|
-
|
9
|
-
## Installation
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem "jquerypp-rails"
|
13
|
-
```
|
14
|
-
|
15
|
-
And run `bundle install`. The rest of the installation depends on
|
16
|
-
whether the asset pipeline is being used.
|
17
|
-
|
18
|
-
### Rails 3.1 or greater (with asset pipeline *enabled*)
|
19
|
-
|
20
|
-
The jquery and jquery-ujs files will be added to the asset pipeline and available for you to use. If they're not already in `app/assets/javascripts/application.js` by default, add these lines:
|
21
|
-
|
22
|
-
```js
|
23
|
-
//= require jquerypp
|
24
|
-
```
|