[DRE-commits] [SCM] ruby-uglifier.git branch, master, updated. 7e00562d163e6fdfb9cc6b7f309f6c5aaa4e0e90

Antonio Terceiro terceiro at softwarelivre.org
Thu Jun 28 12:18:53 UTC 2012


The following commit has been merged in the master branch:
commit 7e00562d163e6fdfb9cc6b7f309f6c5aaa4e0e90
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date:   Thu Jun 28 09:09:52 2012 -0300

    Run tests against ditributed javascript

diff --git a/debian/patches/run-tests-against-distributed-javascript.patch b/debian/patches/run-tests-against-distributed-javascript.patch
new file mode 100644
index 0000000..9926177
--- /dev/null
+++ b/debian/patches/run-tests-against-distributed-javascript.patch
@@ -0,0 +1,31 @@
+Description: run tests against distributed JavaScript file
+Author: Antonio Terceiro <terceiro at debian.org>
+Bug: https://github.com/lautis/uglifier/pull/33
+
+--- ruby-uglifier-1.2.5.orig/spec/uglifier_spec.rb
++++ ruby-uglifier-1.2.5/spec/uglifier_spec.rb
+@@ -3,7 +3,7 @@ require File.expand_path(File.dirname(__
+ 
+ describe "Uglifier" do
+   it "minifies JS" do
+-    source = File.open("vendor/uglifyjs/lib/process.js", "r:UTF-8").read
++    source = File.open("lib/uglify.js", "r:UTF-8").read
+     minified = Uglifier.new.compile(source)
+     minified.length.should < source.length
+     lambda {
+@@ -122,13 +122,13 @@ describe "Uglifier" do
+   describe "Input Formats" do
+     it "handles strings" do
+       lambda {
+-        Uglifier.new.compile(File.open("vendor/uglifyjs/lib/process.js", "r:UTF-8").read).should_not be_empty
++        Uglifier.new.compile(File.open("lib/uglify.js", "r:UTF-8").read).should_not be_empty
+       }.should_not raise_error
+     end
+ 
+     it "handles files" do
+       lambda {
+-        Uglifier.new.compile(File.open("vendor/uglifyjs/lib/process.js", "r:UTF-8")).should_not be_empty
++        Uglifier.new.compile(File.open("lib/uglify.js", "r:UTF-8")).should_not be_empty
+       }.should_not raise_error
+     end
+   end
diff --git a/debian/patches/series b/debian/patches/series
index 32c144f..5b8cd8d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 change-javascript-files-path.patch
+run-tests-against-distributed-javascript.patch

-- 
ruby-uglifier.git



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