Hello community,

here is the log from the commit of package nodejs-concat-stream for 
openSUSE:Factory checked in at 2015-08-05 06:51:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nodejs-concat-stream (Old)
 and      /work/SRC/openSUSE:Factory/.nodejs-concat-stream.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nodejs-concat-stream"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/nodejs-concat-stream/nodejs-concat-stream.changes    
    2015-07-02 22:43:36.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.nodejs-concat-stream.new/nodejs-concat-stream.changes
   2015-08-05 06:51:44.000000000 +0200
@@ -1,0 +2,5 @@
+Sat Aug  1 23:19:14 UTC 2015 - [email protected]
+
+- update version 1.5.0
+
+-------------------------------------------------------------------

Old:
----
  concat-stream-1.4.8.tgz

New:
----
  concat-stream-1.5.0.tgz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nodejs-concat-stream.spec ++++++
--- /var/tmp/diff_new_pack.psIuLn/_old  2015-08-05 06:51:44.000000000 +0200
+++ /var/tmp/diff_new_pack.psIuLn/_new  2015-08-05 06:51:44.000000000 +0200
@@ -1,5 +1,5 @@
 #
-# spec file for package nodejs-ansi-regex
+# spec file for package nodejs-concat-stream
 #
 # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
@@ -19,22 +19,22 @@
 %define base_name concat-stream
 
 Name:           nodejs-%{base_name}
-Version:        1.4.8
+Version:        1.5.0
 Release:        0
 Summary:        Concat data and callback the result
 License:        MIT
 Group:          Development/Languages/Other
-Url:            https://www.npmjs.com/package/%{base_name}
+Url:            https://github.com/maxogden/concat-stream
 Source:         
http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
 BuildRequires:  nodejs-packaging
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
-ExclusiveArch:  %{ix86} x86_64 %{arm} noarch
 
 %nodejs_find_provides_and_requires
 
 %description
-Writable stream that concatenates strings or binary data and calls a callback 
with the result
+Writable stream that concatenates strings or binary data and
+calls a callback with the result.
 
 %prep
 %setup -q -n package
@@ -42,13 +42,13 @@
 %build
 
 %install
-mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{base_name}
 cp -pr package.json index.js \
-        %{buildroot}%{nodejs_modulesdir}/%{base_name}/
+  %{buildroot}%{nodejs_sitelib}/%{base_name}/
 
 %files
 %defattr(-,root,root,-)
 %doc readme.md LICENSE
-%{nodejs_modulesdir}/%{base_name}
+%{nodejs_sitelib}/%{base_name}
 
 %changelog

