[DRE-commits] [ruby-simplecov-html] 10/12: replace usage of function that was removed from jQuery

Antonio Terceiro terceiro at moszumanska.debian.org
Thu Oct 22 20:27:23 UTC 2015


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository ruby-simplecov-html.

commit df5c90c054245c111d888b0c942c17fdbdee729e
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Thu Oct 22 18:20:09 2015 -0200

    replace usage of function that was removed from jQuery
---
 debian/changelog                          |  2 ++
 debian/patches/port-to-newer-jquery.patch | 23 +++++++++++++++++++++++
 debian/patches/series                     |  1 +
 3 files changed, 26 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 282235e..a3514dd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ ruby-simplecov-html (0.10.0-1) UNRELEASED; urgency=medium
     Fixes getting test coverage on projects that are also installed locally as
     Debian packages.
   * debian/rules: dynamically build public/application.js
+  * debian/patches/port-to-newer-jquery.patch: replace usage of function that
+    was removed from jQuery.
 
  -- Antonio Terceiro <terceiro at debian.org>  Tue, 15 Sep 2015 11:31:05 -0300
 
diff --git a/debian/patches/port-to-newer-jquery.patch b/debian/patches/port-to-newer-jquery.patch
new file mode 100644
index 0000000..13be245
--- /dev/null
+++ b/debian/patches/port-to-newer-jquery.patch
@@ -0,0 +1,23 @@
+Description: port to newer jQuery
+ replace usage of $.live()
+Author: Antonio Terceiro <terceiro at debian.org
+Origin: vendor
+Forwarded: no
+Last-Update: 2015-10-22
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/assets/javascripts/application.js
++++ b/assets/javascripts/application.js
+@@ -91,10 +91,10 @@ $(document).ready(function() {
+   });
+ 
+   // Make sure tabs don't get ugly focus borders when active
+-  $('.group_tabs a').live('focus', function() { $(this).blur(); });
++  $('body').on('focus', '.group_tabs a', function() { $(this).blur(); });
+ 
+   var favicon_path = $('link[rel="shortcut icon"]').attr('href');
+-  $('.group_tabs a').live('click', function(){
++  $('body').on('click', '.group_tabs a', function(){
+     if (!$(this).parent().hasClass('active')) {
+       $('.group_tabs a').parent().removeClass('active');
+       $(this).parent().addClass('active');
diff --git a/debian/patches/series b/debian/patches/series
index f3bdab9..dace246 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 remove-rubygems-bundler.patch
 fix-paths.patch
 dont-touch-load-path.patch
+port-to-newer-jquery.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-simplecov-html.git



More information about the Pkg-ruby-extras-commits mailing list