Hello community,

here is the log from the commit of package i18nspector for openSUSE:Factory 
checked in at 2014-11-24 11:09:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/i18nspector (Old)
 and      /work/SRC/openSUSE:Factory/.i18nspector.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "i18nspector"

Changes:
--------
--- /work/SRC/openSUSE:Factory/i18nspector/i18nspector.changes  2014-10-23 
14:21:02.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.i18nspector.new/i18nspector.changes     
2014-11-24 11:09:58.000000000 +0100
@@ -1,0 +2,8 @@
+Fri Nov 21 19:15:13 UTC 2014 - [email protected]
+
+- Update to 0.17.2.
+  * Fix parsing Language header fields containing commas.
+  * Document -h/--help and --version in the manual page.
+  * Improve the test suite.
+
+-------------------------------------------------------------------

Old:
----
  i18nspector-0.17.1.tar.gz
  i18nspector-0.17.1.tar.gz.asc

New:
----
  i18nspector-0.17.2.tar.gz
  i18nspector-0.17.2.tar.gz.asc

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

Other differences:
------------------
++++++ i18nspector.spec ++++++
--- /var/tmp/diff_new_pack.4vKC7l/_old  2014-11-24 11:09:59.000000000 +0100
+++ /var/tmp/diff_new_pack.4vKC7l/_new  2014-11-24 11:09:59.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           i18nspector
-Version:        0.17.1
+Version:        0.17.2
 Release:        0
 Summary:        Tool for Checking gettext POT/PO/MO Files
 License:        MIT

++++++ i18nspector-0.17.1.tar.gz -> i18nspector-0.17.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.17.1/data/iso-codes 
new/i18nspector-0.17.2/data/iso-codes
--- old/i18nspector-0.17.1/data/iso-codes       2014-10-18 17:19:36.000000000 
+0200
+++ new/i18nspector-0.17.2/data/iso-codes       2014-11-19 15:11:23.000000000 
+0100
@@ -1,7 +1,7 @@
 # This file has been generated automatically by private/update-iso-codes.
 # Do not edit.
-# iso-codes version: 3.56
-# Last update: 2014-10-18
+# iso-codes version: 3.57
+# Last update: 2014-10-25
 
 [language-codes]
 aar = aa
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.17.1/doc/changelog 
new/i18nspector-0.17.2/doc/changelog
--- old/i18nspector-0.17.1/doc/changelog        2014-10-18 17:19:36.000000000 
+0200
+++ new/i18nspector-0.17.2/doc/changelog        2014-11-19 15:11:24.000000000 
+0100
@@ -1,4 +1,12 @@
-i18nspector (0.17.1) unstable; urgency=medium
+i18nspector (0.17.2) unstable; urgency=low
+
+  * Fix parsing Language header fields containing commas.
+  * Document -h/--help and --version in the manual page.
+  * Improve the test suite.
+
+ -- Jakub Wilk <[email protected]>  Wed, 19 Nov 2014 15:11:06 +0100
+
+i18nspector (0.17.1) unstable; urgency=low
 
   * Restore compatibility with polib 1.0.3 and earlier versions.
     Thanks to Kyrill Detinov for the bug report.
@@ -129,7 +137,7 @@
 i18nspector (0.13.2) unstable; urgency=low
 
   * Reject early encodings that are not compatible with ASCII.
-    http://bugs.python.org/issue19619
+    https://bugs.python.org/issue19619
   * Improve the test suite.
 
  -- Jakub Wilk <[email protected]>  Thu, 02 Jan 2014 13:30:16 +0100
@@ -519,7 +527,7 @@
   * Try to propose encoding for invalid-content-type.
   * Fix untrusted input sanitization.
   * Work around an escape sequence decoding bug in polib.
-    https://bitbucket.org/izi/polib/issue/31 
+    https://bitbucket.org/izi/polib/issue/31
   * Fix typos and formatting errors in the manual page.
   * Improve the test suite.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.17.1/doc/dependencies.txt 
new/i18nspector-0.17.2/doc/dependencies.txt
--- old/i18nspector-0.17.1/doc/dependencies.txt 2014-10-18 17:19:36.000000000 
+0200
+++ new/i18nspector-0.17.2/doc/dependencies.txt 2014-11-19 15:11:24.000000000 
+0100
@@ -2,7 +2,7 @@
 
 * Python ≥ 3.2;
 
