Hello community,
here is the log from the commit of package nodejs-init-package-json for
openSUSE:Factory checked in at 2015-08-05 06:51:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nodejs-init-package-json (Old)
and /work/SRC/openSUSE:Factory/.nodejs-init-package-json.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nodejs-init-package-json"
Changes:
--------
---
/work/SRC/openSUSE:Factory/nodejs-init-package-json/nodejs-init-package-json.changes
2015-07-20 11:21:59.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.nodejs-init-package-json.new/nodejs-init-package-json.changes
2015-08-05 06:51:43.000000000 +0200
@@ -1,0 +2,5 @@
+Sat Aug 1 10:26:58 UTC 2015 - [email protected]
+
+- update version 1.7.0
+
+-------------------------------------------------------------------
Old:
----
init-package-json-1.6.0.tgz
New:
----
init-package-json-1.7.0.tgz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ nodejs-init-package-json.spec ++++++
--- /var/tmp/diff_new_pack.fFSOOP/_old 2015-08-05 06:51:43.000000000 +0200
+++ /var/tmp/diff_new_pack.fFSOOP/_new 2015-08-05 06:51:43.000000000 +0200
@@ -19,7 +19,7 @@
%define base_name init-package-json
Name: nodejs-init-package-json
-Version: 1.6.0
+Version: 1.7.0
Release: 0
Summary: Node.js init package.json
License: ISC
@@ -41,13 +41,13 @@
%build
%install
-mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{base_name}
cp -pr package.json *.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
++++++ init-package-json-1.6.0.tgz -> init-package-json-1.7.0.tgz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/.travis.yml new/package/.travis.yml
--- old/package/.travis.yml 2015-05-21 23:05:13.000000000 +0200
+++ new/package/.travis.yml 2015-06-19 09:22:39.000000000 +0200
@@ -1,4 +1,5 @@
language: node_js
node_js:
- - "0.10"
- - "0.11"
+ - '0.10'
+ - '0.12'
+ - 'iojs'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/default-input.js new/package/default-input.js
--- old/package/default-input.js 2015-05-21 23:10:36.000000000 +0200
+++ new/package/default-input.js 2015-06-19 09:25:41.000000000 +0200
@@ -12,7 +12,7 @@
}
function niceName (n) {
- return n.replace(/^node-|[.-]js$/g, '')
+ return n.replace(/^node-|[.-]js$/g, '').toLowerCase()
}
function readDeps (test) { return function (cb) {
@@ -72,7 +72,6 @@
if (semver.valid(version)) return version
var er = new Error('Invalid version: "' + version + '"')
er.notValid = true
- er.again = true
return er
})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/package.json new/package/package.json
--- old/package/package.json 2015-05-21 23:12:06.000000000 +0200
+++ new/package/package.json 2015-06-19 09:45:59.000000000 +0200
@@ -1,6 +1,6 @@
{
"name": "init-package-json",
- "version": "1.6.0",
+ "version": "1.7.0",
"main": "init-package-json.js",
"scripts": {
"test": "tap test/*.js"
@@ -19,13 +19,13 @@
"read": "~1.0.1",
"read-package-json": "1 || 2",
"semver": "2.x || 3.x || 4",
- "validate-npm-package-license": "1.0.0-prerelease-2",
+ "validate-npm-package-license": "^2.0.0",
"validate-npm-package-name": "^2.0.1"
},
"devDependencies": {
"npm": "^2",
"rimraf": "^2.1.4",
- "tap": "^0.7.1"
+ "tap": "^1.2.0"
},
"keywords": [
"init",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/test/basic.js new/package/test/basic.js
--- old/package/test/basic.js 2015-05-21 23:05:13.000000000 +0200
+++ new/package/test/basic.js 2015-06-19 09:22:39.000000000 +0200
@@ -6,6 +6,7 @@
test('the basics', function (t) {
var i = path.join(__dirname, 'basic.input')
+ rimraf.sync(__dirname + '/package.json')
init(__dirname, i, { foo: 'bar' }, function (er, data) {
if (er) throw er
var expect = {
@@ -18,6 +19,7 @@
config: { foo: 'bar' },
package: {}
}
+ console.log('')
t.same(data, expect)
t.end()
})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/test/license.js new/package/test/license.js
--- old/package/test/license.js 2015-05-21 23:05:13.000000000 +0200
+++ new/package/test/license.js 2015-06-19 09:22:39.000000000 +0200
@@ -5,7 +5,9 @@
test('license', function (t) {
init(__dirname, '', {}, function (er, data) {
- t.ok(!er, 'should not error')
+ if (er)
+ throw er
+
var wanted = {
name: 'the-name',
version: '1.0.0',
@@ -15,7 +17,8 @@
author: '',
main: 'basic.js'
}
- t.same(data, wanted)
+ console.log('')
+ t.has(data, wanted)
t.end()
})
common.drive([
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/test/name-spaces.js
new/package/test/name-spaces.js
--- old/package/test/name-spaces.js 2015-05-21 23:05:13.000000000 +0200
+++ new/package/test/name-spaces.js 2015-06-19 09:22:39.000000000 +0200
@@ -4,8 +4,10 @@
var common = require('./lib/common')
test('spaces', function (t) {
+ rimraf.sync(__dirname + '/package.json')
init(__dirname, '', {}, function (er, data) {
- t.ok(!er, 'should not error')
+ if (er)
+ throw er
var wanted = {
name: 'the-name',
version: '1.0.0',
@@ -15,7 +17,8 @@
author: '',
main: 'basic.js'
}
- t.same(data, wanted)
+ console.log('')
+ t.has(data, wanted)
t.end()
})
common.drive([
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/test/name-uppercase.js
new/package/test/name-uppercase.js
--- old/package/test/name-uppercase.js 2015-05-21 23:05:13.000000000 +0200
+++ new/package/test/name-uppercase.js 2015-06-19 09:22:39.000000000 +0200
@@ -5,7 +5,9 @@
test('uppercase', function (t) {
init(__dirname, '', {}, function (er, data) {
- t.ok(!er, 'should not error')
+ if (er)
+ throw er
+
var wanted = {
name: 'the-name',
version: '1.0.0',
@@ -15,7 +17,8 @@
author: '',
main: 'basic.js'
}
- t.same(data, wanted)
+ console.log('')
+ t.has(data, wanted)
t.end()
})
common.drive([
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/test/scope-in-config-existing-name.js
new/package/test/scope-in-config-existing-name.js
--- old/package/test/scope-in-config-existing-name.js 1970-01-01
01:00:00.000000000 +0100
+++ new/package/test/scope-in-config-existing-name.js 2015-06-19
09:22:39.000000000 +0200
@@ -0,0 +1,30 @@
+var fs = require('fs')
+var path = require('path')
+
+var rimraf = require('rimraf')
+var tap = require('tap')
+
+var init = require('../')
+
+var json = {
+ name: '@already/scoped',
+ version: '1.0.0'
+}
+
+tap.test('with existing package.json', function (t) {
+ fs.writeFileSync(path.join(__dirname, 'package.json'), JSON.stringify(json,
null, 2))
+ console.log(fs.readFileSync(path.join(__dirname, 'package.json'), 'utf8'))
+ console.error('wrote json', json)
+ init(__dirname, __dirname, { yes: 'yes', scope: '@still' }, function (er,
data) {
+ if (er) throw er
+
+ console.log('')
+ t.equal(data.name, '@still/scoped', 'new scope is added, basic name is
kept')
+ t.end()
+ })
+})
+
+tap.test('teardown', function (t) {
+ rimraf.sync(path.join(__dirname, 'package.json'))
+ t.end()
+})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/test/scope-in-config.js
new/package/test/scope-in-config.js
--- old/package/test/scope-in-config.js 2015-05-21 23:05:13.000000000 +0200
+++ new/package/test/scope-in-config.js 2015-06-19 09:22:39.000000000 +0200
@@ -21,22 +21,8 @@
init(__dirname, __dirname, { yes: 'yes', scope: '@scoped' }, function (er,
data) {
if (er) throw er
- t.same(EXPECT, data)
- t.end()
- })
-})
-
-var json = {
- name: '@already/scoped',
- version: '1.0.0'
-}
-
-tap.test('with existing package.json', function (t) {
- fs.writeFileSync(path.join(__dirname, 'package.json'), JSON.stringify(json,
null, 2))
- init(__dirname, __dirname, { yes: 'yes', scope: '@still' }, function (er,
data) {
- if (er) throw er
-
- t.equal(data.name, '@still/scoped', 'new scope is added, basic name is
kept')
+ console.log('')
+ t.has(data, EXPECT)
t.end()
})
})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/test/scope.js new/package/test/scope.js
--- old/package/test/scope.js 2015-05-21 23:05:13.000000000 +0200
+++ new/package/test/scope.js 2015-06-19 09:22:39.000000000 +0200
@@ -19,7 +19,8 @@
init(dir, i, {scope: '@foo'}, function (er, data) {
if (er) throw er
- t.same(EXPECT, data)
+ console.log('')
+ t.has(data, EXPECT)
t.end()
})
setTimeout(function () {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/test/yes-defaults.js
new/package/test/yes-defaults.js
--- old/package/test/yes-defaults.js 2015-05-21 23:05:13.000000000 +0200
+++ new/package/test/yes-defaults.js 2015-06-19 09:22:39.000000000 +0200
@@ -17,7 +17,7 @@
init(__dirname, __dirname, {yes: 'yes'}, function (er, data) {
if (er) throw er
- t.same(EXPECT, data, 'used the default data')
+ t.has(data, EXPECT, 'used the default data')
t.end()
})
})