Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jQuery! For Rails! So great.

This gem provides:

* jQuery 1, 2 and 3
* jQuery 1, 2, 3, and 4
* the jQuery UJS adapter
* assert_select_jquery to test jQuery responses in Ruby tests

Expand Down Expand Up @@ -50,13 +50,20 @@ If you want to use jQuery 2, you can require `jquery2` instead:
//= require jquery_ujs
```

And if you want to use jQuery 3, you can require `jquery3`:
If you want to use jQuery 3, you can require `jquery3`:

```js
//= require jquery3
//= require jquery_ujs
```

And if you want to use jQuery 4, you can require `jquery4`:

```js
//= require jquery4
//= require jquery_ujs
```

For jQuery UI, we recommend the [jquery-ui-rails](https://github.com/joliss/jquery-ui-rails) gem, as it includes the jquery-ui css and allows easier customization.

*As of v3.0, jquery-rails no longer includes jQuery UI. Use the
Expand Down
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ task :guard_version do
check_version('jquery.js', /jQuery JavaScript Library v([\S]+)/, 'JQUERY_VERSION')
check_version('jquery2.js', /jQuery JavaScript Library v([\S]+)/, 'JQUERY_2_VERSION')
check_version('jquery3.js', /jQuery JavaScript Library v([\S]+)/, 'JQUERY_3_VERSION')
check_version('jquery4.js', /jQuery JavaScript Library v([\S]+)/, 'JQUERY_4_VERSION')
end

desc "Update jQuery versions"
Expand All @@ -48,6 +49,7 @@ task :update_jquery do
download_jquery('jquery', Jquery::Rails::JQUERY_VERSION)
download_jquery('jquery2', Jquery::Rails::JQUERY_2_VERSION)
download_jquery('jquery3', Jquery::Rails::JQUERY_3_VERSION)
download_jquery('jquery4', Jquery::Rails::JQUERY_4_VERSION)
puts "\e[32mDone!\e[0m"
end

Expand Down
1 change: 1 addition & 0 deletions lib/jquery/rails/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Rails
JQUERY_VERSION = "1.12.4"
JQUERY_2_VERSION = "2.2.4"
JQUERY_3_VERSION = "3.7.1"
JQUERY_4_VERSION = "4.0.0"
JQUERY_UJS_VERSION = "1.2.3"
end
end
Loading