-* polib_, a gettext catalogs manipulation library.
+* polib_ ≥ 1.0.0, a gettext catalogs manipulation library.
 
 Additionally, the following software is needed to rebuild the manual page from
 source:
@@ -15,4 +15,4 @@
 .. _docutils:
    http://docutils.sourceforge.net/
 
-.. vim:ts=3 sw=3 ft=rst
+.. vim:ts=3 sts=3 sw=3 ft=rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.17.1/doc/i18nspector.1 
new/i18nspector-0.17.2/doc/i18nspector.1
--- old/i18nspector-0.17.1/doc/i18nspector.1    2014-10-18 17:19:38.000000000 
+0200
+++ new/i18nspector-0.17.2/doc/i18nspector.1    2014-11-19 15:11:26.000000000 
+0100
@@ -1,6 +1,6 @@
 .\" Man page generated from reStructuredText.
 .
-.TH I18NSPECTOR 1 "2014-10-18" "i18nspector 0.17.1" ""
+.TH I18NSPECTOR 1 "2014-11-19" "i18nspector 0.17.2" ""
 .SH NAME
 i18nspector \- checking tool for gettext POT, PO and MO files
 .
@@ -32,12 +32,12 @@
 ..
 .SH SYNOPSIS
 .sp
-\fBi18nspector\fP [\-\-language \fI<lang>\fP] [\-\-debian] \fI<file>\fP 
[\fI<file>\fP …]
+\fBi18nspector\fP [\-\-language \fIlang\fP] [\-\-debian] \fIfile\fP 
[\fIfile\fP …]
 .SH OPTIONS
 .INDENT 0.0
 .TP
-.BI \-l \ <lang>\fP,\fB \ \-\-language \ <lang>
-Assume this language. \fI<lang>\fP should be a 2\- or 3\-letter ISO 639 
language
+.BI \-l \ lang\fP,\fB \ \-\-language \ lang
+Assume this language. \fIlang\fP should be a 2\- or 3\-letter ISO 639 language
 code, possibly followed by underscore and a 2\-letter ISO 3166 territory
 code.
 .TP
@@ -45,6 +45,12 @@
 Allow checking Debian (binary or source) packages.
 This option is enabled by default on modern Debian systems and its
 derivatives; it needs to be explicitly enabled on other systems.
+.TP
+.B \-h\fP,\fB  \-\-help
+Show the help message and exit.
+.TP
+.B \-\-version
+Show the program's version number and exit.
 .UNINDENT
 .SH DESCRIPTION
 .sp
@@ -1715,7 +1721,7 @@
 .SH SEE ALSO
 .sp
 \fBmsgfmt\fP(1), particularly the \fB\-c\fP option
-.\" vim:ts=3 sw=3 ft=rst
+.\" vim:ts=3 sts=3 sw=3 ft=rst
 .
 .\" Generated by docutils manpage writer.
 .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.17.1/doc/i18nspector.txt 
new/i18nspector-0.17.2/doc/i18nspector.txt
--- old/i18nspector-0.17.1/doc/i18nspector.txt  2014-10-18 17:19:36.000000000 
+0200
+++ new/i18nspector-0.17.2/doc/i18nspector.txt  2014-11-19 15:11:24.000000000 
+0100
@@ -7,23 +7,27 @@
 ----------------------------------------------
 
 :manual section: 1
-:version: i18nspector 0.17.1
+:version: i18nspector 0.17.2
 :date: |date|
 
 Synopsis
 --------
-**i18nspector** [--language *<lang>*] [--debian] *<file>* [*<file>* …]
+**i18nspector** [--language *lang*] [--debian] *file* [*file* …]
 
 Options
 -------
--l <lang>, --language <lang>
-   Assume this language. *<lang>* should be a 2- or 3-letter ISO 639 language
+-l lang, --language lang
+   Assume this language. *lang* should be a 2- or 3-letter ISO 639 language
    code, possibly followed by underscore and a 2-letter ISO 3166 territory
    code.
 --debian
    Allow checking Debian (binary or source) packages.
    This option is enabled by default on modern Debian systems and its
    derivatives; it needs to be explicitly enabled on other systems.
+-h, --help
+   Show the help message and exit.
+--version
+   Show the program's version number and exit.
 
 Description
 -----------
@@ -56,4 +60,4 @@
 --------
 **msgfmt**\ (1), particularly the ``-c`` option
 
