[DRE-commits] [ruby-uglifier] 01/09: fix test broken by UglifyJS 2.7
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Sat Jan 28 20:20:52 UTC 2017
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository ruby-uglifier.
commit b879f0d989d78b84b3fb51fda6de8d8bd5da29fa
Author: Antonio Terceiro <terceiro at debian.org>
Date: Tue Dec 13 18:15:33 2016 -0200
fix test broken by UglifyJS 2.7
Closes: #846738
---
debian/changelog | 7 +++++++
.../patches/0004-Adapt-test-to-UglifyJS-2.7.patch | 23 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 31 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index c01529c..213008b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ruby-uglifier (2.7.2+dfsg-2) unstable; urgency=medium
+
+ * 0004-Adapt-test-to-UglifyJS-2.7.patch: fix test that was invalidated when
+ libjs-uglify was upgraded to version 2.7 (Closes: #846738)
+
+ -- Antonio Terceiro <terceiro at debian.org> Tue, 13 Dec 2016 18:14:36 -0200
+
ruby-uglifier (2.7.2+dfsg-1) unstable; urgency=medium
* Team upload
diff --git a/debian/patches/0004-Adapt-test-to-UglifyJS-2.7.patch b/debian/patches/0004-Adapt-test-to-UglifyJS-2.7.patch
new file mode 100644
index 0000000..4d3ab93
--- /dev/null
+++ b/debian/patches/0004-Adapt-test-to-UglifyJS-2.7.patch
@@ -0,0 +1,23 @@
+From: Antonio Terceiro <terceiro at debian.org>
+Date: Tue, 13 Dec 2016 18:13:07 -0200
+Subject: Adapt test to UglifyJS 2.7
+
+The same changes was made upstream at
+https://github.com/lautis/uglifier/commit/f676b66f1d35653f81b9645508c30053b680a64b
+---
+ spec/uglifier_spec.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/spec/uglifier_spec.rb b/spec/uglifier_spec.rb
+index 34f3332..44c9854 100644
+--- a/spec/uglifier_spec.rb
++++ b/spec/uglifier_spec.rb
+@@ -19,7 +19,7 @@ describe "Uglifier" do
+ end
+
+ it "doesn't omit null character in strings" do
+- expect(Uglifier.new.compile('var foo="\0bar"')).to include("\\x00bar")
++ expect(Uglifier.new.compile('var foo="\0bar"')).to include("\\0bar")
+ end
+
+ it "adds trailing semicolon to minified source" do
diff --git a/debian/patches/series b/debian/patches/series
index 2443a0d..4013594 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
0001-Use-packaged-UglifyJS-and-Source-Map.patch
0002-Adjust-tests-to-lib-uglify.js-being-dropped.patch
0003-Mark-test-as-pending.patch
+0004-Adapt-test-to-UglifyJS-2.7.patch
--
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