[DRE-commits] [ruby-uglifier] 03/05: refresh patch to include split.js

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Sat May 3 14:09:22 UTC 2014


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

praveen pushed a commit to branch master
in repository ruby-uglifier.

commit 9a7fb6b10ab5bcb5cb1c3e6cbbea7ebac5f473d8
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Sat May 3 18:16:21 2014 +0530

    refresh patch to include split.js
---
 debian/patches/change-javascript-files-path.patch | 12 ++++++------
 debian/rules                                      |  1 +
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/debian/patches/change-javascript-files-path.patch b/debian/patches/change-javascript-files-path.patch
index 8e24875..c097f46 100644
--- a/debian/patches/change-javascript-files-path.patch
+++ b/debian/patches/change-javascript-files-path.patch
@@ -2,16 +2,15 @@ Description: Point to Javascript files at /usr/share
  This patch is Debian-specific.
 Author: Antonio Terceiro <terceiro at debian.org>
 
-Index: ruby-uglifier/lib/uglifier.rb
-===================================================================
---- ruby-uglifier.orig/lib/uglifier.rb	2012-06-28 09:14:57.000000000 -0300
-+++ ruby-uglifier/lib/uglifier.rb	2012-07-13 08:47:22.545607566 -0300
-@@ -30,8 +30,15 @@
-     }
+--- a/lib/uglifier.rb
++++ b/lib/uglifier.rb
+@@ -64,9 +64,16 @@
+     :screw_ie8 => false # Don't bother to generate safe code for IE8
    }
  
 -  SourcePath = File.expand_path("../uglify.js", __FILE__)
 -  ES5FallbackPath = File.expand_path("../es5.js", __FILE__)
+-  SplitFallbackPath = File.expand_path("../split.js", __FILE__)
 +  def self.find_asset(filename)
 +    [
 +      File.expand_path("../" + filename, __FILE__),
@@ -21,6 +20,7 @@ Index: ruby-uglifier/lib/uglifier.rb
 +
 +  SourcePath = find_asset("uglify.js")
 +  ES5FallbackPath = find_asset("es5.js")
++  SplitFallbackPath = find_asset("split.js")
  
    # Minifies JavaScript code using implicit context.
    #
diff --git a/debian/rules b/debian/rules
index 5f561e8..1295d46 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,3 +8,4 @@ override_dh_auto_install:
 	mkdir -p debian/ruby-uglifier/usr/share/javascript/ruby-uglifier/
 	mv debian/ruby-uglifier/usr/lib/ruby/vendor_ruby/uglify.js debian/ruby-uglifier/usr/share/javascript/ruby-uglifier/
 	mv debian/ruby-uglifier/usr/lib/ruby/vendor_ruby/es5.js debian/ruby-uglifier/usr/share/javascript/ruby-uglifier/
+	mv debian/ruby-uglifier/usr/lib/ruby/vendor_ruby/split.js debian/ruby-uglifier/usr/share/javascript/ruby-uglifier/

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



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