++++++ concat-stream-1.4.8.tgz -> concat-stream-1.5.0.tgz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/.npmignore new/package/.npmignore
--- old/package/.npmignore      2014-03-05 18:59:44.000000000 +0100
+++ new/package/.npmignore      1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-node_modules
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/package.json new/package/package.json
--- old/package/package.json    2015-04-04 02:15:08.000000000 +0200
+++ new/package/package.json    2015-06-17 06:35:49.000000000 +0200
@@ -1,6 +1,6 @@
 {
   "name": "concat-stream",
-  "version": "1.4.8",
+  "version": "1.5.0",
   "description": "writable stream that concatenates strings or binary data and 
calls a callback with the result",
   "tags": [
     "stream",
@@ -20,6 +20,9 @@
     "node >= 0.8"
   ],
   "main": "index.js",
+  "files": [
+    "index.js"
+  ],
   "scripts": {
     "test": "tape test/*.js test/server/*.js"
   },
@@ -27,7 +30,7 @@
   "dependencies": {
     "inherits": "~2.0.1",
     "typedarray": "~0.0.5",
-    "readable-stream": "~1.1.9"
+    "readable-stream": "~2.0.0"
   },
   "devDependencies": {
     "tape": "~2.3.2"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/readme.md new/package/readme.md
--- old/package/readme.md       2015-04-04 02:13:06.000000000 +0200
+++ new/package/readme.md       2015-06-10 20:35:56.000000000 +0200
@@ -2,8 +2,18 @@
 
 Writable stream that concatenates strings or binary data and calls a callback 
with the result. Not a transform stream -- more of a stream sink.
 
+[![Build 
Status](https://travis-ci.org/maxogden/concat-stream.svg?branch=master)](https://travis-ci.org/maxogden/concat-stream)
+
 
[![NPM](https://nodei.co/npm/concat-stream.png)](https://nodei.co/npm/concat-stream/)
 
+### description
+
+Streams emit many buffers. If you want to collect all of the buffers, and when 
the stream ends concatenate all of the buffers together and receive a single 
buffer then this is the module for you.
+
+Only use this if you know you can fit all of the output of your stream into a 
single Buffer (e.g. in RAM).
+
+There are also `objectMode` streams that emit things other than Buffers, and 
you can concatenate these too. See below for details.
+
 ### examples
 
 #### Buffers
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/test/array.js new/package/test/array.js
--- old/package/test/array.js   2014-03-05 18:59:44.000000000 +0100
+++ new/package/test/array.js   1970-01-01 01:00:00.000000000 +0100
@@ -1,12 +0,0 @@
-var concat = require('../')
-var test = require('tape')
-
-test('array stream', function (t) {
-  t.plan(1)
-  var arrays = concat({ encoding: 'array' }, function(out) {
-    t.deepEqual(out, [1,2,3,4,5,6])
-  })
-  arrays.write([1,2,3])
-  arrays.write([4,5,6])
-  arrays.end()
-})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/test/buffer.js new/package/test/buffer.js
--- old/package/test/buffer.js  2014-03-05 18:59:44.000000000 +0100
+++ new/package/test/buffer.js  1970-01-01 01:00:00.000000000 +0100
@@ -1,31 +0,0 @@
-var concat = require('../')
-var test = require('tape')
-var TA = require('typedarray')
-var U8 = typeof Uint8Array !== 'undefined' ? Uint8Array : TA.Uint8Array
-
-test('buffer stream', function (t) {
-  t.plan(2)
-  var buffers = concat(function(out) {
-    t.ok(Buffer.isBuffer(out))
-    t.equal(out.toString('utf8'), 'pizza Array is not a stringy cat')
-  })
-  buffers.write(new Buffer('pizza Array is not a ', 'utf8'))
-  buffers.write(new Buffer('stringy cat'))
-  buffers.end()
-})
-
-test('buffer mixed writes', function (t) {
-  t.plan(2)
-  var buffers = concat(function(out) {
-    t.ok(Buffer.isBuffer(out))
-    t.equal(out.toString('utf8'), 'pizza Array is not a stringy cat555')
-  })
-  buffers.write(new Buffer('pizza'))
-  buffers.write(' Array is not a ')
-  buffers.write([ 115, 116, 114, 105, 110, 103, 121 ])
-  var u8 = new U8(4)
-  u8[0] = 32; u8[1] = 99; u8[2] = 97; u8[3] = 116
-  buffers.write(u8)
-  buffers.write(555)
-  buffers.end()
-})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/test/infer.js new/package/test/infer.js
--- old/package/test/infer.js   2014-06-02 22:59:02.000000000 +0200
+++ new/package/test/infer.js   1970-01-01 01:00:00.000000000 +0100
@@ -1,15 +0,0 @@
-var concat = require('../')
-var test = require('tape')
-
-test('type inference works as expected', function(t) {
-  var stream = concat()
-  t.equal(stream.inferEncoding(['hello']), 'array', 'array')
-  t.equal(stream.inferEncoding(new Buffer('hello')), 'buffer', 'buffer')
-  t.equal(stream.inferEncoding(undefined), 'buffer', 'buffer')
-  t.equal(stream.inferEncoding(new Uint8Array(1)), 'uint8array', 'uint8array')
-  t.equal(stream.inferEncoding('hello'), 'string', 'string')
-  t.equal(stream.inferEncoding(''), 'string', 'string')
-  t.equal(stream.inferEncoding({hello: "world"}), 'object', 'object')
-  t.equal(stream.inferEncoding(1), 'buffer', 'buffer')
-  t.end()
-})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/test/nothing.js new/package/test/nothing.js
--- old/package/test/nothing.js 2014-03-12 17:23:29.000000000 +0100
+++ new/package/test/nothing.js 1970-01-01 01:00:00.000000000 +0100
@@ -1,25 +0,0 @@
-var concat = require('../')
-var test = require('tape')
-
-test('no callback stream', function (t) {
-  var stream = concat()
-  stream.write('space')
-  stream.end(' cats')
-  t.end()
-})
-
-test('no encoding set, no data', function (t) {
-  var stream = concat(function(data) {
-    t.deepEqual(data, [])
-    t.end()
-  })
-  stream.end()
-})
-
-test('encoding set to string, no data', function (t) {
-  var stream = concat({ encoding: 'string' }, function(data) {
-    t.deepEqual(data, '')
-    t.end()
-  })
-  stream.end()
-})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/test/objects.js new/package/test/objects.js
--- old/package/test/objects.js 2014-03-05 18:59:44.000000000 +0100
+++ new/package/test/objects.js 1970-01-01 01:00:00.000000000 +0100
@@ -1,29 +0,0 @@
-var concat = require('../')
-var test = require('tape')
-
-test('writing objects', function (t) {
-  var stream = concat({encoding: "objects"}, concatted)
-  function concatted(objs) {
-    t.equal(objs.length, 2)
-    t.deepEqual(objs[0], {"foo": "bar"})
-    t.deepEqual(objs[1], {"baz": "taco"})
-  }
-  stream.write({"foo": "bar"})
-  stream.write({"baz": "taco"})
-  stream.end()
-  t.end()
-})
-
-
-test('switch to objects encoding if no encoding specified and objects are 
written', function (t) {
-  var stream = concat(concatted)
-  function concatted(objs) {
-    t.equal(objs.length, 2)
-    t.deepEqual(objs[0], {"foo": "bar"})
-    t.deepEqual(objs[1], {"baz": "taco"})
-  }
-  stream.write({"foo": "bar"})
-  stream.write({"baz": "taco"})
-  stream.end()
-  t.end()
-})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/test/server/ls.js 
new/package/test/server/ls.js
--- old/package/test/server/ls.js       2014-03-05 18:59:44.000000000 +0100
+++ new/package/test/server/ls.js       1970-01-01 01:00:00.000000000 +0100
@@ -1,16 +0,0 @@
-var concat = require('../../')
-var spawn = require('child_process').spawn
-var exec = require('child_process').exec
-var test = require('tape')
-
-test('ls command', function (t) {
-  t.plan(1)
-  var cmd = spawn('ls', [ __dirname ])
-  cmd.stdout.pipe(
-    concat(function(out) {
-      exec('ls ' + __dirname, function (err, body) {
-        t.equal(out.toString('utf8'), body.toString('utf8'))
-      })
-    })
-  )
-})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/test/string.js new/package/test/string.js
--- old/package/test/string.js  2014-06-02 22:59:02.000000000 +0200
+++ new/package/test/string.js  1970-01-01 01:00:00.000000000 +0100
@@ -1,76 +0,0 @@
-var concat = require('../')
-var test = require('tape')
-var TA = require('typedarray')
-var U8 = typeof Uint8Array !== 'undefined' ? Uint8Array : TA.Uint8Array
-
-test('string -> buffer stream', function (t) {
-  t.plan(2)
-  var strings = concat({ encoding: 'buffer'}, function(out) {
-    t.ok(Buffer.isBuffer(out))
-    t.equal(out.toString('utf8'), 'nacho dogs')
-  })
-  strings.write("nacho ")
-  strings.write("dogs")
-  strings.end()
-})
-
-test('string stream', function (t) {
-  t.plan(2)
-  var strings = concat({ encoding: 'string' }, function(out) {
-    t.equal(typeof out, 'string')
-    t.equal(out, 'nacho dogs')
-  })
-  strings.write("nacho ")
-  strings.write("dogs")
-  strings.end()
-})
-
-test('end chunk', function (t) {
-  t.plan(1)
-  var endchunk = concat({ encoding: 'string' }, function(out) {
-    t.equal(out, 'this is the end')
-  })
-  endchunk.write("this ")
-  endchunk.write("is the ")
-  endchunk.end("end")
-})
-
-test('string from mixed write encodings', function (t) {
-  t.plan(2)
-  var strings = concat({ encoding: 'string' }, function(out) {
-    t.equal(typeof out, 'string')
-    t.equal(out, 'nacho dogs')
-  })
-  strings.write('na')
-  strings.write(Buffer('cho'))
-  strings.write([ 32, 100 ])
-  var u8 = new U8(3)
-  u8[0] = 111; u8[1] = 103; u8[2] = 115;
-  strings.end(u8)
-})
-
-test('string from buffers with multibyte characters', function (t) {
-  t.plan(2)
-  var strings = concat({ encoding: 'string' }, function(out) {
-    t.equal(typeof out, 'string')
-    t.equal(out, '☃☃☃☃☃☃☃☃')
-  })
-  var snowman = new Buffer('☃')
-  for (var i = 0; i < 8; i++) {
-    strings.write(snowman.slice(0, 1))
-    strings.write(snowman.slice(1))    
-  }
-  strings.end()
-})
-
-test('string infer encoding with empty string chunk', function (t) {
-  t.plan(2)
-  var strings = concat(function(out) {
-    t.equal(typeof out, 'string')
-    t.equal(out, 'nacho dogs')
-  })
-  strings.write("")
-  strings.write("nacho ")
-  strings.write("dogs")
-  strings.end()
-})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/test/typedarray.js 
new/package/test/typedarray.js
--- old/package/test/typedarray.js      2014-03-05 18:59:44.000000000 +0100
+++ new/package/test/typedarray.js      1970-01-01 01:00:00.000000000 +0100
@@ -1,33 +0,0 @@
-var concat = require('../')
-var test = require('tape')
-var TA = require('typedarray')
-var U8 = typeof Uint8Array !== 'undefined' ? Uint8Array : TA.Uint8Array
-
-test('typed array stream', function (t) {
-  t.plan(2)
-  var a = new U8(5)
-  a[0] = 97; a[1] = 98; a[2] = 99; a[3] = 100; a[4] = 101;
-  var b = new U8(3)
-  b[0] = 32; b[1] = 102; b[2] = 103;
-  var c = new U8(4)
-  c[0] = 32; c[1] = 120; c[2] = 121; c[3] = 122;
-
-  var arrays = concat({ encoding: 'Uint8Array' }, function(out) {
-    t.equal(typeof out.subarray, 'function')
-    t.deepEqual(Buffer(out).toString('utf8'), 'abcde fg xyz')
-  })
-  arrays.write(a)
-  arrays.write(b)
-  arrays.end(c)
-})
-
-test('typed array from strings, buffers, and arrays', function (t) {
-  t.plan(2)
-  var arrays = concat({ encoding: 'Uint8Array' }, function(out) {
-    t.equal(typeof out.subarray, 'function')
-    t.deepEqual(Buffer(out).toString('utf8'), 'abcde fg xyz')
-  })
-  arrays.write('abcde')
-  arrays.write(Buffer(' fg '))
-  arrays.end([ 120, 121, 122 ])
-})


Reply via email to