-.. vim:ts=3 sw=3 ft=rst
+.. vim:ts=3 sts=3 sw=3 ft=rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.17.1/lib/cli.py 
new/i18nspector-0.17.2/lib/cli.py
--- old/i18nspector-0.17.1/lib/cli.py   2014-10-18 17:19:36.000000000 +0200
+++ new/i18nspector-0.17.2/lib/cli.py   2014-11-19 15:11:24.000000000 +0100
@@ -37,7 +37,7 @@
 from . import tags
 from . import terminal
 
-__version__ = '0.17.1'
+__version__ = '0.17.2'
 
 def initialize_terminal():
     if sys.stdout.isatty():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.17.1/lib/ling.py 
new/i18nspector-0.17.2/lib/ling.py
--- old/i18nspector-0.17.1/lib/ling.py  2014-10-18 17:19:36.000000000 +0200
+++ new/i18nspector-0.17.2/lib/ling.py  2014-11-19 15:11:24.000000000 +0100
@@ -281,7 +281,8 @@
         for subname in _name.split(','):
             subname = subname.strip()
             result = _name_to_code.get(subname)
-            results.add(result)
+            if result is not None:
+                results.add(result)
         if len(results) == 1:
             return parse(results.pop())
     raise LookupError(name)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.17.1/lib/terminal.py 
new/i18nspector-0.17.2/lib/terminal.py
--- old/i18nspector-0.17.1/lib/terminal.py      2014-10-18 17:19:36.000000000 
+0200
+++ new/i18nspector-0.17.2/lib/terminal.py      2014-11-19 15:11:24.000000000 
+0100
@@ -85,7 +85,7 @@
         _curses.tparm(b'x')
     except TypeError:
         # curses.tparm() is broken in early version of Python 3.2:
-        # http://bugs.python.org/issue10570
+        # https://bugs.python.org/issue10570
         _curses = _dummy_curses
         return
     for key, value in vars(_curses).items():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.17.1/private/update-version 
new/i18nspector-0.17.2/private/update-version
--- old/i18nspector-0.17.1/private/update-version       2014-10-18 
17:19:36.000000000 +0200
+++ new/i18nspector-0.17.2/private/update-version       2014-11-19 
15:11:24.000000000 +0100
@@ -1,6 +1,6 @@
 #!/bin/sh
 version=${1:?"no version number provided"}
 set -e -x
-dch -m -v "$version" -c doc/changelog
+dch -m -v "$version" -u low -c doc/changelog
 sed -i -r -e "s/(__version__) = '\S+'/\1 = '$version'/" lib/*.py
 sed -i -r -e "s/^(:version: \S+) \S+$/\1 $version/" doc/*.txt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.17.1/tests/test_changelog.py 
new/i18nspector-0.17.2/tests/test_changelog.py
--- old/i18nspector-0.17.1/tests/test_changelog.py      2014-10-18 
17:19:37.000000000 +0200
+++ new/i18nspector-0.17.2/tests/test_changelog.py      2014-11-19 
15:11:25.000000000 +0100
@@ -52,7 +52,7 @@
     r'([\w-]+) [(]from ([\w-]+)[)]'
 )
 
-def test_changelog():
+def test_tags():
     path = os.path.join(docdir, 'changelog')
     with open(path, 'rt', encoding='UTF-8') as file:
         changelog = file.read()
@@ -94,4 +94,12 @@
     for tag in sorted(changelog_tags | data_tags):
         yield check, 'check', tag
 
+def test_trailing_whitespace():
+    path = os.path.join(docdir, 'changelog')
+    with open(path, 'rt', encoding='UTF-8') as file:
+        for n, line in enumerate(file, 1):
+            line = line.rstrip('\n')
+            if line[-1:].isspace():
+                raise AssertionError('trailing whitespace at line 
{0}'.format(n))
+
 # vim:ts=4 sts=4 sw=4 et
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/i18nspector-0.17.1/tests/test_ling.py 
new/i18nspector-0.17.2/tests/test_ling.py
--- old/i18nspector-0.17.1/tests/test_ling.py   2014-10-18 17:19:37.000000000 
+0200
+++ new/i18nspector-0.17.2/tests/test_ling.py   2014-11-19 15:11:25.000000000 
+0100
@@ -186,6 +186,10 @@
     def test_found_comma_as_semicolon(self):
         self.t('Pashto, Pushto', 'ps')
 
+    def test_lone_comma(self):
+        with assert_raises(LookupError):
+            self.t(',', None)
+
     def test_not_found(self):
         with assert_raises(LookupError):
             self.t('Nadsat', None)

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to