commit nodejs-normalize-package-data for openSUSE:Factory

2015-08-04 Thread h_root
Hello community,

here is the log from the commit of package nodejs-normalize-package-data for 
openSUSE:Factory checked in at 2015-08-05 06:51:13

Comparing /work/SRC/openSUSE:Factory/nodejs-normalize-package-data (Old)
 and  /work/SRC/openSUSE:Factory/.nodejs-normalize-package-data.new (New)


Package is nodejs-normalize-package-data

Changes:

--- 
/work/SRC/openSUSE:Factory/nodejs-normalize-package-data/nodejs-normalize-package-data.changes
  2015-07-02 22:39:22.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.nodejs-normalize-package-data.new/nodejs-normalize-package-data.changes
 2015-08-05 06:51:14.0 +0200
@@ -1,0 +2,5 @@
+Wed Jul 29 13:42:12 UTC 2015 - i...@marguerite.su
+
+- update version 2.3.1
+
+---

Old:

  normalize-package-data-2.2.0.tgz

New:

  normalize-package-data-2.3.1.tgz



Other differences:
--
++ nodejs-normalize-package-data.spec ++
--- /var/tmp/diff_new_pack.LJe0D4/_old  2015-08-05 06:51:15.0 +0200
+++ /var/tmp/diff_new_pack.LJe0D4/_new  2015-08-05 06:51:15.0 +0200
@@ -19,7 +19,7 @@
 %define base_name normalize-package-data
 
 Name:   nodejs-normalize-package-data
-Version:2.2.0
+Version:2.3.1
 Release:0
 Summary:Normalizes data that can be found in package.json files
 License:BSD-2-Clause

++ normalize-package-data-2.2.0.tgz - normalize-package-data-2.3.1.tgz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/README.md new/package/README.md
--- old/package/README.md   2015-05-22 01:32:48.0 +0200
+++ new/package/README.md   2015-06-19 10:17:38.0 +0200
@@ -95,7 +95,7 @@
 
 ### Rules for license field
 
