From e138bbb04e3ec7c43bebf2f4494daadc12974ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=C3=A9n=20Rodero=20Rodr=C3=ADguez?= Date: Fri, 19 Jun 2020 10:19:35 +0200 Subject: [PATCH] Upgrade to jQuery 3.5.1 Latest version of jquery-rails gem includes latest jQuery 3 version with all security patches. See [1]. [1] https://github.com/rails/jquery-rails/blob/v4.4.0/CHANGELOG.md#440 --- Gemfile | 2 +- Gemfile.lock | 4 ++-- app/assets/javascripts/application.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 1cc47e28d..ae12ddb0b 100644 --- a/Gemfile +++ b/Gemfile @@ -29,7 +29,7 @@ gem "groupdate", "~> 5.1.0" gem "initialjs-rails", "~> 0.2.0.9" gem "invisible_captcha", "~> 0.10.0" gem "jquery-fileupload-rails" -gem "jquery-rails", "~> 4.3.3" +gem "jquery-rails", "~> 4.4.0" gem "jquery-ui-rails", "~> 6.0.1" gem "kaminari", "~> 1.2.1" gem "newrelic_rpm", "~> 4.1.0.333" diff --git a/Gemfile.lock b/Gemfile.lock index 62abd4917..566735c56 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -292,7 +292,7 @@ GEM actionpack (>= 3.1) railties (>= 3.1) sassc - jquery-rails (4.3.3) + jquery-rails (4.4.0) rails-dom-testing (>= 1, < 3) railties (>= 4.2.0) thor (>= 0.14, < 2.0) @@ -665,7 +665,7 @@ DEPENDENCIES initialjs-rails (~> 0.2.0.9) invisible_captcha (~> 0.10.0) jquery-fileupload-rails - jquery-rails (~> 4.3.3) + jquery-rails (~> 4.4.0) jquery-ui-rails (~> 6.0.1) kaminari (~> 1.2.1) knapsack_pro (~> 1.15.0) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index e5fc6da7c..49bbf8b2b 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -10,7 +10,7 @@ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details // about supported directives. // -//= require jquery +//= require jquery3 //= require jquery_ujs //= require jquery-ui/widgets/datepicker //= require jquery-ui/i18n/datepicker-ar