[DRE-commits] [ruby-uglifier] 02/04: refreshed patches
Caitlin Matos
cm-guest at moszumanska.debian.org
Tue Aug 12 00:59:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
cm-guest pushed a commit to branch master
in repository ruby-uglifier.
commit 76d5f63bc512c65a320dc9a16338671892d39405
Author: Caitlin Matos <caitlin.matos at zoho.com>
Date: Mon Aug 11 17:13:05 2014 -0400
refreshed patches
---
debian/patches/change-javascript-files-path.patch | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/debian/patches/change-javascript-files-path.patch b/debian/patches/change-javascript-files-path.patch
index c097f46..df72d8b 100644
--- a/debian/patches/change-javascript-files-path.patch
+++ b/debian/patches/change-javascript-files-path.patch
@@ -4,23 +4,26 @@ Author: Antonio Terceiro <terceiro at debian.org>
--- a/lib/uglifier.rb
+++ b/lib/uglifier.rb
-@@ -64,9 +64,16 @@
- :screw_ie8 => false # Don't bother to generate safe code for IE8
- }
+@@ -62,12 +62,19 @@ class Uglifier
+ }
+ JS
-- 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__),
-+ File.join("/usr/share/javascript/ruby-uglifier", filename)
++ File.expand_path("../" + filename, __FILE__),
++ File.join("/usr/share/javascript/ruby-uglifier", filename)
+ ].find { |f| File.exists?(f) }
+ end
+
+ # UglifyJS source patch
+- SourcePath = File.expand_path("../uglify.js", __FILE__)
+ SourcePath = find_asset("uglify.js")
+ # ES5 shims source path
+- ES5FallbackPath = File.expand_path("../es5.js", __FILE__)
+ ES5FallbackPath = find_asset("es5.js")
+ # String.split shim source path
+- SplitFallbackPath = File.expand_path("../split.js", __FILE__)
+ SplitFallbackPath = find_asset("split.js")
- # Minifies JavaScript code using implicit context.
- #
+ # Default options for compilation
+ DEFAULTS = {
--
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