-The `license` field should be a valid *SDPDX license expression* string, as 
determined by the `spdx.valid` method. See [documentation for the spdx 
module](https://github.com/kemitchell/spdx.js).
+The `license` field should be a valid *SDPDX license expression* or one of the 
special values allowed by 
[validate-npm-package-license](https://npmjs.com/packages/validate-npm-package-license).
 See [documentation for the license field in 
package.json](https://docs.npmjs.com/files/package.json#license).
 
 ## Credits
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/lib/fixer.js new/package/lib/fixer.js
--- old/package/lib/fixer.js2015-05-22 01:32:48.0 +0200
+++ new/package/lib/fixer.js2015-06-19 10:17:38.0 +0200
@@ -1,5 +1,5 @@
 var semver = require(semver)
-var spdx = require('spdx');
+var validateLicense = require('validate-npm-package-license');
 var hostedGitInfo = require(hosted-git-info)
 var depTypes = [dependencies,devDependencies,optionalDependencies]
 var extractDescription = require(./extract_description)
@@ -50,6 +50,7 @@
 if (typeof data.scripts !== object) {
   this.warn(nonObjectScripts)
   delete data.scripts
+  return
 }
 Object.keys(data.scripts).forEach(function (k) {
   if (typeof data.scripts[k] !== string) {
@@ -291,12 +292,16 @@
 , fixLicenseField: function(data) {
 if (!data.license) {
   return this.warn(missingLicense)
-} else if (
-  typeof(data.license) !== 'string' ||
-  data.license.length  1 ||
-  !spdx.valid(data.license)
-) {
-  this.warn(nonSPDXLicense)
+} else{
+  if (
+typeof(data.license) !== 'string' ||
+data.license.length  1
+  ) {
+this.warn(invalidLicense)
+  } else {
+if (!validateLicense(data.license).validForNewPackages)
+  this.warn(invalidLicense)
+  }
 }
   }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/lib/warning_messages.json 
new/package/lib/warning_messages.json
--- old/package/lib/warning_messages.json   2015-05-22 01:32:48.0 
+0200
+++ new/package/lib/warning_messages.json   2015-06-19 10:17:38.0 
+0200
@@ -25,7 +25,7 @@
   ,nonEmailBugsEmailField: bugs.email field must be a string email. 
Deleted.
   ,emptyNormalizedBugs: Normalized value of bugs field is an empty object. 
Deleted.
   ,nonUrlHomepage: homepage field must be a string url. Deleted.
-  ,nonSPDXLicense: license should be a valid SPDX license expression
+  ,invalidLicense: license should be a valid SPDX license expression
   ,missingProtocolHomepage: homepage field must start with a protocol.
   ,typo: %s should probably be %s.
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/package.json new/package/package.json
--- old/package/package.json

commit nodejs-normalize-package-data for openSUSE:Factory

2015-07-02 Thread h_root
Hello community,

here is the log from the commit of package nodejs-normalize-package-data for 
openSUSE:Factory checked in at 2015-07-02 22:39:21

Comparing /work/SRC/openSUSE:Factory/nodejs-normalize-package-data (Old)
 and  /work/SRC/openSUSE:Factory/.nodejs-normalize-package-data.new (New)


Package is nodejs-normalize-package-data

Changes:

--- 
/work/SRC/openSUSE:Factory/nodejs-normalize-package-data/nodejs-normalize-package-data.changes
  2015-04-27 13:01:58.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.nodejs-normalize-package-data.new/nodejs-normalize-package-data.changes
 2015-07-02 22:39:22.0 +0200
@@ -1,0 +2,10 @@
+Sat Jun  6 11:27:36 UTC 2015 - i...@marguerite.su
+
+- update version 2.2.0
+
+---
+Fri Apr 24 12:25:21 UTC 2015 - hvo...@suse.com
+
+- Update to version 2.0.0
+
+---

Old:

  normalize-package-data-1.0.3.tgz

New:

  normalize-package-data-2.2.0.tgz



Other differences:
--
++ nodejs-normalize-package-data.spec ++
--- /var/tmp/diff_new_pack.pIzMUt/_old  2015-07-02 22:39:23.0 +0200
+++ /var/tmp/diff_new_pack.pIzMUt/_new  2015-07-02 22:39:23.0 +0200
@@ -19,7 +19,7 @@
 %define base_name normalize-package-data
 
 Name:   nodejs-normalize-package-data
-Version:1.0.3
+Version:2.2.0
 Release:0
 Summary:Normalizes data that can be found in package.json files
 License:BSD-2-Clause

++ normalize-package-data-1.0.3.tgz - normalize-package-data-2.2.0.tgz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/README.md new/package/README.md
--- old/package/README.md   2014-09-30 01:05:04.0 +0200
+++ new/package/README.md   2015-05-22 01:32:48.0 +0200
@@ -1,4 +1,4 @@
-# normalize-package-data [![Build 
Status](https://travis-ci.org/meryn/normalize-package-data.png?branch=master)](https://travis-ci.org/meryn/normalize-package-data)
+# normalize-package-data [![Build 
Status](https://travis-ci.org/npm/normalize-package-data.png?branch=master)](https://travis-ci.org/npm/normalize-package-data)
 
 normalize-package data exports a function that normalizes package metadata. 
This data is typically found in a package.json file, but in principle could 
come from any source - for example the npm registry.
 
@@ -68,9 +68,11 @@
 * If `bundledDependencies` field (a typo) exists and `bundleDependencies` 
field does not, `bundledDependencies` will get renamed to `bundleDependencies`.
 * If the value of any of the dependencies fields  (`dependencies`, 
`devDependencies`, `optionalDependencies`) is a string, it gets converted into 
an object with familiar `name=value` pairs.
 * The values in `optionalDependencies` get added to `dependencies`. The 
`optionalDependencies` array is left untouched.
+* As of v2: Dependencies that point at known hosted git providers (currently: 
github, bitbucket, gitlab) will have their URLs canonicalized, but protocols 
will be preserved.
+* As of v2: Dependencies that use shortcuts for hosted git providers 
(`org/proj`, `github:org/proj`, `bitbucket:org/proj`, `gitlab:org/proj`, 
`gist:docid`) will have the shortcut left in place. (In the case of github, the 
`org/proj` form will be expanded to `github:org/proj`.) THIS MARKS A BREAKING 
CHANGE FROM V1, where the shorcut was previously expanded to a URL.
 * If `description` field does not exist, but `readme` field does, then (more 
or less) the first paragraph of text that's found in the readme is taken as 
value for `description`.
 * If `repository` field is a string, it will become an object with `url` set 
to the original string value, and `type` set to `git`.
-* If `repository.url` is not a valid url, but in the style of 
[owner-name]/[repo-name], `repository.url` will be set to 
git://github.com/[owner-name]/[repo-name]
+* If `repository.url` is not a valid url, but in the style of 
[owner-name]/[repo-name], `repository.url` will be set to 
https://github.com/[owner-name]/[repo-name]
 * If `bugs` field is a string, the value of `bugs` field is changed into an 
object with `url` set to the original string value.
 * If `bugs` field does not exist, but `repository` field points to a 
repository hosted on GitHub, the value of the `bugs` field gets set to an url 
in the form of https://github.com/[owner-name]/[repo-name]/issues . If the 
repository field points to a GitHub Gist repo url, the associated http url is 
chosen.
 * If `bugs` field is an object, the resulting value only has email and url 
properties. If email and url properties are not strings, they are ignored. If 
no valid values 

commit nodejs-normalize-package-data for openSUSE:Factory

2015-04-27 Thread h_root
Hello community,

here is the log from the commit of package nodejs-normalize-package-data for 
openSUSE:Factory checked in at 2015-04-27 13:01:57

Comparing /work/SRC/openSUSE:Factory/nodejs-normalize-package-data (Old)
 and  /work/SRC/openSUSE:Factory/.nodejs-normalize-package-data.new (New)


Package is nodejs-normalize-package-data

Changes:

--- 
/work/SRC/openSUSE:Factory/nodejs-normalize-package-data/nodejs-normalize-package-data.changes
  2014-10-24 10:47:45.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.nodejs-normalize-package-data.new/nodejs-normalize-package-data.changes
 2015-04-27 13:01:58.0 +0200
@@ -1,0 +2,5 @@
+Sat Apr  4 06:43:11 UTC 2015 - dmuel...@suse.com
+
+- enable building for all arches
+
+---



Other differences:
--
++ nodejs-normalize-package-data.spec ++
--- /var/tmp/diff_new_pack.K6caZT/_old  2015-04-27 13:01:58.0 +0200
+++ /var/tmp/diff_new_pack.K6caZT/_new  2015-04-27 13:01:58.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nodejs-normalize-package-data
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -29,7 +29,6 @@
 BuildRequires:  nodejs-packaging
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
-ExclusiveArch:  %{ix86} x86_64 %{arm} noarch
 
 %nodejs_find_provides_and_requires
 




commit nodejs-normalize-package-data for openSUSE:Factory

2014-10-24 Thread h_root
Hello community,

here is the log from the commit of package nodejs-normalize-package-data for 
openSUSE:Factory checked in at 2014-10-24 10:47:42

Comparing /work/SRC/openSUSE:Factory/nodejs-normalize-package-data (Old)
 and  /work/SRC/openSUSE:Factory/.nodejs-normalize-package-data.new (New)


Package is nodejs-normalize-package-data

Changes:

--- 
/work/SRC/openSUSE:Factory/nodejs-normalize-package-data/nodejs-normalize-package-data.changes
  2014-09-23 17:17:30.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.nodejs-normalize-package-data.new/nodejs-normalize-package-data.changes
 2014-10-24 10:47:45.0 +0200
@@ -1,0 +2,10 @@
+Fri Oct 10 15:15:06 UTC 2014 - jgleiss...@suse.com
+
+- update to version 1.0.3
+
+---
+Thu Oct  9 15:08:24 UTC 2014 - jgleiss...@suse.com
+
+- use nodejs-packaging for building
+
+---

Old:

  normalize-package-data-1.0.2.tgz

New:

  normalize-package-data-1.0.3.tgz



Other differences:
--
++ nodejs-normalize-package-data.spec ++
--- /var/tmp/diff_new_pack.z124ND/_old  2014-10-24 10:47:47.0 +0200
+++ /var/tmp/diff_new_pack.z124ND/_new  2014-10-24 10:47:47.0 +0200
@@ -19,21 +19,19 @@
 %define base_name normalize-package-data
 
 Name:   nodejs-normalize-package-data
-Version:1.0.2
+Version:1.0.3
 Release:0
 Summary:Normalizes data that can be found in package.json files
 License:BSD-2-Clause
 Group:  Development/Languages/Other
 Url:https://github.com/meryn/normalize-package-data
 Source: 
http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
-Requires:   nodejs-github-url-from-git
-Requires:   nodejs-github-url-from-username-repo
-Requires:   nodejs-semver
-BuildRequires:  nodejs
+BuildRequires:  nodejs-packaging
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
 ExclusiveArch:  %{ix86} x86_64 %{arm} noarch
-%{?nodejs_requires}
+
+%nodejs_find_provides_and_requires
 
 %description
 normalize-package data exports a function that normalizes package metadata. 
This data is typically found in a package.json file, but in principle could 
come from any source - for example the npm registry. 

++ normalize-package-data-1.0.2.tgz - normalize-package-data-1.0.3.tgz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/README.md new/package/README.md
--- old/package/README.md   2014-09-11 09:11:38.0 +0200
+++ new/package/README.md   2014-09-30 01:05:04.0 +0200
@@ -16,7 +16,7 @@
 
 ```javascript
 normalizeData = require('normalize-package-data')
-packageData = fs.readfileSync(package.json)
+packageData = fs.readFileSync(package.json)
 normalizeData(packageData)
 // packageData is now normalized
 ```
@@ -27,7 +27,7 @@
 
 ```javascript
 normalizeData = require('normalize-package-data')
-packageData = fs.readfileSync(package.json)
+packageData = fs.readFileSync(package.json)
 warnFn = function(msg) { console.error(msg) }
 normalizeData(packageData, true)
 // packageData is now normalized
@@ -41,7 +41,7 @@
 
 ```javascript
 normalizeData = require('normalize-package-data')
-packageData = fs.readfileSync(package.json)
+packageData = fs.readFileSync(package.json)
 warnFn = function(msg) { console.error(msg) }
 normalizeData(packageData, warnFn)
 // packageData is now normalized. Any number of warnings may have been logged.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/lib/fixer.js new/package/lib/fixer.js
--- old/package/lib/fixer.js2014-07-23 23:22:18.0 +0200
+++ new/package/lib/fixer.js2014-09-30 01:09:04.0 +0200
@@ -111,6 +111,13 @@
   this.warn(nonStringBundleDependency, bd)
   return false
 } else {
+  if (!data.dependencies) {
+data.dependencies = {}
+  }
+  if (!data.dependencies.hasOwnProperty(bd)) {
+this.warn(nonDependencyBundleDependency, bd)
+data.dependencies[bd] = *
+  }
   return true
 }
   }, this)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/package/lib/warning_messages.json 
new/package/lib/warning_messages.json
--- old/package/lib/warning_messages.json   2014-04-25 00:48:20.0 
+0200
+++ new/package/lib/warning_messages.json   2014-09-30 01:08:55.0 
+0200
@@ -8,6 +8,7 @@
   ,invalidFilename: Invalid filename in 'files' list: %s
   ,nonArrayBundleDependencies: Invalid 'bundleDependencies' list. 

commit nodejs-normalize-package-data for openSUSE:Factory

2014-09-23 Thread h_root
Hello community,

here is the log from the commit of package nodejs-normalize-package-data for 
openSUSE:Factory checked in at 2014-09-23 17:17:29

Comparing /work/SRC/openSUSE:Factory/nodejs-normalize-package-data (Old)
 and  /work/SRC/openSUSE:Factory/.nodejs-normalize-package-data.new (New)


Package is nodejs-normalize-package-data

Changes:

New Changes file:

--- /dev/null   2014-07-24 01:57:42.080040256 +0200
+++ 
/work/SRC/openSUSE:Factory/.nodejs-normalize-package-data.new/nodejs-normalize-package-data.changes
 2014-09-23 17:17:30.0 +0200
@@ -0,0 +1,10 @@
+---
+Sun Sep 21 19:50:35 UTC 2014 - i...@marguerite.su
+
+- update version 1.0.2
+
+---
+Tue Aug 19 08:26:53 UTC 2014 - jgleiss...@suse.com
+
+- Initial build
+

New:

  nodejs-normalize-package-data.changes
  nodejs-normalize-package-data.spec
  normalize-package-data-1.0.2.tgz



Other differences:
--
++ nodejs-normalize-package-data.spec ++
#
# spec file for package nodejs-normalize-package-data
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An Open Source License is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define base_name normalize-package-data

Name:   nodejs-normalize-package-data
Version:1.0.2
Release:0
Summary:Normalizes data that can be found in package.json files
License:BSD-2-Clause
Group:  Development/Languages/Other
Url:https://github.com/meryn/normalize-package-data
Source: 
http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
Requires:   nodejs-github-url-from-git
Requires:   nodejs-github-url-from-username-repo
Requires:   nodejs-semver
BuildRequires:  nodejs
BuildRoot:  %{_tmppath}/%{name}-%{version}-build
BuildArch:  noarch
ExclusiveArch:  %{ix86} x86_64 %{arm} noarch
%{?nodejs_requires}

%description
normalize-package data exports a function that normalizes package metadata. 
This data is typically found in a package.json file, but in principle could 
come from any source - for example the npm registry. 

%prep
%setup -q -n package

%build

%install
mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
cp -pr package.json lib \
%{buildroot}%{nodejs_modulesdir}/%{base_name}/

%files
%defattr(-,root,root,-)
%doc AUTHORS README.md LICENSE
%{nodejs_modulesdir}/%{base_name}

%changelog
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org