jquery-rails 0.2 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of jquery-rails might be problematic. Click here for more details.
- data/CHANGELOG.md +15 -0
- data/README.md +6 -0
- data/lib/generators/jquery/install/install_generator.rb +4 -4
- data/lib/jquery-rails/version.rb +1 -1
- metadata +3 -2
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
## 0.2.1 (2 October 2010)
|
2
|
+
|
3
|
+
Bugfix:
|
4
|
+
|
5
|
+
- Default to jQuery 1.4.1 as recommended by jQuery-ujs
|
6
|
+
due to a bug in 1.4.2 (http://jsbin.com/uboxu3/7/)
|
7
|
+
|
8
|
+
## 0.2 (2 October 2010)
|
9
|
+
|
10
|
+
Features:
|
11
|
+
|
12
|
+
- Allow specifying which version of jQuery to install
|
13
|
+
- Add generator tests (thanks, Louis T.)
|
14
|
+
- Automatically use non-minified JS in development mode
|
15
|
+
|
1
16
|
## 0.1.3 (16 September 2010)
|
2
17
|
|
3
18
|
Bugfix:
|
data/README.md
CHANGED
@@ -15,3 +15,9 @@ Then, run `bundle install`. To invoke the generator, run:
|
|
15
15
|
rails generate jquery:install #--ui to enable jQuery UI --version to install specific version of JQuery (default is 1.4.2)
|
16
16
|
|
17
17
|
You're done! Don't forget to output `csrf_meta_tag` somewhere inside your `<head>` tag in your layout!
|
18
|
+
|
19
|
+
### Edge rails
|
20
|
+
|
21
|
+
If you're using edge Rails, you'll need to use the branch that depends on Rails `~> 3.1`. Here's the line to put in your Gemfile, and everything else is the same:
|
22
|
+
|
23
|
+
gem "jquery-rails", :git => "http://github.com/indirect/jquery-rails.git", :branch => "rails-3-1"
|
@@ -3,7 +3,7 @@ module Jquery
|
|
3
3
|
class InstallGenerator < ::Rails::Generators::Base
|
4
4
|
desc "This generator downloads and installs jQuery, jQuery-ujs HEAD, and (optionally) jQuery UI 1.8.4"
|
5
5
|
class_option :ui, :type => :boolean, :default => false, :desc => "Whether to Include JQueryUI"
|
6
|
-
class_option :version, :type => :string, :default => "1.4.
|
6
|
+
class_option :version, :type => :string, :default => "1.4.1", :desc => "Which version of JQuery to fetch"
|
7
7
|
@@versions = %w( 1.4.2 1.4.1 1.4.0 1.3.2 1.3.1 1.3.0 1.2.6 )
|
8
8
|
|
9
9
|
|
@@ -20,9 +20,9 @@ module Jquery
|
|
20
20
|
get "http://ajax.googleapis.com/ajax/libs/jquery/#{options.version}/jquery.min.js", "public/javascripts/jquery.min.js"
|
21
21
|
get "http://ajax.googleapis.com/ajax/libs/jquery/#{options.version}/jquery.js", "public/javascripts/jquery.js"
|
22
22
|
else
|
23
|
-
puts "JQuery #{options.version} is invalid; fetching #{@@versions[
|
24
|
-
get "http://ajax.googleapis.com/ajax/libs/jquery/#{@@versions[
|
25
|
-
get "http://ajax.googleapis.com/ajax/libs/jquery/#{@@versions[
|
23
|
+
puts "JQuery #{options.version} is invalid; fetching #{@@versions[1]} instead."
|
24
|
+
get "http://ajax.googleapis.com/ajax/libs/jquery/#{@@versions[1]}/jquery.min.js", "public/javascripts/jquery.min.js"
|
25
|
+
get "http://ajax.googleapis.com/ajax/libs/jquery/#{@@versions[1]}/jquery.js", "public/javascripts/jquery.js"
|
26
26
|
end
|
27
27
|
|
28
28
|
# Downloading latest jQueryUI minified
|
data/lib/jquery-rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- "Andr\xC3\xA9 Arko"
|