[nodejs-strip-ansi] Update to upstream release 0.2.0
Jamie Nguyen
jamielinux at fedoraproject.org
Sun Apr 20 15:03:19 UTC 2014
commit 7166d19da5c68c078d48a0af783571410ef9390f
Author: Jamie Nguyen <j at jamielinux.com>
Date: Sun Apr 20 16:03:04 2014 +0100
Update to upstream release 0.2.0
.gitignore | 1 +
nodejs-strip-ansi.spec | 7 +++++--
sources | 2 +-
test.js | 4 ++++
4 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 956ea7a..2faca08 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/strip-ansi-0.1.1.tgz
+/strip-ansi-0.2.0.tgz
diff --git a/nodejs-strip-ansi.spec b/nodejs-strip-ansi.spec
index 1e6d4a0..f879b6d 100644
--- a/nodejs-strip-ansi.spec
+++ b/nodejs-strip-ansi.spec
@@ -3,14 +3,14 @@
%global enable_tests 1
Name: nodejs-strip-ansi
-Version: 0.1.1
+Version: 0.2.0
Release: 1%{?dist}
Summary: Strip ANSI escape codes (used for colorizing strings in the terminal)
License: MIT
Group: System Environment/Libraries
URL: https://github.com/sindresorhus/strip-ansi
Source0: http://registry.npmjs.org/strip-ansi/-/strip-ansi-%{version}.tgz
-Source1: https://raw.github.com/sindresorhus/strip-ansi/2ad9a26edf3d6411b443a0393baed6a29a3a8a86/test.js
+Source1: https://raw.githubusercontent.com/sindresorhus/strip-ansi/3c9b37e5381603925ba16b27a05ccbfd338906b8/test.js
# https://github.com/sindresorhus/strip-ansi/pull/1
Source2: LICENSE
@@ -68,5 +68,8 @@ ln -sf %{nodejs_sitelib}/strip-ansi/cli.js \
%changelog
+* Sun Apr 20 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.2.0-1
+- update to upstream release 0.2.0
+
* Thu Mar 13 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.1.1-1
- initial package
diff --git a/sources b/sources
index c96de27..327d880 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-441f67e59fe6af040e3ff2a718614c9f strip-ansi-0.1.1.tgz
+77fe06c131c3aa499f7071effd0bcd13 strip-ansi-0.2.0.tgz
diff --git a/test.js b/test.js
index 0b1d40a..8168adf 100644
--- a/test.js
+++ b/test.js
@@ -7,6 +7,10 @@ it('should strip color from string', function () {
assert.equal(strip('\x1b[0m\x1b[4m\x1b[42m\x1b[31mfoo\x1b[39m\x1b[49m\x1b[24mfoo\x1b[0m'), 'foofoo');
});
+it('should strip reset;setfg;setbg;italics;strike;underline sequence from string', function () {
+ assert.equal(strip('\x1b[0;33;49;3;9;4mbar\x1b[0m'), 'bar');
+});
+
it('should strip color with CLI', function (done) {
exec('echo "\x1b[0m\x1b[4m\x1b[42m\x1b[31mfoo\x1b[39m\x1b[49m\x1b[24mfoo\x1b[0m" | ./cli.js', function (err, stdout) {
assert.equal(stdout, 'foofoo\n');
More information about the scm-commits
mailing list